diff --git a/examples/quickstart-cpp/CMakeLists.txt b/examples/quickstart-cpp/CMakeLists.txt index c8a090e8433b..57c2d3451480 100644 --- a/examples/quickstart-cpp/CMakeLists.txt +++ b/examples/quickstart-cpp/CMakeLists.txt @@ -1,4 +1,6 @@ cmake_minimum_required(VERSION 3.16) +# Allow CMake 4.x to configure dependencies built with older cmake_minimum_required +set(CMAKE_POLICY_VERSION_MINIMUM 3.5) project(SimpleCppFlowerClient VERSION 0.10 DESCRIPTION "Creates a Simple C++ Flower client that trains a linear model on synthetic data." LANGUAGES CXX) @@ -6,7 +8,7 @@ set(CMAKE_CXX_STANDARD 17) option(USE_LOCAL_FLWR "Use local Flower directory instead of fetching from GitHub" OFF) ###################### -### Download gRPC +### Download gRPC include(FetchContent) FetchContent_Declare( @@ -58,16 +60,19 @@ target_link_libraries(flwr ${_REFLECTION} ${_GRPC_GRPCPP} ${_PROTOBUF_LIBPROTOBUF} + ssl + crypto ) target_include_directories(flwr PUBLIC ${FLWR_INCLUDE_DIR} + ${grpc_SOURCE_DIR}/third_party/boringssl-with-bazel/src/include ) ###################### ### FLWR_CLIENT file(GLOB FLWR_CLIENT_SRCS src/*.cc) -set(EXECUTABLE_NAME flwr_client) +set(EXECUTABLE_NAME flower-supernode) add_executable(${EXECUTABLE_NAME} ${FLWR_CLIENT_SRCS}) target_include_directories(${EXECUTABLE_NAME} PUBLIC diff --git a/examples/quickstart-cpp/Dockerfile b/examples/quickstart-cpp/Dockerfile new file mode 100644 index 000000000000..388125c8fab1 --- /dev/null +++ b/examples/quickstart-cpp/Dockerfile @@ -0,0 +1,42 @@ +FROM ubuntu:22.04 + +ARG DEBIAN_FRONTEND=noninteractive + +# Install system dependencies +RUN apt-get update && apt-get install -y \ + build-essential \ + cmake \ + git \ + curl \ + wget \ + autoconf \ + libtool \ + pkg-config \ + python3 \ + python-is-python3 \ + python3-pip \ + && rm -rf /var/lib/apt/lists/* + +# Install Flower and Python dependencies for the server +RUN pip3 install --no-cache-dir \ + flwr \ + numpy \ + hatchling + +WORKDIR /app + +# Copy proto definitions and C++ SDK source +COPY framework/proto /app/framework/proto +COPY framework/cc /app/framework/cc + +# Copy the quickstart-cpp example +COPY examples/quickstart-cpp /app/examples/quickstart-cpp + +# Build the C++ client (this fetches gRPC ~v1.43.2 and generates protos) +WORKDIR /app/examples/quickstart-cpp +RUN cmake -S . -B build -DUSE_LOCAL_FLWR=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DFETCHCONTENT_QUIET=OFF \ + && cmake --build build -j$(nproc) + +WORKDIR /app/examples/quickstart-cpp diff --git a/examples/quickstart-cpp/README.md b/examples/quickstart-cpp/README.md index 178309d2bf4a..fd1459bb4c7e 100644 --- a/examples/quickstart-cpp/README.md +++ b/examples/quickstart-cpp/README.md @@ -4,10 +4,7 @@ dataset: [Synthetic] framework: [C++] --- -# Flower Clients in C++ (under development) - -> [!WARNING]\ -> This example is compatible with `flwr<1.13.0`. We are currently updating it to the newer `flwr run` way of running Flower Apps. +# Flower Clients in C++ In this example you will train a linear model on synthetic data using C++ clients. @@ -19,31 +16,49 @@ Many thanks to the original contributors to this code: - Francisco José Solís (code re-organization) - Andreea Zaharia (training algorithm and data generation) -## Install requirements +## Option 1: Run with Docker (recommended) -You'll need CMake and Python with `flwr` installed. +The easiest way to test the C++ client is with Docker Compose, which builds the +client and runs the full federated learning setup automatically. -### Building the example +```bash +cd examples/quickstart-cpp +docker compose up --build +``` -This example provides you with a `CMakeLists.txt` file to configure and build the client. Feel free to take a look inside it to see what is happening under the hood. +This starts the SuperLink, two C++ SuperNode clients, and the Python ServerApp. + +To clean up: + +```bash +docker compose down +``` + +## Option 2: Run locally + +### Install requirements + +You'll need CMake, a C++17 compiler, and Python with `flwr` and `numpy` installed. + +### Building the example ```bash -cmake -S . -B build +cmake -S . -B build -DUSE_LOCAL_FLWR=ON cmake --build build ``` -## Run the `Flower SuperLink`, the two clients, and the `Flower ServerApp` in separate terminals +### Run the SuperLink, two clients, and the ServerApp in separate terminals ```bash flwr-superlink --insecure ``` ```bash -build/flwr_client 0 127.0.0.1:9092 +build/flower-supernode 0 127.0.0.1:9092 ``` ```bash -build/flwr_client 1 127.0.0.1:9092 +build/flower-supernode 1 127.0.0.1:9092 ``` ```bash diff --git a/examples/quickstart-cpp/client.py b/examples/quickstart-cpp/client.py new file mode 100644 index 000000000000..9cb9514975dc --- /dev/null +++ b/examples/quickstart-cpp/client.py @@ -0,0 +1,22 @@ +"""Placeholder ClientApp for C++ quickstart. + +The actual clients are C++ SuperNodes that connect via gRPC. +This file satisfies the Flower app configuration requirement. +""" +import flwr as fl + + +def client_fn(context) -> fl.client.Client: + """Placeholder client factory for the C++ quickstart. + + The actual clients for this example are implemented in C++ and connect to + the server via gRPC. This Python client placeholder exists only to satisfy + the Flower app configuration requirements and must not be started. + """ + raise RuntimeError( + "This Python ClientApp is a placeholder for the C++ quickstart. " + "Use the C++ SuperNode clients instead of starting this client." + ) + + +app = fl.client.ClientApp(client_fn=client_fn) diff --git a/examples/quickstart-cpp/docker-compose.yml b/examples/quickstart-cpp/docker-compose.yml new file mode 100644 index 000000000000..66187530d93f --- /dev/null +++ b/examples/quickstart-cpp/docker-compose.yml @@ -0,0 +1,75 @@ +services: + # Builds the C++ client binary and Python server dependencies + cpp-build: + build: + context: ../.. + dockerfile: examples/quickstart-cpp/Dockerfile + image: flower-quickstart-cpp + + # Flower SuperLink (manages FL lifecycle, runs ServerApp as subprocess) + superlink: + image: flower-quickstart-cpp + depends_on: + cpp-build: + condition: service_completed_successfully + command: flower-superlink --insecure + ports: + - "9091:9091" + - "9092:9092" + - "9093:9093" + working_dir: /app/examples/quickstart-cpp + networks: + - flwr-network + + # C++ SuperNode client 0 + client-0: + image: flower-quickstart-cpp + depends_on: + superlink: + condition: service_started + command: > + bash -c "sleep 4 && ./build/flower-supernode 0 superlink:9092" + working_dir: /app/examples/quickstart-cpp + networks: + - flwr-network + + # C++ SuperNode client 1 + client-1: + image: flower-quickstart-cpp + depends_on: + superlink: + condition: service_started + command: > + bash -c "sleep 8 && ./build/flower-supernode 1 superlink:9092" + working_dir: /app/examples/quickstart-cpp + networks: + - flwr-network + + # Submit the ServerApp run to the SuperLink + runner: + image: flower-quickstart-cpp + depends_on: + superlink: + condition: service_started + client-0: + condition: service_started + client-1: + condition: service_started + command: + - bash + - -c + - | + mkdir -p /root/.flwr + cat > /root/.flwr/config.toml << 'EOF' + [superlink.local-deployment] + address = "superlink:9093" + insecure = true + EOF + sleep 12 && flwr run . local-deployment + working_dir: /app/examples/quickstart-cpp + networks: + - flwr-network + +networks: + flwr-network: + driver: bridge diff --git a/examples/quickstart-cpp/pyproject.toml b/examples/quickstart-cpp/pyproject.toml new file mode 100644 index 000000000000..ddf00a2b98eb --- /dev/null +++ b/examples/quickstart-cpp/pyproject.toml @@ -0,0 +1,28 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "quickstart-cpp" +version = "1.0.0" +description = "Quickstart C++ with Flower" +license = "Apache-2.0" +requires-python = ">=3.9" +dependencies = [ + "flwr>=1.27.0", + "numpy>=1.26.0", +] + +[tool.hatch.build.targets.wheel] +packages = ["."] + +[tool.flwr.app] +publisher = "flwrlabs" + +[tool.flwr.app.components] +serverapp = "server:app" +clientapp = "client:app" + +[tool.flwr.app.config] +num-server-rounds = 3 + diff --git a/examples/quickstart-cpp/src/main.cc b/examples/quickstart-cpp/src/main.cc index f645360992c2..f72a4b58032b 100644 --- a/examples/quickstart-cpp/src/main.cc +++ b/examples/quickstart-cpp/src/main.cc @@ -5,7 +5,7 @@ int main(int argc, char **argv) { if (argc != 3) { std::cout << "Client takes 2 mandatory arguments as follows: " << std::endl; std::cout << "./client CLIENT_ID SERVER_URL" << std::endl; - std::cout << "Example: ./flwr_client 0 '127.0.0.1:8080'" << std::endl; + std::cout << "Example: ./flower-supernode 0 '127.0.0.1:9092'" << std::endl; return 0; } diff --git a/framework/cc/flwr/CMakeLists.txt b/framework/cc/flwr/CMakeLists.txt index 9955d21e84ad..082780915c70 100644 --- a/framework/cc/flwr/CMakeLists.txt +++ b/framework/cc/flwr/CMakeLists.txt @@ -1,4 +1,6 @@ cmake_minimum_required(VERSION 3.16) +# Allow CMake 4.x to configure dependencies built with older cmake_minimum_required +set(CMAKE_POLICY_VERSION_MINIMUM 3.5) project(flwr VERSION 1.0 DESCRIPTION "Flower Library that packages gRPC and other dependencies" LANGUAGES CXX) @@ -71,10 +73,13 @@ 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) GENERATE_AND_COPY(error) -GENERATE_AND_COPY(recordset) +GENERATE_AND_COPY(recorddict) +GENERATE_AND_COPY(message) +GENERATE_AND_COPY(heartbeat) +GENERATE_AND_COPY(run) +GENERATE_AND_COPY(fab) +GENERATE_AND_COPY(fleet) add_library(flwr_grpc_proto STATIC ${ALL_PROTO_FILES}) @@ -97,7 +102,8 @@ add_library(flwr ${FLWR_SRCS}) target_include_directories(flwr PUBLIC $ + $ ) -# Link gRPC and other dependencies -target_link_libraries(flwr PRIVATE flwr_grpc_proto) +# Link gRPC and other dependencies (ssl/crypto from BoringSSL for node auth) +target_link_libraries(flwr PRIVATE flwr_grpc_proto ssl crypto) diff --git a/framework/cc/flwr/include/communicator.h b/framework/cc/flwr/include/communicator.h index ace4821ab6af..92ba858a3e89 100644 --- a/framework/cc/flwr/include/communicator.h +++ b/framework/cc/flwr/include/communicator.h @@ -1,30 +1,73 @@ #ifndef COMMUNICATOR_H #define COMMUNICATOR_H +#include "flwr/proto/fab.pb.h" #include "flwr/proto/fleet.pb.h" -#include +#include "flwr/proto/heartbeat.pb.h" +#include "flwr/proto/run.pb.h" +#include "typing.h" #include class Communicator { public: - virtual bool send_create_node(flwr::proto::CreateNodeRequest request, - flwr::proto::CreateNodeResponse *response) = 0; + virtual ~Communicator() = default; - virtual bool send_delete_node(flwr::proto::DeleteNodeRequest request, - flwr::proto::DeleteNodeResponse *response) = 0; + virtual bool + send_register_node(flwr::proto::RegisterNodeFleetRequest request, + flwr::proto::RegisterNodeFleetResponse *response) = 0; + + virtual bool + send_activate_node(flwr::proto::ActivateNodeRequest request, + flwr::proto::ActivateNodeResponse *response) = 0; + + virtual bool + send_deactivate_node(flwr::proto::DeactivateNodeRequest request, + flwr::proto::DeactivateNodeResponse *response) = 0; + + virtual bool + send_unregister_node(flwr::proto::UnregisterNodeFleetRequest request, + flwr::proto::UnregisterNodeFleetResponse *response) = 0; + + virtual bool + send_heartbeat(flwr::proto::SendNodeHeartbeatRequest request, + flwr::proto::SendNodeHeartbeatResponse *response) = 0; virtual bool - send_pull_task_ins(flwr::proto::PullTaskInsRequest request, - flwr::proto::PullTaskInsResponse *response) = 0; + send_pull_messages(flwr::proto::PullMessagesRequest request, + flwr::proto::PullMessagesResponse *response) = 0; virtual bool - send_push_task_res(flwr::proto::PushTaskResRequest request, - flwr::proto::PushTaskResResponse *response) = 0; + send_push_messages(flwr::proto::PushMessagesRequest request, + flwr::proto::PushMessagesResponse *response) = 0; + + virtual bool send_get_run(flwr::proto::GetRunRequest request, + flwr::proto::GetRunResponse *response) = 0; + + virtual bool send_get_fab(flwr::proto::GetFabRequest request, + flwr::proto::GetFabResponse *response) = 0; + + virtual bool send_pull_object(flwr::proto::PullObjectRequest request, + flwr::proto::PullObjectResponse *response) = 0; + + virtual bool send_push_object(flwr::proto::PushObjectRequest request, + flwr::proto::PushObjectResponse *response) = 0; + + virtual bool send_confirm_message_received( + flwr::proto::ConfirmMessageReceivedRequest request, + flwr::proto::ConfirmMessageReceivedResponse *response) = 0; + + virtual const std::string &public_key_pem() const = 0; }; -void create_node(Communicator *communicator); -void delete_node(Communicator *communicator); -void send(Communicator *communicator, flwr::proto::TaskRes task_res); -std::optional receive(Communicator *communicator); +// Node lifecycle functions +void register_node(Communicator *communicator); +uint64_t activate_node(Communicator *communicator, double heartbeat_interval); +void deactivate_node(Communicator *communicator); +void unregister_node(Communicator *communicator); +bool send_heartbeat(Communicator *communicator, double heartbeat_interval); + +// Message exchange functions +std::optional receive(Communicator *communicator); +void send(Communicator *communicator, const flwr_local::Message &message); #endif diff --git a/framework/cc/flwr/include/flwr/proto/task.grpc.pb.cc b/framework/cc/flwr/include/flwr/proto/fab.grpc.pb.cc similarity index 89% rename from framework/cc/flwr/include/flwr/proto/task.grpc.pb.cc rename to framework/cc/flwr/include/flwr/proto/fab.grpc.pb.cc index a71fcff6f5a1..53ed1fc926a4 100644 --- a/framework/cc/flwr/include/flwr/proto/task.grpc.pb.cc +++ b/framework/cc/flwr/include/flwr/proto/fab.grpc.pb.cc @@ -1,9 +1,9 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flwr/proto/task.proto +// source: flwr/proto/fab.proto -#include "flwr/proto/task.pb.h" -#include "flwr/proto/task.grpc.pb.h" +#include "flwr/proto/fab.pb.h" +#include "flwr/proto/fab.grpc.pb.h" #include #include diff --git a/framework/cc/flwr/include/flwr/proto/recordset.grpc.pb.h b/framework/cc/flwr/include/flwr/proto/fab.grpc.pb.h similarity index 87% rename from framework/cc/flwr/include/flwr/proto/recordset.grpc.pb.h rename to framework/cc/flwr/include/flwr/proto/fab.grpc.pb.h index 0aeae1ab16a6..593e4e18673b 100644 --- a/framework/cc/flwr/include/flwr/proto/recordset.grpc.pb.h +++ b/framework/cc/flwr/include/flwr/proto/fab.grpc.pb.h @@ -1,6 +1,6 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flwr/proto/recordset.proto +// source: flwr/proto/fab.proto // Original file comments: // Copyright 2024 Flower Labs GmbH. All Rights Reserved. // @@ -17,10 +17,10 @@ // limitations under the License. // ============================================================================== // -#ifndef GRPC_flwr_2fproto_2frecordset_2eproto__INCLUDED -#define GRPC_flwr_2fproto_2frecordset_2eproto__INCLUDED +#ifndef GRPC_flwr_2fproto_2ffab_2eproto__INCLUDED +#define GRPC_flwr_2fproto_2ffab_2eproto__INCLUDED -#include "flwr/proto/recordset.pb.h" +#include "flwr/proto/fab.pb.h" #include #include @@ -48,4 +48,4 @@ namespace proto { } // namespace flwr -#endif // GRPC_flwr_2fproto_2frecordset_2eproto__INCLUDED +#endif // GRPC_flwr_2fproto_2ffab_2eproto__INCLUDED diff --git a/framework/cc/flwr/include/flwr/proto/fab.pb.cc b/framework/cc/flwr/include/flwr/proto/fab.pb.cc new file mode 100644 index 000000000000..194afdbf5c8f --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/fab.pb.cc @@ -0,0 +1,977 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/fab.proto + +#include "flwr/proto/fab.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG +namespace flwr { +namespace proto { +constexpr Fab_VerificationsEntry_DoNotUse::Fab_VerificationsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct Fab_VerificationsEntry_DoNotUseDefaultTypeInternal { + constexpr Fab_VerificationsEntry_DoNotUseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~Fab_VerificationsEntry_DoNotUseDefaultTypeInternal() {} + union { + Fab_VerificationsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Fab_VerificationsEntry_DoNotUseDefaultTypeInternal _Fab_VerificationsEntry_DoNotUse_default_instance_; +constexpr Fab::Fab( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : verifications_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , hash_str_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , content_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct FabDefaultTypeInternal { + constexpr FabDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~FabDefaultTypeInternal() {} + union { + Fab _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FabDefaultTypeInternal _Fab_default_instance_; +constexpr GetFabRequest::GetFabRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : hash_str_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , node_(nullptr) + , run_id_(uint64_t{0u}){} +struct GetFabRequestDefaultTypeInternal { + constexpr GetFabRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~GetFabRequestDefaultTypeInternal() {} + union { + GetFabRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetFabRequestDefaultTypeInternal _GetFabRequest_default_instance_; +constexpr GetFabResponse::GetFabResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : fab_(nullptr){} +struct GetFabResponseDefaultTypeInternal { + constexpr GetFabResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~GetFabResponseDefaultTypeInternal() {} + union { + GetFabResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetFabResponseDefaultTypeInternal _GetFabResponse_default_instance_; +} // namespace proto +} // namespace flwr +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2ffab_2eproto[4]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_flwr_2fproto_2ffab_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_flwr_2fproto_2ffab_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2ffab_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::flwr::proto::Fab_VerificationsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Fab_VerificationsEntry_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::Fab_VerificationsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Fab_VerificationsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Fab, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Fab, hash_str_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Fab, content_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Fab, verifications_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetFabRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetFabRequest, node_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetFabRequest, hash_str_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetFabRequest, run_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetFabResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetFabResponse, fab_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 8, -1, sizeof(::flwr::proto::Fab_VerificationsEntry_DoNotUse)}, + { 10, -1, -1, sizeof(::flwr::proto::Fab)}, + { 19, -1, -1, sizeof(::flwr::proto::GetFabRequest)}, + { 28, -1, -1, sizeof(::flwr::proto::GetFabResponse)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::flwr::proto::_Fab_VerificationsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_Fab_default_instance_), + reinterpret_cast(&::flwr::proto::_GetFabRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_GetFabResponse_default_instance_), +}; + +const char descriptor_table_protodef_flwr_2fproto_2ffab_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\024flwr/proto/fab.proto\022\nflwr.proto\032\025flwr" + "/proto/node.proto\"\231\001\n\003Fab\022\020\n\010hash_str\030\001 " + "\001(\t\022\017\n\007content\030\002 \001(\014\0229\n\rverifications\030\003 " + "\003(\0132\".flwr.proto.Fab.VerificationsEntry\032" + "4\n\022VerificationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + "lue\030\002 \001(\t:\0028\001\"Q\n\rGetFabRequest\022\036\n\004node\030\001" + " \001(\0132\020.flwr.proto.Node\022\020\n\010hash_str\030\002 \001(\t" + "\022\016\n\006run_id\030\003 \001(\004\".\n\016GetFabResponse\022\034\n\003fa" + "b\030\001 \001(\0132\017.flwr.proto.Fabb\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_flwr_2fproto_2ffab_2eproto_deps[1] = { + &::descriptor_table_flwr_2fproto_2fnode_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_flwr_2fproto_2ffab_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2ffab_2eproto = { + false, false, 352, descriptor_table_protodef_flwr_2fproto_2ffab_2eproto, "flwr/proto/fab.proto", + &descriptor_table_flwr_2fproto_2ffab_2eproto_once, descriptor_table_flwr_2fproto_2ffab_2eproto_deps, 1, 4, + schemas, file_default_instances, TableStruct_flwr_2fproto_2ffab_2eproto::offsets, + file_level_metadata_flwr_2fproto_2ffab_2eproto, file_level_enum_descriptors_flwr_2fproto_2ffab_2eproto, file_level_service_descriptors_flwr_2fproto_2ffab_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_flwr_2fproto_2ffab_2eproto_getter() { + return &descriptor_table_flwr_2fproto_2ffab_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_flwr_2fproto_2ffab_2eproto(&descriptor_table_flwr_2fproto_2ffab_2eproto); +namespace flwr { +namespace proto { + +// =================================================================== + +Fab_VerificationsEntry_DoNotUse::Fab_VerificationsEntry_DoNotUse() {} +Fab_VerificationsEntry_DoNotUse::Fab_VerificationsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void Fab_VerificationsEntry_DoNotUse::MergeFrom(const Fab_VerificationsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata Fab_VerificationsEntry_DoNotUse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffab_2eproto_getter, &descriptor_table_flwr_2fproto_2ffab_2eproto_once, + file_level_metadata_flwr_2fproto_2ffab_2eproto[0]); +} + +// =================================================================== + +class Fab::_Internal { + public: +}; + +Fab::Fab(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + verifications_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Fab) +} +Fab::Fab(const Fab& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + verifications_.MergeFrom(from.verifications_); + hash_str_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_hash_str().empty()) { + hash_str_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_hash_str(), + GetArenaForAllocation()); + } + content_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_content().empty()) { + content_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_content(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.Fab) +} + +void Fab::SharedCtor() { +hash_str_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +content_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +Fab::~Fab() { + // @@protoc_insertion_point(destructor:flwr.proto.Fab) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Fab::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + hash_str_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + content_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void Fab::ArenaDtor(void* object) { + Fab* _this = reinterpret_cast< Fab* >(object); + (void)_this; + _this->verifications_. ~MapField(); +} +inline void Fab::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { + if (arena != nullptr) { + arena->OwnCustomDestructor(this, &Fab::ArenaDtor); + } +} +void Fab::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Fab::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Fab) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + verifications_.Clear(); + hash_str_.ClearToEmpty(); + content_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Fab::_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 hash_str = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_hash_str(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Fab.hash_str")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes content = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_content(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map verifications = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&verifications_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* Fab::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Fab) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string hash_str = 1; + if (!this->_internal_hash_str().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_hash_str().data(), static_cast(this->_internal_hash_str().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Fab.hash_str"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_hash_str(), target); + } + + // bytes content = 2; + if (!this->_internal_content().empty()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_content(), target); + } + + // map verifications = 3; + if (!this->_internal_verifications().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::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.Fab.VerificationsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Fab.VerificationsEntry.value"); + } + }; + + if (stream->IsSerializationDeterministic() && + this->_internal_verifications().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->_internal_verifications().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::size_type size_type; + size_type n = 0; + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_verifications().begin(); + it != this->_internal_verifications().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 = Fab_VerificationsEntry_DoNotUse::Funcs::InternalSerialize(3, 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, std::string >::const_iterator + it = this->_internal_verifications().begin(); + it != this->_internal_verifications().end(); ++it) { + target = Fab_VerificationsEntry_DoNotUse::Funcs::InternalSerialize(3, 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.Fab) + return target; +} + +size_t Fab::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Fab) + 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 verifications = 3; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_verifications_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_verifications().begin(); + it != this->_internal_verifications().end(); ++it) { + total_size += Fab_VerificationsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string hash_str = 1; + if (!this->_internal_hash_str().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_hash_str()); + } + + // bytes content = 2; + if (!this->_internal_content().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_content()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Fab::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Fab::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Fab::GetClassData() const { return &_class_data_; } + +void Fab::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Fab::MergeFrom(const Fab& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Fab) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + verifications_.MergeFrom(from.verifications_); + if (!from._internal_hash_str().empty()) { + _internal_set_hash_str(from._internal_hash_str()); + } + if (!from._internal_content().empty()) { + _internal_set_content(from._internal_content()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Fab::CopyFrom(const Fab& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Fab) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Fab::IsInitialized() const { + return true; +} + +void Fab::InternalSwap(Fab* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + verifications_.InternalSwap(&other->verifications_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &hash_str_, lhs_arena, + &other->hash_str_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &content_, lhs_arena, + &other->content_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Fab::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffab_2eproto_getter, &descriptor_table_flwr_2fproto_2ffab_2eproto_once, + file_level_metadata_flwr_2fproto_2ffab_2eproto[1]); +} + +// =================================================================== + +class GetFabRequest::_Internal { + public: + static const ::flwr::proto::Node& node(const GetFabRequest* msg); +}; + +const ::flwr::proto::Node& +GetFabRequest::_Internal::node(const GetFabRequest* msg) { + return *msg->node_; +} +void GetFabRequest::clear_node() { + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; +} +GetFabRequest::GetFabRequest(::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.GetFabRequest) +} +GetFabRequest::GetFabRequest(const GetFabRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + hash_str_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_hash_str().empty()) { + hash_str_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_hash_str(), + GetArenaForAllocation()); + } + if (from._internal_has_node()) { + node_ = new ::flwr::proto::Node(*from.node_); + } else { + node_ = nullptr; + } + run_id_ = from.run_id_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.GetFabRequest) +} + +void GetFabRequest::SharedCtor() { +hash_str_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&node_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&run_id_) - + reinterpret_cast(&node_)) + sizeof(run_id_)); +} + +GetFabRequest::~GetFabRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.GetFabRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void GetFabRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + hash_str_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete node_; +} + +void GetFabRequest::ArenaDtor(void* object) { + GetFabRequest* _this = reinterpret_cast< GetFabRequest* >(object); + (void)_this; +} +void GetFabRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GetFabRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetFabRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.GetFabRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + hash_str_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; + run_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetFabRequest::_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; + // string hash_str = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_hash_str(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.GetFabRequest.hash_str")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 run_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + run_id_ = ::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* GetFabRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.GetFabRequest) + ::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); + } + + // string hash_str = 2; + if (!this->_internal_hash_str().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_hash_str().data(), static_cast(this->_internal_hash_str().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.GetFabRequest.hash_str"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_hash_str(), target); + } + + // uint64 run_id = 3; + if (this->_internal_run_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_run_id(), 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.GetFabRequest) + return target; +} + +size_t GetFabRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.GetFabRequest) + 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 hash_str = 2; + if (!this->_internal_hash_str().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_hash_str()); + } + + // .flwr.proto.Node node = 1; + if (this->_internal_has_node()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *node_); + } + + // uint64 run_id = 3; + if (this->_internal_run_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_run_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetFabRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetFabRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetFabRequest::GetClassData() const { return &_class_data_; } + +void GetFabRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetFabRequest::MergeFrom(const GetFabRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.GetFabRequest) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_hash_str().empty()) { + _internal_set_hash_str(from._internal_hash_str()); + } + if (from._internal_has_node()) { + _internal_mutable_node()->::flwr::proto::Node::MergeFrom(from._internal_node()); + } + if (from._internal_run_id() != 0) { + _internal_set_run_id(from._internal_run_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetFabRequest::CopyFrom(const GetFabRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.GetFabRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetFabRequest::IsInitialized() const { + return true; +} + +void GetFabRequest::InternalSwap(GetFabRequest* 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(), + &hash_str_, lhs_arena, + &other->hash_str_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetFabRequest, run_id_) + + sizeof(GetFabRequest::run_id_) + - PROTOBUF_FIELD_OFFSET(GetFabRequest, node_)>( + reinterpret_cast(&node_), + reinterpret_cast(&other->node_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetFabRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffab_2eproto_getter, &descriptor_table_flwr_2fproto_2ffab_2eproto_once, + file_level_metadata_flwr_2fproto_2ffab_2eproto[2]); +} + +// =================================================================== + +class GetFabResponse::_Internal { + public: + static const ::flwr::proto::Fab& fab(const GetFabResponse* msg); +}; + +const ::flwr::proto::Fab& +GetFabResponse::_Internal::fab(const GetFabResponse* msg) { + return *msg->fab_; +} +GetFabResponse::GetFabResponse(::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.GetFabResponse) +} +GetFabResponse::GetFabResponse(const GetFabResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_fab()) { + fab_ = new ::flwr::proto::Fab(*from.fab_); + } else { + fab_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.GetFabResponse) +} + +void GetFabResponse::SharedCtor() { +fab_ = nullptr; +} + +GetFabResponse::~GetFabResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.GetFabResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void GetFabResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete fab_; +} + +void GetFabResponse::ArenaDtor(void* object) { + GetFabResponse* _this = reinterpret_cast< GetFabResponse* >(object); + (void)_this; +} +void GetFabResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GetFabResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetFabResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.GetFabResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && fab_ != nullptr) { + delete fab_; + } + fab_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetFabResponse::_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.Fab fab = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_fab(), 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* GetFabResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.GetFabResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Fab fab = 1; + if (this->_internal_has_fab()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::fab(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.GetFabResponse) + return target; +} + +size_t GetFabResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.GetFabResponse) + 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.Fab fab = 1; + if (this->_internal_has_fab()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *fab_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetFabResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetFabResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetFabResponse::GetClassData() const { return &_class_data_; } + +void GetFabResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetFabResponse::MergeFrom(const GetFabResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.GetFabResponse) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_fab()) { + _internal_mutable_fab()->::flwr::proto::Fab::MergeFrom(from._internal_fab()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetFabResponse::CopyFrom(const GetFabResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.GetFabResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetFabResponse::IsInitialized() const { + return true; +} + +void GetFabResponse::InternalSwap(GetFabResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(fab_, other->fab_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetFabResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffab_2eproto_getter, &descriptor_table_flwr_2fproto_2ffab_2eproto_once, + file_level_metadata_flwr_2fproto_2ffab_2eproto[3]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::flwr::proto::Fab_VerificationsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::Fab_VerificationsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Fab_VerificationsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Fab* Arena::CreateMaybeMessage< ::flwr::proto::Fab >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Fab >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::GetFabRequest* Arena::CreateMaybeMessage< ::flwr::proto::GetFabRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::GetFabRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::GetFabResponse* Arena::CreateMaybeMessage< ::flwr::proto::GetFabResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::GetFabResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/framework/cc/flwr/include/flwr/proto/fab.pb.h b/framework/cc/flwr/include/flwr/proto/fab.pb.h new file mode 100644 index 000000000000..b891f3a5c51c --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/fab.pb.h @@ -0,0 +1,1033 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/fab.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2ffab_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2ffab_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" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flwr_2fproto_2ffab_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_2ffab_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[4] + 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_2ffab_2eproto; +namespace flwr { +namespace proto { +class Fab; +struct FabDefaultTypeInternal; +extern FabDefaultTypeInternal _Fab_default_instance_; +class Fab_VerificationsEntry_DoNotUse; +struct Fab_VerificationsEntry_DoNotUseDefaultTypeInternal; +extern Fab_VerificationsEntry_DoNotUseDefaultTypeInternal _Fab_VerificationsEntry_DoNotUse_default_instance_; +class GetFabRequest; +struct GetFabRequestDefaultTypeInternal; +extern GetFabRequestDefaultTypeInternal _GetFabRequest_default_instance_; +class GetFabResponse; +struct GetFabResponseDefaultTypeInternal; +extern GetFabResponseDefaultTypeInternal _GetFabResponse_default_instance_; +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> ::flwr::proto::Fab* Arena::CreateMaybeMessage<::flwr::proto::Fab>(Arena*); +template<> ::flwr::proto::Fab_VerificationsEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::Fab_VerificationsEntry_DoNotUse>(Arena*); +template<> ::flwr::proto::GetFabRequest* Arena::CreateMaybeMessage<::flwr::proto::GetFabRequest>(Arena*); +template<> ::flwr::proto::GetFabResponse* Arena::CreateMaybeMessage<::flwr::proto::GetFabResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace flwr { +namespace proto { + +// =================================================================== + +class Fab_VerificationsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + Fab_VerificationsEntry_DoNotUse(); + explicit constexpr Fab_VerificationsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit Fab_VerificationsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const Fab_VerificationsEntry_DoNotUse& other); + static const Fab_VerificationsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Fab_VerificationsEntry_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.Fab.VerificationsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "flwr.proto.Fab.VerificationsEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class Fab final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Fab) */ { + public: + inline Fab() : Fab(nullptr) {} + ~Fab() override; + explicit constexpr Fab(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Fab(const Fab& from); + Fab(Fab&& from) noexcept + : Fab() { + *this = ::std::move(from); + } + + inline Fab& operator=(const Fab& from) { + CopyFrom(from); + return *this; + } + inline Fab& operator=(Fab&& 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 Fab& default_instance() { + return *internal_default_instance(); + } + static inline const Fab* internal_default_instance() { + return reinterpret_cast( + &_Fab_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(Fab& a, Fab& b) { + a.Swap(&b); + } + inline void Swap(Fab* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Fab* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Fab* New() const final { + return new Fab(); + } + + Fab* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Fab& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Fab& 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(Fab* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Fab"; + } + protected: + explicit Fab(::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 { + kVerificationsFieldNumber = 3, + kHashStrFieldNumber = 1, + kContentFieldNumber = 2, + }; + // map verifications = 3; + int verifications_size() const; + private: + int _internal_verifications_size() const; + public: + void clear_verifications(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_verifications() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_verifications(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + verifications() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_verifications(); + + // string hash_str = 1; + void clear_hash_str(); + const std::string& hash_str() const; + template + void set_hash_str(ArgT0&& arg0, ArgT... args); + std::string* mutable_hash_str(); + PROTOBUF_MUST_USE_RESULT std::string* release_hash_str(); + void set_allocated_hash_str(std::string* hash_str); + private: + const std::string& _internal_hash_str() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash_str(const std::string& value); + std::string* _internal_mutable_hash_str(); + public: + + // bytes content = 2; + void clear_content(); + const std::string& content() const; + template + void set_content(ArgT0&& arg0, ArgT... args); + std::string* mutable_content(); + PROTOBUF_MUST_USE_RESULT std::string* release_content(); + void set_allocated_content(std::string* content); + private: + const std::string& _internal_content() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_content(const std::string& value); + std::string* _internal_mutable_content(); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.Fab) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + Fab_VerificationsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> verifications_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hash_str_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ffab_2eproto; +}; +// ------------------------------------------------------------------- + +class GetFabRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.GetFabRequest) */ { + public: + inline GetFabRequest() : GetFabRequest(nullptr) {} + ~GetFabRequest() override; + explicit constexpr GetFabRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetFabRequest(const GetFabRequest& from); + GetFabRequest(GetFabRequest&& from) noexcept + : GetFabRequest() { + *this = ::std::move(from); + } + + inline GetFabRequest& operator=(const GetFabRequest& from) { + CopyFrom(from); + return *this; + } + inline GetFabRequest& operator=(GetFabRequest&& 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 GetFabRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetFabRequest* internal_default_instance() { + return reinterpret_cast( + &_GetFabRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(GetFabRequest& a, GetFabRequest& b) { + a.Swap(&b); + } + inline void Swap(GetFabRequest* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetFabRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline GetFabRequest* New() const final { + return new GetFabRequest(); + } + + GetFabRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetFabRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetFabRequest& 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(GetFabRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.GetFabRequest"; + } + protected: + explicit GetFabRequest(::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 { + kHashStrFieldNumber = 2, + kNodeFieldNumber = 1, + kRunIdFieldNumber = 3, + }; + // string hash_str = 2; + void clear_hash_str(); + const std::string& hash_str() const; + template + void set_hash_str(ArgT0&& arg0, ArgT... args); + std::string* mutable_hash_str(); + PROTOBUF_MUST_USE_RESULT std::string* release_hash_str(); + void set_allocated_hash_str(std::string* hash_str); + private: + const std::string& _internal_hash_str() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash_str(const std::string& value); + std::string* _internal_mutable_hash_str(); + 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(); + + // uint64 run_id = 3; + void clear_run_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 run_id() const; + void set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_run_id() const; + void _internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.GetFabRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hash_str_; + ::flwr::proto::Node* node_; + ::PROTOBUF_NAMESPACE_ID::uint64 run_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ffab_2eproto; +}; +// ------------------------------------------------------------------- + +class GetFabResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.GetFabResponse) */ { + public: + inline GetFabResponse() : GetFabResponse(nullptr) {} + ~GetFabResponse() override; + explicit constexpr GetFabResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetFabResponse(const GetFabResponse& from); + GetFabResponse(GetFabResponse&& from) noexcept + : GetFabResponse() { + *this = ::std::move(from); + } + + inline GetFabResponse& operator=(const GetFabResponse& from) { + CopyFrom(from); + return *this; + } + inline GetFabResponse& operator=(GetFabResponse&& 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 GetFabResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetFabResponse* internal_default_instance() { + return reinterpret_cast( + &_GetFabResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GetFabResponse& a, GetFabResponse& b) { + a.Swap(&b); + } + inline void Swap(GetFabResponse* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetFabResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline GetFabResponse* New() const final { + return new GetFabResponse(); + } + + GetFabResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetFabResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetFabResponse& 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(GetFabResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.GetFabResponse"; + } + protected: + explicit GetFabResponse(::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 { + kFabFieldNumber = 1, + }; + // .flwr.proto.Fab fab = 1; + bool has_fab() const; + private: + bool _internal_has_fab() const; + public: + void clear_fab(); + const ::flwr::proto::Fab& fab() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Fab* release_fab(); + ::flwr::proto::Fab* mutable_fab(); + void set_allocated_fab(::flwr::proto::Fab* fab); + private: + const ::flwr::proto::Fab& _internal_fab() const; + ::flwr::proto::Fab* _internal_mutable_fab(); + public: + void unsafe_arena_set_allocated_fab( + ::flwr::proto::Fab* fab); + ::flwr::proto::Fab* unsafe_arena_release_fab(); + + // @@protoc_insertion_point(class_scope:flwr.proto.GetFabResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::flwr::proto::Fab* fab_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ffab_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// Fab + +// string hash_str = 1; +inline void Fab::clear_hash_str() { + hash_str_.ClearToEmpty(); +} +inline const std::string& Fab::hash_str() const { + // @@protoc_insertion_point(field_get:flwr.proto.Fab.hash_str) + return _internal_hash_str(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Fab::set_hash_str(ArgT0&& arg0, ArgT... args) { + + hash_str_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Fab.hash_str) +} +inline std::string* Fab::mutable_hash_str() { + std::string* _s = _internal_mutable_hash_str(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Fab.hash_str) + return _s; +} +inline const std::string& Fab::_internal_hash_str() const { + return hash_str_.Get(); +} +inline void Fab::_internal_set_hash_str(const std::string& value) { + + hash_str_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Fab::_internal_mutable_hash_str() { + + return hash_str_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Fab::release_hash_str() { + // @@protoc_insertion_point(field_release:flwr.proto.Fab.hash_str) + return hash_str_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Fab::set_allocated_hash_str(std::string* hash_str) { + if (hash_str != nullptr) { + + } else { + + } + hash_str_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), hash_str, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Fab.hash_str) +} + +// bytes content = 2; +inline void Fab::clear_content() { + content_.ClearToEmpty(); +} +inline const std::string& Fab::content() const { + // @@protoc_insertion_point(field_get:flwr.proto.Fab.content) + return _internal_content(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Fab::set_content(ArgT0&& arg0, ArgT... args) { + + content_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Fab.content) +} +inline std::string* Fab::mutable_content() { + std::string* _s = _internal_mutable_content(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Fab.content) + return _s; +} +inline const std::string& Fab::_internal_content() const { + return content_.Get(); +} +inline void Fab::_internal_set_content(const std::string& value) { + + content_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Fab::_internal_mutable_content() { + + return content_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Fab::release_content() { + // @@protoc_insertion_point(field_release:flwr.proto.Fab.content) + return content_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Fab::set_allocated_content(std::string* content) { + if (content != nullptr) { + + } else { + + } + content_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Fab.content) +} + +// map verifications = 3; +inline int Fab::_internal_verifications_size() const { + return verifications_.size(); +} +inline int Fab::verifications_size() const { + return _internal_verifications_size(); +} +inline void Fab::clear_verifications() { + verifications_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +Fab::_internal_verifications() const { + return verifications_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +Fab::verifications() const { + // @@protoc_insertion_point(field_map:flwr.proto.Fab.verifications) + return _internal_verifications(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +Fab::_internal_mutable_verifications() { + return verifications_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +Fab::mutable_verifications() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.Fab.verifications) + return _internal_mutable_verifications(); +} + +// ------------------------------------------------------------------- + +// GetFabRequest + +// .flwr.proto.Node node = 1; +inline bool GetFabRequest::_internal_has_node() const { + return this != internal_default_instance() && node_ != nullptr; +} +inline bool GetFabRequest::has_node() const { + return _internal_has_node(); +} +inline const ::flwr::proto::Node& GetFabRequest::_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& GetFabRequest::node() const { + // @@protoc_insertion_point(field_get:flwr.proto.GetFabRequest.node) + return _internal_node(); +} +inline void GetFabRequest::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.GetFabRequest.node) +} +inline ::flwr::proto::Node* GetFabRequest::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* GetFabRequest::unsafe_arena_release_node() { + // @@protoc_insertion_point(field_release:flwr.proto.GetFabRequest.node) + + ::flwr::proto::Node* temp = node_; + node_ = nullptr; + return temp; +} +inline ::flwr::proto::Node* GetFabRequest::_internal_mutable_node() { + + if (node_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); + node_ = p; + } + return node_; +} +inline ::flwr::proto::Node* GetFabRequest::mutable_node() { + ::flwr::proto::Node* _msg = _internal_mutable_node(); + // @@protoc_insertion_point(field_mutable:flwr.proto.GetFabRequest.node) + return _msg; +} +inline void GetFabRequest::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.GetFabRequest.node) +} + +// string hash_str = 2; +inline void GetFabRequest::clear_hash_str() { + hash_str_.ClearToEmpty(); +} +inline const std::string& GetFabRequest::hash_str() const { + // @@protoc_insertion_point(field_get:flwr.proto.GetFabRequest.hash_str) + return _internal_hash_str(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetFabRequest::set_hash_str(ArgT0&& arg0, ArgT... args) { + + hash_str_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.GetFabRequest.hash_str) +} +inline std::string* GetFabRequest::mutable_hash_str() { + std::string* _s = _internal_mutable_hash_str(); + // @@protoc_insertion_point(field_mutable:flwr.proto.GetFabRequest.hash_str) + return _s; +} +inline const std::string& GetFabRequest::_internal_hash_str() const { + return hash_str_.Get(); +} +inline void GetFabRequest::_internal_set_hash_str(const std::string& value) { + + hash_str_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* GetFabRequest::_internal_mutable_hash_str() { + + return hash_str_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* GetFabRequest::release_hash_str() { + // @@protoc_insertion_point(field_release:flwr.proto.GetFabRequest.hash_str) + return hash_str_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void GetFabRequest::set_allocated_hash_str(std::string* hash_str) { + if (hash_str != nullptr) { + + } else { + + } + hash_str_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), hash_str, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.GetFabRequest.hash_str) +} + +// uint64 run_id = 3; +inline void GetFabRequest::clear_run_id() { + run_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 GetFabRequest::_internal_run_id() const { + return run_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 GetFabRequest::run_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.GetFabRequest.run_id) + return _internal_run_id(); +} +inline void GetFabRequest::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + run_id_ = value; +} +inline void GetFabRequest::set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_run_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.GetFabRequest.run_id) +} + +// ------------------------------------------------------------------- + +// GetFabResponse + +// .flwr.proto.Fab fab = 1; +inline bool GetFabResponse::_internal_has_fab() const { + return this != internal_default_instance() && fab_ != nullptr; +} +inline bool GetFabResponse::has_fab() const { + return _internal_has_fab(); +} +inline void GetFabResponse::clear_fab() { + if (GetArenaForAllocation() == nullptr && fab_ != nullptr) { + delete fab_; + } + fab_ = nullptr; +} +inline const ::flwr::proto::Fab& GetFabResponse::_internal_fab() const { + const ::flwr::proto::Fab* p = fab_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Fab_default_instance_); +} +inline const ::flwr::proto::Fab& GetFabResponse::fab() const { + // @@protoc_insertion_point(field_get:flwr.proto.GetFabResponse.fab) + return _internal_fab(); +} +inline void GetFabResponse::unsafe_arena_set_allocated_fab( + ::flwr::proto::Fab* fab) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fab_); + } + fab_ = fab; + if (fab) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.GetFabResponse.fab) +} +inline ::flwr::proto::Fab* GetFabResponse::release_fab() { + + ::flwr::proto::Fab* temp = fab_; + fab_ = 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::Fab* GetFabResponse::unsafe_arena_release_fab() { + // @@protoc_insertion_point(field_release:flwr.proto.GetFabResponse.fab) + + ::flwr::proto::Fab* temp = fab_; + fab_ = nullptr; + return temp; +} +inline ::flwr::proto::Fab* GetFabResponse::_internal_mutable_fab() { + + if (fab_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Fab>(GetArenaForAllocation()); + fab_ = p; + } + return fab_; +} +inline ::flwr::proto::Fab* GetFabResponse::mutable_fab() { + ::flwr::proto::Fab* _msg = _internal_mutable_fab(); + // @@protoc_insertion_point(field_mutable:flwr.proto.GetFabResponse.fab) + return _msg; +} +inline void GetFabResponse::set_allocated_fab(::flwr::proto::Fab* fab) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete fab_; + } + if (fab) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Fab>::GetOwningArena(fab); + if (message_arena != submessage_arena) { + fab = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, fab, submessage_arena); + } + + } else { + + } + fab_ = fab; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.GetFabResponse.fab) +} + +#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_2ffab_2eproto diff --git a/framework/cc/flwr/include/flwr/proto/fleet.grpc.pb.cc b/framework/cc/flwr/include/flwr/proto/fleet.grpc.pb.cc index 0e6c69ad14ac..187865084a20 100644 --- a/framework/cc/flwr/include/flwr/proto/fleet.grpc.pb.cc +++ b/framework/cc/flwr/include/flwr/proto/fleet.grpc.pb.cc @@ -23,12 +23,18 @@ namespace flwr { namespace proto { static const char* Fleet_method_names[] = { - "/flwr.proto.Fleet/CreateNode", - "/flwr.proto.Fleet/DeleteNode", - "/flwr.proto.Fleet/Ping", - "/flwr.proto.Fleet/PullTaskIns", - "/flwr.proto.Fleet/PushTaskRes", + "/flwr.proto.Fleet/RegisterNode", + "/flwr.proto.Fleet/ActivateNode", + "/flwr.proto.Fleet/DeactivateNode", + "/flwr.proto.Fleet/UnregisterNode", + "/flwr.proto.Fleet/SendNodeHeartbeat", + "/flwr.proto.Fleet/PullMessages", + "/flwr.proto.Fleet/PushMessages", "/flwr.proto.Fleet/GetRun", + "/flwr.proto.Fleet/GetFab", + "/flwr.proto.Fleet/PushObject", + "/flwr.proto.Fleet/PullObject", + "/flwr.proto.Fleet/ConfirmMessageReceived", }; std::unique_ptr< Fleet::Stub> Fleet::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -38,125 +44,177 @@ std::unique_ptr< Fleet::Stub> Fleet::NewStub(const std::shared_ptr< ::grpc::Chan } 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_Ping_(Fleet_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PullTaskIns_(Fleet_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PushTaskRes_(Fleet_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetRun_(Fleet_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + : channel_(channel), rpcmethod_RegisterNode_(Fleet_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ActivateNode_(Fleet_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeactivateNode_(Fleet_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UnregisterNode_(Fleet_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SendNodeHeartbeat_(Fleet_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PullMessages_(Fleet_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PushMessages_(Fleet_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetRun_(Fleet_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetFab_(Fleet_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PushObject_(Fleet_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PullObject_(Fleet_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ConfirmMessageReceived_(Fleet_method_names[11], 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); +::grpc::Status Fleet::Stub::RegisterNode(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest& request, ::flwr::proto::RegisterNodeFleetResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::RegisterNodeFleetRequest, ::flwr::proto::RegisterNodeFleetResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RegisterNode_, 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::RegisterNode(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest* request, ::flwr::proto::RegisterNodeFleetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::RegisterNodeFleetRequest, ::flwr::proto::RegisterNodeFleetResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RegisterNode_, 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); +void Fleet::Stub::async::RegisterNode(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest* request, ::flwr::proto::RegisterNodeFleetResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RegisterNode_, 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::RegisterNodeFleetResponse>* Fleet::Stub::PrepareAsyncRegisterNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::RegisterNodeFleetResponse, ::flwr::proto::RegisterNodeFleetRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RegisterNode_, context, request); } -::grpc::ClientAsyncResponseReader< ::flwr::proto::CreateNodeResponse>* Fleet::Stub::AsyncCreateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::flwr::proto::RegisterNodeFleetResponse>* Fleet::Stub::AsyncRegisterNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncCreateNodeRaw(context, request, cq); + this->PrepareAsyncRegisterNodeRaw(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); +::grpc::Status Fleet::Stub::ActivateNode(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest& request, ::flwr::proto::ActivateNodeResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::ActivateNodeRequest, ::flwr::proto::ActivateNodeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ActivateNode_, 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::ActivateNode(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest* request, ::flwr::proto::ActivateNodeResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::ActivateNodeRequest, ::flwr::proto::ActivateNodeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ActivateNode_, 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); +void Fleet::Stub::async::ActivateNode(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest* request, ::flwr::proto::ActivateNodeResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ActivateNode_, 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::ActivateNodeResponse>* Fleet::Stub::PrepareAsyncActivateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::ActivateNodeResponse, ::flwr::proto::ActivateNodeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ActivateNode_, context, request); } -::grpc::ClientAsyncResponseReader< ::flwr::proto::DeleteNodeResponse>* Fleet::Stub::AsyncDeleteNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::flwr::proto::ActivateNodeResponse>* Fleet::Stub::AsyncActivateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncDeleteNodeRaw(context, request, cq); + this->PrepareAsyncActivateNodeRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status Fleet::Stub::Ping(::grpc::ClientContext* context, const ::flwr::proto::PingRequest& request, ::flwr::proto::PingResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::PingRequest, ::flwr::proto::PingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Ping_, context, request, response); +::grpc::Status Fleet::Stub::DeactivateNode(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest& request, ::flwr::proto::DeactivateNodeResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::DeactivateNodeRequest, ::flwr::proto::DeactivateNodeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeactivateNode_, context, request, response); } -void Fleet::Stub::async::Ping(::grpc::ClientContext* context, const ::flwr::proto::PingRequest* request, ::flwr::proto::PingResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::flwr::proto::PingRequest, ::flwr::proto::PingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Ping_, context, request, response, std::move(f)); +void Fleet::Stub::async::DeactivateNode(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest* request, ::flwr::proto::DeactivateNodeResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::DeactivateNodeRequest, ::flwr::proto::DeactivateNodeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeactivateNode_, context, request, response, std::move(f)); } -void Fleet::Stub::async::Ping(::grpc::ClientContext* context, const ::flwr::proto::PingRequest* request, ::flwr::proto::PingResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Ping_, context, request, response, reactor); +void Fleet::Stub::async::DeactivateNode(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest* request, ::flwr::proto::DeactivateNodeResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeactivateNode_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::flwr::proto::PingResponse>* Fleet::Stub::PrepareAsyncPingRaw(::grpc::ClientContext* context, const ::flwr::proto::PingRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::PingResponse, ::flwr::proto::PingRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Ping_, context, request); +::grpc::ClientAsyncResponseReader< ::flwr::proto::DeactivateNodeResponse>* Fleet::Stub::PrepareAsyncDeactivateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::DeactivateNodeResponse, ::flwr::proto::DeactivateNodeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeactivateNode_, context, request); } -::grpc::ClientAsyncResponseReader< ::flwr::proto::PingResponse>* Fleet::Stub::AsyncPingRaw(::grpc::ClientContext* context, const ::flwr::proto::PingRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::flwr::proto::DeactivateNodeResponse>* Fleet::Stub::AsyncDeactivateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncPingRaw(context, request, cq); + this->PrepareAsyncDeactivateNodeRaw(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); +::grpc::Status Fleet::Stub::UnregisterNode(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest& request, ::flwr::proto::UnregisterNodeFleetResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::UnregisterNodeFleetRequest, ::flwr::proto::UnregisterNodeFleetResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UnregisterNode_, 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::UnregisterNode(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest* request, ::flwr::proto::UnregisterNodeFleetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::UnregisterNodeFleetRequest, ::flwr::proto::UnregisterNodeFleetResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UnregisterNode_, 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); +void Fleet::Stub::async::UnregisterNode(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest* request, ::flwr::proto::UnregisterNodeFleetResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UnregisterNode_, 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::UnregisterNodeFleetResponse>* Fleet::Stub::PrepareAsyncUnregisterNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::UnregisterNodeFleetResponse, ::flwr::proto::UnregisterNodeFleetRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UnregisterNode_, context, request); } -::grpc::ClientAsyncResponseReader< ::flwr::proto::PullTaskInsResponse>* Fleet::Stub::AsyncPullTaskInsRaw(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::flwr::proto::UnregisterNodeFleetResponse>* Fleet::Stub::AsyncUnregisterNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncPullTaskInsRaw(context, request, cq); + this->PrepareAsyncUnregisterNodeRaw(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); +::grpc::Status Fleet::Stub::SendNodeHeartbeat(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest& request, ::flwr::proto::SendNodeHeartbeatResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::SendNodeHeartbeatRequest, ::flwr::proto::SendNodeHeartbeatResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SendNodeHeartbeat_, 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::SendNodeHeartbeat(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest* request, ::flwr::proto::SendNodeHeartbeatResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::SendNodeHeartbeatRequest, ::flwr::proto::SendNodeHeartbeatResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendNodeHeartbeat_, 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); +void Fleet::Stub::async::SendNodeHeartbeat(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest* request, ::flwr::proto::SendNodeHeartbeatResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendNodeHeartbeat_, 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::SendNodeHeartbeatResponse>* Fleet::Stub::PrepareAsyncSendNodeHeartbeatRaw(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::SendNodeHeartbeatResponse, ::flwr::proto::SendNodeHeartbeatRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SendNodeHeartbeat_, context, request); } -::grpc::ClientAsyncResponseReader< ::flwr::proto::PushTaskResResponse>* Fleet::Stub::AsyncPushTaskResRaw(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::flwr::proto::SendNodeHeartbeatResponse>* Fleet::Stub::AsyncSendNodeHeartbeatRaw(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncPushTaskResRaw(context, request, cq); + this->PrepareAsyncSendNodeHeartbeatRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status Fleet::Stub::PullMessages(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest& request, ::flwr::proto::PullMessagesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::PullMessagesRequest, ::flwr::proto::PullMessagesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PullMessages_, context, request, response); +} + +void Fleet::Stub::async::PullMessages(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest* request, ::flwr::proto::PullMessagesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::PullMessagesRequest, ::flwr::proto::PullMessagesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PullMessages_, context, request, response, std::move(f)); +} + +void Fleet::Stub::async::PullMessages(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest* request, ::flwr::proto::PullMessagesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PullMessages_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::PullMessagesResponse>* Fleet::Stub::PrepareAsyncPullMessagesRaw(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::PullMessagesResponse, ::flwr::proto::PullMessagesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PullMessages_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::PullMessagesResponse>* Fleet::Stub::AsyncPullMessagesRaw(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncPullMessagesRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status Fleet::Stub::PushMessages(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest& request, ::flwr::proto::PushMessagesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::PushMessagesRequest, ::flwr::proto::PushMessagesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PushMessages_, context, request, response); +} + +void Fleet::Stub::async::PushMessages(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest* request, ::flwr::proto::PushMessagesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::PushMessagesRequest, ::flwr::proto::PushMessagesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PushMessages_, context, request, response, std::move(f)); +} + +void Fleet::Stub::async::PushMessages(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest* request, ::flwr::proto::PushMessagesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PushMessages_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::PushMessagesResponse>* Fleet::Stub::PrepareAsyncPushMessagesRaw(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::PushMessagesResponse, ::flwr::proto::PushMessagesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PushMessages_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::PushMessagesResponse>* Fleet::Stub::AsyncPushMessagesRaw(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncPushMessagesRaw(context, request, cq); result->StartCall(); return result; } @@ -184,60 +242,172 @@ ::grpc::ClientAsyncResponseReader< ::flwr::proto::GetRunResponse>* Fleet::Stub:: return result; } +::grpc::Status Fleet::Stub::GetFab(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest& request, ::flwr::proto::GetFabResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::GetFabRequest, ::flwr::proto::GetFabResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetFab_, context, request, response); +} + +void Fleet::Stub::async::GetFab(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest* request, ::flwr::proto::GetFabResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::GetFabRequest, ::flwr::proto::GetFabResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetFab_, context, request, response, std::move(f)); +} + +void Fleet::Stub::async::GetFab(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest* request, ::flwr::proto::GetFabResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetFab_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::GetFabResponse>* Fleet::Stub::PrepareAsyncGetFabRaw(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::GetFabResponse, ::flwr::proto::GetFabRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetFab_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::GetFabResponse>* Fleet::Stub::AsyncGetFabRaw(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetFabRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status Fleet::Stub::PushObject(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest& request, ::flwr::proto::PushObjectResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::PushObjectRequest, ::flwr::proto::PushObjectResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PushObject_, context, request, response); +} + +void Fleet::Stub::async::PushObject(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest* request, ::flwr::proto::PushObjectResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::PushObjectRequest, ::flwr::proto::PushObjectResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PushObject_, context, request, response, std::move(f)); +} + +void Fleet::Stub::async::PushObject(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest* request, ::flwr::proto::PushObjectResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PushObject_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::PushObjectResponse>* Fleet::Stub::PrepareAsyncPushObjectRaw(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::PushObjectResponse, ::flwr::proto::PushObjectRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PushObject_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::PushObjectResponse>* Fleet::Stub::AsyncPushObjectRaw(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncPushObjectRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status Fleet::Stub::PullObject(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest& request, ::flwr::proto::PullObjectResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::PullObjectRequest, ::flwr::proto::PullObjectResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PullObject_, context, request, response); +} + +void Fleet::Stub::async::PullObject(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest* request, ::flwr::proto::PullObjectResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::PullObjectRequest, ::flwr::proto::PullObjectResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PullObject_, context, request, response, std::move(f)); +} + +void Fleet::Stub::async::PullObject(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest* request, ::flwr::proto::PullObjectResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PullObject_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::PullObjectResponse>* Fleet::Stub::PrepareAsyncPullObjectRaw(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::PullObjectResponse, ::flwr::proto::PullObjectRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PullObject_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::PullObjectResponse>* Fleet::Stub::AsyncPullObjectRaw(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncPullObjectRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status Fleet::Stub::ConfirmMessageReceived(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest& request, ::flwr::proto::ConfirmMessageReceivedResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::ConfirmMessageReceivedRequest, ::flwr::proto::ConfirmMessageReceivedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ConfirmMessageReceived_, context, request, response); +} + +void Fleet::Stub::async::ConfirmMessageReceived(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest* request, ::flwr::proto::ConfirmMessageReceivedResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::ConfirmMessageReceivedRequest, ::flwr::proto::ConfirmMessageReceivedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ConfirmMessageReceived_, context, request, response, std::move(f)); +} + +void Fleet::Stub::async::ConfirmMessageReceived(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest* request, ::flwr::proto::ConfirmMessageReceivedResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ConfirmMessageReceived_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::ConfirmMessageReceivedResponse>* Fleet::Stub::PrepareAsyncConfirmMessageReceivedRaw(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::ConfirmMessageReceivedResponse, ::flwr::proto::ConfirmMessageReceivedRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ConfirmMessageReceived_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::ConfirmMessageReceivedResponse>* Fleet::Stub::AsyncConfirmMessageReceivedRaw(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncConfirmMessageReceivedRaw(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>( + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::RegisterNodeFleetRequest, ::flwr::proto::RegisterNodeFleetResponse, ::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); + const ::flwr::proto::RegisterNodeFleetRequest* req, + ::flwr::proto::RegisterNodeFleetResponse* resp) { + return service->RegisterNode(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>( + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::ActivateNodeRequest, ::flwr::proto::ActivateNodeResponse, ::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); + const ::flwr::proto::ActivateNodeRequest* req, + ::flwr::proto::ActivateNodeResponse* resp) { + return service->ActivateNode(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::PingRequest, ::flwr::proto::PingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::DeactivateNodeRequest, ::flwr::proto::DeactivateNodeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Fleet::Service* service, ::grpc::ServerContext* ctx, - const ::flwr::proto::PingRequest* req, - ::flwr::proto::PingResponse* resp) { - return service->Ping(ctx, req, resp); + const ::flwr::proto::DeactivateNodeRequest* req, + ::flwr::proto::DeactivateNodeResponse* resp) { + return service->DeactivateNode(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::PullTaskInsRequest, ::flwr::proto::PullTaskInsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::UnregisterNodeFleetRequest, ::flwr::proto::UnregisterNodeFleetResponse, ::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); + const ::flwr::proto::UnregisterNodeFleetRequest* req, + ::flwr::proto::UnregisterNodeFleetResponse* resp) { + return service->UnregisterNode(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Fleet_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::PushTaskResRequest, ::flwr::proto::PushTaskResResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::SendNodeHeartbeatRequest, ::flwr::proto::SendNodeHeartbeatResponse, ::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); + const ::flwr::proto::SendNodeHeartbeatRequest* req, + ::flwr::proto::SendNodeHeartbeatResponse* resp) { + return service->SendNodeHeartbeat(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Fleet_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::PullMessagesRequest, ::flwr::proto::PullMessagesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](Fleet::Service* service, + ::grpc::ServerContext* ctx, + const ::flwr::proto::PullMessagesRequest* req, + ::flwr::proto::PullMessagesResponse* resp) { + return service->PullMessages(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Fleet_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::PushMessagesRequest, ::flwr::proto::PushMessagesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](Fleet::Service* service, + ::grpc::ServerContext* ctx, + const ::flwr::proto::PushMessagesRequest* req, + ::flwr::proto::PushMessagesResponse* resp) { + return service->PushMessages(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Fleet_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::GetRunRequest, ::flwr::proto::GetRunResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Fleet::Service* service, ::grpc::ServerContext* ctx, @@ -245,40 +415,94 @@ Fleet::Service::Service() { ::flwr::proto::GetRunResponse* resp) { return service->GetRun(ctx, req, resp); }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Fleet_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::GetFabRequest, ::flwr::proto::GetFabResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](Fleet::Service* service, + ::grpc::ServerContext* ctx, + const ::flwr::proto::GetFabRequest* req, + ::flwr::proto::GetFabResponse* resp) { + return service->GetFab(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Fleet_method_names[9], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::PushObjectRequest, ::flwr::proto::PushObjectResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](Fleet::Service* service, + ::grpc::ServerContext* ctx, + const ::flwr::proto::PushObjectRequest* req, + ::flwr::proto::PushObjectResponse* resp) { + return service->PushObject(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Fleet_method_names[10], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::PullObjectRequest, ::flwr::proto::PullObjectResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](Fleet::Service* service, + ::grpc::ServerContext* ctx, + const ::flwr::proto::PullObjectRequest* req, + ::flwr::proto::PullObjectResponse* resp) { + return service->PullObject(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Fleet_method_names[11], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::ConfirmMessageReceivedRequest, ::flwr::proto::ConfirmMessageReceivedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](Fleet::Service* service, + ::grpc::ServerContext* ctx, + const ::flwr::proto::ConfirmMessageReceivedRequest* req, + ::flwr::proto::ConfirmMessageReceivedResponse* resp) { + return service->ConfirmMessageReceived(ctx, req, resp); + }, this))); } Fleet::Service::~Service() { } -::grpc::Status Fleet::Service::CreateNode(::grpc::ServerContext* context, const ::flwr::proto::CreateNodeRequest* request, ::flwr::proto::CreateNodeResponse* response) { +::grpc::Status Fleet::Service::RegisterNode(::grpc::ServerContext* context, const ::flwr::proto::RegisterNodeFleetRequest* request, ::flwr::proto::RegisterNodeFleetResponse* 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) { +::grpc::Status Fleet::Service::ActivateNode(::grpc::ServerContext* context, const ::flwr::proto::ActivateNodeRequest* request, ::flwr::proto::ActivateNodeResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Fleet::Service::Ping(::grpc::ServerContext* context, const ::flwr::proto::PingRequest* request, ::flwr::proto::PingResponse* response) { +::grpc::Status Fleet::Service::DeactivateNode(::grpc::ServerContext* context, const ::flwr::proto::DeactivateNodeRequest* request, ::flwr::proto::DeactivateNodeResponse* 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) { +::grpc::Status Fleet::Service::UnregisterNode(::grpc::ServerContext* context, const ::flwr::proto::UnregisterNodeFleetRequest* request, ::flwr::proto::UnregisterNodeFleetResponse* 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) { +::grpc::Status Fleet::Service::SendNodeHeartbeat(::grpc::ServerContext* context, const ::flwr::proto::SendNodeHeartbeatRequest* request, ::flwr::proto::SendNodeHeartbeatResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Fleet::Service::PullMessages(::grpc::ServerContext* context, const ::flwr::proto::PullMessagesRequest* request, ::flwr::proto::PullMessagesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Fleet::Service::PushMessages(::grpc::ServerContext* context, const ::flwr::proto::PushMessagesRequest* request, ::flwr::proto::PushMessagesResponse* response) { (void) context; (void) request; (void) response; @@ -292,6 +516,34 @@ ::grpc::Status Fleet::Service::GetRun(::grpc::ServerContext* context, const ::fl return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status Fleet::Service::GetFab(::grpc::ServerContext* context, const ::flwr::proto::GetFabRequest* request, ::flwr::proto::GetFabResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Fleet::Service::PushObject(::grpc::ServerContext* context, const ::flwr::proto::PushObjectRequest* request, ::flwr::proto::PushObjectResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Fleet::Service::PullObject(::grpc::ServerContext* context, const ::flwr::proto::PullObjectRequest* request, ::flwr::proto::PullObjectResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Fleet::Service::ConfirmMessageReceived(::grpc::ServerContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest* request, ::flwr::proto::ConfirmMessageReceivedResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace flwr } // namespace proto diff --git a/framework/cc/flwr/include/flwr/proto/fleet.grpc.pb.h b/framework/cc/flwr/include/flwr/proto/fleet.grpc.pb.h index fb1e4bf7b6c4..1866ac603307 100644 --- a/framework/cc/flwr/include/flwr/proto/fleet.grpc.pb.h +++ b/framework/cc/flwr/include/flwr/proto/fleet.grpc.pb.h @@ -52,46 +52,64 @@ class Fleet final { 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)); + // Register Node + virtual ::grpc::Status RegisterNode(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest& request, ::flwr::proto::RegisterNodeFleetResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::RegisterNodeFleetResponse>> AsyncRegisterNode(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::RegisterNodeFleetResponse>>(AsyncRegisterNodeRaw(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)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::RegisterNodeFleetResponse>> PrepareAsyncRegisterNode(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::RegisterNodeFleetResponse>>(PrepareAsyncRegisterNodeRaw(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)); + // Activate Node + virtual ::grpc::Status ActivateNode(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest& request, ::flwr::proto::ActivateNodeResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::ActivateNodeResponse>> AsyncActivateNode(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::ActivateNodeResponse>>(AsyncActivateNodeRaw(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)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::ActivateNodeResponse>> PrepareAsyncActivateNode(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::ActivateNodeResponse>>(PrepareAsyncActivateNodeRaw(context, request, cq)); } - virtual ::grpc::Status Ping(::grpc::ClientContext* context, const ::flwr::proto::PingRequest& request, ::flwr::proto::PingResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PingResponse>> AsyncPing(::grpc::ClientContext* context, const ::flwr::proto::PingRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PingResponse>>(AsyncPingRaw(context, request, cq)); + // Deactivate Node + virtual ::grpc::Status DeactivateNode(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest& request, ::flwr::proto::DeactivateNodeResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::DeactivateNodeResponse>> AsyncDeactivateNode(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::DeactivateNodeResponse>>(AsyncDeactivateNodeRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PingResponse>> PrepareAsyncPing(::grpc::ClientContext* context, const ::flwr::proto::PingRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PingResponse>>(PrepareAsyncPingRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::DeactivateNodeResponse>> PrepareAsyncDeactivateNode(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::DeactivateNodeResponse>>(PrepareAsyncDeactivateNodeRaw(context, request, cq)); } - // Retrieve one or more tasks, if possible + // Unregister Node + virtual ::grpc::Status UnregisterNode(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest& request, ::flwr::proto::UnregisterNodeFleetResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::UnregisterNodeFleetResponse>> AsyncUnregisterNode(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::UnregisterNodeFleetResponse>>(AsyncUnregisterNodeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::UnregisterNodeFleetResponse>> PrepareAsyncUnregisterNode(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::UnregisterNodeFleetResponse>>(PrepareAsyncUnregisterNodeRaw(context, request, cq)); + } + virtual ::grpc::Status SendNodeHeartbeat(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest& request, ::flwr::proto::SendNodeHeartbeatResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::SendNodeHeartbeatResponse>> AsyncSendNodeHeartbeat(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::SendNodeHeartbeatResponse>>(AsyncSendNodeHeartbeatRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::SendNodeHeartbeatResponse>> PrepareAsyncSendNodeHeartbeat(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::SendNodeHeartbeatResponse>>(PrepareAsyncSendNodeHeartbeatRaw(context, request, cq)); + } + // Retrieve one or more messages, 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)); + // HTTP API path: /api/v1/fleet/pull-messages + virtual ::grpc::Status PullMessages(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest& request, ::flwr::proto::PullMessagesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullMessagesResponse>> AsyncPullMessages(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullMessagesResponse>>(AsyncPullMessagesRaw(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)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullMessagesResponse>> PrepareAsyncPullMessages(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullMessagesResponse>>(PrepareAsyncPullMessagesRaw(context, request, cq)); } - // Complete one or more tasks, if possible + // Complete one or more messages, 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)); + // HTTP API path: /api/v1/fleet/push-messages + virtual ::grpc::Status PushMessages(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest& request, ::flwr::proto::PushMessagesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushMessagesResponse>> AsyncPushMessages(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushMessagesResponse>>(AsyncPushMessagesRaw(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)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushMessagesResponse>> PrepareAsyncPushMessages(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushMessagesResponse>>(PrepareAsyncPushMessagesRaw(context, request, cq)); } virtual ::grpc::Status GetRun(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest& request, ::flwr::proto::GetRunResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::GetRunResponse>> AsyncGetRun(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest& request, ::grpc::CompletionQueue* cq) { @@ -100,82 +118,160 @@ class Fleet final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::GetRunResponse>> PrepareAsyncGetRun(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::GetRunResponse>>(PrepareAsyncGetRunRaw(context, request, cq)); } + // Get FAB + virtual ::grpc::Status GetFab(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest& request, ::flwr::proto::GetFabResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::GetFabResponse>> AsyncGetFab(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::GetFabResponse>>(AsyncGetFabRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::GetFabResponse>> PrepareAsyncGetFab(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::GetFabResponse>>(PrepareAsyncGetFabRaw(context, request, cq)); + } + // Push Object + virtual ::grpc::Status PushObject(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest& request, ::flwr::proto::PushObjectResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushObjectResponse>> AsyncPushObject(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushObjectResponse>>(AsyncPushObjectRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushObjectResponse>> PrepareAsyncPushObject(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushObjectResponse>>(PrepareAsyncPushObjectRaw(context, request, cq)); + } + // Pull Object + virtual ::grpc::Status PullObject(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest& request, ::flwr::proto::PullObjectResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullObjectResponse>> AsyncPullObject(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullObjectResponse>>(AsyncPullObjectRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullObjectResponse>> PrepareAsyncPullObject(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullObjectResponse>>(PrepareAsyncPullObjectRaw(context, request, cq)); + } + // Confirm Message Received + virtual ::grpc::Status ConfirmMessageReceived(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest& request, ::flwr::proto::ConfirmMessageReceivedResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::ConfirmMessageReceivedResponse>> AsyncConfirmMessageReceived(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::ConfirmMessageReceivedResponse>>(AsyncConfirmMessageReceivedRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::ConfirmMessageReceivedResponse>> PrepareAsyncConfirmMessageReceived(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::ConfirmMessageReceivedResponse>>(PrepareAsyncConfirmMessageReceivedRaw(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; - virtual void Ping(::grpc::ClientContext* context, const ::flwr::proto::PingRequest* request, ::flwr::proto::PingResponse* response, std::function) = 0; - virtual void Ping(::grpc::ClientContext* context, const ::flwr::proto::PingRequest* request, ::flwr::proto::PingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - // Retrieve one or more tasks, if possible + // Register Node + virtual void RegisterNode(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest* request, ::flwr::proto::RegisterNodeFleetResponse* response, std::function) = 0; + virtual void RegisterNode(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest* request, ::flwr::proto::RegisterNodeFleetResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Activate Node + virtual void ActivateNode(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest* request, ::flwr::proto::ActivateNodeResponse* response, std::function) = 0; + virtual void ActivateNode(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest* request, ::flwr::proto::ActivateNodeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Deactivate Node + virtual void DeactivateNode(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest* request, ::flwr::proto::DeactivateNodeResponse* response, std::function) = 0; + virtual void DeactivateNode(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest* request, ::flwr::proto::DeactivateNodeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Unregister Node + virtual void UnregisterNode(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest* request, ::flwr::proto::UnregisterNodeFleetResponse* response, std::function) = 0; + virtual void UnregisterNode(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest* request, ::flwr::proto::UnregisterNodeFleetResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void SendNodeHeartbeat(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest* request, ::flwr::proto::SendNodeHeartbeatResponse* response, std::function) = 0; + virtual void SendNodeHeartbeat(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest* request, ::flwr::proto::SendNodeHeartbeatResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Retrieve one or more messages, 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/pull-messages + virtual void PullMessages(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest* request, ::flwr::proto::PullMessagesResponse* response, std::function) = 0; + virtual void PullMessages(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest* request, ::flwr::proto::PullMessagesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Complete one or more messages, 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; + // HTTP API path: /api/v1/fleet/push-messages + virtual void PushMessages(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest* request, ::flwr::proto::PushMessagesResponse* response, std::function) = 0; + virtual void PushMessages(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest* request, ::flwr::proto::PushMessagesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; virtual void GetRun(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest* request, ::flwr::proto::GetRunResponse* response, std::function) = 0; virtual void GetRun(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest* request, ::flwr::proto::GetRunResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Get FAB + virtual void GetFab(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest* request, ::flwr::proto::GetFabResponse* response, std::function) = 0; + virtual void GetFab(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest* request, ::flwr::proto::GetFabResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Push Object + virtual void PushObject(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest* request, ::flwr::proto::PushObjectResponse* response, std::function) = 0; + virtual void PushObject(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest* request, ::flwr::proto::PushObjectResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Pull Object + virtual void PullObject(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest* request, ::flwr::proto::PullObjectResponse* response, std::function) = 0; + virtual void PullObject(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest* request, ::flwr::proto::PullObjectResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Confirm Message Received + virtual void ConfirmMessageReceived(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest* request, ::flwr::proto::ConfirmMessageReceivedResponse* response, std::function) = 0; + virtual void ConfirmMessageReceived(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest* request, ::flwr::proto::ConfirmMessageReceivedResponse* 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::PingResponse>* AsyncPingRaw(::grpc::ClientContext* context, const ::flwr::proto::PingRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PingResponse>* PrepareAsyncPingRaw(::grpc::ClientContext* context, const ::flwr::proto::PingRequest& 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; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::RegisterNodeFleetResponse>* AsyncRegisterNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::RegisterNodeFleetResponse>* PrepareAsyncRegisterNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::ActivateNodeResponse>* AsyncActivateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::ActivateNodeResponse>* PrepareAsyncActivateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::DeactivateNodeResponse>* AsyncDeactivateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::DeactivateNodeResponse>* PrepareAsyncDeactivateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::UnregisterNodeFleetResponse>* AsyncUnregisterNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::UnregisterNodeFleetResponse>* PrepareAsyncUnregisterNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::SendNodeHeartbeatResponse>* AsyncSendNodeHeartbeatRaw(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::SendNodeHeartbeatResponse>* PrepareAsyncSendNodeHeartbeatRaw(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullMessagesResponse>* AsyncPullMessagesRaw(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullMessagesResponse>* PrepareAsyncPullMessagesRaw(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushMessagesResponse>* AsyncPushMessagesRaw(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushMessagesResponse>* PrepareAsyncPushMessagesRaw(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::GetRunResponse>* AsyncGetRunRaw(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::GetRunResponse>* PrepareAsyncGetRunRaw(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::GetFabResponse>* AsyncGetFabRaw(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::GetFabResponse>* PrepareAsyncGetFabRaw(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushObjectResponse>* AsyncPushObjectRaw(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushObjectResponse>* PrepareAsyncPushObjectRaw(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullObjectResponse>* AsyncPullObjectRaw(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullObjectResponse>* PrepareAsyncPullObjectRaw(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::ConfirmMessageReceivedResponse>* AsyncConfirmMessageReceivedRaw(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::ConfirmMessageReceivedResponse>* PrepareAsyncConfirmMessageReceivedRaw(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest& 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)); + ::grpc::Status RegisterNode(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest& request, ::flwr::proto::RegisterNodeFleetResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::RegisterNodeFleetResponse>> AsyncRegisterNode(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::RegisterNodeFleetResponse>>(AsyncRegisterNodeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::RegisterNodeFleetResponse>> PrepareAsyncRegisterNode(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::RegisterNodeFleetResponse>>(PrepareAsyncRegisterNodeRaw(context, request, cq)); + } + ::grpc::Status ActivateNode(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest& request, ::flwr::proto::ActivateNodeResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::ActivateNodeResponse>> AsyncActivateNode(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::ActivateNodeResponse>>(AsyncActivateNodeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::ActivateNodeResponse>> PrepareAsyncActivateNode(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::ActivateNodeResponse>>(PrepareAsyncActivateNodeRaw(context, request, cq)); + } + ::grpc::Status DeactivateNode(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest& request, ::flwr::proto::DeactivateNodeResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::DeactivateNodeResponse>> AsyncDeactivateNode(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::DeactivateNodeResponse>>(AsyncDeactivateNodeRaw(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)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::DeactivateNodeResponse>> PrepareAsyncDeactivateNode(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::DeactivateNodeResponse>>(PrepareAsyncDeactivateNodeRaw(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)); + ::grpc::Status UnregisterNode(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest& request, ::flwr::proto::UnregisterNodeFleetResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::UnregisterNodeFleetResponse>> AsyncUnregisterNode(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::UnregisterNodeFleetResponse>>(AsyncUnregisterNodeRaw(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)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::UnregisterNodeFleetResponse>> PrepareAsyncUnregisterNode(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::UnregisterNodeFleetResponse>>(PrepareAsyncUnregisterNodeRaw(context, request, cq)); } - ::grpc::Status Ping(::grpc::ClientContext* context, const ::flwr::proto::PingRequest& request, ::flwr::proto::PingResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PingResponse>> AsyncPing(::grpc::ClientContext* context, const ::flwr::proto::PingRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PingResponse>>(AsyncPingRaw(context, request, cq)); + ::grpc::Status SendNodeHeartbeat(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest& request, ::flwr::proto::SendNodeHeartbeatResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::SendNodeHeartbeatResponse>> AsyncSendNodeHeartbeat(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::SendNodeHeartbeatResponse>>(AsyncSendNodeHeartbeatRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PingResponse>> PrepareAsyncPing(::grpc::ClientContext* context, const ::flwr::proto::PingRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PingResponse>>(PrepareAsyncPingRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::SendNodeHeartbeatResponse>> PrepareAsyncSendNodeHeartbeat(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::SendNodeHeartbeatResponse>>(PrepareAsyncSendNodeHeartbeatRaw(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)); + ::grpc::Status PullMessages(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest& request, ::flwr::proto::PullMessagesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullMessagesResponse>> AsyncPullMessages(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullMessagesResponse>>(AsyncPullMessagesRaw(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)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullMessagesResponse>> PrepareAsyncPullMessages(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullMessagesResponse>>(PrepareAsyncPullMessagesRaw(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)); + ::grpc::Status PushMessages(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest& request, ::flwr::proto::PushMessagesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushMessagesResponse>> AsyncPushMessages(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushMessagesResponse>>(AsyncPushMessagesRaw(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)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushMessagesResponse>> PrepareAsyncPushMessages(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushMessagesResponse>>(PrepareAsyncPushMessagesRaw(context, request, cq)); } ::grpc::Status GetRun(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest& request, ::flwr::proto::GetRunResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::GetRunResponse>> AsyncGetRun(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest& request, ::grpc::CompletionQueue* cq) { @@ -184,21 +280,61 @@ class Fleet final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::GetRunResponse>> PrepareAsyncGetRun(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::GetRunResponse>>(PrepareAsyncGetRunRaw(context, request, cq)); } + ::grpc::Status GetFab(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest& request, ::flwr::proto::GetFabResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::GetFabResponse>> AsyncGetFab(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::GetFabResponse>>(AsyncGetFabRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::GetFabResponse>> PrepareAsyncGetFab(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::GetFabResponse>>(PrepareAsyncGetFabRaw(context, request, cq)); + } + ::grpc::Status PushObject(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest& request, ::flwr::proto::PushObjectResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushObjectResponse>> AsyncPushObject(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushObjectResponse>>(AsyncPushObjectRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushObjectResponse>> PrepareAsyncPushObject(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushObjectResponse>>(PrepareAsyncPushObjectRaw(context, request, cq)); + } + ::grpc::Status PullObject(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest& request, ::flwr::proto::PullObjectResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullObjectResponse>> AsyncPullObject(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullObjectResponse>>(AsyncPullObjectRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullObjectResponse>> PrepareAsyncPullObject(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullObjectResponse>>(PrepareAsyncPullObjectRaw(context, request, cq)); + } + ::grpc::Status ConfirmMessageReceived(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest& request, ::flwr::proto::ConfirmMessageReceivedResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::ConfirmMessageReceivedResponse>> AsyncConfirmMessageReceived(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::ConfirmMessageReceivedResponse>>(AsyncConfirmMessageReceivedRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::ConfirmMessageReceivedResponse>> PrepareAsyncConfirmMessageReceived(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::ConfirmMessageReceivedResponse>>(PrepareAsyncConfirmMessageReceivedRaw(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 Ping(::grpc::ClientContext* context, const ::flwr::proto::PingRequest* request, ::flwr::proto::PingResponse* response, std::function) override; - void Ping(::grpc::ClientContext* context, const ::flwr::proto::PingRequest* request, ::flwr::proto::PingResponse* 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; + void RegisterNode(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest* request, ::flwr::proto::RegisterNodeFleetResponse* response, std::function) override; + void RegisterNode(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest* request, ::flwr::proto::RegisterNodeFleetResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ActivateNode(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest* request, ::flwr::proto::ActivateNodeResponse* response, std::function) override; + void ActivateNode(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest* request, ::flwr::proto::ActivateNodeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void DeactivateNode(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest* request, ::flwr::proto::DeactivateNodeResponse* response, std::function) override; + void DeactivateNode(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest* request, ::flwr::proto::DeactivateNodeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void UnregisterNode(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest* request, ::flwr::proto::UnregisterNodeFleetResponse* response, std::function) override; + void UnregisterNode(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest* request, ::flwr::proto::UnregisterNodeFleetResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void SendNodeHeartbeat(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest* request, ::flwr::proto::SendNodeHeartbeatResponse* response, std::function) override; + void SendNodeHeartbeat(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest* request, ::flwr::proto::SendNodeHeartbeatResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void PullMessages(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest* request, ::flwr::proto::PullMessagesResponse* response, std::function) override; + void PullMessages(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest* request, ::flwr::proto::PullMessagesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void PushMessages(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest* request, ::flwr::proto::PushMessagesResponse* response, std::function) override; + void PushMessages(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest* request, ::flwr::proto::PushMessagesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetRun(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest* request, ::flwr::proto::GetRunResponse* response, std::function) override; void GetRun(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest* request, ::flwr::proto::GetRunResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetFab(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest* request, ::flwr::proto::GetFabResponse* response, std::function) override; + void GetFab(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest* request, ::flwr::proto::GetFabResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void PushObject(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest* request, ::flwr::proto::PushObjectResponse* response, std::function) override; + void PushObject(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest* request, ::flwr::proto::PushObjectResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void PullObject(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest* request, ::flwr::proto::PullObjectResponse* response, std::function) override; + void PullObject(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest* request, ::flwr::proto::PullObjectResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ConfirmMessageReceived(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest* request, ::flwr::proto::ConfirmMessageReceivedResponse* response, std::function) override; + void ConfirmMessageReceived(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest* request, ::flwr::proto::ConfirmMessageReceivedResponse* response, ::grpc::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -210,24 +346,42 @@ class Fleet final { 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::PingResponse>* AsyncPingRaw(::grpc::ClientContext* context, const ::flwr::proto::PingRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flwr::proto::PingResponse>* PrepareAsyncPingRaw(::grpc::ClientContext* context, const ::flwr::proto::PingRequest& 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; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::RegisterNodeFleetResponse>* AsyncRegisterNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::RegisterNodeFleetResponse>* PrepareAsyncRegisterNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::RegisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::ActivateNodeResponse>* AsyncActivateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::ActivateNodeResponse>* PrepareAsyncActivateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::ActivateNodeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::DeactivateNodeResponse>* AsyncDeactivateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::DeactivateNodeResponse>* PrepareAsyncDeactivateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::DeactivateNodeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::UnregisterNodeFleetResponse>* AsyncUnregisterNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::UnregisterNodeFleetResponse>* PrepareAsyncUnregisterNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::UnregisterNodeFleetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::SendNodeHeartbeatResponse>* AsyncSendNodeHeartbeatRaw(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::SendNodeHeartbeatResponse>* PrepareAsyncSendNodeHeartbeatRaw(::grpc::ClientContext* context, const ::flwr::proto::SendNodeHeartbeatRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullMessagesResponse>* AsyncPullMessagesRaw(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullMessagesResponse>* PrepareAsyncPullMessagesRaw(::grpc::ClientContext* context, const ::flwr::proto::PullMessagesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushMessagesResponse>* AsyncPushMessagesRaw(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushMessagesResponse>* PrepareAsyncPushMessagesRaw(::grpc::ClientContext* context, const ::flwr::proto::PushMessagesRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::flwr::proto::GetRunResponse>* AsyncGetRunRaw(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::flwr::proto::GetRunResponse>* PrepareAsyncGetRunRaw(::grpc::ClientContext* context, const ::flwr::proto::GetRunRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_CreateNode_; - const ::grpc::internal::RpcMethod rpcmethod_DeleteNode_; - const ::grpc::internal::RpcMethod rpcmethod_Ping_; - const ::grpc::internal::RpcMethod rpcmethod_PullTaskIns_; - const ::grpc::internal::RpcMethod rpcmethod_PushTaskRes_; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::GetFabResponse>* AsyncGetFabRaw(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::GetFabResponse>* PrepareAsyncGetFabRaw(::grpc::ClientContext* context, const ::flwr::proto::GetFabRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushObjectResponse>* AsyncPushObjectRaw(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushObjectResponse>* PrepareAsyncPushObjectRaw(::grpc::ClientContext* context, const ::flwr::proto::PushObjectRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullObjectResponse>* AsyncPullObjectRaw(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullObjectResponse>* PrepareAsyncPullObjectRaw(::grpc::ClientContext* context, const ::flwr::proto::PullObjectRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::ConfirmMessageReceivedResponse>* AsyncConfirmMessageReceivedRaw(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::ConfirmMessageReceivedResponse>* PrepareAsyncConfirmMessageReceivedRaw(::grpc::ClientContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_RegisterNode_; + const ::grpc::internal::RpcMethod rpcmethod_ActivateNode_; + const ::grpc::internal::RpcMethod rpcmethod_DeactivateNode_; + const ::grpc::internal::RpcMethod rpcmethod_UnregisterNode_; + const ::grpc::internal::RpcMethod rpcmethod_SendNodeHeartbeat_; + const ::grpc::internal::RpcMethod rpcmethod_PullMessages_; + const ::grpc::internal::RpcMethod rpcmethod_PushMessages_; const ::grpc::internal::RpcMethod rpcmethod_GetRun_; + const ::grpc::internal::RpcMethod rpcmethod_GetFab_; + const ::grpc::internal::RpcMethod rpcmethod_PushObject_; + const ::grpc::internal::RpcMethod rpcmethod_PullObject_; + const ::grpc::internal::RpcMethod rpcmethod_ConfirmMessageReceived_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -235,126 +389,180 @@ class Fleet final { 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); - virtual ::grpc::Status Ping(::grpc::ServerContext* context, const ::flwr::proto::PingRequest* request, ::flwr::proto::PingResponse* response); - // Retrieve one or more tasks, if possible + // Register Node + virtual ::grpc::Status RegisterNode(::grpc::ServerContext* context, const ::flwr::proto::RegisterNodeFleetRequest* request, ::flwr::proto::RegisterNodeFleetResponse* response); + // Activate Node + virtual ::grpc::Status ActivateNode(::grpc::ServerContext* context, const ::flwr::proto::ActivateNodeRequest* request, ::flwr::proto::ActivateNodeResponse* response); + // Deactivate Node + virtual ::grpc::Status DeactivateNode(::grpc::ServerContext* context, const ::flwr::proto::DeactivateNodeRequest* request, ::flwr::proto::DeactivateNodeResponse* response); + // Unregister Node + virtual ::grpc::Status UnregisterNode(::grpc::ServerContext* context, const ::flwr::proto::UnregisterNodeFleetRequest* request, ::flwr::proto::UnregisterNodeFleetResponse* response); + virtual ::grpc::Status SendNodeHeartbeat(::grpc::ServerContext* context, const ::flwr::proto::SendNodeHeartbeatRequest* request, ::flwr::proto::SendNodeHeartbeatResponse* response); + // Retrieve one or more messages, 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/pull-messages + virtual ::grpc::Status PullMessages(::grpc::ServerContext* context, const ::flwr::proto::PullMessagesRequest* request, ::flwr::proto::PullMessagesResponse* response); + // Complete one or more messages, 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); + // HTTP API path: /api/v1/fleet/push-messages + virtual ::grpc::Status PushMessages(::grpc::ServerContext* context, const ::flwr::proto::PushMessagesRequest* request, ::flwr::proto::PushMessagesResponse* response); virtual ::grpc::Status GetRun(::grpc::ServerContext* context, const ::flwr::proto::GetRunRequest* request, ::flwr::proto::GetRunResponse* response); + // Get FAB + virtual ::grpc::Status GetFab(::grpc::ServerContext* context, const ::flwr::proto::GetFabRequest* request, ::flwr::proto::GetFabResponse* response); + // Push Object + virtual ::grpc::Status PushObject(::grpc::ServerContext* context, const ::flwr::proto::PushObjectRequest* request, ::flwr::proto::PushObjectResponse* response); + // Pull Object + virtual ::grpc::Status PullObject(::grpc::ServerContext* context, const ::flwr::proto::PullObjectRequest* request, ::flwr::proto::PullObjectResponse* response); + // Confirm Message Received + virtual ::grpc::Status ConfirmMessageReceived(::grpc::ServerContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest* request, ::flwr::proto::ConfirmMessageReceivedResponse* response); }; template - class WithAsyncMethod_CreateNode : public BaseClass { + class WithAsyncMethod_RegisterNode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_CreateNode() { + WithAsyncMethod_RegisterNode() { ::grpc::Service::MarkMethodAsync(0); } - ~WithAsyncMethod_CreateNode() override { + ~WithAsyncMethod_RegisterNode() 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 { + ::grpc::Status RegisterNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::RegisterNodeFleetRequest* /*request*/, ::flwr::proto::RegisterNodeFleetResponse* /*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) { + void RequestRegisterNode(::grpc::ServerContext* context, ::flwr::proto::RegisterNodeFleetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::RegisterNodeFleetResponse>* 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 { + class WithAsyncMethod_ActivateNode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_DeleteNode() { + WithAsyncMethod_ActivateNode() { ::grpc::Service::MarkMethodAsync(1); } - ~WithAsyncMethod_DeleteNode() override { + ~WithAsyncMethod_ActivateNode() 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 { + ::grpc::Status ActivateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::ActivateNodeRequest* /*request*/, ::flwr::proto::ActivateNodeResponse* /*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) { + void RequestActivateNode(::grpc::ServerContext* context, ::flwr::proto::ActivateNodeRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::ActivateNodeResponse>* 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_Ping : public BaseClass { + class WithAsyncMethod_DeactivateNode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_Ping() { + WithAsyncMethod_DeactivateNode() { ::grpc::Service::MarkMethodAsync(2); } - ~WithAsyncMethod_Ping() override { + ~WithAsyncMethod_DeactivateNode() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Ping(::grpc::ServerContext* /*context*/, const ::flwr::proto::PingRequest* /*request*/, ::flwr::proto::PingResponse* /*response*/) override { + ::grpc::Status DeactivateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::DeactivateNodeRequest* /*request*/, ::flwr::proto::DeactivateNodeResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPing(::grpc::ServerContext* context, ::flwr::proto::PingRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::PingResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestDeactivateNode(::grpc::ServerContext* context, ::flwr::proto::DeactivateNodeRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::DeactivateNodeResponse>* 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_PullTaskIns : public BaseClass { + class WithAsyncMethod_UnregisterNode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_PullTaskIns() { + WithAsyncMethod_UnregisterNode() { ::grpc::Service::MarkMethodAsync(3); } - ~WithAsyncMethod_PullTaskIns() override { + ~WithAsyncMethod_UnregisterNode() 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 { + ::grpc::Status UnregisterNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::UnregisterNodeFleetRequest* /*request*/, ::flwr::proto::UnregisterNodeFleetResponse* /*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) { + void RequestUnregisterNode(::grpc::ServerContext* context, ::flwr::proto::UnregisterNodeFleetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::UnregisterNodeFleetResponse>* 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 WithAsyncMethod_PushTaskRes : public BaseClass { + class WithAsyncMethod_SendNodeHeartbeat : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_PushTaskRes() { + WithAsyncMethod_SendNodeHeartbeat() { ::grpc::Service::MarkMethodAsync(4); } - ~WithAsyncMethod_PushTaskRes() override { + ~WithAsyncMethod_SendNodeHeartbeat() 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 { + ::grpc::Status SendNodeHeartbeat(::grpc::ServerContext* /*context*/, const ::flwr::proto::SendNodeHeartbeatRequest* /*request*/, ::flwr::proto::SendNodeHeartbeatResponse* /*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) { + void RequestSendNodeHeartbeat(::grpc::ServerContext* context, ::flwr::proto::SendNodeHeartbeatRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::SendNodeHeartbeatResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template + class WithAsyncMethod_PullMessages : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_PullMessages() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_PullMessages() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PullMessages(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullMessagesRequest* /*request*/, ::flwr::proto::PullMessagesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPullMessages(::grpc::ServerContext* context, ::flwr::proto::PullMessagesRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::PullMessagesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_PushMessages : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_PushMessages() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_PushMessages() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PushMessages(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushMessagesRequest* /*request*/, ::flwr::proto::PushMessagesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPushMessages(::grpc::ServerContext* context, ::flwr::proto::PushMessagesRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::PushMessagesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithAsyncMethod_GetRun : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetRun() { - ::grpc::Service::MarkMethodAsync(5); + ::grpc::Service::MarkMethodAsync(7); } ~WithAsyncMethod_GetRun() override { BaseClassMustBeDerivedFromService(this); @@ -365,268 +573,296 @@ class Fleet final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetRun(::grpc::ServerContext* context, ::flwr::proto::GetRunRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::GetRunResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_CreateNode > > > > > AsyncService; template - class WithCallbackMethod_CreateNode : public BaseClass { + class WithAsyncMethod_GetFab : 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); + WithAsyncMethod_GetFab() { + ::grpc::Service::MarkMethodAsync(8); } - ~WithCallbackMethod_CreateNode() override { + ~WithAsyncMethod_GetFab() 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 { + ::grpc::Status GetFab(::grpc::ServerContext* /*context*/, const ::flwr::proto::GetFabRequest* /*request*/, ::flwr::proto::GetFabResponse* /*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; } + void RequestGetFab(::grpc::ServerContext* context, ::flwr::proto::GetFabRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::GetFabResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } }; template - class WithCallbackMethod_DeleteNode : public BaseClass { + class WithAsyncMethod_PushObject : 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); + WithAsyncMethod_PushObject() { + ::grpc::Service::MarkMethodAsync(9); } - ~WithCallbackMethod_DeleteNode() override { + ~WithAsyncMethod_PushObject() 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 { + ::grpc::Status PushObject(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushObjectRequest* /*request*/, ::flwr::proto::PushObjectResponse* /*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; } + void RequestPushObject(::grpc::ServerContext* context, ::flwr::proto::PushObjectRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::PushObjectResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } }; template - class WithCallbackMethod_Ping : public BaseClass { + class WithAsyncMethod_PullObject : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Ping() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PingRequest, ::flwr::proto::PingResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::flwr::proto::PingRequest* request, ::flwr::proto::PingResponse* response) { return this->Ping(context, request, response); }));} - void SetMessageAllocatorFor_Ping( - ::grpc::MessageAllocator< ::flwr::proto::PingRequest, ::flwr::proto::PingResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PingRequest, ::flwr::proto::PingResponse>*>(handler) - ->SetMessageAllocator(allocator); + WithAsyncMethod_PullObject() { + ::grpc::Service::MarkMethodAsync(10); } - ~WithCallbackMethod_Ping() override { + ~WithAsyncMethod_PullObject() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Ping(::grpc::ServerContext* /*context*/, const ::flwr::proto::PingRequest* /*request*/, ::flwr::proto::PingResponse* /*response*/) override { + ::grpc::Status PullObject(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullObjectRequest* /*request*/, ::flwr::proto::PullObjectResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* Ping( - ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::PingRequest* /*request*/, ::flwr::proto::PingResponse* /*response*/) { return nullptr; } + void RequestPullObject(::grpc::ServerContext* context, ::flwr::proto::PullObjectRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::PullObjectResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + } }; template - class WithCallbackMethod_PullTaskIns : public BaseClass { + class WithAsyncMethod_ConfirmMessageReceived : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_PullTaskIns() { - ::grpc::Service::MarkMethodCallback(3, - 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(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PullTaskInsRequest, ::flwr::proto::PullTaskInsResponse>*>(handler) - ->SetMessageAllocator(allocator); + WithAsyncMethod_ConfirmMessageReceived() { + ::grpc::Service::MarkMethodAsync(11); } - ~WithCallbackMethod_PullTaskIns() override { + ~WithAsyncMethod_ConfirmMessageReceived() 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 { + ::grpc::Status ConfirmMessageReceived(::grpc::ServerContext* /*context*/, const ::flwr::proto::ConfirmMessageReceivedRequest* /*request*/, ::flwr::proto::ConfirmMessageReceivedResponse* /*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; } + void RequestConfirmMessageReceived(::grpc::ServerContext* context, ::flwr::proto::ConfirmMessageReceivedRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::ConfirmMessageReceivedResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + } }; + typedef WithAsyncMethod_RegisterNode > > > > > > > > > > > AsyncService; template - class WithCallbackMethod_PushTaskRes : public BaseClass { + class WithCallbackMethod_RegisterNode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_PushTaskRes() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PushTaskResRequest, ::flwr::proto::PushTaskResResponse>( + WithCallbackMethod_RegisterNode() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::RegisterNodeFleetRequest, ::flwr::proto::RegisterNodeFleetResponse>( [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(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PushTaskResRequest, ::flwr::proto::PushTaskResResponse>*>(handler) + ::grpc::CallbackServerContext* context, const ::flwr::proto::RegisterNodeFleetRequest* request, ::flwr::proto::RegisterNodeFleetResponse* response) { return this->RegisterNode(context, request, response); }));} + void SetMessageAllocatorFor_RegisterNode( + ::grpc::MessageAllocator< ::flwr::proto::RegisterNodeFleetRequest, ::flwr::proto::RegisterNodeFleetResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::RegisterNodeFleetRequest, ::flwr::proto::RegisterNodeFleetResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_PushTaskRes() override { + ~WithCallbackMethod_RegisterNode() 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 { + ::grpc::Status RegisterNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::RegisterNodeFleetRequest* /*request*/, ::flwr::proto::RegisterNodeFleetResponse* /*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; } + virtual ::grpc::ServerUnaryReactor* RegisterNode( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::RegisterNodeFleetRequest* /*request*/, ::flwr::proto::RegisterNodeFleetResponse* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_GetRun : public BaseClass { + class WithCallbackMethod_ActivateNode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetRun() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::GetRunRequest, ::flwr::proto::GetRunResponse>( + WithCallbackMethod_ActivateNode() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::ActivateNodeRequest, ::flwr::proto::ActivateNodeResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::flwr::proto::GetRunRequest* request, ::flwr::proto::GetRunResponse* response) { return this->GetRun(context, request, response); }));} - void SetMessageAllocatorFor_GetRun( - ::grpc::MessageAllocator< ::flwr::proto::GetRunRequest, ::flwr::proto::GetRunResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::GetRunRequest, ::flwr::proto::GetRunResponse>*>(handler) + ::grpc::CallbackServerContext* context, const ::flwr::proto::ActivateNodeRequest* request, ::flwr::proto::ActivateNodeResponse* response) { return this->ActivateNode(context, request, response); }));} + void SetMessageAllocatorFor_ActivateNode( + ::grpc::MessageAllocator< ::flwr::proto::ActivateNodeRequest, ::flwr::proto::ActivateNodeResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::ActivateNodeRequest, ::flwr::proto::ActivateNodeResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetRun() override { + ~WithCallbackMethod_ActivateNode() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetRun(::grpc::ServerContext* /*context*/, const ::flwr::proto::GetRunRequest* /*request*/, ::flwr::proto::GetRunResponse* /*response*/) override { + ::grpc::Status ActivateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::ActivateNodeRequest* /*request*/, ::flwr::proto::ActivateNodeResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* GetRun( - ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::GetRunRequest* /*request*/, ::flwr::proto::GetRunResponse* /*response*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* ActivateNode( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::ActivateNodeRequest* /*request*/, ::flwr::proto::ActivateNodeResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_CreateNode > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; template - class WithGenericMethod_CreateNode : public BaseClass { + class WithCallbackMethod_DeactivateNode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_CreateNode() { - ::grpc::Service::MarkMethodGeneric(0); + WithCallbackMethod_DeactivateNode() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::DeactivateNodeRequest, ::flwr::proto::DeactivateNodeResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::DeactivateNodeRequest* request, ::flwr::proto::DeactivateNodeResponse* response) { return this->DeactivateNode(context, request, response); }));} + void SetMessageAllocatorFor_DeactivateNode( + ::grpc::MessageAllocator< ::flwr::proto::DeactivateNodeRequest, ::flwr::proto::DeactivateNodeResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::DeactivateNodeRequest, ::flwr::proto::DeactivateNodeResponse>*>(handler) + ->SetMessageAllocator(allocator); } - ~WithGenericMethod_CreateNode() override { + ~WithCallbackMethod_DeactivateNode() 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 { + ::grpc::Status DeactivateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::DeactivateNodeRequest* /*request*/, ::flwr::proto::DeactivateNodeResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + virtual ::grpc::ServerUnaryReactor* DeactivateNode( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::DeactivateNodeRequest* /*request*/, ::flwr::proto::DeactivateNodeResponse* /*response*/) { return nullptr; } }; template - class WithGenericMethod_DeleteNode : public BaseClass { + class WithCallbackMethod_UnregisterNode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_DeleteNode() { - ::grpc::Service::MarkMethodGeneric(1); + WithCallbackMethod_UnregisterNode() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::UnregisterNodeFleetRequest, ::flwr::proto::UnregisterNodeFleetResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::UnregisterNodeFleetRequest* request, ::flwr::proto::UnregisterNodeFleetResponse* response) { return this->UnregisterNode(context, request, response); }));} + void SetMessageAllocatorFor_UnregisterNode( + ::grpc::MessageAllocator< ::flwr::proto::UnregisterNodeFleetRequest, ::flwr::proto::UnregisterNodeFleetResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::UnregisterNodeFleetRequest, ::flwr::proto::UnregisterNodeFleetResponse>*>(handler) + ->SetMessageAllocator(allocator); } - ~WithGenericMethod_DeleteNode() override { + ~WithCallbackMethod_UnregisterNode() 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 { + ::grpc::Status UnregisterNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::UnregisterNodeFleetRequest* /*request*/, ::flwr::proto::UnregisterNodeFleetResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + virtual ::grpc::ServerUnaryReactor* UnregisterNode( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::UnregisterNodeFleetRequest* /*request*/, ::flwr::proto::UnregisterNodeFleetResponse* /*response*/) { return nullptr; } }; template - class WithGenericMethod_Ping : public BaseClass { + class WithCallbackMethod_SendNodeHeartbeat : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_Ping() { - ::grpc::Service::MarkMethodGeneric(2); + WithCallbackMethod_SendNodeHeartbeat() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::SendNodeHeartbeatRequest, ::flwr::proto::SendNodeHeartbeatResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::SendNodeHeartbeatRequest* request, ::flwr::proto::SendNodeHeartbeatResponse* response) { return this->SendNodeHeartbeat(context, request, response); }));} + void SetMessageAllocatorFor_SendNodeHeartbeat( + ::grpc::MessageAllocator< ::flwr::proto::SendNodeHeartbeatRequest, ::flwr::proto::SendNodeHeartbeatResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::SendNodeHeartbeatRequest, ::flwr::proto::SendNodeHeartbeatResponse>*>(handler) + ->SetMessageAllocator(allocator); } - ~WithGenericMethod_Ping() override { + ~WithCallbackMethod_SendNodeHeartbeat() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Ping(::grpc::ServerContext* /*context*/, const ::flwr::proto::PingRequest* /*request*/, ::flwr::proto::PingResponse* /*response*/) override { + ::grpc::Status SendNodeHeartbeat(::grpc::ServerContext* /*context*/, const ::flwr::proto::SendNodeHeartbeatRequest* /*request*/, ::flwr::proto::SendNodeHeartbeatResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + virtual ::grpc::ServerUnaryReactor* SendNodeHeartbeat( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::SendNodeHeartbeatRequest* /*request*/, ::flwr::proto::SendNodeHeartbeatResponse* /*response*/) { return nullptr; } }; template - class WithGenericMethod_PullTaskIns : public BaseClass { + class WithCallbackMethod_PullMessages : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_PullTaskIns() { - ::grpc::Service::MarkMethodGeneric(3); + WithCallbackMethod_PullMessages() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PullMessagesRequest, ::flwr::proto::PullMessagesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::PullMessagesRequest* request, ::flwr::proto::PullMessagesResponse* response) { return this->PullMessages(context, request, response); }));} + void SetMessageAllocatorFor_PullMessages( + ::grpc::MessageAllocator< ::flwr::proto::PullMessagesRequest, ::flwr::proto::PullMessagesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PullMessagesRequest, ::flwr::proto::PullMessagesResponse>*>(handler) + ->SetMessageAllocator(allocator); } - ~WithGenericMethod_PullTaskIns() override { + ~WithCallbackMethod_PullMessages() 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 { + ::grpc::Status PullMessages(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullMessagesRequest* /*request*/, ::flwr::proto::PullMessagesResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + virtual ::grpc::ServerUnaryReactor* PullMessages( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::PullMessagesRequest* /*request*/, ::flwr::proto::PullMessagesResponse* /*response*/) { return nullptr; } }; template - class WithGenericMethod_PushTaskRes : public BaseClass { + class WithCallbackMethod_PushMessages : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_PushTaskRes() { - ::grpc::Service::MarkMethodGeneric(4); + WithCallbackMethod_PushMessages() { + ::grpc::Service::MarkMethodCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PushMessagesRequest, ::flwr::proto::PushMessagesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::PushMessagesRequest* request, ::flwr::proto::PushMessagesResponse* response) { return this->PushMessages(context, request, response); }));} + void SetMessageAllocatorFor_PushMessages( + ::grpc::MessageAllocator< ::flwr::proto::PushMessagesRequest, ::flwr::proto::PushMessagesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PushMessagesRequest, ::flwr::proto::PushMessagesResponse>*>(handler) + ->SetMessageAllocator(allocator); } - ~WithGenericMethod_PushTaskRes() override { + ~WithCallbackMethod_PushMessages() 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 { + ::grpc::Status PushMessages(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushMessagesRequest* /*request*/, ::flwr::proto::PushMessagesResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + virtual ::grpc::ServerUnaryReactor* PushMessages( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::PushMessagesRequest* /*request*/, ::flwr::proto::PushMessagesResponse* /*response*/) { return nullptr; } }; template - class WithGenericMethod_GetRun : public BaseClass { + class WithCallbackMethod_GetRun : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_GetRun() { - ::grpc::Service::MarkMethodGeneric(5); + WithCallbackMethod_GetRun() { + ::grpc::Service::MarkMethodCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::GetRunRequest, ::flwr::proto::GetRunResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::GetRunRequest* request, ::flwr::proto::GetRunResponse* response) { return this->GetRun(context, request, response); }));} + void SetMessageAllocatorFor_GetRun( + ::grpc::MessageAllocator< ::flwr::proto::GetRunRequest, ::flwr::proto::GetRunResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::GetRunRequest, ::flwr::proto::GetRunResponse>*>(handler) + ->SetMessageAllocator(allocator); } - ~WithGenericMethod_GetRun() override { + ~WithCallbackMethod_GetRun() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -634,249 +870,247 @@ class Fleet final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + virtual ::grpc::ServerUnaryReactor* GetRun( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::GetRunRequest* /*request*/, ::flwr::proto::GetRunResponse* /*response*/) { return nullptr; } }; template - class WithRawMethod_CreateNode : public BaseClass { + class WithCallbackMethod_GetFab : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_CreateNode() { - ::grpc::Service::MarkMethodRaw(0); + WithCallbackMethod_GetFab() { + ::grpc::Service::MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::GetFabRequest, ::flwr::proto::GetFabResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::GetFabRequest* request, ::flwr::proto::GetFabResponse* response) { return this->GetFab(context, request, response); }));} + void SetMessageAllocatorFor_GetFab( + ::grpc::MessageAllocator< ::flwr::proto::GetFabRequest, ::flwr::proto::GetFabResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::GetFabRequest, ::flwr::proto::GetFabResponse>*>(handler) + ->SetMessageAllocator(allocator); } - ~WithRawMethod_CreateNode() override { + ~WithCallbackMethod_GetFab() 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 { + ::grpc::Status GetFab(::grpc::ServerContext* /*context*/, const ::flwr::proto::GetFabRequest* /*request*/, ::flwr::proto::GetFabResponse* /*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); - } + virtual ::grpc::ServerUnaryReactor* GetFab( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::GetFabRequest* /*request*/, ::flwr::proto::GetFabResponse* /*response*/) { return nullptr; } }; template - class WithRawMethod_DeleteNode : public BaseClass { + class WithCallbackMethod_PushObject : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_DeleteNode() { - ::grpc::Service::MarkMethodRaw(1); + WithCallbackMethod_PushObject() { + ::grpc::Service::MarkMethodCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PushObjectRequest, ::flwr::proto::PushObjectResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::PushObjectRequest* request, ::flwr::proto::PushObjectResponse* response) { return this->PushObject(context, request, response); }));} + void SetMessageAllocatorFor_PushObject( + ::grpc::MessageAllocator< ::flwr::proto::PushObjectRequest, ::flwr::proto::PushObjectResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PushObjectRequest, ::flwr::proto::PushObjectResponse>*>(handler) + ->SetMessageAllocator(allocator); } - ~WithRawMethod_DeleteNode() override { + ~WithCallbackMethod_PushObject() 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 { + ::grpc::Status PushObject(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushObjectRequest* /*request*/, ::flwr::proto::PushObjectResponse* /*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); - } + virtual ::grpc::ServerUnaryReactor* PushObject( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::PushObjectRequest* /*request*/, ::flwr::proto::PushObjectResponse* /*response*/) { return nullptr; } }; template - class WithRawMethod_Ping : public BaseClass { + class WithCallbackMethod_PullObject : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_Ping() { - ::grpc::Service::MarkMethodRaw(2); + WithCallbackMethod_PullObject() { + ::grpc::Service::MarkMethodCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PullObjectRequest, ::flwr::proto::PullObjectResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::PullObjectRequest* request, ::flwr::proto::PullObjectResponse* response) { return this->PullObject(context, request, response); }));} + void SetMessageAllocatorFor_PullObject( + ::grpc::MessageAllocator< ::flwr::proto::PullObjectRequest, ::flwr::proto::PullObjectResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PullObjectRequest, ::flwr::proto::PullObjectResponse>*>(handler) + ->SetMessageAllocator(allocator); } - ~WithRawMethod_Ping() override { + ~WithCallbackMethod_PullObject() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Ping(::grpc::ServerContext* /*context*/, const ::flwr::proto::PingRequest* /*request*/, ::flwr::proto::PingResponse* /*response*/) override { + ::grpc::Status PullObject(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullObjectRequest* /*request*/, ::flwr::proto::PullObjectResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPing(::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); - } + virtual ::grpc::ServerUnaryReactor* PullObject( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::PullObjectRequest* /*request*/, ::flwr::proto::PullObjectResponse* /*response*/) { return nullptr; } }; template - class WithRawMethod_PullTaskIns : public BaseClass { + class WithCallbackMethod_ConfirmMessageReceived : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_PullTaskIns() { - ::grpc::Service::MarkMethodRaw(3); + WithCallbackMethod_ConfirmMessageReceived() { + ::grpc::Service::MarkMethodCallback(11, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::ConfirmMessageReceivedRequest, ::flwr::proto::ConfirmMessageReceivedResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::ConfirmMessageReceivedRequest* request, ::flwr::proto::ConfirmMessageReceivedResponse* response) { return this->ConfirmMessageReceived(context, request, response); }));} + void SetMessageAllocatorFor_ConfirmMessageReceived( + ::grpc::MessageAllocator< ::flwr::proto::ConfirmMessageReceivedRequest, ::flwr::proto::ConfirmMessageReceivedResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::ConfirmMessageReceivedRequest, ::flwr::proto::ConfirmMessageReceivedResponse>*>(handler) + ->SetMessageAllocator(allocator); } - ~WithRawMethod_PullTaskIns() override { + ~WithCallbackMethod_ConfirmMessageReceived() 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 { + ::grpc::Status ConfirmMessageReceived(::grpc::ServerContext* /*context*/, const ::flwr::proto::ConfirmMessageReceivedRequest* /*request*/, ::flwr::proto::ConfirmMessageReceivedResponse* /*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(3, context, request, response, new_call_cq, notification_cq, tag); - } + virtual ::grpc::ServerUnaryReactor* ConfirmMessageReceived( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::ConfirmMessageReceivedRequest* /*request*/, ::flwr::proto::ConfirmMessageReceivedResponse* /*response*/) { return nullptr; } }; + typedef WithCallbackMethod_RegisterNode > > > > > > > > > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; template - class WithRawMethod_PushTaskRes : public BaseClass { + class WithGenericMethod_RegisterNode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_PushTaskRes() { - ::grpc::Service::MarkMethodRaw(4); + WithGenericMethod_RegisterNode() { + ::grpc::Service::MarkMethodGeneric(0); } - ~WithRawMethod_PushTaskRes() override { + ~WithGenericMethod_RegisterNode() 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 { + ::grpc::Status RegisterNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::RegisterNodeFleetRequest* /*request*/, ::flwr::proto::RegisterNodeFleetResponse* /*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(4, context, request, response, new_call_cq, notification_cq, tag); - } }; template - class WithRawMethod_GetRun : public BaseClass { + class WithGenericMethod_ActivateNode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_GetRun() { - ::grpc::Service::MarkMethodRaw(5); + WithGenericMethod_ActivateNode() { + ::grpc::Service::MarkMethodGeneric(1); } - ~WithRawMethod_GetRun() override { + ~WithGenericMethod_ActivateNode() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetRun(::grpc::ServerContext* /*context*/, const ::flwr::proto::GetRunRequest* /*request*/, ::flwr::proto::GetRunResponse* /*response*/) override { + ::grpc::Status ActivateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::ActivateNodeRequest* /*request*/, ::flwr::proto::ActivateNodeResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetRun(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); - } }; template - class WithRawCallbackMethod_CreateNode : public BaseClass { + class WithGenericMethod_DeactivateNode : 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); })); + WithGenericMethod_DeactivateNode() { + ::grpc::Service::MarkMethodGeneric(2); } - ~WithRawCallbackMethod_CreateNode() override { + ~WithGenericMethod_DeactivateNode() 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 { + ::grpc::Status DeactivateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::DeactivateNodeRequest* /*request*/, ::flwr::proto::DeactivateNodeResponse* /*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 { + class WithGenericMethod_UnregisterNode : 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); })); + WithGenericMethod_UnregisterNode() { + ::grpc::Service::MarkMethodGeneric(3); } - ~WithRawCallbackMethod_DeleteNode() override { + ~WithGenericMethod_UnregisterNode() 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 { + ::grpc::Status UnregisterNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::UnregisterNodeFleetRequest* /*request*/, ::flwr::proto::UnregisterNodeFleetResponse* /*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_Ping : public BaseClass { + class WithGenericMethod_SendNodeHeartbeat : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Ping() { - ::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->Ping(context, request, response); })); + WithGenericMethod_SendNodeHeartbeat() { + ::grpc::Service::MarkMethodGeneric(4); } - ~WithRawCallbackMethod_Ping() override { + ~WithGenericMethod_SendNodeHeartbeat() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Ping(::grpc::ServerContext* /*context*/, const ::flwr::proto::PingRequest* /*request*/, ::flwr::proto::PingResponse* /*response*/) override { + ::grpc::Status SendNodeHeartbeat(::grpc::ServerContext* /*context*/, const ::flwr::proto::SendNodeHeartbeatRequest* /*request*/, ::flwr::proto::SendNodeHeartbeatResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* Ping( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_PullTaskIns : public BaseClass { + class WithGenericMethod_PullMessages : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_PullTaskIns() { - ::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->PullTaskIns(context, request, response); })); + WithGenericMethod_PullMessages() { + ::grpc::Service::MarkMethodGeneric(5); } - ~WithRawCallbackMethod_PullTaskIns() override { + ~WithGenericMethod_PullMessages() 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 { + ::grpc::Status PullMessages(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullMessagesRequest* /*request*/, ::flwr::proto::PullMessagesResponse* /*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 { + class WithGenericMethod_PushMessages : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_PushTaskRes() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PushTaskRes(context, request, response); })); + WithGenericMethod_PushMessages() { + ::grpc::Service::MarkMethodGeneric(6); } - ~WithRawCallbackMethod_PushTaskRes() override { + ~WithGenericMethod_PushMessages() 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 { + ::grpc::Status PushMessages(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushMessagesRequest* /*request*/, ::flwr::proto::PushMessagesResponse* /*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 WithRawCallbackMethod_GetRun : public BaseClass { + class WithGenericMethod_GetRun : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetRun() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRun(context, request, response); })); + WithGenericMethod_GetRun() { + ::grpc::Service::MarkMethodGeneric(7); } - ~WithRawCallbackMethod_GetRun() override { + ~WithGenericMethod_GetRun() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -884,153 +1118,777 @@ class Fleet final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* GetRun( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithStreamedUnaryMethod_CreateNode : public BaseClass { + class WithGenericMethod_GetFab : 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); - })); + WithGenericMethod_GetFab() { + ::grpc::Service::MarkMethodGeneric(8); } - ~WithStreamedUnaryMethod_CreateNode() override { + ~WithGenericMethod_GetFab() 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 { + // disable synchronous version of this method + ::grpc::Status GetFab(::grpc::ServerContext* /*context*/, const ::flwr::proto::GetFabRequest* /*request*/, ::flwr::proto::GetFabResponse* /*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 { + class WithGenericMethod_PushObject : 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); - })); + WithGenericMethod_PushObject() { + ::grpc::Service::MarkMethodGeneric(9); } - ~WithStreamedUnaryMethod_DeleteNode() override { + ~WithGenericMethod_PushObject() 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 { + // disable synchronous version of this method + ::grpc::Status PushObject(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushObjectRequest* /*request*/, ::flwr::proto::PushObjectResponse* /*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_Ping : public BaseClass { + class WithGenericMethod_PullObject : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_Ping() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< - ::flwr::proto::PingRequest, ::flwr::proto::PingResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::flwr::proto::PingRequest, ::flwr::proto::PingResponse>* streamer) { - return this->StreamedPing(context, - streamer); - })); + WithGenericMethod_PullObject() { + ::grpc::Service::MarkMethodGeneric(10); } - ~WithStreamedUnaryMethod_Ping() override { + ~WithGenericMethod_PullObject() override { BaseClassMustBeDerivedFromService(this); } - // disable regular version of this method - ::grpc::Status Ping(::grpc::ServerContext* /*context*/, const ::flwr::proto::PingRequest* /*request*/, ::flwr::proto::PingResponse* /*response*/) override { + // disable synchronous version of this method + ::grpc::Status PullObject(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullObjectRequest* /*request*/, ::flwr::proto::PullObjectResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPing(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::PingRequest,::flwr::proto::PingResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_PullTaskIns : public BaseClass { + class WithGenericMethod_ConfirmMessageReceived : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_PullTaskIns() { - ::grpc::Service::MarkMethodStreamed(3, - 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); - })); + WithGenericMethod_ConfirmMessageReceived() { + ::grpc::Service::MarkMethodGeneric(11); } - ~WithStreamedUnaryMethod_PullTaskIns() override { + ~WithGenericMethod_ConfirmMessageReceived() 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 { + // disable synchronous version of this method + ::grpc::Status ConfirmMessageReceived(::grpc::ServerContext* /*context*/, const ::flwr::proto::ConfirmMessageReceivedRequest* /*request*/, ::flwr::proto::ConfirmMessageReceivedResponse* /*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 { + class WithRawMethod_RegisterNode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_PushTaskRes() { - ::grpc::Service::MarkMethodStreamed(4, - 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); - })); + WithRawMethod_RegisterNode() { + ::grpc::Service::MarkMethodRaw(0); } - ~WithStreamedUnaryMethod_PushTaskRes() override { + ~WithRawMethod_RegisterNode() 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 { + // disable synchronous version of this method + ::grpc::Status RegisterNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::RegisterNodeFleetRequest* /*request*/, ::flwr::proto::RegisterNodeFleetResponse* /*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; + void RequestRegisterNode(::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 WithStreamedUnaryMethod_GetRun : public BaseClass { + class WithRawMethod_ActivateNode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_GetRun() { - ::grpc::Service::MarkMethodStreamed(5, - new ::grpc::internal::StreamedUnaryHandler< - ::flwr::proto::GetRunRequest, ::flwr::proto::GetRunResponse>( + WithRawMethod_ActivateNode() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_ActivateNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ActivateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::ActivateNodeRequest* /*request*/, ::flwr::proto::ActivateNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestActivateNode(::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_DeactivateNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DeactivateNode() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_DeactivateNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeactivateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::DeactivateNodeRequest* /*request*/, ::flwr::proto::DeactivateNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeactivateNode(::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_UnregisterNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_UnregisterNode() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_UnregisterNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UnregisterNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::UnregisterNodeFleetRequest* /*request*/, ::flwr::proto::UnregisterNodeFleetResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUnregisterNode(::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 WithRawMethod_SendNodeHeartbeat : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SendNodeHeartbeat() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_SendNodeHeartbeat() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendNodeHeartbeat(::grpc::ServerContext* /*context*/, const ::flwr::proto::SendNodeHeartbeatRequest* /*request*/, ::flwr::proto::SendNodeHeartbeatResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSendNodeHeartbeat(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_PullMessages : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_PullMessages() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_PullMessages() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PullMessages(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullMessagesRequest* /*request*/, ::flwr::proto::PullMessagesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPullMessages(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_PushMessages : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_PushMessages() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_PushMessages() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PushMessages(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushMessagesRequest* /*request*/, ::flwr::proto::PushMessagesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPushMessages(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetRun : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetRun() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_GetRun() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRun(::grpc::ServerContext* /*context*/, const ::flwr::proto::GetRunRequest* /*request*/, ::flwr::proto::GetRunResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRun(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetFab : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetFab() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_GetFab() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetFab(::grpc::ServerContext* /*context*/, const ::flwr::proto::GetFabRequest* /*request*/, ::flwr::proto::GetFabResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetFab(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_PushObject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_PushObject() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_PushObject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PushObject(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushObjectRequest* /*request*/, ::flwr::proto::PushObjectResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPushObject(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_PullObject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_PullObject() { + ::grpc::Service::MarkMethodRaw(10); + } + ~WithRawMethod_PullObject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PullObject(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullObjectRequest* /*request*/, ::flwr::proto::PullObjectResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPullObject(::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(10, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ConfirmMessageReceived : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ConfirmMessageReceived() { + ::grpc::Service::MarkMethodRaw(11); + } + ~WithRawMethod_ConfirmMessageReceived() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ConfirmMessageReceived(::grpc::ServerContext* /*context*/, const ::flwr::proto::ConfirmMessageReceivedRequest* /*request*/, ::flwr::proto::ConfirmMessageReceivedResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestConfirmMessageReceived(::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(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_RegisterNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_RegisterNode() { + ::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->RegisterNode(context, request, response); })); + } + ~WithRawCallbackMethod_RegisterNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::RegisterNodeFleetRequest* /*request*/, ::flwr::proto::RegisterNodeFleetResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RegisterNode( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ActivateNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ActivateNode() { + ::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->ActivateNode(context, request, response); })); + } + ~WithRawCallbackMethod_ActivateNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ActivateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::ActivateNodeRequest* /*request*/, ::flwr::proto::ActivateNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ActivateNode( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DeactivateNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DeactivateNode() { + ::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->DeactivateNode(context, request, response); })); + } + ~WithRawCallbackMethod_DeactivateNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeactivateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::DeactivateNodeRequest* /*request*/, ::flwr::proto::DeactivateNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeactivateNode( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_UnregisterNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_UnregisterNode() { + ::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->UnregisterNode(context, request, response); })); + } + ~WithRawCallbackMethod_UnregisterNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UnregisterNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::UnregisterNodeFleetRequest* /*request*/, ::flwr::proto::UnregisterNodeFleetResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UnregisterNode( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_SendNodeHeartbeat : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SendNodeHeartbeat() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendNodeHeartbeat(context, request, response); })); + } + ~WithRawCallbackMethod_SendNodeHeartbeat() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendNodeHeartbeat(::grpc::ServerContext* /*context*/, const ::flwr::proto::SendNodeHeartbeatRequest* /*request*/, ::flwr::proto::SendNodeHeartbeatResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SendNodeHeartbeat( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_PullMessages : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_PullMessages() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PullMessages(context, request, response); })); + } + ~WithRawCallbackMethod_PullMessages() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PullMessages(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullMessagesRequest* /*request*/, ::flwr::proto::PullMessagesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PullMessages( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_PushMessages : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_PushMessages() { + ::grpc::Service::MarkMethodRawCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PushMessages(context, request, response); })); + } + ~WithRawCallbackMethod_PushMessages() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PushMessages(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushMessagesRequest* /*request*/, ::flwr::proto::PushMessagesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PushMessages( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetRun : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetRun() { + ::grpc::Service::MarkMethodRawCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRun(context, request, response); })); + } + ~WithRawCallbackMethod_GetRun() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRun(::grpc::ServerContext* /*context*/, const ::flwr::proto::GetRunRequest* /*request*/, ::flwr::proto::GetRunResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetRun( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetFab : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetFab() { + ::grpc::Service::MarkMethodRawCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetFab(context, request, response); })); + } + ~WithRawCallbackMethod_GetFab() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetFab(::grpc::ServerContext* /*context*/, const ::flwr::proto::GetFabRequest* /*request*/, ::flwr::proto::GetFabResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetFab( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_PushObject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_PushObject() { + ::grpc::Service::MarkMethodRawCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PushObject(context, request, response); })); + } + ~WithRawCallbackMethod_PushObject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PushObject(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushObjectRequest* /*request*/, ::flwr::proto::PushObjectResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PushObject( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_PullObject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_PullObject() { + ::grpc::Service::MarkMethodRawCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PullObject(context, request, response); })); + } + ~WithRawCallbackMethod_PullObject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PullObject(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullObjectRequest* /*request*/, ::flwr::proto::PullObjectResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PullObject( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ConfirmMessageReceived : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ConfirmMessageReceived() { + ::grpc::Service::MarkMethodRawCallback(11, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ConfirmMessageReceived(context, request, response); })); + } + ~WithRawCallbackMethod_ConfirmMessageReceived() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ConfirmMessageReceived(::grpc::ServerContext* /*context*/, const ::flwr::proto::ConfirmMessageReceivedRequest* /*request*/, ::flwr::proto::ConfirmMessageReceivedResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ConfirmMessageReceived( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_RegisterNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_RegisterNode() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::RegisterNodeFleetRequest, ::flwr::proto::RegisterNodeFleetResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::RegisterNodeFleetRequest, ::flwr::proto::RegisterNodeFleetResponse>* streamer) { + return this->StreamedRegisterNode(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_RegisterNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status RegisterNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::RegisterNodeFleetRequest* /*request*/, ::flwr::proto::RegisterNodeFleetResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRegisterNode(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::RegisterNodeFleetRequest,::flwr::proto::RegisterNodeFleetResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ActivateNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ActivateNode() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::ActivateNodeRequest, ::flwr::proto::ActivateNodeResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::ActivateNodeRequest, ::flwr::proto::ActivateNodeResponse>* streamer) { + return this->StreamedActivateNode(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ActivateNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ActivateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::ActivateNodeRequest* /*request*/, ::flwr::proto::ActivateNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedActivateNode(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::ActivateNodeRequest,::flwr::proto::ActivateNodeResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeactivateNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DeactivateNode() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::DeactivateNodeRequest, ::flwr::proto::DeactivateNodeResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::DeactivateNodeRequest, ::flwr::proto::DeactivateNodeResponse>* streamer) { + return this->StreamedDeactivateNode(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DeactivateNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeactivateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::DeactivateNodeRequest* /*request*/, ::flwr::proto::DeactivateNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeactivateNode(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::DeactivateNodeRequest,::flwr::proto::DeactivateNodeResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UnregisterNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_UnregisterNode() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::UnregisterNodeFleetRequest, ::flwr::proto::UnregisterNodeFleetResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::UnregisterNodeFleetRequest, ::flwr::proto::UnregisterNodeFleetResponse>* streamer) { + return this->StreamedUnregisterNode(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_UnregisterNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UnregisterNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::UnregisterNodeFleetRequest* /*request*/, ::flwr::proto::UnregisterNodeFleetResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUnregisterNode(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::UnregisterNodeFleetRequest,::flwr::proto::UnregisterNodeFleetResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_SendNodeHeartbeat : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SendNodeHeartbeat() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::SendNodeHeartbeatRequest, ::flwr::proto::SendNodeHeartbeatResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::SendNodeHeartbeatRequest, ::flwr::proto::SendNodeHeartbeatResponse>* streamer) { + return this->StreamedSendNodeHeartbeat(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SendNodeHeartbeat() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SendNodeHeartbeat(::grpc::ServerContext* /*context*/, const ::flwr::proto::SendNodeHeartbeatRequest* /*request*/, ::flwr::proto::SendNodeHeartbeatResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSendNodeHeartbeat(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::SendNodeHeartbeatRequest,::flwr::proto::SendNodeHeartbeatResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_PullMessages : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_PullMessages() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::PullMessagesRequest, ::flwr::proto::PullMessagesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::PullMessagesRequest, ::flwr::proto::PullMessagesResponse>* streamer) { + return this->StreamedPullMessages(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_PullMessages() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status PullMessages(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullMessagesRequest* /*request*/, ::flwr::proto::PullMessagesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedPullMessages(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::PullMessagesRequest,::flwr::proto::PullMessagesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_PushMessages : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_PushMessages() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::PushMessagesRequest, ::flwr::proto::PushMessagesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::PushMessagesRequest, ::flwr::proto::PushMessagesResponse>* streamer) { + return this->StreamedPushMessages(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_PushMessages() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status PushMessages(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushMessagesRequest* /*request*/, ::flwr::proto::PushMessagesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedPushMessages(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::PushMessagesRequest,::flwr::proto::PushMessagesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetRun : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetRun() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::GetRunRequest, ::flwr::proto::GetRunResponse>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::GetRunRequest, ::flwr::proto::GetRunResponse>* streamer) { @@ -1049,9 +1907,117 @@ class Fleet final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedGetRun(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::GetRunRequest,::flwr::proto::GetRunResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_CreateNode > > > > > StreamedUnaryService; + template + class WithStreamedUnaryMethod_GetFab : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetFab() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::GetFabRequest, ::flwr::proto::GetFabResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::GetFabRequest, ::flwr::proto::GetFabResponse>* streamer) { + return this->StreamedGetFab(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetFab() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetFab(::grpc::ServerContext* /*context*/, const ::flwr::proto::GetFabRequest* /*request*/, ::flwr::proto::GetFabResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetFab(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::GetFabRequest,::flwr::proto::GetFabResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_PushObject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_PushObject() { + ::grpc::Service::MarkMethodStreamed(9, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::PushObjectRequest, ::flwr::proto::PushObjectResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::PushObjectRequest, ::flwr::proto::PushObjectResponse>* streamer) { + return this->StreamedPushObject(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_PushObject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status PushObject(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushObjectRequest* /*request*/, ::flwr::proto::PushObjectResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedPushObject(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::PushObjectRequest,::flwr::proto::PushObjectResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_PullObject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_PullObject() { + ::grpc::Service::MarkMethodStreamed(10, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::PullObjectRequest, ::flwr::proto::PullObjectResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::PullObjectRequest, ::flwr::proto::PullObjectResponse>* streamer) { + return this->StreamedPullObject(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_PullObject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status PullObject(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullObjectRequest* /*request*/, ::flwr::proto::PullObjectResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedPullObject(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::PullObjectRequest,::flwr::proto::PullObjectResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ConfirmMessageReceived : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ConfirmMessageReceived() { + ::grpc::Service::MarkMethodStreamed(11, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::ConfirmMessageReceivedRequest, ::flwr::proto::ConfirmMessageReceivedResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::ConfirmMessageReceivedRequest, ::flwr::proto::ConfirmMessageReceivedResponse>* streamer) { + return this->StreamedConfirmMessageReceived(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ConfirmMessageReceived() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ConfirmMessageReceived(::grpc::ServerContext* /*context*/, const ::flwr::proto::ConfirmMessageReceivedRequest* /*request*/, ::flwr::proto::ConfirmMessageReceivedResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedConfirmMessageReceived(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::ConfirmMessageReceivedRequest,::flwr::proto::ConfirmMessageReceivedResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_RegisterNode > > > > > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateNode > > > > > StreamedService; + typedef WithStreamedUnaryMethod_RegisterNode > > > > > > > > > > > StreamedService; }; } // namespace proto diff --git a/framework/cc/flwr/include/flwr/proto/fleet.pb.cc b/framework/cc/flwr/include/flwr/proto/fleet.pb.cc index d221658623c3..86aa447c782e 100644 --- a/framework/cc/flwr/include/flwr/proto/fleet.pb.cc +++ b/framework/cc/flwr/include/flwr/proto/fleet.pb.cc @@ -18,178 +18,168 @@ PROTOBUF_PRAGMA_INIT_SEG namespace flwr { namespace proto { -constexpr CreateNodeRequest::CreateNodeRequest( +constexpr RegisterNodeFleetRequest::RegisterNodeFleetRequest( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : ping_interval_(0){} -struct CreateNodeRequestDefaultTypeInternal { - constexpr CreateNodeRequestDefaultTypeInternal() + : public_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct RegisterNodeFleetRequestDefaultTypeInternal { + constexpr RegisterNodeFleetRequestDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~CreateNodeRequestDefaultTypeInternal() {} + ~RegisterNodeFleetRequestDefaultTypeInternal() {} union { - CreateNodeRequest _instance; + RegisterNodeFleetRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateNodeRequestDefaultTypeInternal _CreateNodeRequest_default_instance_; -constexpr CreateNodeResponse::CreateNodeResponse( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RegisterNodeFleetRequestDefaultTypeInternal _RegisterNodeFleetRequest_default_instance_; +constexpr RegisterNodeFleetResponse::RegisterNodeFleetResponse( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : node_(nullptr){} -struct CreateNodeResponseDefaultTypeInternal { - constexpr CreateNodeResponseDefaultTypeInternal() + : node_id_(uint64_t{0u}){} +struct RegisterNodeFleetResponseDefaultTypeInternal { + constexpr RegisterNodeFleetResponseDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~CreateNodeResponseDefaultTypeInternal() {} + ~RegisterNodeFleetResponseDefaultTypeInternal() {} union { - CreateNodeResponse _instance; + RegisterNodeFleetResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateNodeResponseDefaultTypeInternal _CreateNodeResponse_default_instance_; -constexpr DeleteNodeRequest::DeleteNodeRequest( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RegisterNodeFleetResponseDefaultTypeInternal _RegisterNodeFleetResponse_default_instance_; +constexpr ActivateNodeRequest::ActivateNodeRequest( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : node_(nullptr){} -struct DeleteNodeRequestDefaultTypeInternal { - constexpr DeleteNodeRequestDefaultTypeInternal() + : public_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , heartbeat_interval_(0){} +struct ActivateNodeRequestDefaultTypeInternal { + constexpr ActivateNodeRequestDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~DeleteNodeRequestDefaultTypeInternal() {} + ~ActivateNodeRequestDefaultTypeInternal() {} union { - DeleteNodeRequest _instance; + ActivateNodeRequest _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 PingRequest::PingRequest( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ActivateNodeRequestDefaultTypeInternal _ActivateNodeRequest_default_instance_; +constexpr ActivateNodeResponse::ActivateNodeResponse( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : node_(nullptr) - , ping_interval_(0){} -struct PingRequestDefaultTypeInternal { - constexpr PingRequestDefaultTypeInternal() + : node_id_(uint64_t{0u}){} +struct ActivateNodeResponseDefaultTypeInternal { + constexpr ActivateNodeResponseDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PingRequestDefaultTypeInternal() {} + ~ActivateNodeResponseDefaultTypeInternal() {} union { - PingRequest _instance; + ActivateNodeResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PingRequestDefaultTypeInternal _PingRequest_default_instance_; -constexpr PingResponse::PingResponse( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ActivateNodeResponseDefaultTypeInternal _ActivateNodeResponse_default_instance_; +constexpr DeactivateNodeRequest::DeactivateNodeRequest( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : success_(false){} -struct PingResponseDefaultTypeInternal { - constexpr PingResponseDefaultTypeInternal() + : node_id_(uint64_t{0u}){} +struct DeactivateNodeRequestDefaultTypeInternal { + constexpr DeactivateNodeRequestDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PingResponseDefaultTypeInternal() {} + ~DeactivateNodeRequestDefaultTypeInternal() {} union { - PingResponse _instance; + DeactivateNodeRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PingResponseDefaultTypeInternal _PingResponse_default_instance_; -constexpr PullTaskInsRequest::PullTaskInsRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : task_ids_() - , node_(nullptr){} -struct PullTaskInsRequestDefaultTypeInternal { - constexpr PullTaskInsRequestDefaultTypeInternal() +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeactivateNodeRequestDefaultTypeInternal _DeactivateNodeRequest_default_instance_; +constexpr DeactivateNodeResponse::DeactivateNodeResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct DeactivateNodeResponseDefaultTypeInternal { + constexpr DeactivateNodeResponseDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PullTaskInsRequestDefaultTypeInternal() {} + ~DeactivateNodeResponseDefaultTypeInternal() {} union { - PullTaskInsRequest _instance; + DeactivateNodeResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PullTaskInsRequestDefaultTypeInternal _PullTaskInsRequest_default_instance_; -constexpr PullTaskInsResponse::PullTaskInsResponse( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeactivateNodeResponseDefaultTypeInternal _DeactivateNodeResponse_default_instance_; +constexpr UnregisterNodeFleetRequest::UnregisterNodeFleetRequest( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : task_ins_list_() - , reconnect_(nullptr){} -struct PullTaskInsResponseDefaultTypeInternal { - constexpr PullTaskInsResponseDefaultTypeInternal() + : node_id_(uint64_t{0u}){} +struct UnregisterNodeFleetRequestDefaultTypeInternal { + constexpr UnregisterNodeFleetRequestDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PullTaskInsResponseDefaultTypeInternal() {} + ~UnregisterNodeFleetRequestDefaultTypeInternal() {} union { - PullTaskInsResponse _instance; + UnregisterNodeFleetRequest _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() +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UnregisterNodeFleetRequestDefaultTypeInternal _UnregisterNodeFleetRequest_default_instance_; +constexpr UnregisterNodeFleetResponse::UnregisterNodeFleetResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct UnregisterNodeFleetResponseDefaultTypeInternal { + constexpr UnregisterNodeFleetResponseDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PushTaskResRequestDefaultTypeInternal() {} + ~UnregisterNodeFleetResponseDefaultTypeInternal() {} union { - PushTaskResRequest _instance; + UnregisterNodeFleetResponse _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() +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UnregisterNodeFleetResponseDefaultTypeInternal _UnregisterNodeFleetResponse_default_instance_; +constexpr PullMessagesRequest::PullMessagesRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : message_ids_() + , node_(nullptr){} +struct PullMessagesRequestDefaultTypeInternal { + constexpr PullMessagesRequestDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PushTaskResResponse_ResultsEntry_DoNotUseDefaultTypeInternal() {} + ~PullMessagesRequestDefaultTypeInternal() {} union { - PushTaskResResponse_ResultsEntry_DoNotUse _instance; + PullMessagesRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PushTaskResResponse_ResultsEntry_DoNotUseDefaultTypeInternal _PushTaskResResponse_ResultsEntry_DoNotUse_default_instance_; -constexpr PushTaskResResponse::PushTaskResResponse( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PullMessagesRequestDefaultTypeInternal _PullMessagesRequest_default_instance_; +constexpr PullMessagesResponse::PullMessagesResponse( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : results_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + : messages_list_() + , message_object_trees_() , reconnect_(nullptr){} -struct PushTaskResResponseDefaultTypeInternal { - constexpr PushTaskResResponseDefaultTypeInternal() +struct PullMessagesResponseDefaultTypeInternal { + constexpr PullMessagesResponseDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PushTaskResResponseDefaultTypeInternal() {} + ~PullMessagesResponseDefaultTypeInternal() {} union { - PushTaskResResponse _instance; + PullMessagesResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PushTaskResResponseDefaultTypeInternal _PushTaskResResponse_default_instance_; -constexpr Run::Run( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PullMessagesResponseDefaultTypeInternal _PullMessagesResponse_default_instance_; +constexpr PushMessagesRequest::PushMessagesRequest( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : fab_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , fab_version_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , run_id_(int64_t{0}){} -struct RunDefaultTypeInternal { - constexpr RunDefaultTypeInternal() + : messages_list_() + , message_object_trees_() + , clientapp_runtime_list_() + , node_(nullptr){} +struct PushMessagesRequestDefaultTypeInternal { + constexpr PushMessagesRequestDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~RunDefaultTypeInternal() {} + ~PushMessagesRequestDefaultTypeInternal() {} union { - Run _instance; + PushMessagesRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RunDefaultTypeInternal _Run_default_instance_; -constexpr GetRunRequest::GetRunRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : run_id_(int64_t{0}){} -struct GetRunRequestDefaultTypeInternal { - constexpr GetRunRequestDefaultTypeInternal() +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PushMessagesRequestDefaultTypeInternal _PushMessagesRequest_default_instance_; +constexpr PushMessagesResponse_ResultsEntry_DoNotUse::PushMessagesResponse_ResultsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct PushMessagesResponse_ResultsEntry_DoNotUseDefaultTypeInternal { + constexpr PushMessagesResponse_ResultsEntry_DoNotUseDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~GetRunRequestDefaultTypeInternal() {} + ~PushMessagesResponse_ResultsEntry_DoNotUseDefaultTypeInternal() {} union { - GetRunRequest _instance; + PushMessagesResponse_ResultsEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetRunRequestDefaultTypeInternal _GetRunRequest_default_instance_; -constexpr GetRunResponse::GetRunResponse( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PushMessagesResponse_ResultsEntry_DoNotUseDefaultTypeInternal _PushMessagesResponse_ResultsEntry_DoNotUse_default_instance_; +constexpr PushMessagesResponse::PushMessagesResponse( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : run_(nullptr){} -struct GetRunResponseDefaultTypeInternal { - constexpr GetRunResponseDefaultTypeInternal() + : results_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , objects_to_push_() + , reconnect_(nullptr){} +struct PushMessagesResponseDefaultTypeInternal { + constexpr PushMessagesResponseDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~GetRunResponseDefaultTypeInternal() {} + ~PushMessagesResponseDefaultTypeInternal() {} union { - GetRunResponse _instance; + PushMessagesResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetRunResponseDefaultTypeInternal _GetRunResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PushMessagesResponseDefaultTypeInternal _PushMessagesResponse_default_instance_; constexpr Reconnect::Reconnect( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : reconnect_(uint64_t{0u}){} @@ -204,117 +194,112 @@ struct ReconnectDefaultTypeInternal { 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[15]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2ffleet_2eproto[14]; 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_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::RegisterNodeFleetRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::CreateNodeRequest, ping_interval_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::RegisterNodeFleetRequest, public_key_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::CreateNodeResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::RegisterNodeFleetResponse, _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_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::RegisterNodeFleetResponse, node_id_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::DeleteNodeRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ActivateNodeRequest, _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_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ActivateNodeRequest, public_key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ActivateNodeRequest, heartbeat_interval_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::DeleteNodeResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ActivateNodeResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ActivateNodeResponse, node_id_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::PingRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::DeactivateNodeRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::PingRequest, node_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::PingRequest, ping_interval_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::DeactivateNodeRequest, node_id_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::PingResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::DeactivateNodeResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::PingResponse, success_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::PullTaskInsRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::UnregisterNodeFleetRequest, _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_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::UnregisterNodeFleetRequest, node_id_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::PullTaskInsResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::UnregisterNodeFleetResponse, _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_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullMessagesRequest, _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, + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullMessagesRequest, node_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullMessagesRequest, message_ids_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::PushTaskResResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullMessagesResponse, _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_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullMessagesResponse, reconnect_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullMessagesResponse, messages_list_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullMessagesResponse, message_object_trees_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushMessagesRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, run_id_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, fab_id_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, fab_version_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::GetRunRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushMessagesRequest, node_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushMessagesRequest, messages_list_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushMessagesRequest, message_object_trees_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushMessagesRequest, clientapp_runtime_list_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushMessagesResponse_ResultsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushMessagesResponse_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::GetRunRequest, run_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushMessagesResponse_ResultsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushMessagesResponse_ResultsEntry_DoNotUse, value_), + 0, + 1, ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::GetRunResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushMessagesResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::GetRunResponse, run_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushMessagesResponse, reconnect_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushMessagesResponse, results_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushMessagesResponse, objects_to_push_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flwr::proto::Reconnect, _internal_metadata_), ~0u, // no _extensions_ @@ -324,87 +309,108 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2ffleet_2eproto:: 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)}, - { 7, -1, -1, sizeof(::flwr::proto::CreateNodeResponse)}, - { 14, -1, -1, sizeof(::flwr::proto::DeleteNodeRequest)}, - { 21, -1, -1, sizeof(::flwr::proto::DeleteNodeResponse)}, - { 27, -1, -1, sizeof(::flwr::proto::PingRequest)}, - { 35, -1, -1, sizeof(::flwr::proto::PingResponse)}, - { 42, -1, -1, sizeof(::flwr::proto::PullTaskInsRequest)}, - { 50, -1, -1, sizeof(::flwr::proto::PullTaskInsResponse)}, - { 58, -1, -1, sizeof(::flwr::proto::PushTaskResRequest)}, - { 65, 73, -1, sizeof(::flwr::proto::PushTaskResResponse_ResultsEntry_DoNotUse)}, - { 75, -1, -1, sizeof(::flwr::proto::PushTaskResResponse)}, - { 83, -1, -1, sizeof(::flwr::proto::Run)}, - { 92, -1, -1, sizeof(::flwr::proto::GetRunRequest)}, - { 99, -1, -1, sizeof(::flwr::proto::GetRunResponse)}, - { 106, -1, -1, sizeof(::flwr::proto::Reconnect)}, + { 0, -1, -1, sizeof(::flwr::proto::RegisterNodeFleetRequest)}, + { 7, -1, -1, sizeof(::flwr::proto::RegisterNodeFleetResponse)}, + { 14, -1, -1, sizeof(::flwr::proto::ActivateNodeRequest)}, + { 22, -1, -1, sizeof(::flwr::proto::ActivateNodeResponse)}, + { 29, -1, -1, sizeof(::flwr::proto::DeactivateNodeRequest)}, + { 36, -1, -1, sizeof(::flwr::proto::DeactivateNodeResponse)}, + { 42, -1, -1, sizeof(::flwr::proto::UnregisterNodeFleetRequest)}, + { 49, -1, -1, sizeof(::flwr::proto::UnregisterNodeFleetResponse)}, + { 55, -1, -1, sizeof(::flwr::proto::PullMessagesRequest)}, + { 63, -1, -1, sizeof(::flwr::proto::PullMessagesResponse)}, + { 72, -1, -1, sizeof(::flwr::proto::PushMessagesRequest)}, + { 82, 90, -1, sizeof(::flwr::proto::PushMessagesResponse_ResultsEntry_DoNotUse)}, + { 92, -1, -1, sizeof(::flwr::proto::PushMessagesResponse)}, + { 101, -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::_PingRequest_default_instance_), - reinterpret_cast(&::flwr::proto::_PingResponse_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::_Run_default_instance_), - reinterpret_cast(&::flwr::proto::_GetRunRequest_default_instance_), - reinterpret_cast(&::flwr::proto::_GetRunResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_RegisterNodeFleetRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_RegisterNodeFleetResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_ActivateNodeRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_ActivateNodeResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_DeactivateNodeRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_DeactivateNodeResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_UnregisterNodeFleetRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_UnregisterNodeFleetResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_PullMessagesRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_PullMessagesResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_PushMessagesRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_PushMessagesResponse_ResultsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_PushMessagesResponse_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\"*\n\021CreateNodeRequest\022\025\n\rping_interval" - "\030\001 \001(\001\"4\n\022CreateNodeResponse\022\036\n\004node\030\001 \001" - "(\0132\020.flwr.proto.Node\"3\n\021DeleteNodeReques" - "t\022\036\n\004node\030\001 \001(\0132\020.flwr.proto.Node\"\024\n\022Del" - "eteNodeResponse\"D\n\013PingRequest\022\036\n\004node\030\001" - " \001(\0132\020.flwr.proto.Node\022\025\n\rping_interval\030" - "\002 \001(\001\"\037\n\014PingResponse\022\017\n\007success\030\001 \001(\010\"F" - "\n\022PullTaskInsRequest\022\036\n\004node\030\001 \001(\0132\020.flw" - "r.proto.Node\022\020\n\010task_ids\030\002 \003(\t\"k\n\023PullTa" - "skInsResponse\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\022PushTaskResReques" - "t\022*\n\rtask_res_list\030\001 \003(\0132\023.flwr.proto.Ta" - "skRes\"\256\001\n\023PushTaskResResponse\022(\n\treconne" - "ct\030\001 \001(\0132\025.flwr.proto.Reconnect\022=\n\007resul" - "ts\030\002 \003(\0132,.flwr.proto.PushTaskResRespons" - "e.ResultsEntry\032.\n\014ResultsEntry\022\013\n\003key\030\001 " - "\001(\t\022\r\n\005value\030\002 \001(\r:\0028\001\":\n\003Run\022\016\n\006run_id\030" - "\001 \001(\022\022\016\n\006fab_id\030\002 \001(\t\022\023\n\013fab_version\030\003 \001" - "(\t\"\037\n\rGetRunRequest\022\016\n\006run_id\030\001 \001(\022\".\n\016G" - "etRunResponse\022\034\n\003run\030\001 \001(\0132\017.flwr.proto." - "Run\"\036\n\tReconnect\022\021\n\treconnect\030\001 \001(\0042\311\003\n\005" - "Fleet\022M\n\nCreateNode\022\035.flwr.proto.CreateN" - "odeRequest\032\036.flwr.proto.CreateNodeRespon" - "se\"\000\022M\n\nDeleteNode\022\035.flwr.proto.DeleteNo" - "deRequest\032\036.flwr.proto.DeleteNodeRespons" - "e\"\000\022;\n\004Ping\022\027.flwr.proto.PingRequest\032\030.f" - "lwr.proto.PingResponse\"\000\022P\n\013PullTaskIns\022" - "\036.flwr.proto.PullTaskInsRequest\032\037.flwr.p" - "roto.PullTaskInsResponse\"\000\022P\n\013PushTaskRe" - "s\022\036.flwr.proto.PushTaskResRequest\032\037.flwr" - ".proto.PushTaskResResponse\"\000\022A\n\006GetRun\022\031" - ".flwr.proto.GetRunRequest\032\032.flwr.proto.G" - "etRunResponse\"\000b\006proto3" + "\n\026flwr/proto/fleet.proto\022\nflwr.proto\032\032fl" + "wr/proto/heartbeat.proto\032\025flwr/proto/nod" + "e.proto\032\024flwr/proto/run.proto\032\024flwr/prot" + "o/fab.proto\032\030flwr/proto/message.proto\".\n" + "\030RegisterNodeFleetRequest\022\022\n\npublic_key\030" + "\001 \001(\014\",\n\031RegisterNodeFleetResponse\022\017\n\007no" + "de_id\030\001 \001(\004\"E\n\023ActivateNodeRequest\022\022\n\npu" + "blic_key\030\001 \001(\014\022\032\n\022heartbeat_interval\030\002 \001" + "(\001\"\'\n\024ActivateNodeResponse\022\017\n\007node_id\030\001 " + "\001(\004\"(\n\025DeactivateNodeRequest\022\017\n\007node_id\030" + "\001 \001(\004\"\030\n\026DeactivateNodeResponse\"-\n\032Unreg" + "isterNodeFleetRequest\022\017\n\007node_id\030\001 \001(\004\"\035" + "\n\033UnregisterNodeFleetResponse\"J\n\023PullMes" + "sagesRequest\022\036\n\004node\030\001 \001(\0132\020.flwr.proto." + "Node\022\023\n\013message_ids\030\002 \003(\t\"\242\001\n\024PullMessag" + "esResponse\022(\n\treconnect\030\001 \001(\0132\025.flwr.pro" + "to.Reconnect\022*\n\rmessages_list\030\002 \003(\0132\023.fl" + "wr.proto.Message\0224\n\024message_object_trees" + "\030\003 \003(\0132\026.flwr.proto.ObjectTree\"\267\001\n\023PushM" + "essagesRequest\022\036\n\004node\030\001 \001(\0132\020.flwr.prot" + "o.Node\022*\n\rmessages_list\030\002 \003(\0132\023.flwr.pro" + "to.Message\0224\n\024message_object_trees\030\003 \003(\013" + "2\026.flwr.proto.ObjectTree\022\036\n\026clientapp_ru" + "ntime_list\030\004 \003(\001\"\311\001\n\024PushMessagesRespons" + "e\022(\n\treconnect\030\001 \001(\0132\025.flwr.proto.Reconn" + "ect\022>\n\007results\030\002 \003(\0132-.flwr.proto.PushMe" + "ssagesResponse.ResultsEntry\022\027\n\017objects_t" + "o_push\030\003 \003(\t\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\trec" + "onnect\030\001 \001(\0042\240\010\n\005Fleet\022]\n\014RegisterNode\022$" + ".flwr.proto.RegisterNodeFleetRequest\032%.f" + "lwr.proto.RegisterNodeFleetResponse\"\000\022S\n" + "\014ActivateNode\022\037.flwr.proto.ActivateNodeR" + "equest\032 .flwr.proto.ActivateNodeResponse" + "\"\000\022Y\n\016DeactivateNode\022!.flwr.proto.Deacti" + "vateNodeRequest\032\".flwr.proto.DeactivateN" + "odeResponse\"\000\022c\n\016UnregisterNode\022&.flwr.p" + "roto.UnregisterNodeFleetRequest\032\'.flwr.p" + "roto.UnregisterNodeFleetResponse\"\000\022b\n\021Se" + "ndNodeHeartbeat\022$.flwr.proto.SendNodeHea" + "rtbeatRequest\032%.flwr.proto.SendNodeHeart" + "beatResponse\"\000\022S\n\014PullMessages\022\037.flwr.pr" + "oto.PullMessagesRequest\032 .flwr.proto.Pul" + "lMessagesResponse\"\000\022S\n\014PushMessages\022\037.fl" + "wr.proto.PushMessagesRequest\032 .flwr.prot" + "o.PushMessagesResponse\"\000\022A\n\006GetRun\022\031.flw" + "r.proto.GetRunRequest\032\032.flwr.proto.GetRu" + "nResponse\"\000\022A\n\006GetFab\022\031.flwr.proto.GetFa" + "bRequest\032\032.flwr.proto.GetFabResponse\"\000\022M" + "\n\nPushObject\022\035.flwr.proto.PushObjectRequ" + "est\032\036.flwr.proto.PushObjectResponse\"\000\022M\n" + "\nPullObject\022\035.flwr.proto.PullObjectReque" + "st\032\036.flwr.proto.PullObjectResponse\"\000\022q\n\026" + "ConfirmMessageReceived\022).flwr.proto.Conf" + "irmMessageReceivedRequest\032*.flwr.proto.C" + "onfirmMessageReceivedResponse\"\000b\006proto3" ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_flwr_2fproto_2ffleet_2eproto_deps[2] = { +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_flwr_2fproto_2ffleet_2eproto_deps[5] = { + &::descriptor_table_flwr_2fproto_2ffab_2eproto, + &::descriptor_table_flwr_2fproto_2fheartbeat_2eproto, + &::descriptor_table_flwr_2fproto_2fmessage_2eproto, &::descriptor_table_flwr_2fproto_2fnode_2eproto, - &::descriptor_table_flwr_2fproto_2ftask_2eproto, + &::descriptor_table_flwr_2fproto_2frun_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, 1423, 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, 15, + false, false, 2239, 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, 5, 14, 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, }; @@ -419,72 +425,78 @@ namespace proto { // =================================================================== -class CreateNodeRequest::_Internal { +class RegisterNodeFleetRequest::_Internal { public: }; -CreateNodeRequest::CreateNodeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, +RegisterNodeFleetRequest::RegisterNodeFleetRequest(::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.CreateNodeRequest) + // @@protoc_insertion_point(arena_constructor:flwr.proto.RegisterNodeFleetRequest) } -CreateNodeRequest::CreateNodeRequest(const CreateNodeRequest& from) +RegisterNodeFleetRequest::RegisterNodeFleetRequest(const RegisterNodeFleetRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ping_interval_ = from.ping_interval_; - // @@protoc_insertion_point(copy_constructor:flwr.proto.CreateNodeRequest) + public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_public_key().empty()) { + public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_public_key(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.RegisterNodeFleetRequest) } -void CreateNodeRequest::SharedCtor() { -ping_interval_ = 0; +void RegisterNodeFleetRequest::SharedCtor() { +public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -CreateNodeRequest::~CreateNodeRequest() { - // @@protoc_insertion_point(destructor:flwr.proto.CreateNodeRequest) +RegisterNodeFleetRequest::~RegisterNodeFleetRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.RegisterNodeFleetRequest) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void CreateNodeRequest::SharedDtor() { +inline void RegisterNodeFleetRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void CreateNodeRequest::ArenaDtor(void* object) { - CreateNodeRequest* _this = reinterpret_cast< CreateNodeRequest* >(object); +void RegisterNodeFleetRequest::ArenaDtor(void* object) { + RegisterNodeFleetRequest* _this = reinterpret_cast< RegisterNodeFleetRequest* >(object); (void)_this; } -void CreateNodeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void RegisterNodeFleetRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void CreateNodeRequest::SetCachedSize(int size) const { +void RegisterNodeFleetRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -void CreateNodeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.CreateNodeRequest) +void RegisterNodeFleetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.RegisterNodeFleetRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ping_interval_ = 0; + public_key_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* CreateNodeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* RegisterNodeFleetRequest::_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 ping_interval = 1; + // bytes public_key = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { - ping_interval_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_public_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); } else goto handle_unusual; continue; @@ -511,85 +523,93 @@ const char* CreateNodeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* CreateNodeRequest::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* RegisterNodeFleetRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.CreateNodeRequest) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.RegisterNodeFleetRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // double ping_interval = 1; - if (!(this->_internal_ping_interval() <= 0 && this->_internal_ping_interval() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_ping_interval(), target); + // bytes public_key = 1; + if (!this->_internal_public_key().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_public_key(), 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.CreateNodeRequest) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.RegisterNodeFleetRequest) return target; } -size_t CreateNodeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.CreateNodeRequest) +size_t RegisterNodeFleetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.RegisterNodeFleetRequest) 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; - // double ping_interval = 1; - if (!(this->_internal_ping_interval() <= 0 && this->_internal_ping_interval() >= 0)) { - total_size += 1 + 8; + // bytes public_key = 1; + if (!this->_internal_public_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_public_key()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateNodeRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RegisterNodeFleetRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - CreateNodeRequest::MergeImpl + RegisterNodeFleetRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateNodeRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RegisterNodeFleetRequest::GetClassData() const { return &_class_data_; } -void CreateNodeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void RegisterNodeFleetRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateNodeRequest::MergeFrom(const CreateNodeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.CreateNodeRequest) +void RegisterNodeFleetRequest::MergeFrom(const RegisterNodeFleetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.RegisterNodeFleetRequest) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (!(from._internal_ping_interval() <= 0 && from._internal_ping_interval() >= 0)) { - _internal_set_ping_interval(from._internal_ping_interval()); + if (!from._internal_public_key().empty()) { + _internal_set_public_key(from._internal_public_key()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void CreateNodeRequest::CopyFrom(const CreateNodeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.CreateNodeRequest) +void RegisterNodeFleetRequest::CopyFrom(const RegisterNodeFleetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.RegisterNodeFleetRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool CreateNodeRequest::IsInitialized() const { +bool RegisterNodeFleetRequest::IsInitialized() const { return true; } -void CreateNodeRequest::InternalSwap(CreateNodeRequest* other) { +void RegisterNodeFleetRequest::InternalSwap(RegisterNodeFleetRequest* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(ping_interval_, other->ping_interval_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &public_key_, lhs_arena, + &other->public_key_, rhs_arena + ); } -::PROTOBUF_NAMESPACE_ID::Metadata CreateNodeRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RegisterNodeFleetRequest::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]); @@ -597,90 +617,71 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateNodeRequest::GetMetadata() const { // =================================================================== -class CreateNodeResponse::_Internal { +class RegisterNodeFleetResponse::_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, +RegisterNodeFleetResponse::RegisterNodeFleetResponse(::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) + // @@protoc_insertion_point(arena_constructor:flwr.proto.RegisterNodeFleetResponse) } -CreateNodeResponse::CreateNodeResponse(const CreateNodeResponse& from) +RegisterNodeFleetResponse::RegisterNodeFleetResponse(const RegisterNodeFleetResponse& 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) + node_id_ = from.node_id_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.RegisterNodeFleetResponse) } -void CreateNodeResponse::SharedCtor() { -node_ = nullptr; +void RegisterNodeFleetResponse::SharedCtor() { +node_id_ = uint64_t{0u}; } -CreateNodeResponse::~CreateNodeResponse() { - // @@protoc_insertion_point(destructor:flwr.proto.CreateNodeResponse) +RegisterNodeFleetResponse::~RegisterNodeFleetResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.RegisterNodeFleetResponse) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void CreateNodeResponse::SharedDtor() { +inline void RegisterNodeFleetResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete node_; } -void CreateNodeResponse::ArenaDtor(void* object) { - CreateNodeResponse* _this = reinterpret_cast< CreateNodeResponse* >(object); +void RegisterNodeFleetResponse::ArenaDtor(void* object) { + RegisterNodeFleetResponse* _this = reinterpret_cast< RegisterNodeFleetResponse* >(object); (void)_this; } -void CreateNodeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void RegisterNodeFleetResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void CreateNodeResponse::SetCachedSize(int size) const { +void RegisterNodeFleetResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -void CreateNodeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.CreateNodeResponse) +void RegisterNodeFleetResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.RegisterNodeFleetResponse) ::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; + node_id_ = uint64_t{0u}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* CreateNodeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* RegisterNodeFleetResponse::_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; + // uint64 node_id = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_node(), ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + node_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -708,89 +709,85 @@ const char* CreateNodeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMES #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* CreateNodeResponse::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* RegisterNodeFleetResponse::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.CreateNodeResponse) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.RegisterNodeFleetResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flwr.proto.Node node = 1; - if (this->_internal_has_node()) { + // uint64 node_id = 1; + if (this->_internal_node_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::node(this), target, stream); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_node_id(), 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.CreateNodeResponse) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.RegisterNodeFleetResponse) return target; } -size_t CreateNodeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.CreateNodeResponse) +size_t RegisterNodeFleetResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.RegisterNodeFleetResponse) 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_); + // uint64 node_id = 1; + if (this->_internal_node_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_node_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateNodeResponse::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RegisterNodeFleetResponse::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - CreateNodeResponse::MergeImpl + RegisterNodeFleetResponse::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateNodeResponse::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RegisterNodeFleetResponse::GetClassData() const { return &_class_data_; } -void CreateNodeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void RegisterNodeFleetResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateNodeResponse::MergeFrom(const CreateNodeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.CreateNodeResponse) +void RegisterNodeFleetResponse::MergeFrom(const RegisterNodeFleetResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.RegisterNodeFleetResponse) 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()); + if (from._internal_node_id() != 0) { + _internal_set_node_id(from._internal_node_id()); } _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) +void RegisterNodeFleetResponse::CopyFrom(const RegisterNodeFleetResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.RegisterNodeFleetResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool CreateNodeResponse::IsInitialized() const { +bool RegisterNodeFleetResponse::IsInitialized() const { return true; } -void CreateNodeResponse::InternalSwap(CreateNodeResponse* other) { +void RegisterNodeFleetResponse::InternalSwap(RegisterNodeFleetResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(node_, other->node_); + swap(node_id_, other->node_id_); } -::PROTOBUF_NAMESPACE_ID::Metadata CreateNodeResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RegisterNodeFleetResponse::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]); @@ -798,94 +795,92 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateNodeResponse::GetMetadata() const { // =================================================================== -class DeleteNodeRequest::_Internal { +class ActivateNodeRequest::_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, +ActivateNodeRequest::ActivateNodeRequest(::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) + // @@protoc_insertion_point(arena_constructor:flwr.proto.ActivateNodeRequest) } -DeleteNodeRequest::DeleteNodeRequest(const DeleteNodeRequest& from) +ActivateNodeRequest::ActivateNodeRequest(const ActivateNodeRequest& 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; + public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_public_key().empty()) { + public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_public_key(), + GetArenaForAllocation()); } - // @@protoc_insertion_point(copy_constructor:flwr.proto.DeleteNodeRequest) + heartbeat_interval_ = from.heartbeat_interval_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.ActivateNodeRequest) } -void DeleteNodeRequest::SharedCtor() { -node_ = nullptr; +void ActivateNodeRequest::SharedCtor() { +public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +heartbeat_interval_ = 0; } -DeleteNodeRequest::~DeleteNodeRequest() { - // @@protoc_insertion_point(destructor:flwr.proto.DeleteNodeRequest) +ActivateNodeRequest::~ActivateNodeRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.ActivateNodeRequest) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void DeleteNodeRequest::SharedDtor() { +inline void ActivateNodeRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete node_; + public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void DeleteNodeRequest::ArenaDtor(void* object) { - DeleteNodeRequest* _this = reinterpret_cast< DeleteNodeRequest* >(object); +void ActivateNodeRequest::ArenaDtor(void* object) { + ActivateNodeRequest* _this = reinterpret_cast< ActivateNodeRequest* >(object); (void)_this; } -void DeleteNodeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void ActivateNodeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void DeleteNodeRequest::SetCachedSize(int size) const { +void ActivateNodeRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -void DeleteNodeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.DeleteNodeRequest) +void ActivateNodeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ActivateNodeRequest) ::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; + public_key_.ClearToEmpty(); + heartbeat_interval_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DeleteNodeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ActivateNodeRequest::_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; + // bytes public_key = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_node(), ptr); + auto str = _internal_mutable_public_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; + // double heartbeat_interval = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { + heartbeat_interval_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -909,89 +904,108 @@ const char* DeleteNodeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* DeleteNodeRequest::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* ActivateNodeRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.DeleteNodeRequest) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ActivateNodeRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flwr.proto.Node node = 1; - if (this->_internal_has_node()) { + // bytes public_key = 1; + if (!this->_internal_public_key().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_public_key(), target); + } + + // double heartbeat_interval = 2; + if (!(this->_internal_heartbeat_interval() <= 0 && this->_internal_heartbeat_interval() >= 0)) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::node(this), target, stream); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_heartbeat_interval(), 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.DeleteNodeRequest) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ActivateNodeRequest) return target; } -size_t DeleteNodeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.DeleteNodeRequest) +size_t ActivateNodeRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ActivateNodeRequest) 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()) { + // bytes public_key = 1; + if (!this->_internal_public_key().empty()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *node_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_public_key()); + } + + // double heartbeat_interval = 2; + if (!(this->_internal_heartbeat_interval() <= 0 && this->_internal_heartbeat_interval() >= 0)) { + total_size += 1 + 8; } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteNodeRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ActivateNodeRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - DeleteNodeRequest::MergeImpl + ActivateNodeRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteNodeRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ActivateNodeRequest::GetClassData() const { return &_class_data_; } -void DeleteNodeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void ActivateNodeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeleteNodeRequest::MergeFrom(const DeleteNodeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.DeleteNodeRequest) +void ActivateNodeRequest::MergeFrom(const ActivateNodeRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ActivateNodeRequest) 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()); + if (!from._internal_public_key().empty()) { + _internal_set_public_key(from._internal_public_key()); + } + if (!(from._internal_heartbeat_interval() <= 0 && from._internal_heartbeat_interval() >= 0)) { + _internal_set_heartbeat_interval(from._internal_heartbeat_interval()); } _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) +void ActivateNodeRequest::CopyFrom(const ActivateNodeRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ActivateNodeRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool DeleteNodeRequest::IsInitialized() const { +bool ActivateNodeRequest::IsInitialized() const { return true; } -void DeleteNodeRequest::InternalSwap(DeleteNodeRequest* other) { +void ActivateNodeRequest::InternalSwap(ActivateNodeRequest* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(node_, other->node_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &public_key_, lhs_arena, + &other->public_key_, rhs_arena + ); + swap(heartbeat_interval_, other->heartbeat_interval_); } -::PROTOBUF_NAMESPACE_ID::Metadata DeleteNodeRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ActivateNodeRequest::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]); @@ -999,146 +1013,75 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DeleteNodeRequest::GetMetadata() const { // =================================================================== -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 PingRequest::_Internal { +class ActivateNodeResponse::_Internal { public: - static const ::flwr::proto::Node& node(const PingRequest* msg); }; -const ::flwr::proto::Node& -PingRequest::_Internal::node(const PingRequest* msg) { - return *msg->node_; -} -void PingRequest::clear_node() { - if (GetArenaForAllocation() == nullptr && node_ != nullptr) { - delete node_; - } - node_ = nullptr; -} -PingRequest::PingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ActivateNodeResponse::ActivateNodeResponse(::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.PingRequest) + // @@protoc_insertion_point(arena_constructor:flwr.proto.ActivateNodeResponse) } -PingRequest::PingRequest(const PingRequest& from) +ActivateNodeResponse::ActivateNodeResponse(const ActivateNodeResponse& 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; - } - ping_interval_ = from.ping_interval_; - // @@protoc_insertion_point(copy_constructor:flwr.proto.PingRequest) + node_id_ = from.node_id_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.ActivateNodeResponse) } -void PingRequest::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&node_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&ping_interval_) - - reinterpret_cast(&node_)) + sizeof(ping_interval_)); +void ActivateNodeResponse::SharedCtor() { +node_id_ = uint64_t{0u}; } -PingRequest::~PingRequest() { - // @@protoc_insertion_point(destructor:flwr.proto.PingRequest) +ActivateNodeResponse::~ActivateNodeResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.ActivateNodeResponse) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void PingRequest::SharedDtor() { +inline void ActivateNodeResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete node_; } -void PingRequest::ArenaDtor(void* object) { - PingRequest* _this = reinterpret_cast< PingRequest* >(object); +void ActivateNodeResponse::ArenaDtor(void* object) { + ActivateNodeResponse* _this = reinterpret_cast< ActivateNodeResponse* >(object); (void)_this; } -void PingRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void ActivateNodeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void PingRequest::SetCachedSize(int size) const { +void ActivateNodeResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -void PingRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.PingRequest) +void ActivateNodeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ActivateNodeResponse) ::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; - ping_interval_ = 0; + node_id_ = uint64_t{0u}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* PingRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ActivateNodeResponse::_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; + // uint64 node_id = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_node(), ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + node_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // double ping_interval = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { - ping_interval_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; default: goto handle_unusual; } // switch @@ -1162,180 +1105,157 @@ const char* PingRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* PingRequest::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* ActivateNodeResponse::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PingRequest) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ActivateNodeResponse) ::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); - } - - // double ping_interval = 2; - if (!(this->_internal_ping_interval() <= 0 && this->_internal_ping_interval() >= 0)) { + // uint64 node_id = 1; + if (this->_internal_node_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_ping_interval(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_node_id(), 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.PingRequest) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ActivateNodeResponse) return target; } -size_t PingRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PingRequest) +size_t ActivateNodeResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ActivateNodeResponse) 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_); - } - - // double ping_interval = 2; - if (!(this->_internal_ping_interval() <= 0 && this->_internal_ping_interval() >= 0)) { - total_size += 1 + 8; + // uint64 node_id = 1; + if (this->_internal_node_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_node_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PingRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ActivateNodeResponse::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - PingRequest::MergeImpl + ActivateNodeResponse::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PingRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ActivateNodeResponse::GetClassData() const { return &_class_data_; } -void PingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void ActivateNodeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void PingRequest::MergeFrom(const PingRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PingRequest) +void ActivateNodeResponse::MergeFrom(const ActivateNodeResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ActivateNodeResponse) 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()); - } - if (!(from._internal_ping_interval() <= 0 && from._internal_ping_interval() >= 0)) { - _internal_set_ping_interval(from._internal_ping_interval()); + if (from._internal_node_id() != 0) { + _internal_set_node_id(from._internal_node_id()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void PingRequest::CopyFrom(const PingRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PingRequest) +void ActivateNodeResponse::CopyFrom(const ActivateNodeResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ActivateNodeResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool PingRequest::IsInitialized() const { +bool ActivateNodeResponse::IsInitialized() const { return true; } -void PingRequest::InternalSwap(PingRequest* other) { +void ActivateNodeResponse::InternalSwap(ActivateNodeResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PingRequest, ping_interval_) - + sizeof(PingRequest::ping_interval_) - - PROTOBUF_FIELD_OFFSET(PingRequest, node_)>( - reinterpret_cast(&node_), - reinterpret_cast(&other->node_)); + swap(node_id_, other->node_id_); } -::PROTOBUF_NAMESPACE_ID::Metadata PingRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ActivateNodeResponse::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]); + file_level_metadata_flwr_2fproto_2ffleet_2eproto[3]); } // =================================================================== -class PingResponse::_Internal { +class DeactivateNodeRequest::_Internal { public: }; -PingResponse::PingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, +DeactivateNodeRequest::DeactivateNodeRequest(::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.PingResponse) + // @@protoc_insertion_point(arena_constructor:flwr.proto.DeactivateNodeRequest) } -PingResponse::PingResponse(const PingResponse& from) +DeactivateNodeRequest::DeactivateNodeRequest(const DeactivateNodeRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - success_ = from.success_; - // @@protoc_insertion_point(copy_constructor:flwr.proto.PingResponse) + node_id_ = from.node_id_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.DeactivateNodeRequest) } -void PingResponse::SharedCtor() { -success_ = false; +void DeactivateNodeRequest::SharedCtor() { +node_id_ = uint64_t{0u}; } -PingResponse::~PingResponse() { - // @@protoc_insertion_point(destructor:flwr.proto.PingResponse) +DeactivateNodeRequest::~DeactivateNodeRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.DeactivateNodeRequest) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void PingResponse::SharedDtor() { +inline void DeactivateNodeRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void PingResponse::ArenaDtor(void* object) { - PingResponse* _this = reinterpret_cast< PingResponse* >(object); +void DeactivateNodeRequest::ArenaDtor(void* object) { + DeactivateNodeRequest* _this = reinterpret_cast< DeactivateNodeRequest* >(object); (void)_this; } -void PingResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void DeactivateNodeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void PingResponse::SetCachedSize(int size) const { +void DeactivateNodeRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -void PingResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.PingResponse) +void DeactivateNodeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.DeactivateNodeRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - success_ = false; + node_id_ = uint64_t{0u}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* PingResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* DeactivateNodeRequest::_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) { - // bool success = 1; + // uint64 node_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + node_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -1363,198 +1283,200 @@ const char* PingResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* PingResponse::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* DeactivateNodeRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PingResponse) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.DeactivateNodeRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // bool success = 1; - if (this->_internal_success() != 0) { + // uint64 node_id = 1; + if (this->_internal_node_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_node_id(), 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.PingResponse) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.DeactivateNodeRequest) return target; } -size_t PingResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PingResponse) +size_t DeactivateNodeRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.DeactivateNodeRequest) 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; - // bool success = 1; - if (this->_internal_success() != 0) { - total_size += 1 + 1; + // uint64 node_id = 1; + if (this->_internal_node_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_node_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PingResponse::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeactivateNodeRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - PingResponse::MergeImpl + DeactivateNodeRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PingResponse::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeactivateNodeRequest::GetClassData() const { return &_class_data_; } -void PingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void DeactivateNodeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void PingResponse::MergeFrom(const PingResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PingResponse) +void DeactivateNodeRequest::MergeFrom(const DeactivateNodeRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.DeactivateNodeRequest) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_success() != 0) { - _internal_set_success(from._internal_success()); + if (from._internal_node_id() != 0) { + _internal_set_node_id(from._internal_node_id()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void PingResponse::CopyFrom(const PingResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PingResponse) +void DeactivateNodeRequest::CopyFrom(const DeactivateNodeRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.DeactivateNodeRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool PingResponse::IsInitialized() const { +bool DeactivateNodeRequest::IsInitialized() const { return true; } -void PingResponse::InternalSwap(PingResponse* other) { +void DeactivateNodeRequest::InternalSwap(DeactivateNodeRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(success_, other->success_); + swap(node_id_, other->node_id_); } -::PROTOBUF_NAMESPACE_ID::Metadata PingResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeactivateNodeRequest::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]); + file_level_metadata_flwr_2fproto_2ffleet_2eproto[4]); } // =================================================================== -class PullTaskInsRequest::_Internal { +class DeactivateNodeResponse::_Internal { public: - static const ::flwr::proto::Node& node(const PullTaskInsRequest* msg); }; -const ::flwr::proto::Node& -PullTaskInsRequest::_Internal::node(const PullTaskInsRequest* msg) { - return *msg->node_; +DeactivateNodeResponse::DeactivateNodeResponse(::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.DeactivateNodeResponse) } -void PullTaskInsRequest::clear_node() { - if (GetArenaForAllocation() == nullptr && node_ != nullptr) { - delete node_; - } - node_ = nullptr; +DeactivateNodeResponse::DeactivateNodeResponse(const DeactivateNodeResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.DeactivateNodeResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeactivateNodeResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeactivateNodeResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata DeactivateNodeResponse::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]); } -PullTaskInsRequest::PullTaskInsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + +// =================================================================== + +class UnregisterNodeFleetRequest::_Internal { + public: +}; + +UnregisterNodeFleetRequest::UnregisterNodeFleetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - task_ids_(arena) { + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } - // @@protoc_insertion_point(arena_constructor:flwr.proto.PullTaskInsRequest) + // @@protoc_insertion_point(arena_constructor:flwr.proto.UnregisterNodeFleetRequest) } -PullTaskInsRequest::PullTaskInsRequest(const PullTaskInsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - task_ids_(from.task_ids_) { +UnregisterNodeFleetRequest::UnregisterNodeFleetRequest(const UnregisterNodeFleetRequest& 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.PullTaskInsRequest) + node_id_ = from.node_id_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.UnregisterNodeFleetRequest) } -void PullTaskInsRequest::SharedCtor() { -node_ = nullptr; +void UnregisterNodeFleetRequest::SharedCtor() { +node_id_ = uint64_t{0u}; } -PullTaskInsRequest::~PullTaskInsRequest() { - // @@protoc_insertion_point(destructor:flwr.proto.PullTaskInsRequest) +UnregisterNodeFleetRequest::~UnregisterNodeFleetRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.UnregisterNodeFleetRequest) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void PullTaskInsRequest::SharedDtor() { +inline void UnregisterNodeFleetRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete node_; } -void PullTaskInsRequest::ArenaDtor(void* object) { - PullTaskInsRequest* _this = reinterpret_cast< PullTaskInsRequest* >(object); +void UnregisterNodeFleetRequest::ArenaDtor(void* object) { + UnregisterNodeFleetRequest* _this = reinterpret_cast< UnregisterNodeFleetRequest* >(object); (void)_this; } -void PullTaskInsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void UnregisterNodeFleetRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void PullTaskInsRequest::SetCachedSize(int size) const { +void UnregisterNodeFleetRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -void PullTaskInsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.PullTaskInsRequest) +void UnregisterNodeFleetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.UnregisterNodeFleetRequest) ::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; + node_id_ = uint64_t{0u}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* PullTaskInsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* UnregisterNodeFleetRequest::_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; + // uint64 node_id = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_node(), ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + node_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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 @@ -1578,109 +1500,85 @@ const char* PullTaskInsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMES #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* PullTaskInsRequest::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* UnregisterNodeFleetRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PullTaskInsRequest) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.UnregisterNodeFleetRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flwr.proto.Node node = 1; - if (this->_internal_has_node()) { + // uint64 node_id = 1; + if (this->_internal_node_id() != 0) { 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); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_node_id(), 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) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.UnregisterNodeFleetRequest) return target; } -size_t PullTaskInsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PullTaskInsRequest) +size_t UnregisterNodeFleetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.UnregisterNodeFleetRequest) 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_); + // uint64 node_id = 1; + if (this->_internal_node_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_node_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PullTaskInsRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnregisterNodeFleetRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - PullTaskInsRequest::MergeImpl + UnregisterNodeFleetRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PullTaskInsRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnregisterNodeFleetRequest::GetClassData() const { return &_class_data_; } -void PullTaskInsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void UnregisterNodeFleetRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void PullTaskInsRequest::MergeFrom(const PullTaskInsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PullTaskInsRequest) +void UnregisterNodeFleetRequest::MergeFrom(const UnregisterNodeFleetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.UnregisterNodeFleetRequest) 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()); + if (from._internal_node_id() != 0) { + _internal_set_node_id(from._internal_node_id()); } _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) +void UnregisterNodeFleetRequest::CopyFrom(const UnregisterNodeFleetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.UnregisterNodeFleetRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool PullTaskInsRequest::IsInitialized() const { +bool UnregisterNodeFleetRequest::IsInitialized() const { return true; } -void PullTaskInsRequest::InternalSwap(PullTaskInsRequest* other) { +void UnregisterNodeFleetRequest::InternalSwap(UnregisterNodeFleetRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - task_ids_.InternalSwap(&other->task_ids_); - swap(node_, other->node_); + swap(node_id_, other->node_id_); } -::PROTOBUF_NAMESPACE_ID::Metadata PullTaskInsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UnregisterNodeFleetRequest::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]); @@ -1688,230 +1586,38 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PullTaskInsRequest::GetMetadata() const { // =================================================================== -class PullTaskInsResponse::_Internal { +class UnregisterNodeFleetResponse::_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, +UnregisterNodeFleetResponse::UnregisterNodeFleetResponse(::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) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:flwr.proto.UnregisterNodeFleetResponse) } -PullTaskInsResponse::PullTaskInsResponse(const PullTaskInsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - task_ins_list_(from.task_ins_list_) { +UnregisterNodeFleetResponse::UnregisterNodeFleetResponse(const UnregisterNodeFleetResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { _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; + // @@protoc_insertion_point(copy_constructor:flwr.proto.UnregisterNodeFleetResponse) } -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 UnregisterNodeFleetResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PullTaskInsResponse::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnregisterNodeFleetResponse::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 { +::PROTOBUF_NAMESPACE_ID::Metadata UnregisterNodeFleetResponse::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]); @@ -1919,80 +1625,109 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PullTaskInsResponse::GetMetadata() const { // =================================================================== -class PushTaskResRequest::_Internal { +class PullMessagesRequest::_Internal { public: + static const ::flwr::proto::Node& node(const PullMessagesRequest* msg); }; -void PushTaskResRequest::clear_task_res_list() { - task_res_list_.Clear(); +const ::flwr::proto::Node& +PullMessagesRequest::_Internal::node(const PullMessagesRequest* msg) { + return *msg->node_; +} +void PullMessagesRequest::clear_node() { + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; } -PushTaskResRequest::PushTaskResRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, +PullMessagesRequest::PullMessagesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - task_res_list_(arena) { + message_ids_(arena) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } - // @@protoc_insertion_point(arena_constructor:flwr.proto.PushTaskResRequest) + // @@protoc_insertion_point(arena_constructor:flwr.proto.PullMessagesRequest) } -PushTaskResRequest::PushTaskResRequest(const PushTaskResRequest& from) +PullMessagesRequest::PullMessagesRequest(const PullMessagesRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message(), - task_res_list_(from.task_res_list_) { + message_ids_(from.message_ids_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flwr.proto.PushTaskResRequest) + if (from._internal_has_node()) { + node_ = new ::flwr::proto::Node(*from.node_); + } else { + node_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.PullMessagesRequest) } -void PushTaskResRequest::SharedCtor() { +void PullMessagesRequest::SharedCtor() { +node_ = nullptr; } -PushTaskResRequest::~PushTaskResRequest() { - // @@protoc_insertion_point(destructor:flwr.proto.PushTaskResRequest) +PullMessagesRequest::~PullMessagesRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.PullMessagesRequest) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void PushTaskResRequest::SharedDtor() { +inline void PullMessagesRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete node_; } -void PushTaskResRequest::ArenaDtor(void* object) { - PushTaskResRequest* _this = reinterpret_cast< PushTaskResRequest* >(object); +void PullMessagesRequest::ArenaDtor(void* object) { + PullMessagesRequest* _this = reinterpret_cast< PullMessagesRequest* >(object); (void)_this; } -void PushTaskResRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void PullMessagesRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void PushTaskResRequest::SetCachedSize(int size) const { +void PullMessagesRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -void PushTaskResRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.PushTaskResRequest) +void PullMessagesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.PullMessagesRequest) ::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(); + message_ids_.Clear(); + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* PushTaskResRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* PullMessagesRequest::_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; + // .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 message_ids = 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_res_list(), ptr); + auto str = _internal_add_message_ids(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.PullMessagesRequest.message_ids")); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); } else goto handle_unusual; continue; @@ -2019,87 +1754,109 @@ const char* PushTaskResRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMES #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* PushTaskResRequest::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* PullMessagesRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PushTaskResRequest) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PullMessagesRequest) ::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++) { + // .flwr.proto.Node node = 1; + if (this->_internal_has_node()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_task_res_list(i), target, stream); + InternalWriteMessage( + 1, _Internal::node(this), target, stream); + } + + // repeated string message_ids = 2; + for (int i = 0, n = this->_internal_message_ids_size(); i < n; i++) { + const auto& s = this->_internal_message_ids(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.PullMessagesRequest.message_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.PushTaskResRequest) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.PullMessagesRequest) return target; } -size_t PushTaskResRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PushTaskResRequest) +size_t PullMessagesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PullMessagesRequest) 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); + // repeated string message_ids = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(message_ids_.size()); + for (int i = 0, n = message_ids_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + message_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 PushTaskResRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PullMessagesRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - PushTaskResRequest::MergeImpl + PullMessagesRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PushTaskResRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PullMessagesRequest::GetClassData() const { return &_class_data_; } -void PushTaskResRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void PullMessagesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void PushTaskResRequest::MergeFrom(const PushTaskResRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PushTaskResRequest) +void PullMessagesRequest::MergeFrom(const PullMessagesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PullMessagesRequest) 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_); + message_ids_.MergeFrom(from.message_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 PushTaskResRequest::CopyFrom(const PushTaskResRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PushTaskResRequest) +void PullMessagesRequest::CopyFrom(const PullMessagesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PullMessagesRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool PushTaskResRequest::IsInitialized() const { +bool PullMessagesRequest::IsInitialized() const { return true; } -void PushTaskResRequest::InternalSwap(PushTaskResRequest* other) { +void PullMessagesRequest::InternalSwap(PullMessagesRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - task_res_list_.InternalSwap(&other->task_res_list_); + message_ids_.InternalSwap(&other->message_ids_); + swap(node_, other->node_); } -::PROTOBUF_NAMESPACE_ID::Metadata PushTaskResRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PullMessagesRequest::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]); @@ -2107,88 +1864,79 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PushTaskResRequest::GetMetadata() const { // =================================================================== -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[9]); -} - -// =================================================================== - -class PushTaskResResponse::_Internal { +class PullMessagesResponse::_Internal { public: - static const ::flwr::proto::Reconnect& reconnect(const PushTaskResResponse* msg); + static const ::flwr::proto::Reconnect& reconnect(const PullMessagesResponse* msg); }; const ::flwr::proto::Reconnect& -PushTaskResResponse::_Internal::reconnect(const PushTaskResResponse* msg) { +PullMessagesResponse::_Internal::reconnect(const PullMessagesResponse* msg) { return *msg->reconnect_; } -PushTaskResResponse::PushTaskResResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, +void PullMessagesResponse::clear_messages_list() { + messages_list_.Clear(); +} +void PullMessagesResponse::clear_message_object_trees() { + message_object_trees_.Clear(); +} +PullMessagesResponse::PullMessagesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - results_(arena) { + messages_list_(arena), + message_object_trees_(arena) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } - // @@protoc_insertion_point(arena_constructor:flwr.proto.PushTaskResResponse) + // @@protoc_insertion_point(arena_constructor:flwr.proto.PullMessagesResponse) } -PushTaskResResponse::PushTaskResResponse(const PushTaskResResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { +PullMessagesResponse::PullMessagesResponse(const PullMessagesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + messages_list_(from.messages_list_), + message_object_trees_(from.message_object_trees_) { _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) + // @@protoc_insertion_point(copy_constructor:flwr.proto.PullMessagesResponse) } -void PushTaskResResponse::SharedCtor() { +void PullMessagesResponse::SharedCtor() { reconnect_ = nullptr; } -PushTaskResResponse::~PushTaskResResponse() { - // @@protoc_insertion_point(destructor:flwr.proto.PushTaskResResponse) +PullMessagesResponse::~PullMessagesResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.PullMessagesResponse) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void PushTaskResResponse::SharedDtor() { +inline void PullMessagesResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete reconnect_; } -void PushTaskResResponse::ArenaDtor(void* object) { - PushTaskResResponse* _this = reinterpret_cast< PushTaskResResponse* >(object); +void PullMessagesResponse::ArenaDtor(void* object) { + PullMessagesResponse* _this = reinterpret_cast< PullMessagesResponse* >(object); (void)_this; - _this->results_. ~MapField(); } -inline void PushTaskResResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { - if (arena != nullptr) { - arena->OwnCustomDestructor(this, &PushTaskResResponse::ArenaDtor); - } +void PullMessagesResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void PushTaskResResponse::SetCachedSize(int size) const { +void PullMessagesResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -void PushTaskResResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.PushTaskResResponse) +void PullMessagesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.PullMessagesResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - results_.Clear(); + messages_list_.Clear(); + message_object_trees_.Clear(); if (GetArenaForAllocation() == nullptr && reconnect_ != nullptr) { delete reconnect_; } @@ -2196,7 +1944,7 @@ void PushTaskResResponse::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* PushTaskResResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* PullMessagesResponse::_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; @@ -2210,287 +1958,29 @@ const char* PushTaskResResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAME } else goto handle_unusual; continue; - // map results = 2; + // repeated .flwr.proto.Message messages_list = 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); + ptr = ctx->ParseMessage(_internal_add_messages_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* 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[10]); -} - -// =================================================================== - -class Run::_Internal { - public: -}; - -Run::Run(::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.Run) -} -Run::Run(const Run& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - fab_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_fab_id().empty()) { - fab_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fab_id(), - GetArenaForAllocation()); - } - fab_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_fab_version().empty()) { - fab_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fab_version(), - GetArenaForAllocation()); - } - run_id_ = from.run_id_; - // @@protoc_insertion_point(copy_constructor:flwr.proto.Run) -} - -void Run::SharedCtor() { -fab_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -fab_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -run_id_ = int64_t{0}; -} - -Run::~Run() { - // @@protoc_insertion_point(destructor:flwr.proto.Run) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -inline void Run::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - fab_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - fab_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void Run::ArenaDtor(void* object) { - Run* _this = reinterpret_cast< Run* >(object); - (void)_this; -} -void Run::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Run::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void Run::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.Run) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - fab_id_.ClearToEmpty(); - fab_version_.ClearToEmpty(); - run_id_ = int64_t{0}; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Run::_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 run_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - run_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string fab_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_fab_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Run.fab_id")); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string fab_version = 3; + // repeated .flwr.proto.ObjectTree message_object_trees = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_fab_version(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Run.fab_version")); - CHK_(ptr); + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_message_object_trees(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); } else goto handle_unusual; continue; @@ -2517,210 +2007,267 @@ const char* Run::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::intern #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Run::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* PullMessagesResponse::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Run) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PullMessagesResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // sint64 run_id = 1; - if (this->_internal_run_id() != 0) { + // .flwr.proto.Reconnect reconnect = 1; + if (this->_internal_has_reconnect()) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(1, this->_internal_run_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::reconnect(this), target, stream); } - // string fab_id = 2; - if (!this->_internal_fab_id().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_fab_id().data(), static_cast(this->_internal_fab_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "flwr.proto.Run.fab_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_fab_id(), target); + // repeated .flwr.proto.Message messages_list = 2; + for (unsigned int i = 0, + n = static_cast(this->_internal_messages_list_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, this->_internal_messages_list(i), target, stream); } - // string fab_version = 3; - if (!this->_internal_fab_version().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_fab_version().data(), static_cast(this->_internal_fab_version().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "flwr.proto.Run.fab_version"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_fab_version(), target); + // repeated .flwr.proto.ObjectTree message_object_trees = 3; + for (unsigned int i = 0, + n = static_cast(this->_internal_message_object_trees_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, this->_internal_message_object_trees(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.Run) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.PullMessagesResponse) return target; } -size_t Run::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Run) +size_t PullMessagesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PullMessagesResponse) 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 fab_id = 2; - if (!this->_internal_fab_id().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_fab_id()); + // repeated .flwr.proto.Message messages_list = 2; + total_size += 1UL * this->_internal_messages_list_size(); + for (const auto& msg : this->messages_list_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - // string fab_version = 3; - if (!this->_internal_fab_version().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_fab_version()); + // repeated .flwr.proto.ObjectTree message_object_trees = 3; + total_size += 1UL * this->_internal_message_object_trees_size(); + for (const auto& msg : this->message_object_trees_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - // sint64 run_id = 1; - if (this->_internal_run_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64SizePlusOne(this->_internal_run_id()); + // .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 Run::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PullMessagesResponse::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - Run::MergeImpl + PullMessagesResponse::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Run::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PullMessagesResponse::GetClassData() const { return &_class_data_; } -void Run::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void PullMessagesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void Run::MergeFrom(const Run& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Run) +void PullMessagesResponse::MergeFrom(const PullMessagesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PullMessagesResponse) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_fab_id().empty()) { - _internal_set_fab_id(from._internal_fab_id()); - } - if (!from._internal_fab_version().empty()) { - _internal_set_fab_version(from._internal_fab_version()); - } - if (from._internal_run_id() != 0) { - _internal_set_run_id(from._internal_run_id()); + messages_list_.MergeFrom(from.messages_list_); + message_object_trees_.MergeFrom(from.message_object_trees_); + 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 Run::CopyFrom(const Run& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Run) +void PullMessagesResponse::CopyFrom(const PullMessagesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PullMessagesResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool Run::IsInitialized() const { +bool PullMessagesResponse::IsInitialized() const { return true; } -void Run::InternalSwap(Run* other) { +void PullMessagesResponse::InternalSwap(PullMessagesResponse* 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(), - &fab_id_, lhs_arena, - &other->fab_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &fab_version_, lhs_arena, - &other->fab_version_, rhs_arena - ); - swap(run_id_, other->run_id_); + messages_list_.InternalSwap(&other->messages_list_); + message_object_trees_.InternalSwap(&other->message_object_trees_); + swap(reconnect_, other->reconnect_); } -::PROTOBUF_NAMESPACE_ID::Metadata Run::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PullMessagesResponse::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[11]); + file_level_metadata_flwr_2fproto_2ffleet_2eproto[9]); } // =================================================================== -class GetRunRequest::_Internal { +class PushMessagesRequest::_Internal { public: + static const ::flwr::proto::Node& node(const PushMessagesRequest* msg); }; -GetRunRequest::GetRunRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, +const ::flwr::proto::Node& +PushMessagesRequest::_Internal::node(const PushMessagesRequest* msg) { + return *msg->node_; +} +void PushMessagesRequest::clear_node() { + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; +} +void PushMessagesRequest::clear_messages_list() { + messages_list_.Clear(); +} +void PushMessagesRequest::clear_message_object_trees() { + message_object_trees_.Clear(); +} +PushMessagesRequest::PushMessagesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + messages_list_(arena), + message_object_trees_(arena), + clientapp_runtime_list_(arena) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } - // @@protoc_insertion_point(arena_constructor:flwr.proto.GetRunRequest) + // @@protoc_insertion_point(arena_constructor:flwr.proto.PushMessagesRequest) } -GetRunRequest::GetRunRequest(const GetRunRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { +PushMessagesRequest::PushMessagesRequest(const PushMessagesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + messages_list_(from.messages_list_), + message_object_trees_(from.message_object_trees_), + clientapp_runtime_list_(from.clientapp_runtime_list_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - run_id_ = from.run_id_; - // @@protoc_insertion_point(copy_constructor:flwr.proto.GetRunRequest) + if (from._internal_has_node()) { + node_ = new ::flwr::proto::Node(*from.node_); + } else { + node_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.PushMessagesRequest) } -void GetRunRequest::SharedCtor() { -run_id_ = int64_t{0}; +void PushMessagesRequest::SharedCtor() { +node_ = nullptr; } -GetRunRequest::~GetRunRequest() { - // @@protoc_insertion_point(destructor:flwr.proto.GetRunRequest) +PushMessagesRequest::~PushMessagesRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.PushMessagesRequest) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void GetRunRequest::SharedDtor() { +inline void PushMessagesRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete node_; } -void GetRunRequest::ArenaDtor(void* object) { - GetRunRequest* _this = reinterpret_cast< GetRunRequest* >(object); +void PushMessagesRequest::ArenaDtor(void* object) { + PushMessagesRequest* _this = reinterpret_cast< PushMessagesRequest* >(object); (void)_this; } -void GetRunRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void PushMessagesRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void GetRunRequest::SetCachedSize(int size) const { +void PushMessagesRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -void GetRunRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.GetRunRequest) +void PushMessagesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.PushMessagesRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - run_id_ = int64_t{0}; + messages_list_.Clear(); + message_object_trees_.Clear(); + clientapp_runtime_list_.Clear(); + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* GetRunRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* PushMessagesRequest::_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 run_id = 1; + // .flwr.proto.Node node = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - run_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + 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 .flwr.proto.Message messages_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_messages_list(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .flwr.proto.ObjectTree message_object_trees = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_message_object_trees(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // repeated double clientapp_runtime_list = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_clientapp_runtime_list(), ptr, ctx); CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33) { + _internal_add_clientapp_runtime_list(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); } else goto handle_unusual; continue; @@ -2747,174 +2294,283 @@ const char* GetRunRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetRunRequest::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* PushMessagesRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.GetRunRequest) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PushMessagesRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // sint64 run_id = 1; - if (this->_internal_run_id() != 0) { + // .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 .flwr.proto.Message messages_list = 2; + for (unsigned int i = 0, + n = static_cast(this->_internal_messages_list_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, this->_internal_messages_list(i), target, stream); + } + + // repeated .flwr.proto.ObjectTree message_object_trees = 3; + for (unsigned int i = 0, + n = static_cast(this->_internal_message_object_trees_size()); i < n; i++) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(1, this->_internal_run_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, this->_internal_message_object_trees(i), target, stream); + } + + // repeated double clientapp_runtime_list = 4; + if (this->_internal_clientapp_runtime_list_size() > 0) { + target = stream->WriteFixedPacked(4, _internal_clientapp_runtime_list(), 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.GetRunRequest) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.PushMessagesRequest) return target; } -size_t GetRunRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.GetRunRequest) +size_t PushMessagesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PushMessagesRequest) 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 run_id = 1; - if (this->_internal_run_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64SizePlusOne(this->_internal_run_id()); + // repeated .flwr.proto.Message messages_list = 2; + total_size += 1UL * this->_internal_messages_list_size(); + for (const auto& msg : this->messages_list_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .flwr.proto.ObjectTree message_object_trees = 3; + total_size += 1UL * this->_internal_message_object_trees_size(); + for (const auto& msg : this->message_object_trees_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated double clientapp_runtime_list = 4; + { + unsigned int count = static_cast(this->_internal_clientapp_runtime_list_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; + } + + // .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 GetRunRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PushMessagesRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - GetRunRequest::MergeImpl + PushMessagesRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRunRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PushMessagesRequest::GetClassData() const { return &_class_data_; } -void GetRunRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void PushMessagesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRunRequest::MergeFrom(const GetRunRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.GetRunRequest) +void PushMessagesRequest::MergeFrom(const PushMessagesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PushMessagesRequest) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_run_id() != 0) { - _internal_set_run_id(from._internal_run_id()); + messages_list_.MergeFrom(from.messages_list_); + message_object_trees_.MergeFrom(from.message_object_trees_); + clientapp_runtime_list_.MergeFrom(from.clientapp_runtime_list_); + 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 GetRunRequest::CopyFrom(const GetRunRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.GetRunRequest) +void PushMessagesRequest::CopyFrom(const PushMessagesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PushMessagesRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool GetRunRequest::IsInitialized() const { +bool PushMessagesRequest::IsInitialized() const { return true; } -void GetRunRequest::InternalSwap(GetRunRequest* other) { +void PushMessagesRequest::InternalSwap(PushMessagesRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(run_id_, other->run_id_); + messages_list_.InternalSwap(&other->messages_list_); + message_object_trees_.InternalSwap(&other->message_object_trees_); + clientapp_runtime_list_.InternalSwap(&other->clientapp_runtime_list_); + swap(node_, other->node_); } -::PROTOBUF_NAMESPACE_ID::Metadata GetRunRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PushMessagesRequest::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[12]); + file_level_metadata_flwr_2fproto_2ffleet_2eproto[10]); +} + +// =================================================================== + +PushMessagesResponse_ResultsEntry_DoNotUse::PushMessagesResponse_ResultsEntry_DoNotUse() {} +PushMessagesResponse_ResultsEntry_DoNotUse::PushMessagesResponse_ResultsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void PushMessagesResponse_ResultsEntry_DoNotUse::MergeFrom(const PushMessagesResponse_ResultsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata PushMessagesResponse_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[11]); } // =================================================================== -class GetRunResponse::_Internal { +class PushMessagesResponse::_Internal { public: - static const ::flwr::proto::Run& run(const GetRunResponse* msg); + static const ::flwr::proto::Reconnect& reconnect(const PushMessagesResponse* msg); }; -const ::flwr::proto::Run& -GetRunResponse::_Internal::run(const GetRunResponse* msg) { - return *msg->run_; +const ::flwr::proto::Reconnect& +PushMessagesResponse::_Internal::reconnect(const PushMessagesResponse* msg) { + return *msg->reconnect_; } -GetRunResponse::GetRunResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, +PushMessagesResponse::PushMessagesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + results_(arena), + objects_to_push_(arena) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } - // @@protoc_insertion_point(arena_constructor:flwr.proto.GetRunResponse) + // @@protoc_insertion_point(arena_constructor:flwr.proto.PushMessagesResponse) } -GetRunResponse::GetRunResponse(const GetRunResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { +PushMessagesResponse::PushMessagesResponse(const PushMessagesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + objects_to_push_(from.objects_to_push_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_run()) { - run_ = new ::flwr::proto::Run(*from.run_); + results_.MergeFrom(from.results_); + if (from._internal_has_reconnect()) { + reconnect_ = new ::flwr::proto::Reconnect(*from.reconnect_); } else { - run_ = nullptr; + reconnect_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:flwr.proto.GetRunResponse) + // @@protoc_insertion_point(copy_constructor:flwr.proto.PushMessagesResponse) } -void GetRunResponse::SharedCtor() { -run_ = nullptr; +void PushMessagesResponse::SharedCtor() { +reconnect_ = nullptr; } -GetRunResponse::~GetRunResponse() { - // @@protoc_insertion_point(destructor:flwr.proto.GetRunResponse) +PushMessagesResponse::~PushMessagesResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.PushMessagesResponse) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void GetRunResponse::SharedDtor() { +inline void PushMessagesResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete run_; + if (this != internal_default_instance()) delete reconnect_; } -void GetRunResponse::ArenaDtor(void* object) { - GetRunResponse* _this = reinterpret_cast< GetRunResponse* >(object); +void PushMessagesResponse::ArenaDtor(void* object) { + PushMessagesResponse* _this = reinterpret_cast< PushMessagesResponse* >(object); (void)_this; + _this->results_. ~MapField(); } -void GetRunResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +inline void PushMessagesResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { + if (arena != nullptr) { + arena->OwnCustomDestructor(this, &PushMessagesResponse::ArenaDtor); + } } -void GetRunResponse::SetCachedSize(int size) const { +void PushMessagesResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -void GetRunResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.GetRunResponse) +void PushMessagesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.PushMessagesResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && run_ != nullptr) { - delete run_; + results_.Clear(); + objects_to_push_.Clear(); + if (GetArenaForAllocation() == nullptr && reconnect_ != nullptr) { + delete reconnect_; } - run_ = nullptr; + reconnect_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* GetRunResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* PushMessagesResponse::_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.Run run = 1; + // .flwr.proto.Reconnect reconnect = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_run(), ptr); + 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; + // repeated string objects_to_push = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_objects_to_push(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.PushMessagesResponse.objects_to_push")); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -2938,92 +2594,165 @@ const char* GetRunResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetRunResponse::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* PushMessagesResponse::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.GetRunResponse) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PushMessagesResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .flwr.proto.Run run = 1; - if (this->_internal_has_run()) { + // .flwr.proto.Reconnect reconnect = 1; + if (this->_internal_has_reconnect()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 1, _Internal::run(this), target, stream); + 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.PushMessagesResponse.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 = PushMessagesResponse_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 = PushMessagesResponse_ResultsEntry_DoNotUse::Funcs::InternalSerialize(2, it->first, it->second, target, stream); + Utf8Check::Check(&(*it)); + } + } + } + + // repeated string objects_to_push = 3; + for (int i = 0, n = this->_internal_objects_to_push_size(); i < n; i++) { + const auto& s = this->_internal_objects_to_push(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.PushMessagesResponse.objects_to_push"); + target = stream->WriteString(3, 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.GetRunResponse) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.PushMessagesResponse) return target; } -size_t GetRunResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.GetRunResponse) +size_t PushMessagesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PushMessagesResponse) 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.Run run = 1; - if (this->_internal_has_run()) { + // 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 += PushMessagesResponse_ResultsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // repeated string objects_to_push = 3; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(objects_to_push_.size()); + for (int i = 0, n = objects_to_push_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + objects_to_push_.Get(i)); + } + + // .flwr.proto.Reconnect reconnect = 1; + if (this->_internal_has_reconnect()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *run_); + *reconnect_); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRunResponse::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PushMessagesResponse::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - GetRunResponse::MergeImpl + PushMessagesResponse::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRunResponse::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PushMessagesResponse::GetClassData() const { return &_class_data_; } -void GetRunResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void PushMessagesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRunResponse::MergeFrom(const GetRunResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.GetRunResponse) +void PushMessagesResponse::MergeFrom(const PushMessagesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PushMessagesResponse) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_run()) { - _internal_mutable_run()->::flwr::proto::Run::MergeFrom(from._internal_run()); + results_.MergeFrom(from.results_); + objects_to_push_.MergeFrom(from.objects_to_push_); + 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 GetRunResponse::CopyFrom(const GetRunResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.GetRunResponse) +void PushMessagesResponse::CopyFrom(const PushMessagesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PushMessagesResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool GetRunResponse::IsInitialized() const { +bool PushMessagesResponse::IsInitialized() const { return true; } -void GetRunResponse::InternalSwap(GetRunResponse* other) { +void PushMessagesResponse::InternalSwap(PushMessagesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(run_, other->run_); + results_.InternalSwap(&other->results_); + objects_to_push_.InternalSwap(&other->objects_to_push_); + swap(reconnect_, other->reconnect_); } -::PROTOBUF_NAMESPACE_ID::Metadata GetRunResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PushMessagesResponse::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[13]); + file_level_metadata_flwr_2fproto_2ffleet_2eproto[12]); } // =================================================================== @@ -3201,54 +2930,51 @@ void Reconnect::InternalSwap(Reconnect* other) { ::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[14]); + file_level_metadata_flwr_2fproto_2ffleet_2eproto[13]); } // @@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::RegisterNodeFleetRequest* Arena::CreateMaybeMessage< ::flwr::proto::RegisterNodeFleetRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::RegisterNodeFleetRequest >(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::RegisterNodeFleetResponse* Arena::CreateMaybeMessage< ::flwr::proto::RegisterNodeFleetResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::RegisterNodeFleetResponse >(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::ActivateNodeRequest* Arena::CreateMaybeMessage< ::flwr::proto::ActivateNodeRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ActivateNodeRequest >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::PingRequest* Arena::CreateMaybeMessage< ::flwr::proto::PingRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::PingRequest >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::ActivateNodeResponse* Arena::CreateMaybeMessage< ::flwr::proto::ActivateNodeResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ActivateNodeResponse >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::PingResponse* Arena::CreateMaybeMessage< ::flwr::proto::PingResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::PingResponse >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::DeactivateNodeRequest* Arena::CreateMaybeMessage< ::flwr::proto::DeactivateNodeRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::DeactivateNodeRequest >(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::DeactivateNodeResponse* Arena::CreateMaybeMessage< ::flwr::proto::DeactivateNodeResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::DeactivateNodeResponse >(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::UnregisterNodeFleetRequest* Arena::CreateMaybeMessage< ::flwr::proto::UnregisterNodeFleetRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::UnregisterNodeFleetRequest >(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::UnregisterNodeFleetResponse* Arena::CreateMaybeMessage< ::flwr::proto::UnregisterNodeFleetResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::UnregisterNodeFleetResponse >(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::PullMessagesRequest* Arena::CreateMaybeMessage< ::flwr::proto::PullMessagesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PullMessagesRequest >(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::PullMessagesResponse* Arena::CreateMaybeMessage< ::flwr::proto::PullMessagesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PullMessagesResponse >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::Run* Arena::CreateMaybeMessage< ::flwr::proto::Run >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::Run >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::PushMessagesRequest* Arena::CreateMaybeMessage< ::flwr::proto::PushMessagesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PushMessagesRequest >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::GetRunRequest* Arena::CreateMaybeMessage< ::flwr::proto::GetRunRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::GetRunRequest >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::PushMessagesResponse_ResultsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::PushMessagesResponse_ResultsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PushMessagesResponse_ResultsEntry_DoNotUse >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::GetRunResponse* Arena::CreateMaybeMessage< ::flwr::proto::GetRunResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::GetRunResponse >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::PushMessagesResponse* Arena::CreateMaybeMessage< ::flwr::proto::PushMessagesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PushMessagesResponse >(arena); } template<> PROTOBUF_NOINLINE ::flwr::proto::Reconnect* Arena::CreateMaybeMessage< ::flwr::proto::Reconnect >(Arena* arena) { return Arena::CreateMessageInternal< ::flwr::proto::Reconnect >(arena); diff --git a/framework/cc/flwr/include/flwr/proto/fleet.pb.h b/framework/cc/flwr/include/flwr/proto/fleet.pb.h index 9ad30b5752f5..3350d589ce15 100644 --- a/framework/cc/flwr/include/flwr/proto/fleet.pb.h +++ b/framework/cc/flwr/include/flwr/proto/fleet.pb.h @@ -35,8 +35,11 @@ #include #include #include +#include "flwr/proto/heartbeat.pb.h" #include "flwr/proto/node.pb.h" -#include "flwr/proto/task.pb.h" +#include "flwr/proto/run.pb.h" +#include "flwr/proto/fab.pb.h" +#include "flwr/proto/message.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_flwr_2fproto_2ffleet_2eproto @@ -52,7 +55,7 @@ struct TableStruct_flwr_2fproto_2ffleet_2eproto { 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[15] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[14] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -61,93 +64,89 @@ struct TableStruct_flwr_2fproto_2ffleet_2eproto { 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 GetRunRequest; -struct GetRunRequestDefaultTypeInternal; -extern GetRunRequestDefaultTypeInternal _GetRunRequest_default_instance_; -class GetRunResponse; -struct GetRunResponseDefaultTypeInternal; -extern GetRunResponseDefaultTypeInternal _GetRunResponse_default_instance_; -class PingRequest; -struct PingRequestDefaultTypeInternal; -extern PingRequestDefaultTypeInternal _PingRequest_default_instance_; -class PingResponse; -struct PingResponseDefaultTypeInternal; -extern PingResponseDefaultTypeInternal _PingResponse_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 ActivateNodeRequest; +struct ActivateNodeRequestDefaultTypeInternal; +extern ActivateNodeRequestDefaultTypeInternal _ActivateNodeRequest_default_instance_; +class ActivateNodeResponse; +struct ActivateNodeResponseDefaultTypeInternal; +extern ActivateNodeResponseDefaultTypeInternal _ActivateNodeResponse_default_instance_; +class DeactivateNodeRequest; +struct DeactivateNodeRequestDefaultTypeInternal; +extern DeactivateNodeRequestDefaultTypeInternal _DeactivateNodeRequest_default_instance_; +class DeactivateNodeResponse; +struct DeactivateNodeResponseDefaultTypeInternal; +extern DeactivateNodeResponseDefaultTypeInternal _DeactivateNodeResponse_default_instance_; +class PullMessagesRequest; +struct PullMessagesRequestDefaultTypeInternal; +extern PullMessagesRequestDefaultTypeInternal _PullMessagesRequest_default_instance_; +class PullMessagesResponse; +struct PullMessagesResponseDefaultTypeInternal; +extern PullMessagesResponseDefaultTypeInternal _PullMessagesResponse_default_instance_; +class PushMessagesRequest; +struct PushMessagesRequestDefaultTypeInternal; +extern PushMessagesRequestDefaultTypeInternal _PushMessagesRequest_default_instance_; +class PushMessagesResponse; +struct PushMessagesResponseDefaultTypeInternal; +extern PushMessagesResponseDefaultTypeInternal _PushMessagesResponse_default_instance_; +class PushMessagesResponse_ResultsEntry_DoNotUse; +struct PushMessagesResponse_ResultsEntry_DoNotUseDefaultTypeInternal; +extern PushMessagesResponse_ResultsEntry_DoNotUseDefaultTypeInternal _PushMessagesResponse_ResultsEntry_DoNotUse_default_instance_; class Reconnect; struct ReconnectDefaultTypeInternal; extern ReconnectDefaultTypeInternal _Reconnect_default_instance_; -class Run; -struct RunDefaultTypeInternal; -extern RunDefaultTypeInternal _Run_default_instance_; +class RegisterNodeFleetRequest; +struct RegisterNodeFleetRequestDefaultTypeInternal; +extern RegisterNodeFleetRequestDefaultTypeInternal _RegisterNodeFleetRequest_default_instance_; +class RegisterNodeFleetResponse; +struct RegisterNodeFleetResponseDefaultTypeInternal; +extern RegisterNodeFleetResponseDefaultTypeInternal _RegisterNodeFleetResponse_default_instance_; +class UnregisterNodeFleetRequest; +struct UnregisterNodeFleetRequestDefaultTypeInternal; +extern UnregisterNodeFleetRequestDefaultTypeInternal _UnregisterNodeFleetRequest_default_instance_; +class UnregisterNodeFleetResponse; +struct UnregisterNodeFleetResponseDefaultTypeInternal; +extern UnregisterNodeFleetResponseDefaultTypeInternal _UnregisterNodeFleetResponse_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::GetRunRequest* Arena::CreateMaybeMessage<::flwr::proto::GetRunRequest>(Arena*); -template<> ::flwr::proto::GetRunResponse* Arena::CreateMaybeMessage<::flwr::proto::GetRunResponse>(Arena*); -template<> ::flwr::proto::PingRequest* Arena::CreateMaybeMessage<::flwr::proto::PingRequest>(Arena*); -template<> ::flwr::proto::PingResponse* Arena::CreateMaybeMessage<::flwr::proto::PingResponse>(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::ActivateNodeRequest* Arena::CreateMaybeMessage<::flwr::proto::ActivateNodeRequest>(Arena*); +template<> ::flwr::proto::ActivateNodeResponse* Arena::CreateMaybeMessage<::flwr::proto::ActivateNodeResponse>(Arena*); +template<> ::flwr::proto::DeactivateNodeRequest* Arena::CreateMaybeMessage<::flwr::proto::DeactivateNodeRequest>(Arena*); +template<> ::flwr::proto::DeactivateNodeResponse* Arena::CreateMaybeMessage<::flwr::proto::DeactivateNodeResponse>(Arena*); +template<> ::flwr::proto::PullMessagesRequest* Arena::CreateMaybeMessage<::flwr::proto::PullMessagesRequest>(Arena*); +template<> ::flwr::proto::PullMessagesResponse* Arena::CreateMaybeMessage<::flwr::proto::PullMessagesResponse>(Arena*); +template<> ::flwr::proto::PushMessagesRequest* Arena::CreateMaybeMessage<::flwr::proto::PushMessagesRequest>(Arena*); +template<> ::flwr::proto::PushMessagesResponse* Arena::CreateMaybeMessage<::flwr::proto::PushMessagesResponse>(Arena*); +template<> ::flwr::proto::PushMessagesResponse_ResultsEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::PushMessagesResponse_ResultsEntry_DoNotUse>(Arena*); template<> ::flwr::proto::Reconnect* Arena::CreateMaybeMessage<::flwr::proto::Reconnect>(Arena*); -template<> ::flwr::proto::Run* Arena::CreateMaybeMessage<::flwr::proto::Run>(Arena*); +template<> ::flwr::proto::RegisterNodeFleetRequest* Arena::CreateMaybeMessage<::flwr::proto::RegisterNodeFleetRequest>(Arena*); +template<> ::flwr::proto::RegisterNodeFleetResponse* Arena::CreateMaybeMessage<::flwr::proto::RegisterNodeFleetResponse>(Arena*); +template<> ::flwr::proto::UnregisterNodeFleetRequest* Arena::CreateMaybeMessage<::flwr::proto::UnregisterNodeFleetRequest>(Arena*); +template<> ::flwr::proto::UnregisterNodeFleetResponse* Arena::CreateMaybeMessage<::flwr::proto::UnregisterNodeFleetResponse>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace flwr { namespace proto { // =================================================================== -class CreateNodeRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.CreateNodeRequest) */ { +class RegisterNodeFleetRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.RegisterNodeFleetRequest) */ { public: - inline CreateNodeRequest() : CreateNodeRequest(nullptr) {} - ~CreateNodeRequest() override; - explicit constexpr CreateNodeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline RegisterNodeFleetRequest() : RegisterNodeFleetRequest(nullptr) {} + ~RegisterNodeFleetRequest() override; + explicit constexpr RegisterNodeFleetRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - CreateNodeRequest(const CreateNodeRequest& from); - CreateNodeRequest(CreateNodeRequest&& from) noexcept - : CreateNodeRequest() { + RegisterNodeFleetRequest(const RegisterNodeFleetRequest& from); + RegisterNodeFleetRequest(RegisterNodeFleetRequest&& from) noexcept + : RegisterNodeFleetRequest() { *this = ::std::move(from); } - inline CreateNodeRequest& operator=(const CreateNodeRequest& from) { + inline RegisterNodeFleetRequest& operator=(const RegisterNodeFleetRequest& from) { CopyFrom(from); return *this; } - inline CreateNodeRequest& operator=(CreateNodeRequest&& from) noexcept { + inline RegisterNodeFleetRequest& operator=(RegisterNodeFleetRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -170,20 +169,20 @@ class CreateNodeRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateNodeRequest& default_instance() { + static const RegisterNodeFleetRequest& default_instance() { return *internal_default_instance(); } - static inline const CreateNodeRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateNodeRequest_default_instance_); + static inline const RegisterNodeFleetRequest* internal_default_instance() { + return reinterpret_cast( + &_RegisterNodeFleetRequest_default_instance_); } static constexpr int kIndexInFileMessages = 0; - friend void swap(CreateNodeRequest& a, CreateNodeRequest& b) { + friend void swap(RegisterNodeFleetRequest& a, RegisterNodeFleetRequest& b) { a.Swap(&b); } - inline void Swap(CreateNodeRequest* other) { + inline void Swap(RegisterNodeFleetRequest* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); @@ -191,7 +190,7 @@ class CreateNodeRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateNodeRequest* other) { + void UnsafeArenaSwap(RegisterNodeFleetRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -199,17 +198,17 @@ class CreateNodeRequest final : // implements Message ---------------------------------------------- - inline CreateNodeRequest* New() const final { - return new CreateNodeRequest(); + inline RegisterNodeFleetRequest* New() const final { + return new RegisterNodeFleetRequest(); } - CreateNodeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + RegisterNodeFleetRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateNodeRequest& from); + void CopyFrom(const RegisterNodeFleetRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const CreateNodeRequest& from); + void MergeFrom(const RegisterNodeFleetRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -226,13 +225,13 @@ class CreateNodeRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(CreateNodeRequest* other); + void InternalSwap(RegisterNodeFleetRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.CreateNodeRequest"; + return "flwr.proto.RegisterNodeFleetRequest"; } protected: - explicit CreateNodeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit RegisterNodeFleetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); @@ -249,48 +248,53 @@ class CreateNodeRequest final : // accessors ------------------------------------------------------- enum : int { - kPingIntervalFieldNumber = 1, + kPublicKeyFieldNumber = 1, }; - // double ping_interval = 1; - void clear_ping_interval(); - double ping_interval() const; - void set_ping_interval(double value); - private: - double _internal_ping_interval() const; - void _internal_set_ping_interval(double value); + // bytes public_key = 1; + void clear_public_key(); + const std::string& public_key() const; + template + void set_public_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_public_key(); + PROTOBUF_MUST_USE_RESULT std::string* release_public_key(); + void set_allocated_public_key(std::string* public_key); + private: + const std::string& _internal_public_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const std::string& value); + std::string* _internal_mutable_public_key(); public: - // @@protoc_insertion_point(class_scope:flwr.proto.CreateNodeRequest) + // @@protoc_insertion_point(class_scope:flwr.proto.RegisterNodeFleetRequest) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - double ping_interval_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; 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) */ { +class RegisterNodeFleetResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.RegisterNodeFleetResponse) */ { public: - inline CreateNodeResponse() : CreateNodeResponse(nullptr) {} - ~CreateNodeResponse() override; - explicit constexpr CreateNodeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline RegisterNodeFleetResponse() : RegisterNodeFleetResponse(nullptr) {} + ~RegisterNodeFleetResponse() override; + explicit constexpr RegisterNodeFleetResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - CreateNodeResponse(const CreateNodeResponse& from); - CreateNodeResponse(CreateNodeResponse&& from) noexcept - : CreateNodeResponse() { + RegisterNodeFleetResponse(const RegisterNodeFleetResponse& from); + RegisterNodeFleetResponse(RegisterNodeFleetResponse&& from) noexcept + : RegisterNodeFleetResponse() { *this = ::std::move(from); } - inline CreateNodeResponse& operator=(const CreateNodeResponse& from) { + inline RegisterNodeFleetResponse& operator=(const RegisterNodeFleetResponse& from) { CopyFrom(from); return *this; } - inline CreateNodeResponse& operator=(CreateNodeResponse&& from) noexcept { + inline RegisterNodeFleetResponse& operator=(RegisterNodeFleetResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -313,20 +317,20 @@ class CreateNodeResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateNodeResponse& default_instance() { + static const RegisterNodeFleetResponse& default_instance() { return *internal_default_instance(); } - static inline const CreateNodeResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateNodeResponse_default_instance_); + static inline const RegisterNodeFleetResponse* internal_default_instance() { + return reinterpret_cast( + &_RegisterNodeFleetResponse_default_instance_); } static constexpr int kIndexInFileMessages = 1; - friend void swap(CreateNodeResponse& a, CreateNodeResponse& b) { + friend void swap(RegisterNodeFleetResponse& a, RegisterNodeFleetResponse& b) { a.Swap(&b); } - inline void Swap(CreateNodeResponse* other) { + inline void Swap(RegisterNodeFleetResponse* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); @@ -334,7 +338,7 @@ class CreateNodeResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateNodeResponse* other) { + void UnsafeArenaSwap(RegisterNodeFleetResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -342,17 +346,17 @@ class CreateNodeResponse final : // implements Message ---------------------------------------------- - inline CreateNodeResponse* New() const final { - return new CreateNodeResponse(); + inline RegisterNodeFleetResponse* New() const final { + return new RegisterNodeFleetResponse(); } - CreateNodeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + RegisterNodeFleetResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateNodeResponse& from); + void CopyFrom(const RegisterNodeFleetResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const CreateNodeResponse& from); + void MergeFrom(const RegisterNodeFleetResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -369,13 +373,13 @@ class CreateNodeResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(CreateNodeResponse* other); + void InternalSwap(RegisterNodeFleetResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.CreateNodeResponse"; + return "flwr.proto.RegisterNodeFleetResponse"; } protected: - explicit CreateNodeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit RegisterNodeFleetResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); @@ -392,57 +396,48 @@ class CreateNodeResponse final : // accessors ------------------------------------------------------- enum : int { - kNodeFieldNumber = 1, + kNodeIdFieldNumber = 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); + // uint64 node_id = 1; + void clear_node_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 node_id() const; + void set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - const ::flwr::proto::Node& _internal_node() const; - ::flwr::proto::Node* _internal_mutable_node(); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_node_id() const; + void _internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); 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) + // @@protoc_insertion_point(class_scope:flwr.proto.RegisterNodeFleetResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::flwr::proto::Node* node_; + ::PROTOBUF_NAMESPACE_ID::uint64 node_id_; 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) */ { +class ActivateNodeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ActivateNodeRequest) */ { public: - inline DeleteNodeRequest() : DeleteNodeRequest(nullptr) {} - ~DeleteNodeRequest() override; - explicit constexpr DeleteNodeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ActivateNodeRequest() : ActivateNodeRequest(nullptr) {} + ~ActivateNodeRequest() override; + explicit constexpr ActivateNodeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - DeleteNodeRequest(const DeleteNodeRequest& from); - DeleteNodeRequest(DeleteNodeRequest&& from) noexcept - : DeleteNodeRequest() { + ActivateNodeRequest(const ActivateNodeRequest& from); + ActivateNodeRequest(ActivateNodeRequest&& from) noexcept + : ActivateNodeRequest() { *this = ::std::move(from); } - inline DeleteNodeRequest& operator=(const DeleteNodeRequest& from) { + inline ActivateNodeRequest& operator=(const ActivateNodeRequest& from) { CopyFrom(from); return *this; } - inline DeleteNodeRequest& operator=(DeleteNodeRequest&& from) noexcept { + inline ActivateNodeRequest& operator=(ActivateNodeRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -465,20 +460,20 @@ class DeleteNodeRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteNodeRequest& default_instance() { + static const ActivateNodeRequest& default_instance() { return *internal_default_instance(); } - static inline const DeleteNodeRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteNodeRequest_default_instance_); + static inline const ActivateNodeRequest* internal_default_instance() { + return reinterpret_cast( + &_ActivateNodeRequest_default_instance_); } static constexpr int kIndexInFileMessages = 2; - friend void swap(DeleteNodeRequest& a, DeleteNodeRequest& b) { + friend void swap(ActivateNodeRequest& a, ActivateNodeRequest& b) { a.Swap(&b); } - inline void Swap(DeleteNodeRequest* other) { + inline void Swap(ActivateNodeRequest* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); @@ -486,7 +481,7 @@ class DeleteNodeRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteNodeRequest* other) { + void UnsafeArenaSwap(ActivateNodeRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -494,17 +489,17 @@ class DeleteNodeRequest final : // implements Message ---------------------------------------------- - inline DeleteNodeRequest* New() const final { - return new DeleteNodeRequest(); + inline ActivateNodeRequest* New() const final { + return new ActivateNodeRequest(); } - DeleteNodeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + ActivateNodeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DeleteNodeRequest& from); + void CopyFrom(const ActivateNodeRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const DeleteNodeRequest& from); + void MergeFrom(const ActivateNodeRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -521,13 +516,13 @@ class DeleteNodeRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(DeleteNodeRequest* other); + void InternalSwap(ActivateNodeRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.DeleteNodeRequest"; + return "flwr.proto.ActivateNodeRequest"; } protected: - explicit DeleteNodeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ActivateNodeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); @@ -544,56 +539,64 @@ class DeleteNodeRequest final : // accessors ------------------------------------------------------- enum : int { - kNodeFieldNumber = 1, + kPublicKeyFieldNumber = 1, + kHeartbeatIntervalFieldNumber = 2, }; - // .flwr.proto.Node node = 1; - bool has_node() const; - private: - bool _internal_has_node() const; + // bytes public_key = 1; + void clear_public_key(); + const std::string& public_key() const; + template + void set_public_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_public_key(); + PROTOBUF_MUST_USE_RESULT std::string* release_public_key(); + void set_allocated_public_key(std::string* public_key); + private: + const std::string& _internal_public_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const std::string& value); + std::string* _internal_mutable_public_key(); 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); + + // double heartbeat_interval = 2; + void clear_heartbeat_interval(); + double heartbeat_interval() const; + void set_heartbeat_interval(double value); private: - const ::flwr::proto::Node& _internal_node() const; - ::flwr::proto::Node* _internal_mutable_node(); + double _internal_heartbeat_interval() const; + void _internal_set_heartbeat_interval(double value); 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) + // @@protoc_insertion_point(class_scope:flwr.proto.ActivateNodeRequest) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::flwr::proto::Node* node_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; + double heartbeat_interval_; 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) */ { +class ActivateNodeResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ActivateNodeResponse) */ { public: - inline DeleteNodeResponse() : DeleteNodeResponse(nullptr) {} - explicit constexpr DeleteNodeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ActivateNodeResponse() : ActivateNodeResponse(nullptr) {} + ~ActivateNodeResponse() override; + explicit constexpr ActivateNodeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - DeleteNodeResponse(const DeleteNodeResponse& from); - DeleteNodeResponse(DeleteNodeResponse&& from) noexcept - : DeleteNodeResponse() { + ActivateNodeResponse(const ActivateNodeResponse& from); + ActivateNodeResponse(ActivateNodeResponse&& from) noexcept + : ActivateNodeResponse() { *this = ::std::move(from); } - inline DeleteNodeResponse& operator=(const DeleteNodeResponse& from) { + inline ActivateNodeResponse& operator=(const ActivateNodeResponse& from) { CopyFrom(from); return *this; } - inline DeleteNodeResponse& operator=(DeleteNodeResponse&& from) noexcept { + inline ActivateNodeResponse& operator=(ActivateNodeResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -616,20 +619,20 @@ class DeleteNodeResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteNodeResponse& default_instance() { + static const ActivateNodeResponse& default_instance() { return *internal_default_instance(); } - static inline const DeleteNodeResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteNodeResponse_default_instance_); + static inline const ActivateNodeResponse* internal_default_instance() { + return reinterpret_cast( + &_ActivateNodeResponse_default_instance_); } static constexpr int kIndexInFileMessages = 3; - friend void swap(DeleteNodeResponse& a, DeleteNodeResponse& b) { + friend void swap(ActivateNodeResponse& a, ActivateNodeResponse& b) { a.Swap(&b); } - inline void Swap(DeleteNodeResponse* other) { + inline void Swap(ActivateNodeResponse* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); @@ -637,7 +640,7 @@ class DeleteNodeResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteNodeResponse* other) { + void UnsafeArenaSwap(ActivateNodeResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -645,30 +648,44 @@ class DeleteNodeResponse final : // implements Message ---------------------------------------------- - inline DeleteNodeResponse* New() const final { - return new DeleteNodeResponse(); + inline ActivateNodeResponse* New() const final { + return new ActivateNodeResponse(); } - 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); + ActivateNodeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ActivateNodeResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ActivateNodeResponse& 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(ActivateNodeResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.DeleteNodeResponse"; + return "flwr.proto.ActivateNodeResponse"; } protected: - explicit DeleteNodeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ActivateNodeResponse(::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_; @@ -680,36 +697,49 @@ class DeleteNodeResponse final : // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:flwr.proto.DeleteNodeResponse) + enum : int { + kNodeIdFieldNumber = 1, + }; + // uint64 node_id = 1; + void clear_node_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 node_id() const; + void set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_node_id() const; + void _internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.ActivateNodeResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::uint64 node_id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; }; // ------------------------------------------------------------------- -class PingRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PingRequest) */ { +class DeactivateNodeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.DeactivateNodeRequest) */ { public: - inline PingRequest() : PingRequest(nullptr) {} - ~PingRequest() override; - explicit constexpr PingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline DeactivateNodeRequest() : DeactivateNodeRequest(nullptr) {} + ~DeactivateNodeRequest() override; + explicit constexpr DeactivateNodeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - PingRequest(const PingRequest& from); - PingRequest(PingRequest&& from) noexcept - : PingRequest() { + DeactivateNodeRequest(const DeactivateNodeRequest& from); + DeactivateNodeRequest(DeactivateNodeRequest&& from) noexcept + : DeactivateNodeRequest() { *this = ::std::move(from); } - inline PingRequest& operator=(const PingRequest& from) { + inline DeactivateNodeRequest& operator=(const DeactivateNodeRequest& from) { CopyFrom(from); return *this; } - inline PingRequest& operator=(PingRequest&& from) noexcept { + inline DeactivateNodeRequest& operator=(DeactivateNodeRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -732,20 +762,20 @@ class PingRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PingRequest& default_instance() { + static const DeactivateNodeRequest& default_instance() { return *internal_default_instance(); } - static inline const PingRequest* internal_default_instance() { - return reinterpret_cast( - &_PingRequest_default_instance_); + static inline const DeactivateNodeRequest* internal_default_instance() { + return reinterpret_cast( + &_DeactivateNodeRequest_default_instance_); } static constexpr int kIndexInFileMessages = 4; - friend void swap(PingRequest& a, PingRequest& b) { + friend void swap(DeactivateNodeRequest& a, DeactivateNodeRequest& b) { a.Swap(&b); } - inline void Swap(PingRequest* other) { + inline void Swap(DeactivateNodeRequest* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); @@ -753,7 +783,7 @@ class PingRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PingRequest* other) { + void UnsafeArenaSwap(DeactivateNodeRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -761,17 +791,17 @@ class PingRequest final : // implements Message ---------------------------------------------- - inline PingRequest* New() const final { - return new PingRequest(); + inline DeactivateNodeRequest* New() const final { + return new DeactivateNodeRequest(); } - PingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + DeactivateNodeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PingRequest& from); + void CopyFrom(const DeactivateNodeRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PingRequest& from); + void MergeFrom(const DeactivateNodeRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -788,13 +818,13 @@ class PingRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PingRequest* other); + void InternalSwap(DeactivateNodeRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.PingRequest"; + return "flwr.proto.DeactivateNodeRequest"; } protected: - explicit PingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit DeactivateNodeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); @@ -811,68 +841,47 @@ class PingRequest final : // accessors ------------------------------------------------------- enum : int { - kNodeFieldNumber = 1, - kPingIntervalFieldNumber = 2, + kNodeIdFieldNumber = 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(); - - // double ping_interval = 2; - void clear_ping_interval(); - double ping_interval() const; - void set_ping_interval(double value); + // uint64 node_id = 1; + void clear_node_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 node_id() const; + void set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - double _internal_ping_interval() const; - void _internal_set_ping_interval(double value); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_node_id() const; + void _internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // @@protoc_insertion_point(class_scope:flwr.proto.PingRequest) + // @@protoc_insertion_point(class_scope:flwr.proto.DeactivateNodeRequest) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::flwr::proto::Node* node_; - double ping_interval_; + ::PROTOBUF_NAMESPACE_ID::uint64 node_id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; }; // ------------------------------------------------------------------- -class PingResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PingResponse) */ { +class DeactivateNodeResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:flwr.proto.DeactivateNodeResponse) */ { public: - inline PingResponse() : PingResponse(nullptr) {} - ~PingResponse() override; - explicit constexpr PingResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline DeactivateNodeResponse() : DeactivateNodeResponse(nullptr) {} + explicit constexpr DeactivateNodeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - PingResponse(const PingResponse& from); - PingResponse(PingResponse&& from) noexcept - : PingResponse() { + DeactivateNodeResponse(const DeactivateNodeResponse& from); + DeactivateNodeResponse(DeactivateNodeResponse&& from) noexcept + : DeactivateNodeResponse() { *this = ::std::move(from); } - inline PingResponse& operator=(const PingResponse& from) { + inline DeactivateNodeResponse& operator=(const DeactivateNodeResponse& from) { CopyFrom(from); return *this; } - inline PingResponse& operator=(PingResponse&& from) noexcept { + inline DeactivateNodeResponse& operator=(DeactivateNodeResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -895,20 +904,20 @@ class PingResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PingResponse& default_instance() { + static const DeactivateNodeResponse& default_instance() { return *internal_default_instance(); } - static inline const PingResponse* internal_default_instance() { - return reinterpret_cast( - &_PingResponse_default_instance_); + static inline const DeactivateNodeResponse* internal_default_instance() { + return reinterpret_cast( + &_DeactivateNodeResponse_default_instance_); } static constexpr int kIndexInFileMessages = 5; - friend void swap(PingResponse& a, PingResponse& b) { + friend void swap(DeactivateNodeResponse& a, DeactivateNodeResponse& b) { a.Swap(&b); } - inline void Swap(PingResponse* other) { + inline void Swap(DeactivateNodeResponse* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); @@ -916,7 +925,7 @@ class PingResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PingResponse* other) { + void UnsafeArenaSwap(DeactivateNodeResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -924,44 +933,30 @@ class PingResponse final : // implements Message ---------------------------------------------- - inline PingResponse* New() const final { - return new PingResponse(); + inline DeactivateNodeResponse* New() const final { + return new DeactivateNodeResponse(); } - PingResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + DeactivateNodeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeactivateNodeResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeactivateNodeResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PingResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PingResponse& 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(PingResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.PingResponse"; + return "flwr.proto.DeactivateNodeResponse"; } protected: - explicit PingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit DeactivateNodeResponse(::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_; @@ -973,49 +968,36 @@ class PingResponse final : // accessors ------------------------------------------------------- - enum : int { - kSuccessFieldNumber = 1, - }; - // bool success = 1; - void clear_success(); - bool success() const; - void set_success(bool value); - private: - bool _internal_success() const; - void _internal_set_success(bool value); - public: - - // @@protoc_insertion_point(class_scope:flwr.proto.PingResponse) + // @@protoc_insertion_point(class_scope:flwr.proto.DeactivateNodeResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - bool success_; 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) */ { +class UnregisterNodeFleetRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.UnregisterNodeFleetRequest) */ { public: - inline PullTaskInsRequest() : PullTaskInsRequest(nullptr) {} - ~PullTaskInsRequest() override; - explicit constexpr PullTaskInsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline UnregisterNodeFleetRequest() : UnregisterNodeFleetRequest(nullptr) {} + ~UnregisterNodeFleetRequest() override; + explicit constexpr UnregisterNodeFleetRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - PullTaskInsRequest(const PullTaskInsRequest& from); - PullTaskInsRequest(PullTaskInsRequest&& from) noexcept - : PullTaskInsRequest() { + UnregisterNodeFleetRequest(const UnregisterNodeFleetRequest& from); + UnregisterNodeFleetRequest(UnregisterNodeFleetRequest&& from) noexcept + : UnregisterNodeFleetRequest() { *this = ::std::move(from); } - inline PullTaskInsRequest& operator=(const PullTaskInsRequest& from) { + inline UnregisterNodeFleetRequest& operator=(const UnregisterNodeFleetRequest& from) { CopyFrom(from); return *this; } - inline PullTaskInsRequest& operator=(PullTaskInsRequest&& from) noexcept { + inline UnregisterNodeFleetRequest& operator=(UnregisterNodeFleetRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1038,20 +1020,20 @@ class PullTaskInsRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PullTaskInsRequest& default_instance() { + static const UnregisterNodeFleetRequest& default_instance() { return *internal_default_instance(); } - static inline const PullTaskInsRequest* internal_default_instance() { - return reinterpret_cast( - &_PullTaskInsRequest_default_instance_); + static inline const UnregisterNodeFleetRequest* internal_default_instance() { + return reinterpret_cast( + &_UnregisterNodeFleetRequest_default_instance_); } static constexpr int kIndexInFileMessages = 6; - friend void swap(PullTaskInsRequest& a, PullTaskInsRequest& b) { + friend void swap(UnregisterNodeFleetRequest& a, UnregisterNodeFleetRequest& b) { a.Swap(&b); } - inline void Swap(PullTaskInsRequest* other) { + inline void Swap(UnregisterNodeFleetRequest* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); @@ -1059,7 +1041,7 @@ class PullTaskInsRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PullTaskInsRequest* other) { + void UnsafeArenaSwap(UnregisterNodeFleetRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1067,17 +1049,17 @@ class PullTaskInsRequest final : // implements Message ---------------------------------------------- - inline PullTaskInsRequest* New() const final { - return new PullTaskInsRequest(); + inline UnregisterNodeFleetRequest* New() const final { + return new UnregisterNodeFleetRequest(); } - PullTaskInsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + UnregisterNodeFleetRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PullTaskInsRequest& from); + void CopyFrom(const UnregisterNodeFleetRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PullTaskInsRequest& from); + void MergeFrom(const UnregisterNodeFleetRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1094,13 +1076,13 @@ class PullTaskInsRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PullTaskInsRequest* other); + void InternalSwap(UnregisterNodeFleetRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.PullTaskInsRequest"; + return "flwr.proto.UnregisterNodeFleetRequest"; } protected: - explicit PullTaskInsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit UnregisterNodeFleetRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); @@ -1117,83 +1099,47 @@ class PullTaskInsRequest final : // accessors ------------------------------------------------------- enum : int { - kTaskIdsFieldNumber = 2, - kNodeFieldNumber = 1, + kNodeIdFieldNumber = 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); + // uint64 node_id = 1; + void clear_node_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 node_id() const; + void set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - const ::flwr::proto::Node& _internal_node() const; - ::flwr::proto::Node* _internal_mutable_node(); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_node_id() const; + void _internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); 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) + // @@protoc_insertion_point(class_scope:flwr.proto.UnregisterNodeFleetRequest) 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_; + ::PROTOBUF_NAMESPACE_ID::uint64 node_id_; 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) */ { +class UnregisterNodeFleetResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:flwr.proto.UnregisterNodeFleetResponse) */ { public: - inline PullTaskInsResponse() : PullTaskInsResponse(nullptr) {} - ~PullTaskInsResponse() override; - explicit constexpr PullTaskInsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline UnregisterNodeFleetResponse() : UnregisterNodeFleetResponse(nullptr) {} + explicit constexpr UnregisterNodeFleetResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - PullTaskInsResponse(const PullTaskInsResponse& from); - PullTaskInsResponse(PullTaskInsResponse&& from) noexcept - : PullTaskInsResponse() { + UnregisterNodeFleetResponse(const UnregisterNodeFleetResponse& from); + UnregisterNodeFleetResponse(UnregisterNodeFleetResponse&& from) noexcept + : UnregisterNodeFleetResponse() { *this = ::std::move(from); } - inline PullTaskInsResponse& operator=(const PullTaskInsResponse& from) { + inline UnregisterNodeFleetResponse& operator=(const UnregisterNodeFleetResponse& from) { CopyFrom(from); return *this; } - inline PullTaskInsResponse& operator=(PullTaskInsResponse&& from) noexcept { + inline UnregisterNodeFleetResponse& operator=(UnregisterNodeFleetResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1216,20 +1162,20 @@ class PullTaskInsResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PullTaskInsResponse& default_instance() { + static const UnregisterNodeFleetResponse& default_instance() { return *internal_default_instance(); } - static inline const PullTaskInsResponse* internal_default_instance() { - return reinterpret_cast( - &_PullTaskInsResponse_default_instance_); + static inline const UnregisterNodeFleetResponse* internal_default_instance() { + return reinterpret_cast( + &_UnregisterNodeFleetResponse_default_instance_); } static constexpr int kIndexInFileMessages = 7; - friend void swap(PullTaskInsResponse& a, PullTaskInsResponse& b) { + friend void swap(UnregisterNodeFleetResponse& a, UnregisterNodeFleetResponse& b) { a.Swap(&b); } - inline void Swap(PullTaskInsResponse* other) { + inline void Swap(UnregisterNodeFleetResponse* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); @@ -1237,7 +1183,7 @@ class PullTaskInsResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PullTaskInsResponse* other) { + void UnsafeArenaSwap(UnregisterNodeFleetResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1245,44 +1191,30 @@ class PullTaskInsResponse final : // implements Message ---------------------------------------------- - inline PullTaskInsResponse* New() const final { - return new PullTaskInsResponse(); + inline UnregisterNodeFleetResponse* New() const final { + return new UnregisterNodeFleetResponse(); } - PullTaskInsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + UnregisterNodeFleetResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const UnregisterNodeFleetResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const UnregisterNodeFleetResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - 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"; + return "flwr.proto.UnregisterNodeFleetResponse"; } protected: - explicit PullTaskInsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit UnregisterNodeFleetResponse(::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_; @@ -1294,78 +1226,36 @@ class PullTaskInsResponse final : // 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) + // @@protoc_insertion_point(class_scope:flwr.proto.UnregisterNodeFleetResponse) 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) */ { +class PullMessagesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PullMessagesRequest) */ { public: - inline PushTaskResRequest() : PushTaskResRequest(nullptr) {} - ~PushTaskResRequest() override; - explicit constexpr PushTaskResRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PullMessagesRequest() : PullMessagesRequest(nullptr) {} + ~PullMessagesRequest() override; + explicit constexpr PullMessagesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - PushTaskResRequest(const PushTaskResRequest& from); - PushTaskResRequest(PushTaskResRequest&& from) noexcept - : PushTaskResRequest() { + PullMessagesRequest(const PullMessagesRequest& from); + PullMessagesRequest(PullMessagesRequest&& from) noexcept + : PullMessagesRequest() { *this = ::std::move(from); } - inline PushTaskResRequest& operator=(const PushTaskResRequest& from) { + inline PullMessagesRequest& operator=(const PullMessagesRequest& from) { CopyFrom(from); return *this; } - inline PushTaskResRequest& operator=(PushTaskResRequest&& from) noexcept { + inline PullMessagesRequest& operator=(PullMessagesRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1388,20 +1278,20 @@ class PushTaskResRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PushTaskResRequest& default_instance() { + static const PullMessagesRequest& default_instance() { return *internal_default_instance(); } - static inline const PushTaskResRequest* internal_default_instance() { - return reinterpret_cast( - &_PushTaskResRequest_default_instance_); + static inline const PullMessagesRequest* internal_default_instance() { + return reinterpret_cast( + &_PullMessagesRequest_default_instance_); } static constexpr int kIndexInFileMessages = 8; - friend void swap(PushTaskResRequest& a, PushTaskResRequest& b) { + friend void swap(PullMessagesRequest& a, PullMessagesRequest& b) { a.Swap(&b); } - inline void Swap(PushTaskResRequest* other) { + inline void Swap(PullMessagesRequest* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); @@ -1409,7 +1299,7 @@ class PushTaskResRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PushTaskResRequest* other) { + void UnsafeArenaSwap(PullMessagesRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1417,17 +1307,17 @@ class PushTaskResRequest final : // implements Message ---------------------------------------------- - inline PushTaskResRequest* New() const final { - return new PushTaskResRequest(); + inline PullMessagesRequest* New() const final { + return new PullMessagesRequest(); } - PushTaskResRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + PullMessagesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PushTaskResRequest& from); + void CopyFrom(const PullMessagesRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PushTaskResRequest& from); + void MergeFrom(const PullMessagesRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1444,13 +1334,13 @@ class PushTaskResRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PushTaskResRequest* other); + void InternalSwap(PullMessagesRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.PushTaskResRequest"; + return "flwr.proto.PullMessagesRequest"; } protected: - explicit PushTaskResRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PullMessagesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); @@ -1467,82 +1357,83 @@ class PushTaskResRequest final : // accessors ------------------------------------------------------- enum : int { - kTaskResListFieldNumber = 1, + kMessageIdsFieldNumber = 2, + kNodeFieldNumber = 1, }; - // repeated .flwr.proto.TaskRes task_res_list = 1; - int task_res_list_size() const; + // repeated string message_ids = 2; + int message_ids_size() const; + private: + int _internal_message_ids_size() const; + public: + void clear_message_ids(); + const std::string& message_ids(int index) const; + std::string* mutable_message_ids(int index); + void set_message_ids(int index, const std::string& value); + void set_message_ids(int index, std::string&& value); + void set_message_ids(int index, const char* value); + void set_message_ids(int index, const char* value, size_t size); + std::string* add_message_ids(); + void add_message_ids(const std::string& value); + void add_message_ids(std::string&& value); + void add_message_ids(const char* value); + void add_message_ids(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& message_ids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_message_ids(); + private: + const std::string& _internal_message_ids(int index) const; + std::string* _internal_add_message_ids(); + public: + + // .flwr.proto.Node node = 1; + bool has_node() const; private: - int _internal_task_res_list_size() const; + bool _internal_has_node() 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(); + 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::TaskRes& _internal_task_res_list(int index) const; - ::flwr::proto::TaskRes* _internal_add_task_res_list(); + const ::flwr::proto::Node& _internal_node() const; + ::flwr::proto::Node* _internal_mutable_node(); 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; + void unsafe_arena_set_allocated_node( + ::flwr::proto::Node* node); + ::flwr::proto::Node* unsafe_arena_release_node(); - // @@protoc_insertion_point(class_scope:flwr.proto.PushTaskResRequest) + // @@protoc_insertion_point(class_scope:flwr.proto.PullMessagesRequest) 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_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField message_ids_; + ::flwr::proto::Node* node_; 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) */ { +class PullMessagesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PullMessagesResponse) */ { public: - inline PushTaskResResponse() : PushTaskResResponse(nullptr) {} - ~PushTaskResResponse() override; - explicit constexpr PushTaskResResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PullMessagesResponse() : PullMessagesResponse(nullptr) {} + ~PullMessagesResponse() override; + explicit constexpr PullMessagesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - PushTaskResResponse(const PushTaskResResponse& from); - PushTaskResResponse(PushTaskResResponse&& from) noexcept - : PushTaskResResponse() { + PullMessagesResponse(const PullMessagesResponse& from); + PullMessagesResponse(PullMessagesResponse&& from) noexcept + : PullMessagesResponse() { *this = ::std::move(from); } - inline PushTaskResResponse& operator=(const PushTaskResResponse& from) { + inline PullMessagesResponse& operator=(const PullMessagesResponse& from) { CopyFrom(from); return *this; } - inline PushTaskResResponse& operator=(PushTaskResResponse&& from) noexcept { + inline PullMessagesResponse& operator=(PullMessagesResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1565,20 +1456,20 @@ class PushTaskResResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PushTaskResResponse& default_instance() { + static const PullMessagesResponse& default_instance() { return *internal_default_instance(); } - static inline const PushTaskResResponse* internal_default_instance() { - return reinterpret_cast( - &_PushTaskResResponse_default_instance_); + static inline const PullMessagesResponse* internal_default_instance() { + return reinterpret_cast( + &_PullMessagesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 9; - friend void swap(PushTaskResResponse& a, PushTaskResResponse& b) { + friend void swap(PullMessagesResponse& a, PullMessagesResponse& b) { a.Swap(&b); } - inline void Swap(PushTaskResResponse* other) { + inline void Swap(PullMessagesResponse* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); @@ -1586,7 +1477,7 @@ class PushTaskResResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PushTaskResResponse* other) { + void UnsafeArenaSwap(PullMessagesResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1594,17 +1485,17 @@ class PushTaskResResponse final : // implements Message ---------------------------------------------- - inline PushTaskResResponse* New() const final { - return new PushTaskResResponse(); + inline PullMessagesResponse* New() const final { + return new PullMessagesResponse(); } - PushTaskResResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + PullMessagesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PushTaskResResponse& from); + void CopyFrom(const PullMessagesResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PushTaskResResponse& from); + void MergeFrom(const PullMessagesResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1621,13 +1512,13 @@ class PushTaskResResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PushTaskResResponse* other); + void InternalSwap(PullMessagesResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.PushTaskResResponse"; + return "flwr.proto.PullMessagesResponse"; } protected: - explicit PushTaskResResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PullMessagesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); @@ -1641,29 +1532,48 @@ class PushTaskResResponse final : // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- enum : int { - kResultsFieldNumber = 2, + kMessagesListFieldNumber = 2, + kMessageObjectTreesFieldNumber = 3, kReconnectFieldNumber = 1, }; - // map results = 2; - int results_size() const; + // repeated .flwr.proto.Message messages_list = 2; + int messages_list_size() const; private: - int _internal_results_size() const; + int _internal_messages_list_size() const; public: - void clear_results(); + void clear_messages_list(); + ::flwr::proto::Message* mutable_messages_list(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Message >* + mutable_messages_list(); 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(); + const ::flwr::proto::Message& _internal_messages_list(int index) const; + ::flwr::proto::Message* _internal_add_messages_list(); 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(); + const ::flwr::proto::Message& messages_list(int index) const; + ::flwr::proto::Message* add_messages_list(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Message >& + messages_list() const; + + // repeated .flwr.proto.ObjectTree message_object_trees = 3; + int message_object_trees_size() const; + private: + int _internal_message_object_trees_size() const; + public: + void clear_message_object_trees(); + ::flwr::proto::ObjectTree* mutable_message_object_trees(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree >* + mutable_message_object_trees(); + private: + const ::flwr::proto::ObjectTree& _internal_message_object_trees(int index) const; + ::flwr::proto::ObjectTree* _internal_add_message_object_trees(); + public: + const ::flwr::proto::ObjectTree& message_object_trees(int index) const; + ::flwr::proto::ObjectTree* add_message_object_trees(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree >& + message_object_trees() const; // .flwr.proto.Reconnect reconnect = 1; bool has_reconnect() const; @@ -1683,42 +1593,39 @@ class PushTaskResResponse final : ::flwr::proto::Reconnect* reconnect); ::flwr::proto::Reconnect* unsafe_arena_release_reconnect(); - // @@protoc_insertion_point(class_scope:flwr.proto.PushTaskResResponse) + // @@protoc_insertion_point(class_scope:flwr.proto.PullMessagesResponse) 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_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Message > messages_list_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree > message_object_trees_; ::flwr::proto::Reconnect* reconnect_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; }; // ------------------------------------------------------------------- -class Run final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Run) */ { +class PushMessagesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PushMessagesRequest) */ { public: - inline Run() : Run(nullptr) {} - ~Run() override; - explicit constexpr Run(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PushMessagesRequest() : PushMessagesRequest(nullptr) {} + ~PushMessagesRequest() override; + explicit constexpr PushMessagesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - Run(const Run& from); - Run(Run&& from) noexcept - : Run() { + PushMessagesRequest(const PushMessagesRequest& from); + PushMessagesRequest(PushMessagesRequest&& from) noexcept + : PushMessagesRequest() { *this = ::std::move(from); } - inline Run& operator=(const Run& from) { + inline PushMessagesRequest& operator=(const PushMessagesRequest& from) { CopyFrom(from); return *this; } - inline Run& operator=(Run&& from) noexcept { + inline PushMessagesRequest& operator=(PushMessagesRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1741,20 +1648,20 @@ class Run final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Run& default_instance() { + static const PushMessagesRequest& default_instance() { return *internal_default_instance(); } - static inline const Run* internal_default_instance() { - return reinterpret_cast( - &_Run_default_instance_); + static inline const PushMessagesRequest* internal_default_instance() { + return reinterpret_cast( + &_PushMessagesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 10; - friend void swap(Run& a, Run& b) { + friend void swap(PushMessagesRequest& a, PushMessagesRequest& b) { a.Swap(&b); } - inline void Swap(Run* other) { + inline void Swap(PushMessagesRequest* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); @@ -1762,7 +1669,7 @@ class Run final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Run* other) { + void UnsafeArenaSwap(PushMessagesRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1770,17 +1677,17 @@ class Run final : // implements Message ---------------------------------------------- - inline Run* New() const final { - return new Run(); + inline PushMessagesRequest* New() const final { + return new PushMessagesRequest(); } - Run* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + PushMessagesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Run& from); + void CopyFrom(const PushMessagesRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const Run& from); + void MergeFrom(const PushMessagesRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1797,13 +1704,13 @@ class Run final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(Run* other); + void InternalSwap(PushMessagesRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.Run"; + return "flwr.proto.PushMessagesRequest"; } protected: - explicit Run(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PushMessagesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); @@ -1820,80 +1727,146 @@ class Run final : // accessors ------------------------------------------------------- enum : int { - kFabIdFieldNumber = 2, - kFabVersionFieldNumber = 3, - kRunIdFieldNumber = 1, + kMessagesListFieldNumber = 2, + kMessageObjectTreesFieldNumber = 3, + kClientappRuntimeListFieldNumber = 4, + kNodeFieldNumber = 1, }; - // string fab_id = 2; - void clear_fab_id(); - const std::string& fab_id() const; - template - void set_fab_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_fab_id(); - PROTOBUF_MUST_USE_RESULT std::string* release_fab_id(); - void set_allocated_fab_id(std::string* fab_id); - private: - const std::string& _internal_fab_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fab_id(const std::string& value); - std::string* _internal_mutable_fab_id(); + // repeated .flwr.proto.Message messages_list = 2; + int messages_list_size() const; + private: + int _internal_messages_list_size() const; + public: + void clear_messages_list(); + ::flwr::proto::Message* mutable_messages_list(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Message >* + mutable_messages_list(); + private: + const ::flwr::proto::Message& _internal_messages_list(int index) const; + ::flwr::proto::Message* _internal_add_messages_list(); public: + const ::flwr::proto::Message& messages_list(int index) const; + ::flwr::proto::Message* add_messages_list(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Message >& + messages_list() const; - // string fab_version = 3; - void clear_fab_version(); - const std::string& fab_version() const; - template - void set_fab_version(ArgT0&& arg0, ArgT... args); - std::string* mutable_fab_version(); - PROTOBUF_MUST_USE_RESULT std::string* release_fab_version(); - void set_allocated_fab_version(std::string* fab_version); - private: - const std::string& _internal_fab_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fab_version(const std::string& value); - std::string* _internal_mutable_fab_version(); + // repeated .flwr.proto.ObjectTree message_object_trees = 3; + int message_object_trees_size() const; + private: + int _internal_message_object_trees_size() const; + public: + void clear_message_object_trees(); + ::flwr::proto::ObjectTree* mutable_message_object_trees(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree >* + mutable_message_object_trees(); + private: + const ::flwr::proto::ObjectTree& _internal_message_object_trees(int index) const; + ::flwr::proto::ObjectTree* _internal_add_message_object_trees(); + public: + const ::flwr::proto::ObjectTree& message_object_trees(int index) const; + ::flwr::proto::ObjectTree* add_message_object_trees(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree >& + message_object_trees() const; + + // repeated double clientapp_runtime_list = 4; + int clientapp_runtime_list_size() const; + private: + int _internal_clientapp_runtime_list_size() const; + public: + void clear_clientapp_runtime_list(); + private: + double _internal_clientapp_runtime_list(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_clientapp_runtime_list() const; + void _internal_add_clientapp_runtime_list(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_clientapp_runtime_list(); public: + double clientapp_runtime_list(int index) const; + void set_clientapp_runtime_list(int index, double value); + void add_clientapp_runtime_list(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + clientapp_runtime_list() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_clientapp_runtime_list(); - // sint64 run_id = 1; - void clear_run_id(); - ::PROTOBUF_NAMESPACE_ID::int64 run_id() const; - void set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value); + // .flwr.proto.Node node = 1; + bool has_node() const; private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_run_id() const; - void _internal_set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value); + 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.Run) + // @@protoc_insertion_point(class_scope:flwr.proto.PushMessagesRequest) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fab_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fab_version_; - ::PROTOBUF_NAMESPACE_ID::int64 run_id_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Message > messages_list_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree > message_object_trees_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > clientapp_runtime_list_; + ::flwr::proto::Node* node_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; }; // ------------------------------------------------------------------- -class GetRunRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.GetRunRequest) */ { +class PushMessagesResponse_ResultsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + PushMessagesResponse_ResultsEntry_DoNotUse(); + explicit constexpr PushMessagesResponse_ResultsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PushMessagesResponse_ResultsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const PushMessagesResponse_ResultsEntry_DoNotUse& other); + static const PushMessagesResponse_ResultsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_PushMessagesResponse_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.PushMessagesResponse.ResultsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class PushMessagesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PushMessagesResponse) */ { public: - inline GetRunRequest() : GetRunRequest(nullptr) {} - ~GetRunRequest() override; - explicit constexpr GetRunRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PushMessagesResponse() : PushMessagesResponse(nullptr) {} + ~PushMessagesResponse() override; + explicit constexpr PushMessagesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - GetRunRequest(const GetRunRequest& from); - GetRunRequest(GetRunRequest&& from) noexcept - : GetRunRequest() { + PushMessagesResponse(const PushMessagesResponse& from); + PushMessagesResponse(PushMessagesResponse&& from) noexcept + : PushMessagesResponse() { *this = ::std::move(from); } - inline GetRunRequest& operator=(const GetRunRequest& from) { + inline PushMessagesResponse& operator=(const PushMessagesResponse& from) { CopyFrom(from); return *this; } - inline GetRunRequest& operator=(GetRunRequest&& from) noexcept { + inline PushMessagesResponse& operator=(PushMessagesResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1916,20 +1889,20 @@ class GetRunRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRunRequest& default_instance() { + static const PushMessagesResponse& default_instance() { return *internal_default_instance(); } - static inline const GetRunRequest* internal_default_instance() { - return reinterpret_cast( - &_GetRunRequest_default_instance_); + static inline const PushMessagesResponse* internal_default_instance() { + return reinterpret_cast( + &_PushMessagesResponse_default_instance_); } static constexpr int kIndexInFileMessages = 12; - friend void swap(GetRunRequest& a, GetRunRequest& b) { + friend void swap(PushMessagesResponse& a, PushMessagesResponse& b) { a.Swap(&b); } - inline void Swap(GetRunRequest* other) { + inline void Swap(PushMessagesResponse* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); @@ -1937,7 +1910,7 @@ class GetRunRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRunRequest* other) { + void UnsafeArenaSwap(PushMessagesResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1945,17 +1918,17 @@ class GetRunRequest final : // implements Message ---------------------------------------------- - inline GetRunRequest* New() const final { - return new GetRunRequest(); + inline PushMessagesResponse* New() const final { + return new PushMessagesResponse(); } - GetRunRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + PushMessagesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GetRunRequest& from); + void CopyFrom(const PushMessagesResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GetRunRequest& from); + void MergeFrom(const PushMessagesResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1972,13 +1945,13 @@ class GetRunRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetRunRequest* other); + void InternalSwap(PushMessagesResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.GetRunRequest"; + return "flwr.proto.PushMessagesResponse"; } protected: - explicit GetRunRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PushMessagesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); @@ -1992,180 +1965,87 @@ class GetRunRequest final : // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kRunIdFieldNumber = 1, + kResultsFieldNumber = 2, + kObjectsToPushFieldNumber = 3, + kReconnectFieldNumber = 1, }; - // sint64 run_id = 1; - void clear_run_id(); - ::PROTOBUF_NAMESPACE_ID::int64 run_id() const; - void set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value); + // map results = 2; + int results_size() const; private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_run_id() const; - void _internal_set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value); + int _internal_results_size() const; public: - - // @@protoc_insertion_point(class_scope:flwr.proto.GetRunRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::int64 run_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; -}; -// ------------------------------------------------------------------- - -class GetRunResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.GetRunResponse) */ { - public: - inline GetRunResponse() : GetRunResponse(nullptr) {} - ~GetRunResponse() override; - explicit constexpr GetRunResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GetRunResponse(const GetRunResponse& from); - GetRunResponse(GetRunResponse&& from) noexcept - : GetRunResponse() { - *this = ::std::move(from); - } - - inline GetRunResponse& operator=(const GetRunResponse& from) { - CopyFrom(from); - return *this; - } - inline GetRunResponse& operator=(GetRunResponse&& 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 GetRunResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetRunResponse* internal_default_instance() { - return reinterpret_cast( - &_GetRunResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(GetRunResponse& a, GetRunResponse& b) { - a.Swap(&b); - } - inline void Swap(GetRunResponse* other) { - if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetRunResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GetRunResponse* New() const final { - return new GetRunResponse(); - } - - GetRunResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GetRunResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GetRunResponse& from); + void clear_results(); private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + 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: - 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(); } + 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(); + // repeated string objects_to_push = 3; + int objects_to_push_size() const; private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetRunResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.GetRunResponse"; - } - protected: - explicit GetRunResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + int _internal_objects_to_push_size() const; + public: + void clear_objects_to_push(); + const std::string& objects_to_push(int index) const; + std::string* mutable_objects_to_push(int index); + void set_objects_to_push(int index, const std::string& value); + void set_objects_to_push(int index, std::string&& value); + void set_objects_to_push(int index, const char* value); + void set_objects_to_push(int index, const char* value, size_t size); + std::string* add_objects_to_push(); + void add_objects_to_push(const std::string& value); + void add_objects_to_push(std::string&& value); + void add_objects_to_push(const char* value); + void add_objects_to_push(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& objects_to_push() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_objects_to_push(); + private: + const std::string& _internal_objects_to_push(int index) const; + std::string* _internal_add_objects_to_push(); 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 { - kRunFieldNumber = 1, - }; - // .flwr.proto.Run run = 1; - bool has_run() const; + // .flwr.proto.Reconnect reconnect = 1; + bool has_reconnect() const; private: - bool _internal_has_run() const; + bool _internal_has_reconnect() const; public: - void clear_run(); - const ::flwr::proto::Run& run() const; - PROTOBUF_MUST_USE_RESULT ::flwr::proto::Run* release_run(); - ::flwr::proto::Run* mutable_run(); - void set_allocated_run(::flwr::proto::Run* run); - private: - const ::flwr::proto::Run& _internal_run() const; - ::flwr::proto::Run* _internal_mutable_run(); + 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_run( - ::flwr::proto::Run* run); - ::flwr::proto::Run* unsafe_arena_release_run(); + void unsafe_arena_set_allocated_reconnect( + ::flwr::proto::Reconnect* reconnect); + ::flwr::proto::Reconnect* unsafe_arena_release_reconnect(); - // @@protoc_insertion_point(class_scope:flwr.proto.GetRunResponse) + // @@protoc_insertion_point(class_scope:flwr.proto.PushMessagesResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::flwr::proto::Run* run_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + PushMessagesResponse_ResultsEntry_DoNotUse, + std::string, ::PROTOBUF_NAMESPACE_ID::uint32, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32> results_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField objects_to_push_; + ::flwr::proto::Reconnect* reconnect_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; }; @@ -2219,7 +2099,7 @@ class Reconnect final : &_Reconnect_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 13; friend void swap(Reconnect& a, Reconnect& b) { a.Swap(&b); @@ -2321,367 +2201,249 @@ class Reconnect final : #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// CreateNodeRequest +// RegisterNodeFleetRequest -// double ping_interval = 1; -inline void CreateNodeRequest::clear_ping_interval() { - ping_interval_ = 0; +// bytes public_key = 1; +inline void RegisterNodeFleetRequest::clear_public_key() { + public_key_.ClearToEmpty(); } -inline double CreateNodeRequest::_internal_ping_interval() const { - return ping_interval_; +inline const std::string& RegisterNodeFleetRequest::public_key() const { + // @@protoc_insertion_point(field_get:flwr.proto.RegisterNodeFleetRequest.public_key) + return _internal_public_key(); } -inline double CreateNodeRequest::ping_interval() const { - // @@protoc_insertion_point(field_get:flwr.proto.CreateNodeRequest.ping_interval) - return _internal_ping_interval(); -} -inline void CreateNodeRequest::_internal_set_ping_interval(double value) { - - ping_interval_ = value; -} -inline void CreateNodeRequest::set_ping_interval(double value) { - _internal_set_ping_interval(value); - // @@protoc_insertion_point(field_set:flwr.proto.CreateNodeRequest.ping_interval) -} - -// ------------------------------------------------------------------- - -// 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(); +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterNodeFleetRequest::set_public_key(ArgT0&& arg0, ArgT... args) { + + public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.RegisterNodeFleetRequest.public_key) } -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 std::string* RegisterNodeFleetRequest::mutable_public_key() { + std::string* _s = _internal_mutable_public_key(); + // @@protoc_insertion_point(field_mutable:flwr.proto.RegisterNodeFleetRequest.public_key) + return _s; } -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 const std::string& RegisterNodeFleetRequest::_internal_public_key() const { + return public_key_.Get(); } -inline ::flwr::proto::Node* CreateNodeResponse::unsafe_arena_release_node() { - // @@protoc_insertion_point(field_release:flwr.proto.CreateNodeResponse.node) +inline void RegisterNodeFleetRequest::_internal_set_public_key(const std::string& value) { - ::flwr::proto::Node* temp = node_; - node_ = nullptr; - return temp; + public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } -inline ::flwr::proto::Node* CreateNodeResponse::_internal_mutable_node() { +inline std::string* RegisterNodeFleetRequest::_internal_mutable_public_key() { - if (node_ == nullptr) { - auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); - node_ = p; - } - return node_; + return public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } -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 std::string* RegisterNodeFleetRequest::release_public_key() { + // @@protoc_insertion_point(field_release:flwr.proto.RegisterNodeFleetRequest.public_key) + return public_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } -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); - } +inline void RegisterNodeFleetRequest::set_allocated_public_key(std::string* public_key) { + if (public_key != nullptr) { } else { } - node_ = node; - // @@protoc_insertion_point(field_set_allocated:flwr.proto.CreateNodeResponse.node) + public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.RegisterNodeFleetRequest.public_key) } // ------------------------------------------------------------------- -// DeleteNodeRequest +// RegisterNodeFleetResponse -// .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) +// uint64 node_id = 1; +inline void RegisterNodeFleetResponse::clear_node_id() { + node_id_ = uint64_t{0u}; } -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 ::PROTOBUF_NAMESPACE_ID::uint64 RegisterNodeFleetResponse::_internal_node_id() const { + return node_id_; } -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 ::PROTOBUF_NAMESPACE_ID::uint64 RegisterNodeFleetResponse::node_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.RegisterNodeFleetResponse.node_id) + return _internal_node_id(); } -inline ::flwr::proto::Node* DeleteNodeRequest::_internal_mutable_node() { +inline void RegisterNodeFleetResponse::_internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { - 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 - -// ------------------------------------------------------------------- - -// PingRequest - -// .flwr.proto.Node node = 1; -inline bool PingRequest::_internal_has_node() const { - return this != internal_default_instance() && node_ != nullptr; -} -inline bool PingRequest::has_node() const { - return _internal_has_node(); + node_id_ = value; } -inline const ::flwr::proto::Node& PingRequest::_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& PingRequest::node() const { - // @@protoc_insertion_point(field_get:flwr.proto.PingRequest.node) - return _internal_node(); -} -inline void PingRequest::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.PingRequest.node) +inline void RegisterNodeFleetResponse::set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_node_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.RegisterNodeFleetResponse.node_id) } -inline ::flwr::proto::Node* PingRequest::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; + +// ------------------------------------------------------------------- + +// ActivateNodeRequest + +// bytes public_key = 1; +inline void ActivateNodeRequest::clear_public_key() { + public_key_.ClearToEmpty(); +} +inline const std::string& ActivateNodeRequest::public_key() const { + // @@protoc_insertion_point(field_get:flwr.proto.ActivateNodeRequest.public_key) + return _internal_public_key(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ActivateNodeRequest::set_public_key(ArgT0&& arg0, ArgT... args) { + + public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.ActivateNodeRequest.public_key) +} +inline std::string* ActivateNodeRequest::mutable_public_key() { + std::string* _s = _internal_mutable_public_key(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ActivateNodeRequest.public_key) + return _s; +} +inline const std::string& ActivateNodeRequest::_internal_public_key() const { + return public_key_.Get(); } -inline ::flwr::proto::Node* PingRequest::unsafe_arena_release_node() { - // @@protoc_insertion_point(field_release:flwr.proto.PingRequest.node) +inline void ActivateNodeRequest::_internal_set_public_key(const std::string& value) { - ::flwr::proto::Node* temp = node_; - node_ = nullptr; - return temp; + public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } -inline ::flwr::proto::Node* PingRequest::_internal_mutable_node() { +inline std::string* ActivateNodeRequest::_internal_mutable_public_key() { - if (node_ == nullptr) { - auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); - node_ = p; - } - return node_; + return public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } -inline ::flwr::proto::Node* PingRequest::mutable_node() { - ::flwr::proto::Node* _msg = _internal_mutable_node(); - // @@protoc_insertion_point(field_mutable:flwr.proto.PingRequest.node) - return _msg; +inline std::string* ActivateNodeRequest::release_public_key() { + // @@protoc_insertion_point(field_release:flwr.proto.ActivateNodeRequest.public_key) + return public_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } -inline void PingRequest::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); - } +inline void ActivateNodeRequest::set_allocated_public_key(std::string* public_key) { + if (public_key != nullptr) { } else { } - node_ = node; - // @@protoc_insertion_point(field_set_allocated:flwr.proto.PingRequest.node) + public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ActivateNodeRequest.public_key) +} + +// double heartbeat_interval = 2; +inline void ActivateNodeRequest::clear_heartbeat_interval() { + heartbeat_interval_ = 0; +} +inline double ActivateNodeRequest::_internal_heartbeat_interval() const { + return heartbeat_interval_; +} +inline double ActivateNodeRequest::heartbeat_interval() const { + // @@protoc_insertion_point(field_get:flwr.proto.ActivateNodeRequest.heartbeat_interval) + return _internal_heartbeat_interval(); +} +inline void ActivateNodeRequest::_internal_set_heartbeat_interval(double value) { + + heartbeat_interval_ = value; +} +inline void ActivateNodeRequest::set_heartbeat_interval(double value) { + _internal_set_heartbeat_interval(value); + // @@protoc_insertion_point(field_set:flwr.proto.ActivateNodeRequest.heartbeat_interval) +} + +// ------------------------------------------------------------------- + +// ActivateNodeResponse + +// uint64 node_id = 1; +inline void ActivateNodeResponse::clear_node_id() { + node_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 ActivateNodeResponse::_internal_node_id() const { + return node_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 ActivateNodeResponse::node_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.ActivateNodeResponse.node_id) + return _internal_node_id(); +} +inline void ActivateNodeResponse::_internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + node_id_ = value; +} +inline void ActivateNodeResponse::set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_node_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.ActivateNodeResponse.node_id) } -// double ping_interval = 2; -inline void PingRequest::clear_ping_interval() { - ping_interval_ = 0; +// ------------------------------------------------------------------- + +// DeactivateNodeRequest + +// uint64 node_id = 1; +inline void DeactivateNodeRequest::clear_node_id() { + node_id_ = uint64_t{0u}; } -inline double PingRequest::_internal_ping_interval() const { - return ping_interval_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 DeactivateNodeRequest::_internal_node_id() const { + return node_id_; } -inline double PingRequest::ping_interval() const { - // @@protoc_insertion_point(field_get:flwr.proto.PingRequest.ping_interval) - return _internal_ping_interval(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 DeactivateNodeRequest::node_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.DeactivateNodeRequest.node_id) + return _internal_node_id(); } -inline void PingRequest::_internal_set_ping_interval(double value) { +inline void DeactivateNodeRequest::_internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { - ping_interval_ = value; + node_id_ = value; } -inline void PingRequest::set_ping_interval(double value) { - _internal_set_ping_interval(value); - // @@protoc_insertion_point(field_set:flwr.proto.PingRequest.ping_interval) +inline void DeactivateNodeRequest::set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_node_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.DeactivateNodeRequest.node_id) } // ------------------------------------------------------------------- -// PingResponse +// DeactivateNodeResponse + +// ------------------------------------------------------------------- + +// UnregisterNodeFleetRequest -// bool success = 1; -inline void PingResponse::clear_success() { - success_ = false; +// uint64 node_id = 1; +inline void UnregisterNodeFleetRequest::clear_node_id() { + node_id_ = uint64_t{0u}; } -inline bool PingResponse::_internal_success() const { - return success_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 UnregisterNodeFleetRequest::_internal_node_id() const { + return node_id_; } -inline bool PingResponse::success() const { - // @@protoc_insertion_point(field_get:flwr.proto.PingResponse.success) - return _internal_success(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 UnregisterNodeFleetRequest::node_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.UnregisterNodeFleetRequest.node_id) + return _internal_node_id(); } -inline void PingResponse::_internal_set_success(bool value) { +inline void UnregisterNodeFleetRequest::_internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { - success_ = value; + node_id_ = value; } -inline void PingResponse::set_success(bool value) { - _internal_set_success(value); - // @@protoc_insertion_point(field_set:flwr.proto.PingResponse.success) +inline void UnregisterNodeFleetRequest::set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_node_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.UnregisterNodeFleetRequest.node_id) } // ------------------------------------------------------------------- -// PullTaskInsRequest +// UnregisterNodeFleetResponse + +// ------------------------------------------------------------------- + +// PullMessagesRequest // .flwr.proto.Node node = 1; -inline bool PullTaskInsRequest::_internal_has_node() const { +inline bool PullMessagesRequest::_internal_has_node() const { return this != internal_default_instance() && node_ != nullptr; } -inline bool PullTaskInsRequest::has_node() const { +inline bool PullMessagesRequest::has_node() const { return _internal_has_node(); } -inline const ::flwr::proto::Node& PullTaskInsRequest::_internal_node() const { +inline const ::flwr::proto::Node& PullMessagesRequest::_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) +inline const ::flwr::proto::Node& PullMessagesRequest::node() const { + // @@protoc_insertion_point(field_get:flwr.proto.PullMessagesRequest.node) return _internal_node(); } -inline void PullTaskInsRequest::unsafe_arena_set_allocated_node( +inline void PullMessagesRequest::unsafe_arena_set_allocated_node( ::flwr::proto::Node* node) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(node_); @@ -2692,9 +2454,9 @@ inline void PullTaskInsRequest::unsafe_arena_set_allocated_node( } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.PullTaskInsRequest.node) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.PullMessagesRequest.node) } -inline ::flwr::proto::Node* PullTaskInsRequest::release_node() { +inline ::flwr::proto::Node* PullMessagesRequest::release_node() { ::flwr::proto::Node* temp = node_; node_ = nullptr; @@ -2709,14 +2471,14 @@ inline ::flwr::proto::Node* PullTaskInsRequest::release_node() { #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) +inline ::flwr::proto::Node* PullMessagesRequest::unsafe_arena_release_node() { + // @@protoc_insertion_point(field_release:flwr.proto.PullMessagesRequest.node) ::flwr::proto::Node* temp = node_; node_ = nullptr; return temp; } -inline ::flwr::proto::Node* PullTaskInsRequest::_internal_mutable_node() { +inline ::flwr::proto::Node* PullMessagesRequest::_internal_mutable_node() { if (node_ == nullptr) { auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); @@ -2724,12 +2486,12 @@ inline ::flwr::proto::Node* PullTaskInsRequest::_internal_mutable_node() { } return node_; } -inline ::flwr::proto::Node* PullTaskInsRequest::mutable_node() { +inline ::flwr::proto::Node* PullMessagesRequest::mutable_node() { ::flwr::proto::Node* _msg = _internal_mutable_node(); - // @@protoc_insertion_point(field_mutable:flwr.proto.PullTaskInsRequest.node) + // @@protoc_insertion_point(field_mutable:flwr.proto.PullMessagesRequest.node) return _msg; } -inline void PullTaskInsRequest::set_allocated_node(::flwr::proto::Node* node) { +inline void PullMessagesRequest::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_); @@ -2748,111 +2510,111 @@ inline void PullTaskInsRequest::set_allocated_node(::flwr::proto::Node* node) { } node_ = node; - // @@protoc_insertion_point(field_set_allocated:flwr.proto.PullTaskInsRequest.node) + // @@protoc_insertion_point(field_set_allocated:flwr.proto.PullMessagesRequest.node) } -// repeated string task_ids = 2; -inline int PullTaskInsRequest::_internal_task_ids_size() const { - return task_ids_.size(); +// repeated string message_ids = 2; +inline int PullMessagesRequest::_internal_message_ids_size() const { + return message_ids_.size(); } -inline int PullTaskInsRequest::task_ids_size() const { - return _internal_task_ids_size(); +inline int PullMessagesRequest::message_ids_size() const { + return _internal_message_ids_size(); } -inline void PullTaskInsRequest::clear_task_ids() { - task_ids_.Clear(); +inline void PullMessagesRequest::clear_message_ids() { + message_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) +inline std::string* PullMessagesRequest::add_message_ids() { + std::string* _s = _internal_add_message_ids(); + // @@protoc_insertion_point(field_add_mutable:flwr.proto.PullMessagesRequest.message_ids) return _s; } -inline const std::string& PullTaskInsRequest::_internal_task_ids(int index) const { - return task_ids_.Get(index); +inline const std::string& PullMessagesRequest::_internal_message_ids(int index) const { + return message_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 const std::string& PullMessagesRequest::message_ids(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.PullMessagesRequest.message_ids) + return _internal_message_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 std::string* PullMessagesRequest::mutable_message_ids(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.PullMessagesRequest.message_ids) + return message_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 PullMessagesRequest::set_message_ids(int index, const std::string& value) { + message_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:flwr.proto.PullMessagesRequest.message_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 PullMessagesRequest::set_message_ids(int index, std::string&& value) { + message_ids_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:flwr.proto.PullMessagesRequest.message_ids) } -inline void PullTaskInsRequest::set_task_ids(int index, const char* value) { +inline void PullMessagesRequest::set_message_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) + message_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flwr.proto.PullMessagesRequest.message_ids) } -inline void PullTaskInsRequest::set_task_ids(int index, const char* value, size_t size) { - task_ids_.Mutable(index)->assign( +inline void PullMessagesRequest::set_message_ids(int index, const char* value, size_t size) { + message_ids_.Mutable(index)->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flwr.proto.PullTaskInsRequest.task_ids) + // @@protoc_insertion_point(field_set_pointer:flwr.proto.PullMessagesRequest.message_ids) } -inline std::string* PullTaskInsRequest::_internal_add_task_ids() { - return task_ids_.Add(); +inline std::string* PullMessagesRequest::_internal_add_message_ids() { + return message_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 PullMessagesRequest::add_message_ids(const std::string& value) { + message_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flwr.proto.PullMessagesRequest.message_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 PullMessagesRequest::add_message_ids(std::string&& value) { + message_ids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flwr.proto.PullMessagesRequest.message_ids) } -inline void PullTaskInsRequest::add_task_ids(const char* value) { +inline void PullMessagesRequest::add_message_ids(const char* value) { GOOGLE_DCHECK(value != nullptr); - task_ids_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flwr.proto.PullTaskInsRequest.task_ids) + message_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flwr.proto.PullMessagesRequest.message_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 void PullMessagesRequest::add_message_ids(const char* value, size_t size) { + message_ids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flwr.proto.PullMessagesRequest.message_ids) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -PullTaskInsRequest::task_ids() const { - // @@protoc_insertion_point(field_list:flwr.proto.PullTaskInsRequest.task_ids) - return task_ids_; +PullMessagesRequest::message_ids() const { + // @@protoc_insertion_point(field_list:flwr.proto.PullMessagesRequest.message_ids) + return message_ids_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -PullTaskInsRequest::mutable_task_ids() { - // @@protoc_insertion_point(field_mutable_list:flwr.proto.PullTaskInsRequest.task_ids) - return &task_ids_; +PullMessagesRequest::mutable_message_ids() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.PullMessagesRequest.message_ids) + return &message_ids_; } // ------------------------------------------------------------------- -// PullTaskInsResponse +// PullMessagesResponse // .flwr.proto.Reconnect reconnect = 1; -inline bool PullTaskInsResponse::_internal_has_reconnect() const { +inline bool PullMessagesResponse::_internal_has_reconnect() const { return this != internal_default_instance() && reconnect_ != nullptr; } -inline bool PullTaskInsResponse::has_reconnect() const { +inline bool PullMessagesResponse::has_reconnect() const { return _internal_has_reconnect(); } -inline void PullTaskInsResponse::clear_reconnect() { +inline void PullMessagesResponse::clear_reconnect() { if (GetArenaForAllocation() == nullptr && reconnect_ != nullptr) { delete reconnect_; } reconnect_ = nullptr; } -inline const ::flwr::proto::Reconnect& PullTaskInsResponse::_internal_reconnect() const { +inline const ::flwr::proto::Reconnect& PullMessagesResponse::_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) +inline const ::flwr::proto::Reconnect& PullMessagesResponse::reconnect() const { + // @@protoc_insertion_point(field_get:flwr.proto.PullMessagesResponse.reconnect) return _internal_reconnect(); } -inline void PullTaskInsResponse::unsafe_arena_set_allocated_reconnect( +inline void PullMessagesResponse::unsafe_arena_set_allocated_reconnect( ::flwr::proto::Reconnect* reconnect) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(reconnect_); @@ -2863,9 +2625,9 @@ inline void PullTaskInsResponse::unsafe_arena_set_allocated_reconnect( } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.PullTaskInsResponse.reconnect) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.PullMessagesResponse.reconnect) } -inline ::flwr::proto::Reconnect* PullTaskInsResponse::release_reconnect() { +inline ::flwr::proto::Reconnect* PullMessagesResponse::release_reconnect() { ::flwr::proto::Reconnect* temp = reconnect_; reconnect_ = nullptr; @@ -2880,14 +2642,14 @@ inline ::flwr::proto::Reconnect* PullTaskInsResponse::release_reconnect() { #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) +inline ::flwr::proto::Reconnect* PullMessagesResponse::unsafe_arena_release_reconnect() { + // @@protoc_insertion_point(field_release:flwr.proto.PullMessagesResponse.reconnect) ::flwr::proto::Reconnect* temp = reconnect_; reconnect_ = nullptr; return temp; } -inline ::flwr::proto::Reconnect* PullTaskInsResponse::_internal_mutable_reconnect() { +inline ::flwr::proto::Reconnect* PullMessagesResponse::_internal_mutable_reconnect() { if (reconnect_ == nullptr) { auto* p = CreateMaybeMessage<::flwr::proto::Reconnect>(GetArenaForAllocation()); @@ -2895,12 +2657,12 @@ inline ::flwr::proto::Reconnect* PullTaskInsResponse::_internal_mutable_reconnec } return reconnect_; } -inline ::flwr::proto::Reconnect* PullTaskInsResponse::mutable_reconnect() { +inline ::flwr::proto::Reconnect* PullMessagesResponse::mutable_reconnect() { ::flwr::proto::Reconnect* _msg = _internal_mutable_reconnect(); - // @@protoc_insertion_point(field_mutable:flwr.proto.PullTaskInsResponse.reconnect) + // @@protoc_insertion_point(field_mutable:flwr.proto.PullMessagesResponse.reconnect) return _msg; } -inline void PullTaskInsResponse::set_allocated_reconnect(::flwr::proto::Reconnect* reconnect) { +inline void PullMessagesResponse::set_allocated_reconnect(::flwr::proto::Reconnect* reconnect) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reconnect_; @@ -2917,132 +2679,120 @@ inline void PullTaskInsResponse::set_allocated_reconnect(::flwr::proto::Reconnec } reconnect_ = reconnect; - // @@protoc_insertion_point(field_set_allocated:flwr.proto.PullTaskInsResponse.reconnect) + // @@protoc_insertion_point(field_set_allocated:flwr.proto.PullMessagesResponse.reconnect) } -// repeated .flwr.proto.TaskIns task_ins_list = 2; -inline int PullTaskInsResponse::_internal_task_ins_list_size() const { - return task_ins_list_.size(); +// repeated .flwr.proto.Message messages_list = 2; +inline int PullMessagesResponse::_internal_messages_list_size() const { + return messages_list_.size(); } -inline int PullTaskInsResponse::task_ins_list_size() const { - return _internal_task_ins_list_size(); +inline int PullMessagesResponse::messages_list_size() const { + return _internal_messages_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 ::flwr::proto::Message* PullMessagesResponse::mutable_messages_list(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.PullMessagesResponse.messages_list) + return messages_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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Message >* +PullMessagesResponse::mutable_messages_list() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.PullMessagesResponse.messages_list) + return &messages_list_; } -inline const ::flwr::proto::TaskIns& PullTaskInsResponse::_internal_task_ins_list(int index) const { - return task_ins_list_.Get(index); +inline const ::flwr::proto::Message& PullMessagesResponse::_internal_messages_list(int index) const { + return messages_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 const ::flwr::proto::Message& PullMessagesResponse::messages_list(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.PullMessagesResponse.messages_list) + return _internal_messages_list(index); } -inline ::flwr::proto::TaskIns* PullTaskInsResponse::_internal_add_task_ins_list() { - return task_ins_list_.Add(); +inline ::flwr::proto::Message* PullMessagesResponse::_internal_add_messages_list() { + return messages_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) +inline ::flwr::proto::Message* PullMessagesResponse::add_messages_list() { + ::flwr::proto::Message* _add = _internal_add_messages_list(); + // @@protoc_insertion_point(field_add:flwr.proto.PullMessagesResponse.messages_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_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Message >& +PullMessagesResponse::messages_list() const { + // @@protoc_insertion_point(field_list:flwr.proto.PullMessagesResponse.messages_list) + return messages_list_; } -// ------------------------------------------------------------------- - -// PushTaskResRequest - -// repeated .flwr.proto.TaskRes task_res_list = 1; -inline int PushTaskResRequest::_internal_task_res_list_size() const { - return task_res_list_.size(); +// repeated .flwr.proto.ObjectTree message_object_trees = 3; +inline int PullMessagesResponse::_internal_message_object_trees_size() const { + return message_object_trees_.size(); } -inline int PushTaskResRequest::task_res_list_size() const { - return _internal_task_res_list_size(); +inline int PullMessagesResponse::message_object_trees_size() const { + return _internal_message_object_trees_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 ::flwr::proto::ObjectTree* PullMessagesResponse::mutable_message_object_trees(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.PullMessagesResponse.message_object_trees) + return message_object_trees_.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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree >* +PullMessagesResponse::mutable_message_object_trees() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.PullMessagesResponse.message_object_trees) + return &message_object_trees_; } -inline const ::flwr::proto::TaskRes& PushTaskResRequest::_internal_task_res_list(int index) const { - return task_res_list_.Get(index); +inline const ::flwr::proto::ObjectTree& PullMessagesResponse::_internal_message_object_trees(int index) const { + return message_object_trees_.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 const ::flwr::proto::ObjectTree& PullMessagesResponse::message_object_trees(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.PullMessagesResponse.message_object_trees) + return _internal_message_object_trees(index); } -inline ::flwr::proto::TaskRes* PushTaskResRequest::_internal_add_task_res_list() { - return task_res_list_.Add(); +inline ::flwr::proto::ObjectTree* PullMessagesResponse::_internal_add_message_object_trees() { + return message_object_trees_.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) +inline ::flwr::proto::ObjectTree* PullMessagesResponse::add_message_object_trees() { + ::flwr::proto::ObjectTree* _add = _internal_add_message_object_trees(); + // @@protoc_insertion_point(field_add:flwr.proto.PullMessagesResponse.message_object_trees) 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_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree >& +PullMessagesResponse::message_object_trees() const { + // @@protoc_insertion_point(field_list:flwr.proto.PullMessagesResponse.message_object_trees) + return message_object_trees_; } // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - -// PushTaskResResponse +// PushMessagesRequest -// .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(); +// .flwr.proto.Node node = 1; +inline bool PushMessagesRequest::_internal_has_node() const { + return this != internal_default_instance() && node_ != nullptr; } -inline void PushTaskResResponse::clear_reconnect() { - if (GetArenaForAllocation() == nullptr && reconnect_ != nullptr) { - delete reconnect_; - } - reconnect_ = nullptr; +inline bool PushMessagesRequest::has_node() const { + return _internal_has_node(); } -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::Node& PushMessagesRequest::_internal_node() const { + const ::flwr::proto::Node* p = node_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Node_default_instance_); } -inline const ::flwr::proto::Reconnect& PushTaskResResponse::reconnect() const { - // @@protoc_insertion_point(field_get:flwr.proto.PushTaskResResponse.reconnect) - return _internal_reconnect(); +inline const ::flwr::proto::Node& PushMessagesRequest::node() const { + // @@protoc_insertion_point(field_get:flwr.proto.PushMessagesRequest.node) + return _internal_node(); } -inline void PushTaskResResponse::unsafe_arena_set_allocated_reconnect( - ::flwr::proto::Reconnect* reconnect) { +inline void PushMessagesRequest::unsafe_arena_set_allocated_node( + ::flwr::proto::Node* node) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(reconnect_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(node_); } - reconnect_ = reconnect; - if (reconnect) { + node_ = node; + if (node) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.PushTaskResResponse.reconnect) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.PushMessagesRequest.node) } -inline ::flwr::proto::Reconnect* PushTaskResResponse::release_reconnect() { +inline ::flwr::proto::Node* PushMessagesRequest::release_node() { - ::flwr::proto::Reconnect* temp = reconnect_; - reconnect_ = nullptr; + ::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); @@ -3054,258 +2804,214 @@ inline ::flwr::proto::Reconnect* PushTaskResResponse::release_reconnect() { #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) +inline ::flwr::proto::Node* PushMessagesRequest::unsafe_arena_release_node() { + // @@protoc_insertion_point(field_release:flwr.proto.PushMessagesRequest.node) - ::flwr::proto::Reconnect* temp = reconnect_; - reconnect_ = nullptr; + ::flwr::proto::Node* temp = node_; + node_ = nullptr; return temp; } -inline ::flwr::proto::Reconnect* PushTaskResResponse::_internal_mutable_reconnect() { +inline ::flwr::proto::Node* PushMessagesRequest::_internal_mutable_node() { - if (reconnect_ == nullptr) { - auto* p = CreateMaybeMessage<::flwr::proto::Reconnect>(GetArenaForAllocation()); - reconnect_ = p; + if (node_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); + node_ = p; } - return reconnect_; + return node_; } -inline ::flwr::proto::Reconnect* PushTaskResResponse::mutable_reconnect() { - ::flwr::proto::Reconnect* _msg = _internal_mutable_reconnect(); - // @@protoc_insertion_point(field_mutable:flwr.proto.PushTaskResResponse.reconnect) +inline ::flwr::proto::Node* PushMessagesRequest::mutable_node() { + ::flwr::proto::Node* _msg = _internal_mutable_node(); + // @@protoc_insertion_point(field_mutable:flwr.proto.PushMessagesRequest.node) return _msg; } -inline void PushTaskResResponse::set_allocated_reconnect(::flwr::proto::Reconnect* reconnect) { +inline void PushMessagesRequest::set_allocated_node(::flwr::proto::Node* node) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reconnect_; + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(node_); } - if (reconnect) { + if (node) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Reconnect>::GetOwningArena(reconnect); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(node)); if (message_arena != submessage_arena) { - reconnect = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, reconnect, submessage_arena); + node = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, node, submessage_arena); } } else { } - reconnect_ = reconnect; - // @@protoc_insertion_point(field_set_allocated:flwr.proto.PushTaskResResponse.reconnect) + node_ = node; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.PushMessagesRequest.node) } -// 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(); +// repeated .flwr.proto.Message messages_list = 2; +inline int PushMessagesRequest::_internal_messages_list_size() const { + return messages_list_.size(); } -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 int PushMessagesRequest::messages_list_size() const { + return _internal_messages_list_size(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >* -PushTaskResResponse::_internal_mutable_results() { - return results_.MutableMap(); +inline ::flwr::proto::Message* PushMessagesRequest::mutable_messages_list(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.PushMessagesRequest.messages_list) + return messages_list_.Mutable(index); } -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(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Message >* +PushMessagesRequest::mutable_messages_list() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.PushMessagesRequest.messages_list) + return &messages_list_; } - -// ------------------------------------------------------------------- - -// Run - -// sint64 run_id = 1; -inline void Run::clear_run_id() { - run_id_ = int64_t{0}; +inline const ::flwr::proto::Message& PushMessagesRequest::_internal_messages_list(int index) const { + return messages_list_.Get(index); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Run::_internal_run_id() const { - return run_id_; +inline const ::flwr::proto::Message& PushMessagesRequest::messages_list(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.PushMessagesRequest.messages_list) + return _internal_messages_list(index); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Run::run_id() const { - // @@protoc_insertion_point(field_get:flwr.proto.Run.run_id) - return _internal_run_id(); +inline ::flwr::proto::Message* PushMessagesRequest::_internal_add_messages_list() { + return messages_list_.Add(); } -inline void Run::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - run_id_ = value; +inline ::flwr::proto::Message* PushMessagesRequest::add_messages_list() { + ::flwr::proto::Message* _add = _internal_add_messages_list(); + // @@protoc_insertion_point(field_add:flwr.proto.PushMessagesRequest.messages_list) + return _add; } -inline void Run::set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_run_id(value); - // @@protoc_insertion_point(field_set:flwr.proto.Run.run_id) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Message >& +PushMessagesRequest::messages_list() const { + // @@protoc_insertion_point(field_list:flwr.proto.PushMessagesRequest.messages_list) + return messages_list_; } -// string fab_id = 2; -inline void Run::clear_fab_id() { - fab_id_.ClearToEmpty(); +// repeated .flwr.proto.ObjectTree message_object_trees = 3; +inline int PushMessagesRequest::_internal_message_object_trees_size() const { + return message_object_trees_.size(); } -inline const std::string& Run::fab_id() const { - // @@protoc_insertion_point(field_get:flwr.proto.Run.fab_id) - return _internal_fab_id(); +inline int PushMessagesRequest::message_object_trees_size() const { + return _internal_message_object_trees_size(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Run::set_fab_id(ArgT0&& arg0, ArgT... args) { - - fab_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:flwr.proto.Run.fab_id) +inline ::flwr::proto::ObjectTree* PushMessagesRequest::mutable_message_object_trees(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.PushMessagesRequest.message_object_trees) + return message_object_trees_.Mutable(index); } -inline std::string* Run::mutable_fab_id() { - std::string* _s = _internal_mutable_fab_id(); - // @@protoc_insertion_point(field_mutable:flwr.proto.Run.fab_id) - return _s; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree >* +PushMessagesRequest::mutable_message_object_trees() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.PushMessagesRequest.message_object_trees) + return &message_object_trees_; } -inline const std::string& Run::_internal_fab_id() const { - return fab_id_.Get(); +inline const ::flwr::proto::ObjectTree& PushMessagesRequest::_internal_message_object_trees(int index) const { + return message_object_trees_.Get(index); } -inline void Run::_internal_set_fab_id(const std::string& value) { - - fab_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline const ::flwr::proto::ObjectTree& PushMessagesRequest::message_object_trees(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.PushMessagesRequest.message_object_trees) + return _internal_message_object_trees(index); } -inline std::string* Run::_internal_mutable_fab_id() { - - return fab_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::flwr::proto::ObjectTree* PushMessagesRequest::_internal_add_message_object_trees() { + return message_object_trees_.Add(); } -inline std::string* Run::release_fab_id() { - // @@protoc_insertion_point(field_release:flwr.proto.Run.fab_id) - return fab_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +inline ::flwr::proto::ObjectTree* PushMessagesRequest::add_message_object_trees() { + ::flwr::proto::ObjectTree* _add = _internal_add_message_object_trees(); + // @@protoc_insertion_point(field_add:flwr.proto.PushMessagesRequest.message_object_trees) + return _add; } -inline void Run::set_allocated_fab_id(std::string* fab_id) { - if (fab_id != nullptr) { - - } else { - - } - fab_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fab_id, - GetArenaForAllocation()); - // @@protoc_insertion_point(field_set_allocated:flwr.proto.Run.fab_id) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree >& +PushMessagesRequest::message_object_trees() const { + // @@protoc_insertion_point(field_list:flwr.proto.PushMessagesRequest.message_object_trees) + return message_object_trees_; } -// string fab_version = 3; -inline void Run::clear_fab_version() { - fab_version_.ClearToEmpty(); +// repeated double clientapp_runtime_list = 4; +inline int PushMessagesRequest::_internal_clientapp_runtime_list_size() const { + return clientapp_runtime_list_.size(); } -inline const std::string& Run::fab_version() const { - // @@protoc_insertion_point(field_get:flwr.proto.Run.fab_version) - return _internal_fab_version(); +inline int PushMessagesRequest::clientapp_runtime_list_size() const { + return _internal_clientapp_runtime_list_size(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Run::set_fab_version(ArgT0&& arg0, ArgT... args) { - - fab_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:flwr.proto.Run.fab_version) -} -inline std::string* Run::mutable_fab_version() { - std::string* _s = _internal_mutable_fab_version(); - // @@protoc_insertion_point(field_mutable:flwr.proto.Run.fab_version) - return _s; -} -inline const std::string& Run::_internal_fab_version() const { - return fab_version_.Get(); +inline void PushMessagesRequest::clear_clientapp_runtime_list() { + clientapp_runtime_list_.Clear(); } -inline void Run::_internal_set_fab_version(const std::string& value) { - - fab_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline double PushMessagesRequest::_internal_clientapp_runtime_list(int index) const { + return clientapp_runtime_list_.Get(index); } -inline std::string* Run::_internal_mutable_fab_version() { - - return fab_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline double PushMessagesRequest::clientapp_runtime_list(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.PushMessagesRequest.clientapp_runtime_list) + return _internal_clientapp_runtime_list(index); } -inline std::string* Run::release_fab_version() { - // @@protoc_insertion_point(field_release:flwr.proto.Run.fab_version) - return fab_version_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +inline void PushMessagesRequest::set_clientapp_runtime_list(int index, double value) { + clientapp_runtime_list_.Set(index, value); + // @@protoc_insertion_point(field_set:flwr.proto.PushMessagesRequest.clientapp_runtime_list) } -inline void Run::set_allocated_fab_version(std::string* fab_version) { - if (fab_version != nullptr) { - - } else { - - } - fab_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fab_version, - GetArenaForAllocation()); - // @@protoc_insertion_point(field_set_allocated:flwr.proto.Run.fab_version) +inline void PushMessagesRequest::_internal_add_clientapp_runtime_list(double value) { + clientapp_runtime_list_.Add(value); } - -// ------------------------------------------------------------------- - -// GetRunRequest - -// sint64 run_id = 1; -inline void GetRunRequest::clear_run_id() { - run_id_ = int64_t{0}; +inline void PushMessagesRequest::add_clientapp_runtime_list(double value) { + _internal_add_clientapp_runtime_list(value); + // @@protoc_insertion_point(field_add:flwr.proto.PushMessagesRequest.clientapp_runtime_list) } -inline ::PROTOBUF_NAMESPACE_ID::int64 GetRunRequest::_internal_run_id() const { - return run_id_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +PushMessagesRequest::_internal_clientapp_runtime_list() const { + return clientapp_runtime_list_; } -inline ::PROTOBUF_NAMESPACE_ID::int64 GetRunRequest::run_id() const { - // @@protoc_insertion_point(field_get:flwr.proto.GetRunRequest.run_id) - return _internal_run_id(); +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +PushMessagesRequest::clientapp_runtime_list() const { + // @@protoc_insertion_point(field_list:flwr.proto.PushMessagesRequest.clientapp_runtime_list) + return _internal_clientapp_runtime_list(); } -inline void GetRunRequest::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - run_id_ = value; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +PushMessagesRequest::_internal_mutable_clientapp_runtime_list() { + return &clientapp_runtime_list_; } -inline void GetRunRequest::set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_run_id(value); - // @@protoc_insertion_point(field_set:flwr.proto.GetRunRequest.run_id) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +PushMessagesRequest::mutable_clientapp_runtime_list() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.PushMessagesRequest.clientapp_runtime_list) + return _internal_mutable_clientapp_runtime_list(); } // ------------------------------------------------------------------- -// GetRunResponse +// ------------------------------------------------------------------- + +// PushMessagesResponse -// .flwr.proto.Run run = 1; -inline bool GetRunResponse::_internal_has_run() const { - return this != internal_default_instance() && run_ != nullptr; +// .flwr.proto.Reconnect reconnect = 1; +inline bool PushMessagesResponse::_internal_has_reconnect() const { + return this != internal_default_instance() && reconnect_ != nullptr; } -inline bool GetRunResponse::has_run() const { - return _internal_has_run(); +inline bool PushMessagesResponse::has_reconnect() const { + return _internal_has_reconnect(); } -inline void GetRunResponse::clear_run() { - if (GetArenaForAllocation() == nullptr && run_ != nullptr) { - delete run_; +inline void PushMessagesResponse::clear_reconnect() { + if (GetArenaForAllocation() == nullptr && reconnect_ != nullptr) { + delete reconnect_; } - run_ = nullptr; + reconnect_ = nullptr; } -inline const ::flwr::proto::Run& GetRunResponse::_internal_run() const { - const ::flwr::proto::Run* p = run_; - return p != nullptr ? *p : reinterpret_cast( - ::flwr::proto::_Run_default_instance_); +inline const ::flwr::proto::Reconnect& PushMessagesResponse::_internal_reconnect() const { + const ::flwr::proto::Reconnect* p = reconnect_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Reconnect_default_instance_); } -inline const ::flwr::proto::Run& GetRunResponse::run() const { - // @@protoc_insertion_point(field_get:flwr.proto.GetRunResponse.run) - return _internal_run(); +inline const ::flwr::proto::Reconnect& PushMessagesResponse::reconnect() const { + // @@protoc_insertion_point(field_get:flwr.proto.PushMessagesResponse.reconnect) + return _internal_reconnect(); } -inline void GetRunResponse::unsafe_arena_set_allocated_run( - ::flwr::proto::Run* run) { +inline void PushMessagesResponse::unsafe_arena_set_allocated_reconnect( + ::flwr::proto::Reconnect* reconnect) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(run_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(reconnect_); } - run_ = run; - if (run) { + reconnect_ = reconnect; + if (reconnect) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.GetRunResponse.run) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.PushMessagesResponse.reconnect) } -inline ::flwr::proto::Run* GetRunResponse::release_run() { +inline ::flwr::proto::Reconnect* PushMessagesResponse::release_reconnect() { - ::flwr::proto::Run* temp = run_; - run_ = nullptr; + ::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); @@ -3317,44 +3023,148 @@ inline ::flwr::proto::Run* GetRunResponse::release_run() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::flwr::proto::Run* GetRunResponse::unsafe_arena_release_run() { - // @@protoc_insertion_point(field_release:flwr.proto.GetRunResponse.run) +inline ::flwr::proto::Reconnect* PushMessagesResponse::unsafe_arena_release_reconnect() { + // @@protoc_insertion_point(field_release:flwr.proto.PushMessagesResponse.reconnect) - ::flwr::proto::Run* temp = run_; - run_ = nullptr; + ::flwr::proto::Reconnect* temp = reconnect_; + reconnect_ = nullptr; return temp; } -inline ::flwr::proto::Run* GetRunResponse::_internal_mutable_run() { +inline ::flwr::proto::Reconnect* PushMessagesResponse::_internal_mutable_reconnect() { - if (run_ == nullptr) { - auto* p = CreateMaybeMessage<::flwr::proto::Run>(GetArenaForAllocation()); - run_ = p; + if (reconnect_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Reconnect>(GetArenaForAllocation()); + reconnect_ = p; } - return run_; + return reconnect_; } -inline ::flwr::proto::Run* GetRunResponse::mutable_run() { - ::flwr::proto::Run* _msg = _internal_mutable_run(); - // @@protoc_insertion_point(field_mutable:flwr.proto.GetRunResponse.run) +inline ::flwr::proto::Reconnect* PushMessagesResponse::mutable_reconnect() { + ::flwr::proto::Reconnect* _msg = _internal_mutable_reconnect(); + // @@protoc_insertion_point(field_mutable:flwr.proto.PushMessagesResponse.reconnect) return _msg; } -inline void GetRunResponse::set_allocated_run(::flwr::proto::Run* run) { +inline void PushMessagesResponse::set_allocated_reconnect(::flwr::proto::Reconnect* reconnect) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete run_; + delete reconnect_; } - if (run) { + if (reconnect) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Run>::GetOwningArena(run); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Reconnect>::GetOwningArena(reconnect); if (message_arena != submessage_arena) { - run = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, run, submessage_arena); + reconnect = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, reconnect, submessage_arena); } } else { } - run_ = run; - // @@protoc_insertion_point(field_set_allocated:flwr.proto.GetRunResponse.run) + reconnect_ = reconnect; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.PushMessagesResponse.reconnect) +} + +// map results = 2; +inline int PushMessagesResponse::_internal_results_size() const { + return results_.size(); +} +inline int PushMessagesResponse::results_size() const { + return _internal_results_size(); +} +inline void PushMessagesResponse::clear_results() { + results_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >& +PushMessagesResponse::_internal_results() const { + return results_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >& +PushMessagesResponse::results() const { + // @@protoc_insertion_point(field_map:flwr.proto.PushMessagesResponse.results) + return _internal_results(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >* +PushMessagesResponse::_internal_mutable_results() { + return results_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >* +PushMessagesResponse::mutable_results() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.PushMessagesResponse.results) + return _internal_mutable_results(); +} + +// repeated string objects_to_push = 3; +inline int PushMessagesResponse::_internal_objects_to_push_size() const { + return objects_to_push_.size(); +} +inline int PushMessagesResponse::objects_to_push_size() const { + return _internal_objects_to_push_size(); +} +inline void PushMessagesResponse::clear_objects_to_push() { + objects_to_push_.Clear(); +} +inline std::string* PushMessagesResponse::add_objects_to_push() { + std::string* _s = _internal_add_objects_to_push(); + // @@protoc_insertion_point(field_add_mutable:flwr.proto.PushMessagesResponse.objects_to_push) + return _s; +} +inline const std::string& PushMessagesResponse::_internal_objects_to_push(int index) const { + return objects_to_push_.Get(index); +} +inline const std::string& PushMessagesResponse::objects_to_push(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.PushMessagesResponse.objects_to_push) + return _internal_objects_to_push(index); +} +inline std::string* PushMessagesResponse::mutable_objects_to_push(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.PushMessagesResponse.objects_to_push) + return objects_to_push_.Mutable(index); +} +inline void PushMessagesResponse::set_objects_to_push(int index, const std::string& value) { + objects_to_push_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:flwr.proto.PushMessagesResponse.objects_to_push) +} +inline void PushMessagesResponse::set_objects_to_push(int index, std::string&& value) { + objects_to_push_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:flwr.proto.PushMessagesResponse.objects_to_push) +} +inline void PushMessagesResponse::set_objects_to_push(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + objects_to_push_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flwr.proto.PushMessagesResponse.objects_to_push) +} +inline void PushMessagesResponse::set_objects_to_push(int index, const char* value, size_t size) { + objects_to_push_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flwr.proto.PushMessagesResponse.objects_to_push) +} +inline std::string* PushMessagesResponse::_internal_add_objects_to_push() { + return objects_to_push_.Add(); +} +inline void PushMessagesResponse::add_objects_to_push(const std::string& value) { + objects_to_push_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flwr.proto.PushMessagesResponse.objects_to_push) +} +inline void PushMessagesResponse::add_objects_to_push(std::string&& value) { + objects_to_push_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flwr.proto.PushMessagesResponse.objects_to_push) +} +inline void PushMessagesResponse::add_objects_to_push(const char* value) { + GOOGLE_DCHECK(value != nullptr); + objects_to_push_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flwr.proto.PushMessagesResponse.objects_to_push) +} +inline void PushMessagesResponse::add_objects_to_push(const char* value, size_t size) { + objects_to_push_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flwr.proto.PushMessagesResponse.objects_to_push) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +PushMessagesResponse::objects_to_push() const { + // @@protoc_insertion_point(field_list:flwr.proto.PushMessagesResponse.objects_to_push) + return objects_to_push_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +PushMessagesResponse::mutable_objects_to_push() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.PushMessagesResponse.objects_to_push) + return &objects_to_push_; } // ------------------------------------------------------------------- @@ -3410,8 +3220,6 @@ inline void Reconnect::set_reconnect(::PROTOBUF_NAMESPACE_ID::uint64 value) { // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/framework/cc/flwr/include/flwr/proto/recordset.grpc.pb.cc b/framework/cc/flwr/include/flwr/proto/heartbeat.grpc.pb.cc similarity index 87% rename from framework/cc/flwr/include/flwr/proto/recordset.grpc.pb.cc rename to framework/cc/flwr/include/flwr/proto/heartbeat.grpc.pb.cc index 4fb909308dc2..7fa1779376b9 100644 --- a/framework/cc/flwr/include/flwr/proto/recordset.grpc.pb.cc +++ b/framework/cc/flwr/include/flwr/proto/heartbeat.grpc.pb.cc @@ -1,9 +1,9 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flwr/proto/recordset.proto +// source: flwr/proto/heartbeat.proto -#include "flwr/proto/recordset.pb.h" -#include "flwr/proto/recordset.grpc.pb.h" +#include "flwr/proto/heartbeat.pb.h" +#include "flwr/proto/heartbeat.grpc.pb.h" #include #include diff --git a/framework/cc/flwr/include/flwr/proto/heartbeat.grpc.pb.h b/framework/cc/flwr/include/flwr/proto/heartbeat.grpc.pb.h new file mode 100644 index 000000000000..03a13355443b --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/heartbeat.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/heartbeat.proto +// Original file comments: +// Copyright 2025 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_2fheartbeat_2eproto__INCLUDED +#define GRPC_flwr_2fproto_2fheartbeat_2eproto__INCLUDED + +#include "flwr/proto/heartbeat.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_2fheartbeat_2eproto__INCLUDED diff --git a/framework/cc/flwr/include/flwr/proto/heartbeat.pb.cc b/framework/cc/flwr/include/flwr/proto/heartbeat.pb.cc new file mode 100644 index 000000000000..e7ed32ca8e32 --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/heartbeat.pb.cc @@ -0,0 +1,955 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/heartbeat.proto + +#include "flwr/proto/heartbeat.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG +namespace flwr { +namespace proto { +constexpr SendNodeHeartbeatRequest::SendNodeHeartbeatRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : node_(nullptr) + , heartbeat_interval_(0){} +struct SendNodeHeartbeatRequestDefaultTypeInternal { + constexpr SendNodeHeartbeatRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~SendNodeHeartbeatRequestDefaultTypeInternal() {} + union { + SendNodeHeartbeatRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendNodeHeartbeatRequestDefaultTypeInternal _SendNodeHeartbeatRequest_default_instance_; +constexpr SendNodeHeartbeatResponse::SendNodeHeartbeatResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : success_(false){} +struct SendNodeHeartbeatResponseDefaultTypeInternal { + constexpr SendNodeHeartbeatResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~SendNodeHeartbeatResponseDefaultTypeInternal() {} + union { + SendNodeHeartbeatResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendNodeHeartbeatResponseDefaultTypeInternal _SendNodeHeartbeatResponse_default_instance_; +constexpr SendAppHeartbeatRequest::SendAppHeartbeatRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct SendAppHeartbeatRequestDefaultTypeInternal { + constexpr SendAppHeartbeatRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~SendAppHeartbeatRequestDefaultTypeInternal() {} + union { + SendAppHeartbeatRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendAppHeartbeatRequestDefaultTypeInternal _SendAppHeartbeatRequest_default_instance_; +constexpr SendAppHeartbeatResponse::SendAppHeartbeatResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : success_(false){} +struct SendAppHeartbeatResponseDefaultTypeInternal { + constexpr SendAppHeartbeatResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~SendAppHeartbeatResponseDefaultTypeInternal() {} + union { + SendAppHeartbeatResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendAppHeartbeatResponseDefaultTypeInternal _SendAppHeartbeatResponse_default_instance_; +} // namespace proto +} // namespace flwr +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2fheartbeat_2eproto[4]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_flwr_2fproto_2fheartbeat_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_flwr_2fproto_2fheartbeat_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2fheartbeat_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::SendNodeHeartbeatRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::SendNodeHeartbeatRequest, node_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::SendNodeHeartbeatRequest, heartbeat_interval_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::SendNodeHeartbeatResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::SendNodeHeartbeatResponse, success_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::SendAppHeartbeatRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::SendAppHeartbeatRequest, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::SendAppHeartbeatResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::SendAppHeartbeatResponse, success_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::flwr::proto::SendNodeHeartbeatRequest)}, + { 8, -1, -1, sizeof(::flwr::proto::SendNodeHeartbeatResponse)}, + { 15, -1, -1, sizeof(::flwr::proto::SendAppHeartbeatRequest)}, + { 22, -1, -1, sizeof(::flwr::proto::SendAppHeartbeatResponse)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::flwr::proto::_SendNodeHeartbeatRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_SendNodeHeartbeatResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_SendAppHeartbeatRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_SendAppHeartbeatResponse_default_instance_), +}; + +const char descriptor_table_protodef_flwr_2fproto_2fheartbeat_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\032flwr/proto/heartbeat.proto\022\nflwr.proto" + "\032\025flwr/proto/node.proto\"V\n\030SendNodeHeart" + "beatRequest\022\036\n\004node\030\001 \001(\0132\020.flwr.proto.N" + "ode\022\032\n\022heartbeat_interval\030\002 \001(\001\",\n\031SendN" + "odeHeartbeatResponse\022\017\n\007success\030\001 \001(\010\"(\n" + "\027SendAppHeartbeatRequest\022\r\n\005token\030\001 \001(\t\"" + "+\n\030SendAppHeartbeatResponse\022\017\n\007success\030\001" + " \001(\010b\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_flwr_2fproto_2fheartbeat_2eproto_deps[1] = { + &::descriptor_table_flwr_2fproto_2fnode_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_flwr_2fproto_2fheartbeat_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2fheartbeat_2eproto = { + false, false, 292, descriptor_table_protodef_flwr_2fproto_2fheartbeat_2eproto, "flwr/proto/heartbeat.proto", + &descriptor_table_flwr_2fproto_2fheartbeat_2eproto_once, descriptor_table_flwr_2fproto_2fheartbeat_2eproto_deps, 1, 4, + schemas, file_default_instances, TableStruct_flwr_2fproto_2fheartbeat_2eproto::offsets, + file_level_metadata_flwr_2fproto_2fheartbeat_2eproto, file_level_enum_descriptors_flwr_2fproto_2fheartbeat_2eproto, file_level_service_descriptors_flwr_2fproto_2fheartbeat_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_flwr_2fproto_2fheartbeat_2eproto_getter() { + return &descriptor_table_flwr_2fproto_2fheartbeat_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_flwr_2fproto_2fheartbeat_2eproto(&descriptor_table_flwr_2fproto_2fheartbeat_2eproto); +namespace flwr { +namespace proto { + +// =================================================================== + +class SendNodeHeartbeatRequest::_Internal { + public: + static const ::flwr::proto::Node& node(const SendNodeHeartbeatRequest* msg); +}; + +const ::flwr::proto::Node& +SendNodeHeartbeatRequest::_Internal::node(const SendNodeHeartbeatRequest* msg) { + return *msg->node_; +} +void SendNodeHeartbeatRequest::clear_node() { + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; +} +SendNodeHeartbeatRequest::SendNodeHeartbeatRequest(::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.SendNodeHeartbeatRequest) +} +SendNodeHeartbeatRequest::SendNodeHeartbeatRequest(const SendNodeHeartbeatRequest& 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; + } + heartbeat_interval_ = from.heartbeat_interval_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.SendNodeHeartbeatRequest) +} + +void SendNodeHeartbeatRequest::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&node_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&heartbeat_interval_) - + reinterpret_cast(&node_)) + sizeof(heartbeat_interval_)); +} + +SendNodeHeartbeatRequest::~SendNodeHeartbeatRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.SendNodeHeartbeatRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void SendNodeHeartbeatRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete node_; +} + +void SendNodeHeartbeatRequest::ArenaDtor(void* object) { + SendNodeHeartbeatRequest* _this = reinterpret_cast< SendNodeHeartbeatRequest* >(object); + (void)_this; +} +void SendNodeHeartbeatRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void SendNodeHeartbeatRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SendNodeHeartbeatRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.SendNodeHeartbeatRequest) + ::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; + heartbeat_interval_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SendNodeHeartbeatRequest::_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; + // double heartbeat_interval = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { + heartbeat_interval_ = ::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* SendNodeHeartbeatRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.SendNodeHeartbeatRequest) + ::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); + } + + // double heartbeat_interval = 2; + if (!(this->_internal_heartbeat_interval() <= 0 && this->_internal_heartbeat_interval() >= 0)) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_heartbeat_interval(), 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.SendNodeHeartbeatRequest) + return target; +} + +size_t SendNodeHeartbeatRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.SendNodeHeartbeatRequest) + 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_); + } + + // double heartbeat_interval = 2; + if (!(this->_internal_heartbeat_interval() <= 0 && this->_internal_heartbeat_interval() >= 0)) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendNodeHeartbeatRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SendNodeHeartbeatRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendNodeHeartbeatRequest::GetClassData() const { return &_class_data_; } + +void SendNodeHeartbeatRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void SendNodeHeartbeatRequest::MergeFrom(const SendNodeHeartbeatRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.SendNodeHeartbeatRequest) + 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()); + } + if (!(from._internal_heartbeat_interval() <= 0 && from._internal_heartbeat_interval() >= 0)) { + _internal_set_heartbeat_interval(from._internal_heartbeat_interval()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SendNodeHeartbeatRequest::CopyFrom(const SendNodeHeartbeatRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.SendNodeHeartbeatRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SendNodeHeartbeatRequest::IsInitialized() const { + return true; +} + +void SendNodeHeartbeatRequest::InternalSwap(SendNodeHeartbeatRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SendNodeHeartbeatRequest, heartbeat_interval_) + + sizeof(SendNodeHeartbeatRequest::heartbeat_interval_) + - PROTOBUF_FIELD_OFFSET(SendNodeHeartbeatRequest, node_)>( + reinterpret_cast(&node_), + reinterpret_cast(&other->node_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SendNodeHeartbeatRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fheartbeat_2eproto_getter, &descriptor_table_flwr_2fproto_2fheartbeat_2eproto_once, + file_level_metadata_flwr_2fproto_2fheartbeat_2eproto[0]); +} + +// =================================================================== + +class SendNodeHeartbeatResponse::_Internal { + public: +}; + +SendNodeHeartbeatResponse::SendNodeHeartbeatResponse(::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.SendNodeHeartbeatResponse) +} +SendNodeHeartbeatResponse::SendNodeHeartbeatResponse(const SendNodeHeartbeatResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + success_ = from.success_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.SendNodeHeartbeatResponse) +} + +void SendNodeHeartbeatResponse::SharedCtor() { +success_ = false; +} + +SendNodeHeartbeatResponse::~SendNodeHeartbeatResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.SendNodeHeartbeatResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void SendNodeHeartbeatResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void SendNodeHeartbeatResponse::ArenaDtor(void* object) { + SendNodeHeartbeatResponse* _this = reinterpret_cast< SendNodeHeartbeatResponse* >(object); + (void)_this; +} +void SendNodeHeartbeatResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void SendNodeHeartbeatResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SendNodeHeartbeatResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.SendNodeHeartbeatResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + success_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SendNodeHeartbeatResponse::_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) { + // bool success = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + success_ = ::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* SendNodeHeartbeatResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.SendNodeHeartbeatResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool success = 1; + if (this->_internal_success() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), 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.SendNodeHeartbeatResponse) + return target; +} + +size_t SendNodeHeartbeatResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.SendNodeHeartbeatResponse) + 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; + + // bool success = 1; + if (this->_internal_success() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendNodeHeartbeatResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SendNodeHeartbeatResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendNodeHeartbeatResponse::GetClassData() const { return &_class_data_; } + +void SendNodeHeartbeatResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void SendNodeHeartbeatResponse::MergeFrom(const SendNodeHeartbeatResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.SendNodeHeartbeatResponse) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_success() != 0) { + _internal_set_success(from._internal_success()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SendNodeHeartbeatResponse::CopyFrom(const SendNodeHeartbeatResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.SendNodeHeartbeatResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SendNodeHeartbeatResponse::IsInitialized() const { + return true; +} + +void SendNodeHeartbeatResponse::InternalSwap(SendNodeHeartbeatResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(success_, other->success_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SendNodeHeartbeatResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fheartbeat_2eproto_getter, &descriptor_table_flwr_2fproto_2fheartbeat_2eproto_once, + file_level_metadata_flwr_2fproto_2fheartbeat_2eproto[1]); +} + +// =================================================================== + +class SendAppHeartbeatRequest::_Internal { + public: +}; + +SendAppHeartbeatRequest::SendAppHeartbeatRequest(::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.SendAppHeartbeatRequest) +} +SendAppHeartbeatRequest::SendAppHeartbeatRequest(const SendAppHeartbeatRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_token().empty()) { + token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_token(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.SendAppHeartbeatRequest) +} + +void SendAppHeartbeatRequest::SharedCtor() { +token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +SendAppHeartbeatRequest::~SendAppHeartbeatRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.SendAppHeartbeatRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void SendAppHeartbeatRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void SendAppHeartbeatRequest::ArenaDtor(void* object) { + SendAppHeartbeatRequest* _this = reinterpret_cast< SendAppHeartbeatRequest* >(object); + (void)_this; +} +void SendAppHeartbeatRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void SendAppHeartbeatRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SendAppHeartbeatRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.SendAppHeartbeatRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + token_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SendAppHeartbeatRequest::_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 token = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_token(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.SendAppHeartbeatRequest.token")); + 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* SendAppHeartbeatRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.SendAppHeartbeatRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string token = 1; + if (!this->_internal_token().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_token().data(), static_cast(this->_internal_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.SendAppHeartbeatRequest.token"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_token(), 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.SendAppHeartbeatRequest) + return target; +} + +size_t SendAppHeartbeatRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.SendAppHeartbeatRequest) + 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 token = 1; + if (!this->_internal_token().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_token()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendAppHeartbeatRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SendAppHeartbeatRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendAppHeartbeatRequest::GetClassData() const { return &_class_data_; } + +void SendAppHeartbeatRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void SendAppHeartbeatRequest::MergeFrom(const SendAppHeartbeatRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.SendAppHeartbeatRequest) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_token().empty()) { + _internal_set_token(from._internal_token()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SendAppHeartbeatRequest::CopyFrom(const SendAppHeartbeatRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.SendAppHeartbeatRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SendAppHeartbeatRequest::IsInitialized() const { + return true; +} + +void SendAppHeartbeatRequest::InternalSwap(SendAppHeartbeatRequest* 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(), + &token_, lhs_arena, + &other->token_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SendAppHeartbeatRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fheartbeat_2eproto_getter, &descriptor_table_flwr_2fproto_2fheartbeat_2eproto_once, + file_level_metadata_flwr_2fproto_2fheartbeat_2eproto[2]); +} + +// =================================================================== + +class SendAppHeartbeatResponse::_Internal { + public: +}; + +SendAppHeartbeatResponse::SendAppHeartbeatResponse(::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.SendAppHeartbeatResponse) +} +SendAppHeartbeatResponse::SendAppHeartbeatResponse(const SendAppHeartbeatResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + success_ = from.success_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.SendAppHeartbeatResponse) +} + +void SendAppHeartbeatResponse::SharedCtor() { +success_ = false; +} + +SendAppHeartbeatResponse::~SendAppHeartbeatResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.SendAppHeartbeatResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void SendAppHeartbeatResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void SendAppHeartbeatResponse::ArenaDtor(void* object) { + SendAppHeartbeatResponse* _this = reinterpret_cast< SendAppHeartbeatResponse* >(object); + (void)_this; +} +void SendAppHeartbeatResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void SendAppHeartbeatResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SendAppHeartbeatResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.SendAppHeartbeatResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + success_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SendAppHeartbeatResponse::_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) { + // bool success = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + success_ = ::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* SendAppHeartbeatResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.SendAppHeartbeatResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool success = 1; + if (this->_internal_success() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), 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.SendAppHeartbeatResponse) + return target; +} + +size_t SendAppHeartbeatResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.SendAppHeartbeatResponse) + 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; + + // bool success = 1; + if (this->_internal_success() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendAppHeartbeatResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SendAppHeartbeatResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendAppHeartbeatResponse::GetClassData() const { return &_class_data_; } + +void SendAppHeartbeatResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void SendAppHeartbeatResponse::MergeFrom(const SendAppHeartbeatResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.SendAppHeartbeatResponse) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_success() != 0) { + _internal_set_success(from._internal_success()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SendAppHeartbeatResponse::CopyFrom(const SendAppHeartbeatResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.SendAppHeartbeatResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SendAppHeartbeatResponse::IsInitialized() const { + return true; +} + +void SendAppHeartbeatResponse::InternalSwap(SendAppHeartbeatResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(success_, other->success_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SendAppHeartbeatResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fheartbeat_2eproto_getter, &descriptor_table_flwr_2fproto_2fheartbeat_2eproto_once, + file_level_metadata_flwr_2fproto_2fheartbeat_2eproto[3]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::flwr::proto::SendNodeHeartbeatRequest* Arena::CreateMaybeMessage< ::flwr::proto::SendNodeHeartbeatRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::SendNodeHeartbeatRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::SendNodeHeartbeatResponse* Arena::CreateMaybeMessage< ::flwr::proto::SendNodeHeartbeatResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::SendNodeHeartbeatResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::SendAppHeartbeatRequest* Arena::CreateMaybeMessage< ::flwr::proto::SendAppHeartbeatRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::SendAppHeartbeatRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::SendAppHeartbeatResponse* Arena::CreateMaybeMessage< ::flwr::proto::SendAppHeartbeatResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::SendAppHeartbeatResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/framework/cc/flwr/include/flwr/proto/heartbeat.pb.h b/framework/cc/flwr/include/flwr/proto/heartbeat.pb.h new file mode 100644 index 000000000000..93f226524957 --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/heartbeat.pb.h @@ -0,0 +1,912 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/heartbeat.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2fheartbeat_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2fheartbeat_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 +#include "flwr/proto/node.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flwr_2fproto_2fheartbeat_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_2fheartbeat_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[4] + 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_2fheartbeat_2eproto; +namespace flwr { +namespace proto { +class SendAppHeartbeatRequest; +struct SendAppHeartbeatRequestDefaultTypeInternal; +extern SendAppHeartbeatRequestDefaultTypeInternal _SendAppHeartbeatRequest_default_instance_; +class SendAppHeartbeatResponse; +struct SendAppHeartbeatResponseDefaultTypeInternal; +extern SendAppHeartbeatResponseDefaultTypeInternal _SendAppHeartbeatResponse_default_instance_; +class SendNodeHeartbeatRequest; +struct SendNodeHeartbeatRequestDefaultTypeInternal; +extern SendNodeHeartbeatRequestDefaultTypeInternal _SendNodeHeartbeatRequest_default_instance_; +class SendNodeHeartbeatResponse; +struct SendNodeHeartbeatResponseDefaultTypeInternal; +extern SendNodeHeartbeatResponseDefaultTypeInternal _SendNodeHeartbeatResponse_default_instance_; +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> ::flwr::proto::SendAppHeartbeatRequest* Arena::CreateMaybeMessage<::flwr::proto::SendAppHeartbeatRequest>(Arena*); +template<> ::flwr::proto::SendAppHeartbeatResponse* Arena::CreateMaybeMessage<::flwr::proto::SendAppHeartbeatResponse>(Arena*); +template<> ::flwr::proto::SendNodeHeartbeatRequest* Arena::CreateMaybeMessage<::flwr::proto::SendNodeHeartbeatRequest>(Arena*); +template<> ::flwr::proto::SendNodeHeartbeatResponse* Arena::CreateMaybeMessage<::flwr::proto::SendNodeHeartbeatResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace flwr { +namespace proto { + +// =================================================================== + +class SendNodeHeartbeatRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.SendNodeHeartbeatRequest) */ { + public: + inline SendNodeHeartbeatRequest() : SendNodeHeartbeatRequest(nullptr) {} + ~SendNodeHeartbeatRequest() override; + explicit constexpr SendNodeHeartbeatRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SendNodeHeartbeatRequest(const SendNodeHeartbeatRequest& from); + SendNodeHeartbeatRequest(SendNodeHeartbeatRequest&& from) noexcept + : SendNodeHeartbeatRequest() { + *this = ::std::move(from); + } + + inline SendNodeHeartbeatRequest& operator=(const SendNodeHeartbeatRequest& from) { + CopyFrom(from); + return *this; + } + inline SendNodeHeartbeatRequest& operator=(SendNodeHeartbeatRequest&& 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 SendNodeHeartbeatRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SendNodeHeartbeatRequest* internal_default_instance() { + return reinterpret_cast( + &_SendNodeHeartbeatRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(SendNodeHeartbeatRequest& a, SendNodeHeartbeatRequest& b) { + a.Swap(&b); + } + inline void Swap(SendNodeHeartbeatRequest* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SendNodeHeartbeatRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SendNodeHeartbeatRequest* New() const final { + return new SendNodeHeartbeatRequest(); + } + + SendNodeHeartbeatRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SendNodeHeartbeatRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SendNodeHeartbeatRequest& 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(SendNodeHeartbeatRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.SendNodeHeartbeatRequest"; + } + protected: + explicit SendNodeHeartbeatRequest(::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, + kHeartbeatIntervalFieldNumber = 2, + }; + // .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(); + + // double heartbeat_interval = 2; + void clear_heartbeat_interval(); + double heartbeat_interval() const; + void set_heartbeat_interval(double value); + private: + double _internal_heartbeat_interval() const; + void _internal_set_heartbeat_interval(double value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.SendNodeHeartbeatRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::flwr::proto::Node* node_; + double heartbeat_interval_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fheartbeat_2eproto; +}; +// ------------------------------------------------------------------- + +class SendNodeHeartbeatResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.SendNodeHeartbeatResponse) */ { + public: + inline SendNodeHeartbeatResponse() : SendNodeHeartbeatResponse(nullptr) {} + ~SendNodeHeartbeatResponse() override; + explicit constexpr SendNodeHeartbeatResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SendNodeHeartbeatResponse(const SendNodeHeartbeatResponse& from); + SendNodeHeartbeatResponse(SendNodeHeartbeatResponse&& from) noexcept + : SendNodeHeartbeatResponse() { + *this = ::std::move(from); + } + + inline SendNodeHeartbeatResponse& operator=(const SendNodeHeartbeatResponse& from) { + CopyFrom(from); + return *this; + } + inline SendNodeHeartbeatResponse& operator=(SendNodeHeartbeatResponse&& 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 SendNodeHeartbeatResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SendNodeHeartbeatResponse* internal_default_instance() { + return reinterpret_cast( + &_SendNodeHeartbeatResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(SendNodeHeartbeatResponse& a, SendNodeHeartbeatResponse& b) { + a.Swap(&b); + } + inline void Swap(SendNodeHeartbeatResponse* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SendNodeHeartbeatResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SendNodeHeartbeatResponse* New() const final { + return new SendNodeHeartbeatResponse(); + } + + SendNodeHeartbeatResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SendNodeHeartbeatResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SendNodeHeartbeatResponse& 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(SendNodeHeartbeatResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.SendNodeHeartbeatResponse"; + } + protected: + explicit SendNodeHeartbeatResponse(::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 { + kSuccessFieldNumber = 1, + }; + // bool success = 1; + void clear_success(); + bool success() const; + void set_success(bool value); + private: + bool _internal_success() const; + void _internal_set_success(bool value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.SendNodeHeartbeatResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fheartbeat_2eproto; +}; +// ------------------------------------------------------------------- + +class SendAppHeartbeatRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.SendAppHeartbeatRequest) */ { + public: + inline SendAppHeartbeatRequest() : SendAppHeartbeatRequest(nullptr) {} + ~SendAppHeartbeatRequest() override; + explicit constexpr SendAppHeartbeatRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SendAppHeartbeatRequest(const SendAppHeartbeatRequest& from); + SendAppHeartbeatRequest(SendAppHeartbeatRequest&& from) noexcept + : SendAppHeartbeatRequest() { + *this = ::std::move(from); + } + + inline SendAppHeartbeatRequest& operator=(const SendAppHeartbeatRequest& from) { + CopyFrom(from); + return *this; + } + inline SendAppHeartbeatRequest& operator=(SendAppHeartbeatRequest&& 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 SendAppHeartbeatRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SendAppHeartbeatRequest* internal_default_instance() { + return reinterpret_cast( + &_SendAppHeartbeatRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(SendAppHeartbeatRequest& a, SendAppHeartbeatRequest& b) { + a.Swap(&b); + } + inline void Swap(SendAppHeartbeatRequest* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SendAppHeartbeatRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SendAppHeartbeatRequest* New() const final { + return new SendAppHeartbeatRequest(); + } + + SendAppHeartbeatRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SendAppHeartbeatRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SendAppHeartbeatRequest& 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(SendAppHeartbeatRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.SendAppHeartbeatRequest"; + } + protected: + explicit SendAppHeartbeatRequest(::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 { + kTokenFieldNumber = 1, + }; + // string token = 1; + void clear_token(); + const std::string& token() const; + template + void set_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_token(); + PROTOBUF_MUST_USE_RESULT std::string* release_token(); + void set_allocated_token(std::string* token); + private: + const std::string& _internal_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_token(const std::string& value); + std::string* _internal_mutable_token(); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.SendAppHeartbeatRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fheartbeat_2eproto; +}; +// ------------------------------------------------------------------- + +class SendAppHeartbeatResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.SendAppHeartbeatResponse) */ { + public: + inline SendAppHeartbeatResponse() : SendAppHeartbeatResponse(nullptr) {} + ~SendAppHeartbeatResponse() override; + explicit constexpr SendAppHeartbeatResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SendAppHeartbeatResponse(const SendAppHeartbeatResponse& from); + SendAppHeartbeatResponse(SendAppHeartbeatResponse&& from) noexcept + : SendAppHeartbeatResponse() { + *this = ::std::move(from); + } + + inline SendAppHeartbeatResponse& operator=(const SendAppHeartbeatResponse& from) { + CopyFrom(from); + return *this; + } + inline SendAppHeartbeatResponse& operator=(SendAppHeartbeatResponse&& 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 SendAppHeartbeatResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SendAppHeartbeatResponse* internal_default_instance() { + return reinterpret_cast( + &_SendAppHeartbeatResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(SendAppHeartbeatResponse& a, SendAppHeartbeatResponse& b) { + a.Swap(&b); + } + inline void Swap(SendAppHeartbeatResponse* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SendAppHeartbeatResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SendAppHeartbeatResponse* New() const final { + return new SendAppHeartbeatResponse(); + } + + SendAppHeartbeatResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SendAppHeartbeatResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SendAppHeartbeatResponse& 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(SendAppHeartbeatResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.SendAppHeartbeatResponse"; + } + protected: + explicit SendAppHeartbeatResponse(::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 { + kSuccessFieldNumber = 1, + }; + // bool success = 1; + void clear_success(); + bool success() const; + void set_success(bool value); + private: + bool _internal_success() const; + void _internal_set_success(bool value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.SendAppHeartbeatResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fheartbeat_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// SendNodeHeartbeatRequest + +// .flwr.proto.Node node = 1; +inline bool SendNodeHeartbeatRequest::_internal_has_node() const { + return this != internal_default_instance() && node_ != nullptr; +} +inline bool SendNodeHeartbeatRequest::has_node() const { + return _internal_has_node(); +} +inline const ::flwr::proto::Node& SendNodeHeartbeatRequest::_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& SendNodeHeartbeatRequest::node() const { + // @@protoc_insertion_point(field_get:flwr.proto.SendNodeHeartbeatRequest.node) + return _internal_node(); +} +inline void SendNodeHeartbeatRequest::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.SendNodeHeartbeatRequest.node) +} +inline ::flwr::proto::Node* SendNodeHeartbeatRequest::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* SendNodeHeartbeatRequest::unsafe_arena_release_node() { + // @@protoc_insertion_point(field_release:flwr.proto.SendNodeHeartbeatRequest.node) + + ::flwr::proto::Node* temp = node_; + node_ = nullptr; + return temp; +} +inline ::flwr::proto::Node* SendNodeHeartbeatRequest::_internal_mutable_node() { + + if (node_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); + node_ = p; + } + return node_; +} +inline ::flwr::proto::Node* SendNodeHeartbeatRequest::mutable_node() { + ::flwr::proto::Node* _msg = _internal_mutable_node(); + // @@protoc_insertion_point(field_mutable:flwr.proto.SendNodeHeartbeatRequest.node) + return _msg; +} +inline void SendNodeHeartbeatRequest::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.SendNodeHeartbeatRequest.node) +} + +// double heartbeat_interval = 2; +inline void SendNodeHeartbeatRequest::clear_heartbeat_interval() { + heartbeat_interval_ = 0; +} +inline double SendNodeHeartbeatRequest::_internal_heartbeat_interval() const { + return heartbeat_interval_; +} +inline double SendNodeHeartbeatRequest::heartbeat_interval() const { + // @@protoc_insertion_point(field_get:flwr.proto.SendNodeHeartbeatRequest.heartbeat_interval) + return _internal_heartbeat_interval(); +} +inline void SendNodeHeartbeatRequest::_internal_set_heartbeat_interval(double value) { + + heartbeat_interval_ = value; +} +inline void SendNodeHeartbeatRequest::set_heartbeat_interval(double value) { + _internal_set_heartbeat_interval(value); + // @@protoc_insertion_point(field_set:flwr.proto.SendNodeHeartbeatRequest.heartbeat_interval) +} + +// ------------------------------------------------------------------- + +// SendNodeHeartbeatResponse + +// bool success = 1; +inline void SendNodeHeartbeatResponse::clear_success() { + success_ = false; +} +inline bool SendNodeHeartbeatResponse::_internal_success() const { + return success_; +} +inline bool SendNodeHeartbeatResponse::success() const { + // @@protoc_insertion_point(field_get:flwr.proto.SendNodeHeartbeatResponse.success) + return _internal_success(); +} +inline void SendNodeHeartbeatResponse::_internal_set_success(bool value) { + + success_ = value; +} +inline void SendNodeHeartbeatResponse::set_success(bool value) { + _internal_set_success(value); + // @@protoc_insertion_point(field_set:flwr.proto.SendNodeHeartbeatResponse.success) +} + +// ------------------------------------------------------------------- + +// SendAppHeartbeatRequest + +// string token = 1; +inline void SendAppHeartbeatRequest::clear_token() { + token_.ClearToEmpty(); +} +inline const std::string& SendAppHeartbeatRequest::token() const { + // @@protoc_insertion_point(field_get:flwr.proto.SendAppHeartbeatRequest.token) + return _internal_token(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SendAppHeartbeatRequest::set_token(ArgT0&& arg0, ArgT... args) { + + token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.SendAppHeartbeatRequest.token) +} +inline std::string* SendAppHeartbeatRequest::mutable_token() { + std::string* _s = _internal_mutable_token(); + // @@protoc_insertion_point(field_mutable:flwr.proto.SendAppHeartbeatRequest.token) + return _s; +} +inline const std::string& SendAppHeartbeatRequest::_internal_token() const { + return token_.Get(); +} +inline void SendAppHeartbeatRequest::_internal_set_token(const std::string& value) { + + token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* SendAppHeartbeatRequest::_internal_mutable_token() { + + return token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* SendAppHeartbeatRequest::release_token() { + // @@protoc_insertion_point(field_release:flwr.proto.SendAppHeartbeatRequest.token) + return token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void SendAppHeartbeatRequest::set_allocated_token(std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), token, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.SendAppHeartbeatRequest.token) +} + +// ------------------------------------------------------------------- + +// SendAppHeartbeatResponse + +// bool success = 1; +inline void SendAppHeartbeatResponse::clear_success() { + success_ = false; +} +inline bool SendAppHeartbeatResponse::_internal_success() const { + return success_; +} +inline bool SendAppHeartbeatResponse::success() const { + // @@protoc_insertion_point(field_get:flwr.proto.SendAppHeartbeatResponse.success) + return _internal_success(); +} +inline void SendAppHeartbeatResponse::_internal_set_success(bool value) { + + success_ = value; +} +inline void SendAppHeartbeatResponse::set_success(bool value) { + _internal_set_success(value); + // @@protoc_insertion_point(field_set:flwr.proto.SendAppHeartbeatResponse.success) +} + +#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_2fheartbeat_2eproto diff --git a/framework/cc/flwr/include/flwr/proto/message.grpc.pb.cc b/framework/cc/flwr/include/flwr/proto/message.grpc.pb.cc new file mode 100644 index 000000000000..35f77a8ea873 --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/message.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/message.proto + +#include "flwr/proto/message.pb.h" +#include "flwr/proto/message.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/framework/cc/flwr/include/flwr/proto/message.grpc.pb.h b/framework/cc/flwr/include/flwr/proto/message.grpc.pb.h new file mode 100644 index 000000000000..5fda0cd6ed6e --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/message.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/message.proto +// Original file comments: +// Copyright 2024 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_2fmessage_2eproto__INCLUDED +#define GRPC_flwr_2fproto_2fmessage_2eproto__INCLUDED + +#include "flwr/proto/message.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_2fmessage_2eproto__INCLUDED diff --git a/framework/cc/flwr/include/flwr/proto/message.pb.cc b/framework/cc/flwr/include/flwr/proto/message.pb.cc new file mode 100644 index 000000000000..114b45799539 --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/message.pb.cc @@ -0,0 +1,3409 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/message.proto + +#include "flwr/proto/message.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG +namespace flwr { +namespace proto { +constexpr Message::Message( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : metadata_(nullptr) + , content_(nullptr) + , error_(nullptr){} +struct MessageDefaultTypeInternal { + constexpr MessageDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~MessageDefaultTypeInternal() {} + union { + Message _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageDefaultTypeInternal _Message_default_instance_; +constexpr Context_NodeConfigEntry_DoNotUse::Context_NodeConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct Context_NodeConfigEntry_DoNotUseDefaultTypeInternal { + constexpr Context_NodeConfigEntry_DoNotUseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~Context_NodeConfigEntry_DoNotUseDefaultTypeInternal() {} + union { + Context_NodeConfigEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Context_NodeConfigEntry_DoNotUseDefaultTypeInternal _Context_NodeConfigEntry_DoNotUse_default_instance_; +constexpr Context_RunConfigEntry_DoNotUse::Context_RunConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct Context_RunConfigEntry_DoNotUseDefaultTypeInternal { + constexpr Context_RunConfigEntry_DoNotUseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~Context_RunConfigEntry_DoNotUseDefaultTypeInternal() {} + union { + Context_RunConfigEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Context_RunConfigEntry_DoNotUseDefaultTypeInternal _Context_RunConfigEntry_DoNotUse_default_instance_; +constexpr Context::Context( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : node_config_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , run_config_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , state_(nullptr) + , run_id_(uint64_t{0u}) + , node_id_(uint64_t{0u}){} +struct ContextDefaultTypeInternal { + constexpr ContextDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ContextDefaultTypeInternal() {} + union { + Context _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ContextDefaultTypeInternal _Context_default_instance_; +constexpr Metadata::Metadata( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : message_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , reply_to_message_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , group_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , message_type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , run_id_(uint64_t{0u}) + , src_node_id_(uint64_t{0u}) + , dst_node_id_(uint64_t{0u}) + , ttl_(0) + , created_at_(0){} +struct MetadataDefaultTypeInternal { + constexpr MetadataDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~MetadataDefaultTypeInternal() {} + union { + Metadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MetadataDefaultTypeInternal _Metadata_default_instance_; +constexpr ObjectIDs::ObjectIDs( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : object_ids_(){} +struct ObjectIDsDefaultTypeInternal { + constexpr ObjectIDsDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ObjectIDsDefaultTypeInternal() {} + union { + ObjectIDs _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ObjectIDsDefaultTypeInternal _ObjectIDs_default_instance_; +constexpr ObjectTree::ObjectTree( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : children_() + , object_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct ObjectTreeDefaultTypeInternal { + constexpr ObjectTreeDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ObjectTreeDefaultTypeInternal() {} + union { + ObjectTree _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ObjectTreeDefaultTypeInternal _ObjectTree_default_instance_; +constexpr PushObjectRequest::PushObjectRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : object_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , object_content_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , node_(nullptr) + , run_id_(uint64_t{0u}){} +struct PushObjectRequestDefaultTypeInternal { + constexpr PushObjectRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PushObjectRequestDefaultTypeInternal() {} + union { + PushObjectRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PushObjectRequestDefaultTypeInternal _PushObjectRequest_default_instance_; +constexpr PushObjectResponse::PushObjectResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : stored_(false){} +struct PushObjectResponseDefaultTypeInternal { + constexpr PushObjectResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PushObjectResponseDefaultTypeInternal() {} + union { + PushObjectResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PushObjectResponseDefaultTypeInternal _PushObjectResponse_default_instance_; +constexpr PullObjectRequest::PullObjectRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : object_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , node_(nullptr) + , run_id_(uint64_t{0u}){} +struct PullObjectRequestDefaultTypeInternal { + constexpr PullObjectRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PullObjectRequestDefaultTypeInternal() {} + union { + PullObjectRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PullObjectRequestDefaultTypeInternal _PullObjectRequest_default_instance_; +constexpr PullObjectResponse::PullObjectResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : object_content_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , object_found_(false) + , object_available_(false){} +struct PullObjectResponseDefaultTypeInternal { + constexpr PullObjectResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PullObjectResponseDefaultTypeInternal() {} + union { + PullObjectResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PullObjectResponseDefaultTypeInternal _PullObjectResponse_default_instance_; +constexpr ConfirmMessageReceivedRequest::ConfirmMessageReceivedRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : message_object_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , node_(nullptr) + , run_id_(uint64_t{0u}){} +struct ConfirmMessageReceivedRequestDefaultTypeInternal { + constexpr ConfirmMessageReceivedRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ConfirmMessageReceivedRequestDefaultTypeInternal() {} + union { + ConfirmMessageReceivedRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConfirmMessageReceivedRequestDefaultTypeInternal _ConfirmMessageReceivedRequest_default_instance_; +constexpr ConfirmMessageReceivedResponse::ConfirmMessageReceivedResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct ConfirmMessageReceivedResponseDefaultTypeInternal { + constexpr ConfirmMessageReceivedResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ConfirmMessageReceivedResponseDefaultTypeInternal() {} + union { + ConfirmMessageReceivedResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConfirmMessageReceivedResponseDefaultTypeInternal _ConfirmMessageReceivedResponse_default_instance_; +} // namespace proto +} // namespace flwr +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2fmessage_2eproto[13]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_flwr_2fproto_2fmessage_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_flwr_2fproto_2fmessage_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2fmessage_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Message, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Message, metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Message, content_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Message, error_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Context_NodeConfigEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Context_NodeConfigEntry_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::Context_NodeConfigEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Context_NodeConfigEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::flwr::proto::Context_RunConfigEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Context_RunConfigEntry_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::Context_RunConfigEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Context_RunConfigEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Context, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Context, run_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Context, node_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Context, node_config_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Context, state_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Context, run_config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Metadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Metadata, run_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Metadata, message_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Metadata, src_node_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Metadata, dst_node_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Metadata, reply_to_message_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Metadata, group_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Metadata, ttl_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Metadata, message_type_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Metadata, created_at_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ObjectIDs, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ObjectIDs, object_ids_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ObjectTree, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ObjectTree, object_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ObjectTree, children_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushObjectRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushObjectRequest, node_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushObjectRequest, run_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushObjectRequest, object_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushObjectRequest, object_content_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushObjectResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushObjectResponse, stored_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullObjectRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullObjectRequest, node_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullObjectRequest, run_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullObjectRequest, object_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullObjectResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullObjectResponse, object_found_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullObjectResponse, object_available_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullObjectResponse, object_content_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfirmMessageReceivedRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfirmMessageReceivedRequest, node_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfirmMessageReceivedRequest, run_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfirmMessageReceivedRequest, message_object_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfirmMessageReceivedResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::flwr::proto::Message)}, + { 9, 17, -1, sizeof(::flwr::proto::Context_NodeConfigEntry_DoNotUse)}, + { 19, 27, -1, sizeof(::flwr::proto::Context_RunConfigEntry_DoNotUse)}, + { 29, -1, -1, sizeof(::flwr::proto::Context)}, + { 40, -1, -1, sizeof(::flwr::proto::Metadata)}, + { 55, -1, -1, sizeof(::flwr::proto::ObjectIDs)}, + { 62, -1, -1, sizeof(::flwr::proto::ObjectTree)}, + { 70, -1, -1, sizeof(::flwr::proto::PushObjectRequest)}, + { 80, -1, -1, sizeof(::flwr::proto::PushObjectResponse)}, + { 87, -1, -1, sizeof(::flwr::proto::PullObjectRequest)}, + { 96, -1, -1, sizeof(::flwr::proto::PullObjectResponse)}, + { 105, -1, -1, sizeof(::flwr::proto::ConfirmMessageReceivedRequest)}, + { 114, -1, -1, sizeof(::flwr::proto::ConfirmMessageReceivedResponse)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::flwr::proto::_Message_default_instance_), + reinterpret_cast(&::flwr::proto::_Context_NodeConfigEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_Context_RunConfigEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_Context_default_instance_), + reinterpret_cast(&::flwr::proto::_Metadata_default_instance_), + reinterpret_cast(&::flwr::proto::_ObjectIDs_default_instance_), + reinterpret_cast(&::flwr::proto::_ObjectTree_default_instance_), + reinterpret_cast(&::flwr::proto::_PushObjectRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_PushObjectResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_PullObjectRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_PullObjectResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_ConfirmMessageReceivedRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_ConfirmMessageReceivedResponse_default_instance_), +}; + +const char descriptor_table_protodef_flwr_2fproto_2fmessage_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\030flwr/proto/message.proto\022\nflwr.proto\032\026" + "flwr/proto/error.proto\032\033flwr/proto/recor" + "ddict.proto\032\032flwr/proto/transport.proto\032" + "\025flwr/proto/node.proto\"|\n\007Message\022&\n\010met" + "adata\030\001 \001(\0132\024.flwr.proto.Metadata\022\'\n\007con" + "tent\030\002 \001(\0132\026.flwr.proto.RecordDict\022 \n\005er" + "ror\030\003 \001(\0132\021.flwr.proto.Error\"\320\002\n\007Context" + "\022\016\n\006run_id\030\001 \001(\004\022\017\n\007node_id\030\002 \001(\004\0228\n\013nod" + "e_config\030\003 \003(\0132#.flwr.proto.Context.Node" + "ConfigEntry\022%\n\005state\030\004 \001(\0132\026.flwr.proto." + "RecordDict\0226\n\nrun_config\030\005 \003(\0132\".flwr.pr" + "oto.Context.RunConfigEntry\032E\n\017NodeConfig" + "Entry\022\013\n\003key\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.flwr" + ".proto.Scalar:\0028\001\032D\n\016RunConfigEntry\022\013\n\003k" + "ey\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.flwr.proto.Sca" + "lar:\0028\001\"\276\001\n\010Metadata\022\016\n\006run_id\030\001 \001(\004\022\022\n\n" + "message_id\030\002 \001(\t\022\023\n\013src_node_id\030\003 \001(\004\022\023\n" + "\013dst_node_id\030\004 \001(\004\022\033\n\023reply_to_message_i" + "d\030\005 \001(\t\022\020\n\010group_id\030\006 \001(\t\022\013\n\003ttl\030\007 \001(\001\022\024" + "\n\014message_type\030\010 \001(\t\022\022\n\ncreated_at\030\t \001(\001" + "\"\037\n\tObjectIDs\022\022\n\nobject_ids\030\001 \003(\t\"I\n\nObj" + "ectTree\022\021\n\tobject_id\030\001 \001(\t\022(\n\010children\030\002" + " \003(\0132\026.flwr.proto.ObjectTree\"n\n\021PushObje" + "ctRequest\022\036\n\004node\030\001 \001(\0132\020.flwr.proto.Nod" + "e\022\016\n\006run_id\030\002 \001(\004\022\021\n\tobject_id\030\003 \001(\t\022\026\n\016" + "object_content\030\004 \001(\014\"$\n\022PushObjectRespon" + "se\022\016\n\006stored\030\001 \001(\010\"V\n\021PullObjectRequest\022" + "\036\n\004node\030\001 \001(\0132\020.flwr.proto.Node\022\016\n\006run_i" + "d\030\002 \001(\004\022\021\n\tobject_id\030\003 \001(\t\"\\\n\022PullObject" + "Response\022\024\n\014object_found\030\001 \001(\010\022\030\n\020object" + "_available\030\002 \001(\010\022\026\n\016object_content\030\003 \001(\014" + "\"j\n\035ConfirmMessageReceivedRequest\022\036\n\004nod" + "e\030\001 \001(\0132\020.flwr.proto.Node\022\016\n\006run_id\030\002 \001(" + "\004\022\031\n\021message_object_id\030\003 \001(\t\" \n\036ConfirmM" + "essageReceivedResponseb\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_flwr_2fproto_2fmessage_2eproto_deps[4] = { + &::descriptor_table_flwr_2fproto_2ferror_2eproto, + &::descriptor_table_flwr_2fproto_2fnode_2eproto, + &::descriptor_table_flwr_2fproto_2frecorddict_2eproto, + &::descriptor_table_flwr_2fproto_2ftransport_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_flwr_2fproto_2fmessage_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2fmessage_2eproto = { + false, false, 1390, descriptor_table_protodef_flwr_2fproto_2fmessage_2eproto, "flwr/proto/message.proto", + &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, descriptor_table_flwr_2fproto_2fmessage_2eproto_deps, 4, 13, + schemas, file_default_instances, TableStruct_flwr_2fproto_2fmessage_2eproto::offsets, + file_level_metadata_flwr_2fproto_2fmessage_2eproto, file_level_enum_descriptors_flwr_2fproto_2fmessage_2eproto, file_level_service_descriptors_flwr_2fproto_2fmessage_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_flwr_2fproto_2fmessage_2eproto_getter() { + return &descriptor_table_flwr_2fproto_2fmessage_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_flwr_2fproto_2fmessage_2eproto(&descriptor_table_flwr_2fproto_2fmessage_2eproto); +namespace flwr { +namespace proto { + +// =================================================================== + +class Message::_Internal { + public: + static const ::flwr::proto::Metadata& metadata(const Message* msg); + static const ::flwr::proto::RecordDict& content(const Message* msg); + static const ::flwr::proto::Error& error(const Message* msg); +}; + +const ::flwr::proto::Metadata& +Message::_Internal::metadata(const Message* msg) { + return *msg->metadata_; +} +const ::flwr::proto::RecordDict& +Message::_Internal::content(const Message* msg) { + return *msg->content_; +} +const ::flwr::proto::Error& +Message::_Internal::error(const Message* msg) { + return *msg->error_; +} +void Message::clear_content() { + if (GetArenaForAllocation() == nullptr && content_ != nullptr) { + delete content_; + } + content_ = nullptr; +} +void Message::clear_error() { + if (GetArenaForAllocation() == nullptr && error_ != nullptr) { + delete error_; + } + error_ = nullptr; +} +Message::Message(::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.Message) +} +Message::Message(const Message& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_metadata()) { + metadata_ = new ::flwr::proto::Metadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + if (from._internal_has_content()) { + content_ = new ::flwr::proto::RecordDict(*from.content_); + } else { + content_ = nullptr; + } + if (from._internal_has_error()) { + error_ = new ::flwr::proto::Error(*from.error_); + } else { + error_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.Message) +} + +void Message::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&metadata_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&error_) - + reinterpret_cast(&metadata_)) + sizeof(error_)); +} + +Message::~Message() { + // @@protoc_insertion_point(destructor:flwr.proto.Message) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Message::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete metadata_; + if (this != internal_default_instance()) delete content_; + if (this != internal_default_instance()) delete error_; +} + +void Message::ArenaDtor(void* object) { + Message* _this = reinterpret_cast< Message* >(object); + (void)_this; +} +void Message::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Message::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Message::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Message) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + if (GetArenaForAllocation() == nullptr && content_ != nullptr) { + delete content_; + } + content_ = nullptr; + if (GetArenaForAllocation() == nullptr && error_ != nullptr) { + delete error_; + } + error_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Message::_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.Metadata metadata = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.RecordDict content = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_content(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.Error error = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_error(), 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* Message::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Message) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Metadata metadata = 1; + if (this->_internal_has_metadata()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::metadata(this), target, stream); + } + + // .flwr.proto.RecordDict content = 2; + if (this->_internal_has_content()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::content(this), target, stream); + } + + // .flwr.proto.Error error = 3; + if (this->_internal_has_error()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::error(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.Message) + return target; +} + +size_t Message::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Message) + 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.Metadata metadata = 1; + if (this->_internal_has_metadata()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_); + } + + // .flwr.proto.RecordDict content = 2; + if (this->_internal_has_content()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *content_); + } + + // .flwr.proto.Error error = 3; + if (this->_internal_has_error()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *error_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Message::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Message::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Message::GetClassData() const { return &_class_data_; } + +void Message::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Message::MergeFrom(const Message& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Message) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_metadata()) { + _internal_mutable_metadata()->::flwr::proto::Metadata::MergeFrom(from._internal_metadata()); + } + if (from._internal_has_content()) { + _internal_mutable_content()->::flwr::proto::RecordDict::MergeFrom(from._internal_content()); + } + if (from._internal_has_error()) { + _internal_mutable_error()->::flwr::proto::Error::MergeFrom(from._internal_error()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Message::CopyFrom(const Message& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Message) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Message::IsInitialized() const { + return true; +} + +void Message::InternalSwap(Message* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Message, error_) + + sizeof(Message::error_) + - PROTOBUF_FIELD_OFFSET(Message, metadata_)>( + reinterpret_cast(&metadata_), + reinterpret_cast(&other->metadata_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Message::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fmessage_2eproto_getter, &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, + file_level_metadata_flwr_2fproto_2fmessage_2eproto[0]); +} + +// =================================================================== + +Context_NodeConfigEntry_DoNotUse::Context_NodeConfigEntry_DoNotUse() {} +Context_NodeConfigEntry_DoNotUse::Context_NodeConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void Context_NodeConfigEntry_DoNotUse::MergeFrom(const Context_NodeConfigEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata Context_NodeConfigEntry_DoNotUse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fmessage_2eproto_getter, &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, + file_level_metadata_flwr_2fproto_2fmessage_2eproto[1]); +} + +// =================================================================== + +Context_RunConfigEntry_DoNotUse::Context_RunConfigEntry_DoNotUse() {} +Context_RunConfigEntry_DoNotUse::Context_RunConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void Context_RunConfigEntry_DoNotUse::MergeFrom(const Context_RunConfigEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata Context_RunConfigEntry_DoNotUse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fmessage_2eproto_getter, &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, + file_level_metadata_flwr_2fproto_2fmessage_2eproto[2]); +} + +// =================================================================== + +class Context::_Internal { + public: + static const ::flwr::proto::RecordDict& state(const Context* msg); +}; + +const ::flwr::proto::RecordDict& +Context::_Internal::state(const Context* msg) { + return *msg->state_; +} +void Context::clear_node_config() { + node_config_.Clear(); +} +void Context::clear_state() { + if (GetArenaForAllocation() == nullptr && state_ != nullptr) { + delete state_; + } + state_ = nullptr; +} +void Context::clear_run_config() { + run_config_.Clear(); +} +Context::Context(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + node_config_(arena), + run_config_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Context) +} +Context::Context(const Context& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + node_config_.MergeFrom(from.node_config_); + run_config_.MergeFrom(from.run_config_); + if (from._internal_has_state()) { + state_ = new ::flwr::proto::RecordDict(*from.state_); + } else { + state_ = nullptr; + } + ::memcpy(&run_id_, &from.run_id_, + static_cast(reinterpret_cast(&node_id_) - + reinterpret_cast(&run_id_)) + sizeof(node_id_)); + // @@protoc_insertion_point(copy_constructor:flwr.proto.Context) +} + +void Context::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&state_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&node_id_) - + reinterpret_cast(&state_)) + sizeof(node_id_)); +} + +Context::~Context() { + // @@protoc_insertion_point(destructor:flwr.proto.Context) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Context::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete state_; +} + +void Context::ArenaDtor(void* object) { + Context* _this = reinterpret_cast< Context* >(object); + (void)_this; + _this->node_config_. ~MapField(); + _this->run_config_. ~MapField(); +} +inline void Context::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { + if (arena != nullptr) { + arena->OwnCustomDestructor(this, &Context::ArenaDtor); + } +} +void Context::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Context::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Context) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + node_config_.Clear(); + run_config_.Clear(); + if (GetArenaForAllocation() == nullptr && state_ != nullptr) { + delete state_; + } + state_ = nullptr; + ::memset(&run_id_, 0, static_cast( + reinterpret_cast(&node_id_) - + reinterpret_cast(&run_id_)) + sizeof(node_id_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Context::_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 run_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + run_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 node_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + node_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map node_config = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&node_config_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // .flwr.proto.RecordDict state = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_state(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map run_config = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&run_config_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(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* Context::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Context) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 run_id = 1; + if (this->_internal_run_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_run_id(), target); + } + + // uint64 node_id = 2; + if (this->_internal_node_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_node_id(), target); + } + + // map node_config = 3; + if (!this->_internal_node_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.Context.NodeConfigEntry.key"); + } + }; + + if (stream->IsSerializationDeterministic() && + this->_internal_node_config().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->_internal_node_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_node_config().begin(); + it != this->_internal_node_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 = Context_NodeConfigEntry_DoNotUse::Funcs::InternalSerialize(3, 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_node_config().begin(); + it != this->_internal_node_config().end(); ++it) { + target = Context_NodeConfigEntry_DoNotUse::Funcs::InternalSerialize(3, it->first, it->second, target, stream); + Utf8Check::Check(&(*it)); + } + } + } + + // .flwr.proto.RecordDict state = 4; + if (this->_internal_has_state()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::state(this), target, stream); + } + + // map run_config = 5; + if (!this->_internal_run_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.Context.RunConfigEntry.key"); + } + }; + + if (stream->IsSerializationDeterministic() && + this->_internal_run_config().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->_internal_run_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_run_config().begin(); + it != this->_internal_run_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 = Context_RunConfigEntry_DoNotUse::Funcs::InternalSerialize(5, 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_run_config().begin(); + it != this->_internal_run_config().end(); ++it) { + target = Context_RunConfigEntry_DoNotUse::Funcs::InternalSerialize(5, 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.Context) + return target; +} + +size_t Context::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Context) + 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 node_config = 3; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_node_config_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_node_config().begin(); + it != this->_internal_node_config().end(); ++it) { + total_size += Context_NodeConfigEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // map run_config = 5; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_run_config_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_run_config().begin(); + it != this->_internal_run_config().end(); ++it) { + total_size += Context_RunConfigEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // .flwr.proto.RecordDict state = 4; + if (this->_internal_has_state()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *state_); + } + + // uint64 run_id = 1; + if (this->_internal_run_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_run_id()); + } + + // uint64 node_id = 2; + if (this->_internal_node_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_node_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Context::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Context::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Context::GetClassData() const { return &_class_data_; } + +void Context::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Context::MergeFrom(const Context& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Context) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + node_config_.MergeFrom(from.node_config_); + run_config_.MergeFrom(from.run_config_); + if (from._internal_has_state()) { + _internal_mutable_state()->::flwr::proto::RecordDict::MergeFrom(from._internal_state()); + } + if (from._internal_run_id() != 0) { + _internal_set_run_id(from._internal_run_id()); + } + if (from._internal_node_id() != 0) { + _internal_set_node_id(from._internal_node_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Context::CopyFrom(const Context& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Context) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Context::IsInitialized() const { + return true; +} + +void Context::InternalSwap(Context* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + node_config_.InternalSwap(&other->node_config_); + run_config_.InternalSwap(&other->run_config_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Context, node_id_) + + sizeof(Context::node_id_) + - PROTOBUF_FIELD_OFFSET(Context, state_)>( + reinterpret_cast(&state_), + reinterpret_cast(&other->state_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Context::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fmessage_2eproto_getter, &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, + file_level_metadata_flwr_2fproto_2fmessage_2eproto[3]); +} + +// =================================================================== + +class Metadata::_Internal { + public: +}; + +Metadata::Metadata(::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.Metadata) +} +Metadata::Metadata(const Metadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_message_id().empty()) { + message_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message_id(), + GetArenaForAllocation()); + } + reply_to_message_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_reply_to_message_id().empty()) { + reply_to_message_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_reply_to_message_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()); + } + message_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_message_type().empty()) { + message_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message_type(), + GetArenaForAllocation()); + } + ::memcpy(&run_id_, &from.run_id_, + static_cast(reinterpret_cast(&created_at_) - + reinterpret_cast(&run_id_)) + sizeof(created_at_)); + // @@protoc_insertion_point(copy_constructor:flwr.proto.Metadata) +} + +void Metadata::SharedCtor() { +message_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +reply_to_message_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +group_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +message_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&run_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&created_at_) - + reinterpret_cast(&run_id_)) + sizeof(created_at_)); +} + +Metadata::~Metadata() { + // @@protoc_insertion_point(destructor:flwr.proto.Metadata) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Metadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + reply_to_message_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + group_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + message_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void Metadata::ArenaDtor(void* object) { + Metadata* _this = reinterpret_cast< Metadata* >(object); + (void)_this; +} +void Metadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Metadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Metadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Metadata) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + message_id_.ClearToEmpty(); + reply_to_message_id_.ClearToEmpty(); + group_id_.ClearToEmpty(); + message_type_.ClearToEmpty(); + ::memset(&run_id_, 0, static_cast( + reinterpret_cast(&created_at_) - + reinterpret_cast(&run_id_)) + sizeof(created_at_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Metadata::_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 run_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + run_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string message_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_message_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Metadata.message_id")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 src_node_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + src_node_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 dst_node_id = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + dst_node_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string reply_to_message_id = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_reply_to_message_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Metadata.reply_to_message_id")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string group_id = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_group_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Metadata.group_id")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double ttl = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 57)) { + ttl_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // string message_type = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + auto str = _internal_mutable_message_type(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Metadata.message_type")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double created_at = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 73)) { + created_at_ = ::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* Metadata::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Metadata) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 run_id = 1; + if (this->_internal_run_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_run_id(), target); + } + + // string message_id = 2; + if (!this->_internal_message_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message_id().data(), static_cast(this->_internal_message_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Metadata.message_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_message_id(), target); + } + + // uint64 src_node_id = 3; + if (this->_internal_src_node_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_src_node_id(), target); + } + + // uint64 dst_node_id = 4; + if (this->_internal_dst_node_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_dst_node_id(), target); + } + + // string reply_to_message_id = 5; + if (!this->_internal_reply_to_message_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reply_to_message_id().data(), static_cast(this->_internal_reply_to_message_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Metadata.reply_to_message_id"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_reply_to_message_id(), target); + } + + // string group_id = 6; + 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.Metadata.group_id"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_group_id(), target); + } + + // double ttl = 7; + if (!(this->_internal_ttl() <= 0 && this->_internal_ttl() >= 0)) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(7, this->_internal_ttl(), target); + } + + // string message_type = 8; + if (!this->_internal_message_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message_type().data(), static_cast(this->_internal_message_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Metadata.message_type"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_message_type(), target); + } + + // double created_at = 9; + if (!(this->_internal_created_at() <= 0 && this->_internal_created_at() >= 0)) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(9, this->_internal_created_at(), 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.Metadata) + return target; +} + +size_t Metadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Metadata) + 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_id = 2; + if (!this->_internal_message_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message_id()); + } + + // string reply_to_message_id = 5; + if (!this->_internal_reply_to_message_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reply_to_message_id()); + } + + // string group_id = 6; + if (!this->_internal_group_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_group_id()); + } + + // string message_type = 8; + if (!this->_internal_message_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message_type()); + } + + // uint64 run_id = 1; + if (this->_internal_run_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_run_id()); + } + + // uint64 src_node_id = 3; + if (this->_internal_src_node_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_src_node_id()); + } + + // uint64 dst_node_id = 4; + if (this->_internal_dst_node_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_dst_node_id()); + } + + // double ttl = 7; + if (!(this->_internal_ttl() <= 0 && this->_internal_ttl() >= 0)) { + total_size += 1 + 8; + } + + // double created_at = 9; + if (!(this->_internal_created_at() <= 0 && this->_internal_created_at() >= 0)) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Metadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Metadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Metadata::GetClassData() const { return &_class_data_; } + +void Metadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Metadata::MergeFrom(const Metadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Metadata) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_message_id().empty()) { + _internal_set_message_id(from._internal_message_id()); + } + if (!from._internal_reply_to_message_id().empty()) { + _internal_set_reply_to_message_id(from._internal_reply_to_message_id()); + } + if (!from._internal_group_id().empty()) { + _internal_set_group_id(from._internal_group_id()); + } + if (!from._internal_message_type().empty()) { + _internal_set_message_type(from._internal_message_type()); + } + if (from._internal_run_id() != 0) { + _internal_set_run_id(from._internal_run_id()); + } + if (from._internal_src_node_id() != 0) { + _internal_set_src_node_id(from._internal_src_node_id()); + } + if (from._internal_dst_node_id() != 0) { + _internal_set_dst_node_id(from._internal_dst_node_id()); + } + if (!(from._internal_ttl() <= 0 && from._internal_ttl() >= 0)) { + _internal_set_ttl(from._internal_ttl()); + } + if (!(from._internal_created_at() <= 0 && from._internal_created_at() >= 0)) { + _internal_set_created_at(from._internal_created_at()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Metadata::CopyFrom(const Metadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Metadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Metadata::IsInitialized() const { + return true; +} + +void Metadata::InternalSwap(Metadata* 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_id_, lhs_arena, + &other->message_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &reply_to_message_id_, lhs_arena, + &other->reply_to_message_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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &message_type_, lhs_arena, + &other->message_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Metadata, created_at_) + + sizeof(Metadata::created_at_) + - PROTOBUF_FIELD_OFFSET(Metadata, run_id_)>( + reinterpret_cast(&run_id_), + reinterpret_cast(&other->run_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Metadata::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fmessage_2eproto_getter, &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, + file_level_metadata_flwr_2fproto_2fmessage_2eproto[4]); +} + +// =================================================================== + +class ObjectIDs::_Internal { + public: +}; + +ObjectIDs::ObjectIDs(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + object_ids_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ObjectIDs) +} +ObjectIDs::ObjectIDs(const ObjectIDs& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + object_ids_(from.object_ids_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.ObjectIDs) +} + +void ObjectIDs::SharedCtor() { +} + +ObjectIDs::~ObjectIDs() { + // @@protoc_insertion_point(destructor:flwr.proto.ObjectIDs) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ObjectIDs::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ObjectIDs::ArenaDtor(void* object) { + ObjectIDs* _this = reinterpret_cast< ObjectIDs* >(object); + (void)_this; +} +void ObjectIDs::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ObjectIDs::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ObjectIDs::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ObjectIDs) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + object_ids_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ObjectIDs::_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 object_ids = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_object_ids(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.ObjectIDs.object_ids")); + 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* ObjectIDs::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ObjectIDs) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string object_ids = 1; + for (int i = 0, n = this->_internal_object_ids_size(); i < n; i++) { + const auto& s = this->_internal_object_ids(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.ObjectIDs.object_ids"); + 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.ObjectIDs) + return target; +} + +size_t ObjectIDs::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ObjectIDs) + 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 object_ids = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(object_ids_.size()); + for (int i = 0, n = object_ids_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + object_ids_.Get(i)); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ObjectIDs::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ObjectIDs::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ObjectIDs::GetClassData() const { return &_class_data_; } + +void ObjectIDs::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ObjectIDs::MergeFrom(const ObjectIDs& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ObjectIDs) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + object_ids_.MergeFrom(from.object_ids_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ObjectIDs::CopyFrom(const ObjectIDs& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ObjectIDs) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ObjectIDs::IsInitialized() const { + return true; +} + +void ObjectIDs::InternalSwap(ObjectIDs* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + object_ids_.InternalSwap(&other->object_ids_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ObjectIDs::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fmessage_2eproto_getter, &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, + file_level_metadata_flwr_2fproto_2fmessage_2eproto[5]); +} + +// =================================================================== + +class ObjectTree::_Internal { + public: +}; + +ObjectTree::ObjectTree(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + children_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ObjectTree) +} +ObjectTree::ObjectTree(const ObjectTree& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + children_(from.children_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + object_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_object_id().empty()) { + object_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_object_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.ObjectTree) +} + +void ObjectTree::SharedCtor() { +object_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +ObjectTree::~ObjectTree() { + // @@protoc_insertion_point(destructor:flwr.proto.ObjectTree) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ObjectTree::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + object_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ObjectTree::ArenaDtor(void* object) { + ObjectTree* _this = reinterpret_cast< ObjectTree* >(object); + (void)_this; +} +void ObjectTree::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ObjectTree::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ObjectTree::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ObjectTree) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + children_.Clear(); + object_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ObjectTree::_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 object_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_object_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.ObjectTree.object_id")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .flwr.proto.ObjectTree children = 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_children(), 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* ObjectTree::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ObjectTree) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string object_id = 1; + if (!this->_internal_object_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_object_id().data(), static_cast(this->_internal_object_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.ObjectTree.object_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_object_id(), target); + } + + // repeated .flwr.proto.ObjectTree children = 2; + for (unsigned int i = 0, + n = static_cast(this->_internal_children_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, this->_internal_children(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.ObjectTree) + return target; +} + +size_t ObjectTree::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ObjectTree) + 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.ObjectTree children = 2; + total_size += 1UL * this->_internal_children_size(); + for (const auto& msg : this->children_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string object_id = 1; + if (!this->_internal_object_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_object_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ObjectTree::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ObjectTree::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ObjectTree::GetClassData() const { return &_class_data_; } + +void ObjectTree::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ObjectTree::MergeFrom(const ObjectTree& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ObjectTree) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + children_.MergeFrom(from.children_); + if (!from._internal_object_id().empty()) { + _internal_set_object_id(from._internal_object_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ObjectTree::CopyFrom(const ObjectTree& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ObjectTree) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ObjectTree::IsInitialized() const { + return true; +} + +void ObjectTree::InternalSwap(ObjectTree* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + children_.InternalSwap(&other->children_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &object_id_, lhs_arena, + &other->object_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ObjectTree::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fmessage_2eproto_getter, &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, + file_level_metadata_flwr_2fproto_2fmessage_2eproto[6]); +} + +// =================================================================== + +class PushObjectRequest::_Internal { + public: + static const ::flwr::proto::Node& node(const PushObjectRequest* msg); +}; + +const ::flwr::proto::Node& +PushObjectRequest::_Internal::node(const PushObjectRequest* msg) { + return *msg->node_; +} +void PushObjectRequest::clear_node() { + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; +} +PushObjectRequest::PushObjectRequest(::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.PushObjectRequest) +} +PushObjectRequest::PushObjectRequest(const PushObjectRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + object_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_object_id().empty()) { + object_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_object_id(), + GetArenaForAllocation()); + } + object_content_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_object_content().empty()) { + object_content_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_object_content(), + GetArenaForAllocation()); + } + if (from._internal_has_node()) { + node_ = new ::flwr::proto::Node(*from.node_); + } else { + node_ = nullptr; + } + run_id_ = from.run_id_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.PushObjectRequest) +} + +void PushObjectRequest::SharedCtor() { +object_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +object_content_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&node_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&run_id_) - + reinterpret_cast(&node_)) + sizeof(run_id_)); +} + +PushObjectRequest::~PushObjectRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.PushObjectRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void PushObjectRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + object_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + object_content_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete node_; +} + +void PushObjectRequest::ArenaDtor(void* object) { + PushObjectRequest* _this = reinterpret_cast< PushObjectRequest* >(object); + (void)_this; +} +void PushObjectRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PushObjectRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PushObjectRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.PushObjectRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + object_id_.ClearToEmpty(); + object_content_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; + run_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PushObjectRequest::_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; + // uint64 run_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + run_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string object_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_object_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.PushObjectRequest.object_id")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes object_content = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_object_content(); + 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* PushObjectRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PushObjectRequest) + ::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); + } + + // uint64 run_id = 2; + if (this->_internal_run_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_run_id(), target); + } + + // string object_id = 3; + if (!this->_internal_object_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_object_id().data(), static_cast(this->_internal_object_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.PushObjectRequest.object_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_object_id(), target); + } + + // bytes object_content = 4; + if (!this->_internal_object_content().empty()) { + target = stream->WriteBytesMaybeAliased( + 4, this->_internal_object_content(), 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.PushObjectRequest) + return target; +} + +size_t PushObjectRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PushObjectRequest) + 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 object_id = 3; + if (!this->_internal_object_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_object_id()); + } + + // bytes object_content = 4; + if (!this->_internal_object_content().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_object_content()); + } + + // .flwr.proto.Node node = 1; + if (this->_internal_has_node()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *node_); + } + + // uint64 run_id = 2; + if (this->_internal_run_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_run_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PushObjectRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PushObjectRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PushObjectRequest::GetClassData() const { return &_class_data_; } + +void PushObjectRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void PushObjectRequest::MergeFrom(const PushObjectRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PushObjectRequest) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_object_id().empty()) { + _internal_set_object_id(from._internal_object_id()); + } + if (!from._internal_object_content().empty()) { + _internal_set_object_content(from._internal_object_content()); + } + if (from._internal_has_node()) { + _internal_mutable_node()->::flwr::proto::Node::MergeFrom(from._internal_node()); + } + if (from._internal_run_id() != 0) { + _internal_set_run_id(from._internal_run_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PushObjectRequest::CopyFrom(const PushObjectRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PushObjectRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PushObjectRequest::IsInitialized() const { + return true; +} + +void PushObjectRequest::InternalSwap(PushObjectRequest* 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(), + &object_id_, lhs_arena, + &other->object_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &object_content_, lhs_arena, + &other->object_content_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PushObjectRequest, run_id_) + + sizeof(PushObjectRequest::run_id_) + - PROTOBUF_FIELD_OFFSET(PushObjectRequest, node_)>( + reinterpret_cast(&node_), + reinterpret_cast(&other->node_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PushObjectRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fmessage_2eproto_getter, &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, + file_level_metadata_flwr_2fproto_2fmessage_2eproto[7]); +} + +// =================================================================== + +class PushObjectResponse::_Internal { + public: +}; + +PushObjectResponse::PushObjectResponse(::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.PushObjectResponse) +} +PushObjectResponse::PushObjectResponse(const PushObjectResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + stored_ = from.stored_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.PushObjectResponse) +} + +void PushObjectResponse::SharedCtor() { +stored_ = false; +} + +PushObjectResponse::~PushObjectResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.PushObjectResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void PushObjectResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void PushObjectResponse::ArenaDtor(void* object) { + PushObjectResponse* _this = reinterpret_cast< PushObjectResponse* >(object); + (void)_this; +} +void PushObjectResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PushObjectResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PushObjectResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.PushObjectResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + stored_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PushObjectResponse::_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) { + // bool stored = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + stored_ = ::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* PushObjectResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PushObjectResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool stored = 1; + if (this->_internal_stored() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_stored(), 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.PushObjectResponse) + return target; +} + +size_t PushObjectResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PushObjectResponse) + 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; + + // bool stored = 1; + if (this->_internal_stored() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PushObjectResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PushObjectResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PushObjectResponse::GetClassData() const { return &_class_data_; } + +void PushObjectResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void PushObjectResponse::MergeFrom(const PushObjectResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PushObjectResponse) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_stored() != 0) { + _internal_set_stored(from._internal_stored()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PushObjectResponse::CopyFrom(const PushObjectResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PushObjectResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PushObjectResponse::IsInitialized() const { + return true; +} + +void PushObjectResponse::InternalSwap(PushObjectResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(stored_, other->stored_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PushObjectResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fmessage_2eproto_getter, &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, + file_level_metadata_flwr_2fproto_2fmessage_2eproto[8]); +} + +// =================================================================== + +class PullObjectRequest::_Internal { + public: + static const ::flwr::proto::Node& node(const PullObjectRequest* msg); +}; + +const ::flwr::proto::Node& +PullObjectRequest::_Internal::node(const PullObjectRequest* msg) { + return *msg->node_; +} +void PullObjectRequest::clear_node() { + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; +} +PullObjectRequest::PullObjectRequest(::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.PullObjectRequest) +} +PullObjectRequest::PullObjectRequest(const PullObjectRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + object_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_object_id().empty()) { + object_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_object_id(), + GetArenaForAllocation()); + } + if (from._internal_has_node()) { + node_ = new ::flwr::proto::Node(*from.node_); + } else { + node_ = nullptr; + } + run_id_ = from.run_id_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.PullObjectRequest) +} + +void PullObjectRequest::SharedCtor() { +object_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&node_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&run_id_) - + reinterpret_cast(&node_)) + sizeof(run_id_)); +} + +PullObjectRequest::~PullObjectRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.PullObjectRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void PullObjectRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + object_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete node_; +} + +void PullObjectRequest::ArenaDtor(void* object) { + PullObjectRequest* _this = reinterpret_cast< PullObjectRequest* >(object); + (void)_this; +} +void PullObjectRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PullObjectRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PullObjectRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.PullObjectRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + object_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; + run_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PullObjectRequest::_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; + // uint64 run_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + run_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string object_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_object_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.PullObjectRequest.object_id")); + 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* PullObjectRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PullObjectRequest) + ::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); + } + + // uint64 run_id = 2; + if (this->_internal_run_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_run_id(), target); + } + + // string object_id = 3; + if (!this->_internal_object_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_object_id().data(), static_cast(this->_internal_object_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.PullObjectRequest.object_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_object_id(), 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.PullObjectRequest) + return target; +} + +size_t PullObjectRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PullObjectRequest) + 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 object_id = 3; + if (!this->_internal_object_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_object_id()); + } + + // .flwr.proto.Node node = 1; + if (this->_internal_has_node()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *node_); + } + + // uint64 run_id = 2; + if (this->_internal_run_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_run_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PullObjectRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PullObjectRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PullObjectRequest::GetClassData() const { return &_class_data_; } + +void PullObjectRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void PullObjectRequest::MergeFrom(const PullObjectRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PullObjectRequest) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_object_id().empty()) { + _internal_set_object_id(from._internal_object_id()); + } + if (from._internal_has_node()) { + _internal_mutable_node()->::flwr::proto::Node::MergeFrom(from._internal_node()); + } + if (from._internal_run_id() != 0) { + _internal_set_run_id(from._internal_run_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PullObjectRequest::CopyFrom(const PullObjectRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PullObjectRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PullObjectRequest::IsInitialized() const { + return true; +} + +void PullObjectRequest::InternalSwap(PullObjectRequest* 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(), + &object_id_, lhs_arena, + &other->object_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PullObjectRequest, run_id_) + + sizeof(PullObjectRequest::run_id_) + - PROTOBUF_FIELD_OFFSET(PullObjectRequest, node_)>( + reinterpret_cast(&node_), + reinterpret_cast(&other->node_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PullObjectRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fmessage_2eproto_getter, &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, + file_level_metadata_flwr_2fproto_2fmessage_2eproto[9]); +} + +// =================================================================== + +class PullObjectResponse::_Internal { + public: +}; + +PullObjectResponse::PullObjectResponse(::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.PullObjectResponse) +} +PullObjectResponse::PullObjectResponse(const PullObjectResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + object_content_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_object_content().empty()) { + object_content_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_object_content(), + GetArenaForAllocation()); + } + ::memcpy(&object_found_, &from.object_found_, + static_cast(reinterpret_cast(&object_available_) - + reinterpret_cast(&object_found_)) + sizeof(object_available_)); + // @@protoc_insertion_point(copy_constructor:flwr.proto.PullObjectResponse) +} + +void PullObjectResponse::SharedCtor() { +object_content_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&object_found_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&object_available_) - + reinterpret_cast(&object_found_)) + sizeof(object_available_)); +} + +PullObjectResponse::~PullObjectResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.PullObjectResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void PullObjectResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + object_content_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void PullObjectResponse::ArenaDtor(void* object) { + PullObjectResponse* _this = reinterpret_cast< PullObjectResponse* >(object); + (void)_this; +} +void PullObjectResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PullObjectResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PullObjectResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.PullObjectResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + object_content_.ClearToEmpty(); + ::memset(&object_found_, 0, static_cast( + reinterpret_cast(&object_available_) - + reinterpret_cast(&object_found_)) + sizeof(object_available_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PullObjectResponse::_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) { + // bool object_found = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + object_found_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool object_available = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + object_available_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes object_content = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_object_content(); + 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* PullObjectResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PullObjectResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool object_found = 1; + if (this->_internal_object_found() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_object_found(), target); + } + + // bool object_available = 2; + if (this->_internal_object_available() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_object_available(), target); + } + + // bytes object_content = 3; + if (!this->_internal_object_content().empty()) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_object_content(), 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.PullObjectResponse) + return target; +} + +size_t PullObjectResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PullObjectResponse) + 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; + + // bytes object_content = 3; + if (!this->_internal_object_content().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_object_content()); + } + + // bool object_found = 1; + if (this->_internal_object_found() != 0) { + total_size += 1 + 1; + } + + // bool object_available = 2; + if (this->_internal_object_available() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PullObjectResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PullObjectResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PullObjectResponse::GetClassData() const { return &_class_data_; } + +void PullObjectResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void PullObjectResponse::MergeFrom(const PullObjectResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PullObjectResponse) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_object_content().empty()) { + _internal_set_object_content(from._internal_object_content()); + } + if (from._internal_object_found() != 0) { + _internal_set_object_found(from._internal_object_found()); + } + if (from._internal_object_available() != 0) { + _internal_set_object_available(from._internal_object_available()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PullObjectResponse::CopyFrom(const PullObjectResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PullObjectResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PullObjectResponse::IsInitialized() const { + return true; +} + +void PullObjectResponse::InternalSwap(PullObjectResponse* 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(), + &object_content_, lhs_arena, + &other->object_content_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PullObjectResponse, object_available_) + + sizeof(PullObjectResponse::object_available_) + - PROTOBUF_FIELD_OFFSET(PullObjectResponse, object_found_)>( + reinterpret_cast(&object_found_), + reinterpret_cast(&other->object_found_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PullObjectResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fmessage_2eproto_getter, &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, + file_level_metadata_flwr_2fproto_2fmessage_2eproto[10]); +} + +// =================================================================== + +class ConfirmMessageReceivedRequest::_Internal { + public: + static const ::flwr::proto::Node& node(const ConfirmMessageReceivedRequest* msg); +}; + +const ::flwr::proto::Node& +ConfirmMessageReceivedRequest::_Internal::node(const ConfirmMessageReceivedRequest* msg) { + return *msg->node_; +} +void ConfirmMessageReceivedRequest::clear_node() { + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; +} +ConfirmMessageReceivedRequest::ConfirmMessageReceivedRequest(::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.ConfirmMessageReceivedRequest) +} +ConfirmMessageReceivedRequest::ConfirmMessageReceivedRequest(const ConfirmMessageReceivedRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_object_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_message_object_id().empty()) { + message_object_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message_object_id(), + GetArenaForAllocation()); + } + if (from._internal_has_node()) { + node_ = new ::flwr::proto::Node(*from.node_); + } else { + node_ = nullptr; + } + run_id_ = from.run_id_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.ConfirmMessageReceivedRequest) +} + +void ConfirmMessageReceivedRequest::SharedCtor() { +message_object_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&node_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&run_id_) - + reinterpret_cast(&node_)) + sizeof(run_id_)); +} + +ConfirmMessageReceivedRequest::~ConfirmMessageReceivedRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.ConfirmMessageReceivedRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ConfirmMessageReceivedRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_object_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete node_; +} + +void ConfirmMessageReceivedRequest::ArenaDtor(void* object) { + ConfirmMessageReceivedRequest* _this = reinterpret_cast< ConfirmMessageReceivedRequest* >(object); + (void)_this; +} +void ConfirmMessageReceivedRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ConfirmMessageReceivedRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ConfirmMessageReceivedRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ConfirmMessageReceivedRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + message_object_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; + run_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ConfirmMessageReceivedRequest::_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; + // uint64 run_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + run_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string message_object_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_message_object_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.ConfirmMessageReceivedRequest.message_object_id")); + 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* ConfirmMessageReceivedRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ConfirmMessageReceivedRequest) + ::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); + } + + // uint64 run_id = 2; + if (this->_internal_run_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_run_id(), target); + } + + // string message_object_id = 3; + if (!this->_internal_message_object_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message_object_id().data(), static_cast(this->_internal_message_object_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.ConfirmMessageReceivedRequest.message_object_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_message_object_id(), 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.ConfirmMessageReceivedRequest) + return target; +} + +size_t ConfirmMessageReceivedRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ConfirmMessageReceivedRequest) + 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_object_id = 3; + if (!this->_internal_message_object_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message_object_id()); + } + + // .flwr.proto.Node node = 1; + if (this->_internal_has_node()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *node_); + } + + // uint64 run_id = 2; + if (this->_internal_run_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_run_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConfirmMessageReceivedRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ConfirmMessageReceivedRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConfirmMessageReceivedRequest::GetClassData() const { return &_class_data_; } + +void ConfirmMessageReceivedRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ConfirmMessageReceivedRequest::MergeFrom(const ConfirmMessageReceivedRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ConfirmMessageReceivedRequest) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_message_object_id().empty()) { + _internal_set_message_object_id(from._internal_message_object_id()); + } + if (from._internal_has_node()) { + _internal_mutable_node()->::flwr::proto::Node::MergeFrom(from._internal_node()); + } + if (from._internal_run_id() != 0) { + _internal_set_run_id(from._internal_run_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ConfirmMessageReceivedRequest::CopyFrom(const ConfirmMessageReceivedRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ConfirmMessageReceivedRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConfirmMessageReceivedRequest::IsInitialized() const { + return true; +} + +void ConfirmMessageReceivedRequest::InternalSwap(ConfirmMessageReceivedRequest* 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_object_id_, lhs_arena, + &other->message_object_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ConfirmMessageReceivedRequest, run_id_) + + sizeof(ConfirmMessageReceivedRequest::run_id_) + - PROTOBUF_FIELD_OFFSET(ConfirmMessageReceivedRequest, node_)>( + reinterpret_cast(&node_), + reinterpret_cast(&other->node_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ConfirmMessageReceivedRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fmessage_2eproto_getter, &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, + file_level_metadata_flwr_2fproto_2fmessage_2eproto[11]); +} + +// =================================================================== + +class ConfirmMessageReceivedResponse::_Internal { + public: +}; + +ConfirmMessageReceivedResponse::ConfirmMessageReceivedResponse(::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.ConfirmMessageReceivedResponse) +} +ConfirmMessageReceivedResponse::ConfirmMessageReceivedResponse(const ConfirmMessageReceivedResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.ConfirmMessageReceivedResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConfirmMessageReceivedResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConfirmMessageReceivedResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata ConfirmMessageReceivedResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fmessage_2eproto_getter, &descriptor_table_flwr_2fproto_2fmessage_2eproto_once, + file_level_metadata_flwr_2fproto_2fmessage_2eproto[12]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::flwr::proto::Message* Arena::CreateMaybeMessage< ::flwr::proto::Message >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Message >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Context_NodeConfigEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::Context_NodeConfigEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Context_NodeConfigEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Context_RunConfigEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::Context_RunConfigEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Context_RunConfigEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Context* Arena::CreateMaybeMessage< ::flwr::proto::Context >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Context >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Metadata* Arena::CreateMaybeMessage< ::flwr::proto::Metadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Metadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ObjectIDs* Arena::CreateMaybeMessage< ::flwr::proto::ObjectIDs >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ObjectIDs >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ObjectTree* Arena::CreateMaybeMessage< ::flwr::proto::ObjectTree >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ObjectTree >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::PushObjectRequest* Arena::CreateMaybeMessage< ::flwr::proto::PushObjectRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PushObjectRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::PushObjectResponse* Arena::CreateMaybeMessage< ::flwr::proto::PushObjectResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PushObjectResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::PullObjectRequest* Arena::CreateMaybeMessage< ::flwr::proto::PullObjectRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PullObjectRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::PullObjectResponse* Arena::CreateMaybeMessage< ::flwr::proto::PullObjectResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PullObjectResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ConfirmMessageReceivedRequest* Arena::CreateMaybeMessage< ::flwr::proto::ConfirmMessageReceivedRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ConfirmMessageReceivedRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ConfirmMessageReceivedResponse* Arena::CreateMaybeMessage< ::flwr::proto::ConfirmMessageReceivedResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ConfirmMessageReceivedResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/framework/cc/flwr/include/flwr/proto/message.pb.h b/framework/cc/flwr/include/flwr/proto/message.pb.h new file mode 100644 index 000000000000..f914388b8eca --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/message.pb.h @@ -0,0 +1,3730 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/message.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2fmessage_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2fmessage_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/error.pb.h" +#include "flwr/proto/recorddict.pb.h" +#include "flwr/proto/transport.pb.h" +#include "flwr/proto/node.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flwr_2fproto_2fmessage_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_2fmessage_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[13] + 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_2fmessage_2eproto; +namespace flwr { +namespace proto { +class ConfirmMessageReceivedRequest; +struct ConfirmMessageReceivedRequestDefaultTypeInternal; +extern ConfirmMessageReceivedRequestDefaultTypeInternal _ConfirmMessageReceivedRequest_default_instance_; +class ConfirmMessageReceivedResponse; +struct ConfirmMessageReceivedResponseDefaultTypeInternal; +extern ConfirmMessageReceivedResponseDefaultTypeInternal _ConfirmMessageReceivedResponse_default_instance_; +class Context; +struct ContextDefaultTypeInternal; +extern ContextDefaultTypeInternal _Context_default_instance_; +class Context_NodeConfigEntry_DoNotUse; +struct Context_NodeConfigEntry_DoNotUseDefaultTypeInternal; +extern Context_NodeConfigEntry_DoNotUseDefaultTypeInternal _Context_NodeConfigEntry_DoNotUse_default_instance_; +class Context_RunConfigEntry_DoNotUse; +struct Context_RunConfigEntry_DoNotUseDefaultTypeInternal; +extern Context_RunConfigEntry_DoNotUseDefaultTypeInternal _Context_RunConfigEntry_DoNotUse_default_instance_; +class Message; +struct MessageDefaultTypeInternal; +extern MessageDefaultTypeInternal _Message_default_instance_; +class Metadata; +struct MetadataDefaultTypeInternal; +extern MetadataDefaultTypeInternal _Metadata_default_instance_; +class ObjectIDs; +struct ObjectIDsDefaultTypeInternal; +extern ObjectIDsDefaultTypeInternal _ObjectIDs_default_instance_; +class ObjectTree; +struct ObjectTreeDefaultTypeInternal; +extern ObjectTreeDefaultTypeInternal _ObjectTree_default_instance_; +class PullObjectRequest; +struct PullObjectRequestDefaultTypeInternal; +extern PullObjectRequestDefaultTypeInternal _PullObjectRequest_default_instance_; +class PullObjectResponse; +struct PullObjectResponseDefaultTypeInternal; +extern PullObjectResponseDefaultTypeInternal _PullObjectResponse_default_instance_; +class PushObjectRequest; +struct PushObjectRequestDefaultTypeInternal; +extern PushObjectRequestDefaultTypeInternal _PushObjectRequest_default_instance_; +class PushObjectResponse; +struct PushObjectResponseDefaultTypeInternal; +extern PushObjectResponseDefaultTypeInternal _PushObjectResponse_default_instance_; +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> ::flwr::proto::ConfirmMessageReceivedRequest* Arena::CreateMaybeMessage<::flwr::proto::ConfirmMessageReceivedRequest>(Arena*); +template<> ::flwr::proto::ConfirmMessageReceivedResponse* Arena::CreateMaybeMessage<::flwr::proto::ConfirmMessageReceivedResponse>(Arena*); +template<> ::flwr::proto::Context* Arena::CreateMaybeMessage<::flwr::proto::Context>(Arena*); +template<> ::flwr::proto::Context_NodeConfigEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::Context_NodeConfigEntry_DoNotUse>(Arena*); +template<> ::flwr::proto::Context_RunConfigEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::Context_RunConfigEntry_DoNotUse>(Arena*); +template<> ::flwr::proto::Message* Arena::CreateMaybeMessage<::flwr::proto::Message>(Arena*); +template<> ::flwr::proto::Metadata* Arena::CreateMaybeMessage<::flwr::proto::Metadata>(Arena*); +template<> ::flwr::proto::ObjectIDs* Arena::CreateMaybeMessage<::flwr::proto::ObjectIDs>(Arena*); +template<> ::flwr::proto::ObjectTree* Arena::CreateMaybeMessage<::flwr::proto::ObjectTree>(Arena*); +template<> ::flwr::proto::PullObjectRequest* Arena::CreateMaybeMessage<::flwr::proto::PullObjectRequest>(Arena*); +template<> ::flwr::proto::PullObjectResponse* Arena::CreateMaybeMessage<::flwr::proto::PullObjectResponse>(Arena*); +template<> ::flwr::proto::PushObjectRequest* Arena::CreateMaybeMessage<::flwr::proto::PushObjectRequest>(Arena*); +template<> ::flwr::proto::PushObjectResponse* Arena::CreateMaybeMessage<::flwr::proto::PushObjectResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace flwr { +namespace proto { + +// =================================================================== + +class Message final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Message) */ { + public: + inline Message() : Message(nullptr) {} + ~Message() override; + explicit constexpr Message(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Message(const Message& from); + Message(Message&& from) noexcept + : Message() { + *this = ::std::move(from); + } + + inline Message& operator=(const Message& from) { + CopyFrom(from); + return *this; + } + inline Message& operator=(Message&& 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 Message& default_instance() { + return *internal_default_instance(); + } + static inline const Message* internal_default_instance() { + return reinterpret_cast( + &_Message_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Message& a, Message& b) { + a.Swap(&b); + } + inline void Swap(Message* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Message* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Message* New() const final { + return new Message(); + } + + Message* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Message& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Message& 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(Message* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Message"; + } + protected: + explicit Message(::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 { + kMetadataFieldNumber = 1, + kContentFieldNumber = 2, + kErrorFieldNumber = 3, + }; + // .flwr.proto.Metadata metadata = 1; + bool has_metadata() const; + private: + bool _internal_has_metadata() const; + public: + void clear_metadata(); + const ::flwr::proto::Metadata& metadata() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Metadata* release_metadata(); + ::flwr::proto::Metadata* mutable_metadata(); + void set_allocated_metadata(::flwr::proto::Metadata* metadata); + private: + const ::flwr::proto::Metadata& _internal_metadata() const; + ::flwr::proto::Metadata* _internal_mutable_metadata(); + public: + void unsafe_arena_set_allocated_metadata( + ::flwr::proto::Metadata* metadata); + ::flwr::proto::Metadata* unsafe_arena_release_metadata(); + + // .flwr.proto.RecordDict content = 2; + bool has_content() const; + private: + bool _internal_has_content() const; + public: + void clear_content(); + const ::flwr::proto::RecordDict& content() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::RecordDict* release_content(); + ::flwr::proto::RecordDict* mutable_content(); + void set_allocated_content(::flwr::proto::RecordDict* content); + private: + const ::flwr::proto::RecordDict& _internal_content() const; + ::flwr::proto::RecordDict* _internal_mutable_content(); + public: + void unsafe_arena_set_allocated_content( + ::flwr::proto::RecordDict* content); + ::flwr::proto::RecordDict* unsafe_arena_release_content(); + + // .flwr.proto.Error error = 3; + bool has_error() const; + private: + bool _internal_has_error() const; + public: + void clear_error(); + const ::flwr::proto::Error& error() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Error* release_error(); + ::flwr::proto::Error* mutable_error(); + void set_allocated_error(::flwr::proto::Error* error); + private: + const ::flwr::proto::Error& _internal_error() const; + ::flwr::proto::Error* _internal_mutable_error(); + public: + void unsafe_arena_set_allocated_error( + ::flwr::proto::Error* error); + ::flwr::proto::Error* unsafe_arena_release_error(); + + // @@protoc_insertion_point(class_scope:flwr.proto.Message) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::flwr::proto::Metadata* metadata_; + ::flwr::proto::RecordDict* content_; + ::flwr::proto::Error* error_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fmessage_2eproto; +}; +// ------------------------------------------------------------------- + +class Context_NodeConfigEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + Context_NodeConfigEntry_DoNotUse(); + explicit constexpr Context_NodeConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit Context_NodeConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const Context_NodeConfigEntry_DoNotUse& other); + static const Context_NodeConfigEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Context_NodeConfigEntry_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.Context.NodeConfigEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class Context_RunConfigEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + Context_RunConfigEntry_DoNotUse(); + explicit constexpr Context_RunConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit Context_RunConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const Context_RunConfigEntry_DoNotUse& other); + static const Context_RunConfigEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Context_RunConfigEntry_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.Context.RunConfigEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class Context final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Context) */ { + public: + inline Context() : Context(nullptr) {} + ~Context() override; + explicit constexpr Context(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Context(const Context& from); + Context(Context&& from) noexcept + : Context() { + *this = ::std::move(from); + } + + inline Context& operator=(const Context& from) { + CopyFrom(from); + return *this; + } + inline Context& operator=(Context&& 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 Context& default_instance() { + return *internal_default_instance(); + } + static inline const Context* internal_default_instance() { + return reinterpret_cast( + &_Context_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(Context& a, Context& b) { + a.Swap(&b); + } + inline void Swap(Context* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Context* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Context* New() const final { + return new Context(); + } + + Context* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Context& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Context& 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(Context* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Context"; + } + protected: + explicit Context(::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 { + kNodeConfigFieldNumber = 3, + kRunConfigFieldNumber = 5, + kStateFieldNumber = 4, + kRunIdFieldNumber = 1, + kNodeIdFieldNumber = 2, + }; + // map node_config = 3; + int node_config_size() const; + private: + int _internal_node_config_size() const; + public: + void clear_node_config(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + _internal_node_config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + _internal_mutable_node_config(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + node_config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + mutable_node_config(); + + // map run_config = 5; + int run_config_size() const; + private: + int _internal_run_config_size() const; + public: + void clear_run_config(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + _internal_run_config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + _internal_mutable_run_config(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + run_config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + mutable_run_config(); + + // .flwr.proto.RecordDict state = 4; + bool has_state() const; + private: + bool _internal_has_state() const; + public: + void clear_state(); + const ::flwr::proto::RecordDict& state() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::RecordDict* release_state(); + ::flwr::proto::RecordDict* mutable_state(); + void set_allocated_state(::flwr::proto::RecordDict* state); + private: + const ::flwr::proto::RecordDict& _internal_state() const; + ::flwr::proto::RecordDict* _internal_mutable_state(); + public: + void unsafe_arena_set_allocated_state( + ::flwr::proto::RecordDict* state); + ::flwr::proto::RecordDict* unsafe_arena_release_state(); + + // uint64 run_id = 1; + void clear_run_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 run_id() const; + void set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_run_id() const; + void _internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // uint64 node_id = 2; + void clear_node_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 node_id() const; + void set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_node_id() const; + void _internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.Context) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + Context_NodeConfigEntry_DoNotUse, + std::string, ::flwr::proto::Scalar, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> node_config_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + Context_RunConfigEntry_DoNotUse, + std::string, ::flwr::proto::Scalar, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> run_config_; + ::flwr::proto::RecordDict* state_; + ::PROTOBUF_NAMESPACE_ID::uint64 run_id_; + ::PROTOBUF_NAMESPACE_ID::uint64 node_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fmessage_2eproto; +}; +// ------------------------------------------------------------------- + +class Metadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Metadata) */ { + public: + inline Metadata() : Metadata(nullptr) {} + ~Metadata() override; + explicit constexpr Metadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Metadata(const Metadata& from); + Metadata(Metadata&& from) noexcept + : Metadata() { + *this = ::std::move(from); + } + + inline Metadata& operator=(const Metadata& from) { + CopyFrom(from); + return *this; + } + inline Metadata& operator=(Metadata&& 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 Metadata& default_instance() { + return *internal_default_instance(); + } + static inline const Metadata* internal_default_instance() { + return reinterpret_cast( + &_Metadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(Metadata& a, Metadata& b) { + a.Swap(&b); + } + inline void Swap(Metadata* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Metadata* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Metadata* New() const final { + return new Metadata(); + } + + Metadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Metadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Metadata& 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(Metadata* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Metadata"; + } + protected: + explicit Metadata(::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 { + kMessageIdFieldNumber = 2, + kReplyToMessageIdFieldNumber = 5, + kGroupIdFieldNumber = 6, + kMessageTypeFieldNumber = 8, + kRunIdFieldNumber = 1, + kSrcNodeIdFieldNumber = 3, + kDstNodeIdFieldNumber = 4, + kTtlFieldNumber = 7, + kCreatedAtFieldNumber = 9, + }; + // string message_id = 2; + void clear_message_id(); + const std::string& message_id() const; + template + void set_message_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_message_id(); + PROTOBUF_MUST_USE_RESULT std::string* release_message_id(); + void set_allocated_message_id(std::string* message_id); + private: + const std::string& _internal_message_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message_id(const std::string& value); + std::string* _internal_mutable_message_id(); + public: + + // string reply_to_message_id = 5; + void clear_reply_to_message_id(); + const std::string& reply_to_message_id() const; + template + void set_reply_to_message_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_reply_to_message_id(); + PROTOBUF_MUST_USE_RESULT std::string* release_reply_to_message_id(); + void set_allocated_reply_to_message_id(std::string* reply_to_message_id); + private: + const std::string& _internal_reply_to_message_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reply_to_message_id(const std::string& value); + std::string* _internal_mutable_reply_to_message_id(); + public: + + // string group_id = 6; + 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: + + // string message_type = 8; + void clear_message_type(); + const std::string& message_type() const; + template + void set_message_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_message_type(); + PROTOBUF_MUST_USE_RESULT std::string* release_message_type(); + void set_allocated_message_type(std::string* message_type); + private: + const std::string& _internal_message_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message_type(const std::string& value); + std::string* _internal_mutable_message_type(); + public: + + // uint64 run_id = 1; + void clear_run_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 run_id() const; + void set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_run_id() const; + void _internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // uint64 src_node_id = 3; + void clear_src_node_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 src_node_id() const; + void set_src_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_src_node_id() const; + void _internal_set_src_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // uint64 dst_node_id = 4; + void clear_dst_node_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 dst_node_id() const; + void set_dst_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_dst_node_id() const; + void _internal_set_dst_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // double ttl = 7; + void clear_ttl(); + double ttl() const; + void set_ttl(double value); + private: + double _internal_ttl() const; + void _internal_set_ttl(double value); + public: + + // double created_at = 9; + void clear_created_at(); + double created_at() const; + void set_created_at(double value); + private: + double _internal_created_at() const; + void _internal_set_created_at(double value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.Metadata) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reply_to_message_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr group_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_type_; + ::PROTOBUF_NAMESPACE_ID::uint64 run_id_; + ::PROTOBUF_NAMESPACE_ID::uint64 src_node_id_; + ::PROTOBUF_NAMESPACE_ID::uint64 dst_node_id_; + double ttl_; + double created_at_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fmessage_2eproto; +}; +// ------------------------------------------------------------------- + +class ObjectIDs final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ObjectIDs) */ { + public: + inline ObjectIDs() : ObjectIDs(nullptr) {} + ~ObjectIDs() override; + explicit constexpr ObjectIDs(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ObjectIDs(const ObjectIDs& from); + ObjectIDs(ObjectIDs&& from) noexcept + : ObjectIDs() { + *this = ::std::move(from); + } + + inline ObjectIDs& operator=(const ObjectIDs& from) { + CopyFrom(from); + return *this; + } + inline ObjectIDs& operator=(ObjectIDs&& 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 ObjectIDs& default_instance() { + return *internal_default_instance(); + } + static inline const ObjectIDs* internal_default_instance() { + return reinterpret_cast( + &_ObjectIDs_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(ObjectIDs& a, ObjectIDs& b) { + a.Swap(&b); + } + inline void Swap(ObjectIDs* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ObjectIDs* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ObjectIDs* New() const final { + return new ObjectIDs(); + } + + ObjectIDs* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ObjectIDs& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ObjectIDs& 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(ObjectIDs* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ObjectIDs"; + } + protected: + explicit ObjectIDs(::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 { + kObjectIdsFieldNumber = 1, + }; + // repeated string object_ids = 1; + int object_ids_size() const; + private: + int _internal_object_ids_size() const; + public: + void clear_object_ids(); + const std::string& object_ids(int index) const; + std::string* mutable_object_ids(int index); + void set_object_ids(int index, const std::string& value); + void set_object_ids(int index, std::string&& value); + void set_object_ids(int index, const char* value); + void set_object_ids(int index, const char* value, size_t size); + std::string* add_object_ids(); + void add_object_ids(const std::string& value); + void add_object_ids(std::string&& value); + void add_object_ids(const char* value); + void add_object_ids(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& object_ids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_object_ids(); + private: + const std::string& _internal_object_ids(int index) const; + std::string* _internal_add_object_ids(); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.ObjectIDs) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField object_ids_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fmessage_2eproto; +}; +// ------------------------------------------------------------------- + +class ObjectTree final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ObjectTree) */ { + public: + inline ObjectTree() : ObjectTree(nullptr) {} + ~ObjectTree() override; + explicit constexpr ObjectTree(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ObjectTree(const ObjectTree& from); + ObjectTree(ObjectTree&& from) noexcept + : ObjectTree() { + *this = ::std::move(from); + } + + inline ObjectTree& operator=(const ObjectTree& from) { + CopyFrom(from); + return *this; + } + inline ObjectTree& operator=(ObjectTree&& 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 ObjectTree& default_instance() { + return *internal_default_instance(); + } + static inline const ObjectTree* internal_default_instance() { + return reinterpret_cast( + &_ObjectTree_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(ObjectTree& a, ObjectTree& b) { + a.Swap(&b); + } + inline void Swap(ObjectTree* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ObjectTree* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ObjectTree* New() const final { + return new ObjectTree(); + } + + ObjectTree* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ObjectTree& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ObjectTree& 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(ObjectTree* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ObjectTree"; + } + protected: + explicit ObjectTree(::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 { + kChildrenFieldNumber = 2, + kObjectIdFieldNumber = 1, + }; + // repeated .flwr.proto.ObjectTree children = 2; + int children_size() const; + private: + int _internal_children_size() const; + public: + void clear_children(); + ::flwr::proto::ObjectTree* mutable_children(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree >* + mutable_children(); + private: + const ::flwr::proto::ObjectTree& _internal_children(int index) const; + ::flwr::proto::ObjectTree* _internal_add_children(); + public: + const ::flwr::proto::ObjectTree& children(int index) const; + ::flwr::proto::ObjectTree* add_children(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree >& + children() const; + + // string object_id = 1; + void clear_object_id(); + const std::string& object_id() const; + template + void set_object_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_object_id(); + PROTOBUF_MUST_USE_RESULT std::string* release_object_id(); + void set_allocated_object_id(std::string* object_id); + private: + const std::string& _internal_object_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_object_id(const std::string& value); + std::string* _internal_mutable_object_id(); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.ObjectTree) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree > children_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr object_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fmessage_2eproto; +}; +// ------------------------------------------------------------------- + +class PushObjectRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PushObjectRequest) */ { + public: + inline PushObjectRequest() : PushObjectRequest(nullptr) {} + ~PushObjectRequest() override; + explicit constexpr PushObjectRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PushObjectRequest(const PushObjectRequest& from); + PushObjectRequest(PushObjectRequest&& from) noexcept + : PushObjectRequest() { + *this = ::std::move(from); + } + + inline PushObjectRequest& operator=(const PushObjectRequest& from) { + CopyFrom(from); + return *this; + } + inline PushObjectRequest& operator=(PushObjectRequest&& 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 PushObjectRequest& default_instance() { + return *internal_default_instance(); + } + static inline const PushObjectRequest* internal_default_instance() { + return reinterpret_cast( + &_PushObjectRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(PushObjectRequest& a, PushObjectRequest& b) { + a.Swap(&b); + } + inline void Swap(PushObjectRequest* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PushObjectRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PushObjectRequest* New() const final { + return new PushObjectRequest(); + } + + PushObjectRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PushObjectRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PushObjectRequest& 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(PushObjectRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.PushObjectRequest"; + } + protected: + explicit PushObjectRequest(::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 { + kObjectIdFieldNumber = 3, + kObjectContentFieldNumber = 4, + kNodeFieldNumber = 1, + kRunIdFieldNumber = 2, + }; + // string object_id = 3; + void clear_object_id(); + const std::string& object_id() const; + template + void set_object_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_object_id(); + PROTOBUF_MUST_USE_RESULT std::string* release_object_id(); + void set_allocated_object_id(std::string* object_id); + private: + const std::string& _internal_object_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_object_id(const std::string& value); + std::string* _internal_mutable_object_id(); + public: + + // bytes object_content = 4; + void clear_object_content(); + const std::string& object_content() const; + template + void set_object_content(ArgT0&& arg0, ArgT... args); + std::string* mutable_object_content(); + PROTOBUF_MUST_USE_RESULT std::string* release_object_content(); + void set_allocated_object_content(std::string* object_content); + private: + const std::string& _internal_object_content() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_object_content(const std::string& value); + std::string* _internal_mutable_object_content(); + 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(); + + // uint64 run_id = 2; + void clear_run_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 run_id() const; + void set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_run_id() const; + void _internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.PushObjectRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr object_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr object_content_; + ::flwr::proto::Node* node_; + ::PROTOBUF_NAMESPACE_ID::uint64 run_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fmessage_2eproto; +}; +// ------------------------------------------------------------------- + +class PushObjectResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PushObjectResponse) */ { + public: + inline PushObjectResponse() : PushObjectResponse(nullptr) {} + ~PushObjectResponse() override; + explicit constexpr PushObjectResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PushObjectResponse(const PushObjectResponse& from); + PushObjectResponse(PushObjectResponse&& from) noexcept + : PushObjectResponse() { + *this = ::std::move(from); + } + + inline PushObjectResponse& operator=(const PushObjectResponse& from) { + CopyFrom(from); + return *this; + } + inline PushObjectResponse& operator=(PushObjectResponse&& 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 PushObjectResponse& default_instance() { + return *internal_default_instance(); + } + static inline const PushObjectResponse* internal_default_instance() { + return reinterpret_cast( + &_PushObjectResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(PushObjectResponse& a, PushObjectResponse& b) { + a.Swap(&b); + } + inline void Swap(PushObjectResponse* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PushObjectResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PushObjectResponse* New() const final { + return new PushObjectResponse(); + } + + PushObjectResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PushObjectResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PushObjectResponse& 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(PushObjectResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.PushObjectResponse"; + } + protected: + explicit PushObjectResponse(::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 { + kStoredFieldNumber = 1, + }; + // bool stored = 1; + void clear_stored(); + bool stored() const; + void set_stored(bool value); + private: + bool _internal_stored() const; + void _internal_set_stored(bool value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.PushObjectResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool stored_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fmessage_2eproto; +}; +// ------------------------------------------------------------------- + +class PullObjectRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PullObjectRequest) */ { + public: + inline PullObjectRequest() : PullObjectRequest(nullptr) {} + ~PullObjectRequest() override; + explicit constexpr PullObjectRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PullObjectRequest(const PullObjectRequest& from); + PullObjectRequest(PullObjectRequest&& from) noexcept + : PullObjectRequest() { + *this = ::std::move(from); + } + + inline PullObjectRequest& operator=(const PullObjectRequest& from) { + CopyFrom(from); + return *this; + } + inline PullObjectRequest& operator=(PullObjectRequest&& 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 PullObjectRequest& default_instance() { + return *internal_default_instance(); + } + static inline const PullObjectRequest* internal_default_instance() { + return reinterpret_cast( + &_PullObjectRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(PullObjectRequest& a, PullObjectRequest& b) { + a.Swap(&b); + } + inline void Swap(PullObjectRequest* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PullObjectRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PullObjectRequest* New() const final { + return new PullObjectRequest(); + } + + PullObjectRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PullObjectRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PullObjectRequest& 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(PullObjectRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.PullObjectRequest"; + } + protected: + explicit PullObjectRequest(::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 { + kObjectIdFieldNumber = 3, + kNodeFieldNumber = 1, + kRunIdFieldNumber = 2, + }; + // string object_id = 3; + void clear_object_id(); + const std::string& object_id() const; + template + void set_object_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_object_id(); + PROTOBUF_MUST_USE_RESULT std::string* release_object_id(); + void set_allocated_object_id(std::string* object_id); + private: + const std::string& _internal_object_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_object_id(const std::string& value); + std::string* _internal_mutable_object_id(); + 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(); + + // uint64 run_id = 2; + void clear_run_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 run_id() const; + void set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_run_id() const; + void _internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.PullObjectRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr object_id_; + ::flwr::proto::Node* node_; + ::PROTOBUF_NAMESPACE_ID::uint64 run_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fmessage_2eproto; +}; +// ------------------------------------------------------------------- + +class PullObjectResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PullObjectResponse) */ { + public: + inline PullObjectResponse() : PullObjectResponse(nullptr) {} + ~PullObjectResponse() override; + explicit constexpr PullObjectResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PullObjectResponse(const PullObjectResponse& from); + PullObjectResponse(PullObjectResponse&& from) noexcept + : PullObjectResponse() { + *this = ::std::move(from); + } + + inline PullObjectResponse& operator=(const PullObjectResponse& from) { + CopyFrom(from); + return *this; + } + inline PullObjectResponse& operator=(PullObjectResponse&& 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 PullObjectResponse& default_instance() { + return *internal_default_instance(); + } + static inline const PullObjectResponse* internal_default_instance() { + return reinterpret_cast( + &_PullObjectResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(PullObjectResponse& a, PullObjectResponse& b) { + a.Swap(&b); + } + inline void Swap(PullObjectResponse* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PullObjectResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PullObjectResponse* New() const final { + return new PullObjectResponse(); + } + + PullObjectResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PullObjectResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PullObjectResponse& 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(PullObjectResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.PullObjectResponse"; + } + protected: + explicit PullObjectResponse(::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 { + kObjectContentFieldNumber = 3, + kObjectFoundFieldNumber = 1, + kObjectAvailableFieldNumber = 2, + }; + // bytes object_content = 3; + void clear_object_content(); + const std::string& object_content() const; + template + void set_object_content(ArgT0&& arg0, ArgT... args); + std::string* mutable_object_content(); + PROTOBUF_MUST_USE_RESULT std::string* release_object_content(); + void set_allocated_object_content(std::string* object_content); + private: + const std::string& _internal_object_content() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_object_content(const std::string& value); + std::string* _internal_mutable_object_content(); + public: + + // bool object_found = 1; + void clear_object_found(); + bool object_found() const; + void set_object_found(bool value); + private: + bool _internal_object_found() const; + void _internal_set_object_found(bool value); + public: + + // bool object_available = 2; + void clear_object_available(); + bool object_available() const; + void set_object_available(bool value); + private: + bool _internal_object_available() const; + void _internal_set_object_available(bool value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.PullObjectResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr object_content_; + bool object_found_; + bool object_available_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fmessage_2eproto; +}; +// ------------------------------------------------------------------- + +class ConfirmMessageReceivedRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ConfirmMessageReceivedRequest) */ { + public: + inline ConfirmMessageReceivedRequest() : ConfirmMessageReceivedRequest(nullptr) {} + ~ConfirmMessageReceivedRequest() override; + explicit constexpr ConfirmMessageReceivedRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ConfirmMessageReceivedRequest(const ConfirmMessageReceivedRequest& from); + ConfirmMessageReceivedRequest(ConfirmMessageReceivedRequest&& from) noexcept + : ConfirmMessageReceivedRequest() { + *this = ::std::move(from); + } + + inline ConfirmMessageReceivedRequest& operator=(const ConfirmMessageReceivedRequest& from) { + CopyFrom(from); + return *this; + } + inline ConfirmMessageReceivedRequest& operator=(ConfirmMessageReceivedRequest&& 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 ConfirmMessageReceivedRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ConfirmMessageReceivedRequest* internal_default_instance() { + return reinterpret_cast( + &_ConfirmMessageReceivedRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(ConfirmMessageReceivedRequest& a, ConfirmMessageReceivedRequest& b) { + a.Swap(&b); + } + inline void Swap(ConfirmMessageReceivedRequest* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConfirmMessageReceivedRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ConfirmMessageReceivedRequest* New() const final { + return new ConfirmMessageReceivedRequest(); + } + + ConfirmMessageReceivedRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ConfirmMessageReceivedRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ConfirmMessageReceivedRequest& 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(ConfirmMessageReceivedRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ConfirmMessageReceivedRequest"; + } + protected: + explicit ConfirmMessageReceivedRequest(::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 { + kMessageObjectIdFieldNumber = 3, + kNodeFieldNumber = 1, + kRunIdFieldNumber = 2, + }; + // string message_object_id = 3; + void clear_message_object_id(); + const std::string& message_object_id() const; + template + void set_message_object_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_message_object_id(); + PROTOBUF_MUST_USE_RESULT std::string* release_message_object_id(); + void set_allocated_message_object_id(std::string* message_object_id); + private: + const std::string& _internal_message_object_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message_object_id(const std::string& value); + std::string* _internal_mutable_message_object_id(); + 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(); + + // uint64 run_id = 2; + void clear_run_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 run_id() const; + void set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_run_id() const; + void _internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.ConfirmMessageReceivedRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_object_id_; + ::flwr::proto::Node* node_; + ::PROTOBUF_NAMESPACE_ID::uint64 run_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fmessage_2eproto; +}; +// ------------------------------------------------------------------- + +class ConfirmMessageReceivedResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:flwr.proto.ConfirmMessageReceivedResponse) */ { + public: + inline ConfirmMessageReceivedResponse() : ConfirmMessageReceivedResponse(nullptr) {} + explicit constexpr ConfirmMessageReceivedResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ConfirmMessageReceivedResponse(const ConfirmMessageReceivedResponse& from); + ConfirmMessageReceivedResponse(ConfirmMessageReceivedResponse&& from) noexcept + : ConfirmMessageReceivedResponse() { + *this = ::std::move(from); + } + + inline ConfirmMessageReceivedResponse& operator=(const ConfirmMessageReceivedResponse& from) { + CopyFrom(from); + return *this; + } + inline ConfirmMessageReceivedResponse& operator=(ConfirmMessageReceivedResponse&& 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 ConfirmMessageReceivedResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ConfirmMessageReceivedResponse* internal_default_instance() { + return reinterpret_cast( + &_ConfirmMessageReceivedResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(ConfirmMessageReceivedResponse& a, ConfirmMessageReceivedResponse& b) { + a.Swap(&b); + } + inline void Swap(ConfirmMessageReceivedResponse* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConfirmMessageReceivedResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ConfirmMessageReceivedResponse* New() const final { + return new ConfirmMessageReceivedResponse(); + } + + ConfirmMessageReceivedResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ConfirmMessageReceivedResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ConfirmMessageReceivedResponse& 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.ConfirmMessageReceivedResponse"; + } + protected: + explicit ConfirmMessageReceivedResponse(::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.ConfirmMessageReceivedResponse) + 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_2fmessage_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Message + +// .flwr.proto.Metadata metadata = 1; +inline bool Message::_internal_has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline bool Message::has_metadata() const { + return _internal_has_metadata(); +} +inline void Message::clear_metadata() { + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::flwr::proto::Metadata& Message::_internal_metadata() const { + const ::flwr::proto::Metadata* p = metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Metadata_default_instance_); +} +inline const ::flwr::proto::Metadata& Message::metadata() const { + // @@protoc_insertion_point(field_get:flwr.proto.Message.metadata) + return _internal_metadata(); +} +inline void Message::unsafe_arena_set_allocated_metadata( + ::flwr::proto::Metadata* metadata) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata_); + } + metadata_ = metadata; + if (metadata) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Message.metadata) +} +inline ::flwr::proto::Metadata* Message::release_metadata() { + + ::flwr::proto::Metadata* temp = metadata_; + metadata_ = 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::Metadata* Message::unsafe_arena_release_metadata() { + // @@protoc_insertion_point(field_release:flwr.proto.Message.metadata) + + ::flwr::proto::Metadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flwr::proto::Metadata* Message::_internal_mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Metadata>(GetArenaForAllocation()); + metadata_ = p; + } + return metadata_; +} +inline ::flwr::proto::Metadata* Message::mutable_metadata() { + ::flwr::proto::Metadata* _msg = _internal_mutable_metadata(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Message.metadata) + return _msg; +} +inline void Message::set_allocated_metadata(::flwr::proto::Metadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Metadata>::GetOwningArena(metadata); + if (message_arena != submessage_arena) { + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Message.metadata) +} + +// .flwr.proto.RecordDict content = 2; +inline bool Message::_internal_has_content() const { + return this != internal_default_instance() && content_ != nullptr; +} +inline bool Message::has_content() const { + return _internal_has_content(); +} +inline const ::flwr::proto::RecordDict& Message::_internal_content() const { + const ::flwr::proto::RecordDict* p = content_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_RecordDict_default_instance_); +} +inline const ::flwr::proto::RecordDict& Message::content() const { + // @@protoc_insertion_point(field_get:flwr.proto.Message.content) + return _internal_content(); +} +inline void Message::unsafe_arena_set_allocated_content( + ::flwr::proto::RecordDict* content) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(content_); + } + content_ = content; + if (content) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Message.content) +} +inline ::flwr::proto::RecordDict* Message::release_content() { + + ::flwr::proto::RecordDict* temp = content_; + content_ = 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::RecordDict* Message::unsafe_arena_release_content() { + // @@protoc_insertion_point(field_release:flwr.proto.Message.content) + + ::flwr::proto::RecordDict* temp = content_; + content_ = nullptr; + return temp; +} +inline ::flwr::proto::RecordDict* Message::_internal_mutable_content() { + + if (content_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::RecordDict>(GetArenaForAllocation()); + content_ = p; + } + return content_; +} +inline ::flwr::proto::RecordDict* Message::mutable_content() { + ::flwr::proto::RecordDict* _msg = _internal_mutable_content(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Message.content) + return _msg; +} +inline void Message::set_allocated_content(::flwr::proto::RecordDict* content) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(content_); + } + if (content) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(content)); + if (message_arena != submessage_arena) { + content = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, content, submessage_arena); + } + + } else { + + } + content_ = content; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Message.content) +} + +// .flwr.proto.Error error = 3; +inline bool Message::_internal_has_error() const { + return this != internal_default_instance() && error_ != nullptr; +} +inline bool Message::has_error() const { + return _internal_has_error(); +} +inline const ::flwr::proto::Error& Message::_internal_error() const { + const ::flwr::proto::Error* p = error_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Error_default_instance_); +} +inline const ::flwr::proto::Error& Message::error() const { + // @@protoc_insertion_point(field_get:flwr.proto.Message.error) + return _internal_error(); +} +inline void Message::unsafe_arena_set_allocated_error( + ::flwr::proto::Error* error) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_); + } + error_ = error; + if (error) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Message.error) +} +inline ::flwr::proto::Error* Message::release_error() { + + ::flwr::proto::Error* temp = error_; + error_ = 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::Error* Message::unsafe_arena_release_error() { + // @@protoc_insertion_point(field_release:flwr.proto.Message.error) + + ::flwr::proto::Error* temp = error_; + error_ = nullptr; + return temp; +} +inline ::flwr::proto::Error* Message::_internal_mutable_error() { + + if (error_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Error>(GetArenaForAllocation()); + error_ = p; + } + return error_; +} +inline ::flwr::proto::Error* Message::mutable_error() { + ::flwr::proto::Error* _msg = _internal_mutable_error(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Message.error) + return _msg; +} +inline void Message::set_allocated_error(::flwr::proto::Error* error) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_); + } + if (error) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error)); + if (message_arena != submessage_arena) { + error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + + } else { + + } + error_ = error; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Message.error) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// Context + +// uint64 run_id = 1; +inline void Context::clear_run_id() { + run_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Context::_internal_run_id() const { + return run_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Context::run_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.Context.run_id) + return _internal_run_id(); +} +inline void Context::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + run_id_ = value; +} +inline void Context::set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_run_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.Context.run_id) +} + +// uint64 node_id = 2; +inline void Context::clear_node_id() { + node_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Context::_internal_node_id() const { + return node_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Context::node_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.Context.node_id) + return _internal_node_id(); +} +inline void Context::_internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + node_id_ = value; +} +inline void Context::set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_node_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.Context.node_id) +} + +// map node_config = 3; +inline int Context::_internal_node_config_size() const { + return node_config_.size(); +} +inline int Context::node_config_size() const { + return _internal_node_config_size(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +Context::_internal_node_config() const { + return node_config_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +Context::node_config() const { + // @@protoc_insertion_point(field_map:flwr.proto.Context.node_config) + return _internal_node_config(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +Context::_internal_mutable_node_config() { + return node_config_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +Context::mutable_node_config() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.Context.node_config) + return _internal_mutable_node_config(); +} + +// .flwr.proto.RecordDict state = 4; +inline bool Context::_internal_has_state() const { + return this != internal_default_instance() && state_ != nullptr; +} +inline bool Context::has_state() const { + return _internal_has_state(); +} +inline const ::flwr::proto::RecordDict& Context::_internal_state() const { + const ::flwr::proto::RecordDict* p = state_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_RecordDict_default_instance_); +} +inline const ::flwr::proto::RecordDict& Context::state() const { + // @@protoc_insertion_point(field_get:flwr.proto.Context.state) + return _internal_state(); +} +inline void Context::unsafe_arena_set_allocated_state( + ::flwr::proto::RecordDict* state) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(state_); + } + state_ = state; + if (state) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Context.state) +} +inline ::flwr::proto::RecordDict* Context::release_state() { + + ::flwr::proto::RecordDict* temp = state_; + state_ = 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::RecordDict* Context::unsafe_arena_release_state() { + // @@protoc_insertion_point(field_release:flwr.proto.Context.state) + + ::flwr::proto::RecordDict* temp = state_; + state_ = nullptr; + return temp; +} +inline ::flwr::proto::RecordDict* Context::_internal_mutable_state() { + + if (state_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::RecordDict>(GetArenaForAllocation()); + state_ = p; + } + return state_; +} +inline ::flwr::proto::RecordDict* Context::mutable_state() { + ::flwr::proto::RecordDict* _msg = _internal_mutable_state(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Context.state) + return _msg; +} +inline void Context::set_allocated_state(::flwr::proto::RecordDict* state) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(state_); + } + if (state) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(state)); + if (message_arena != submessage_arena) { + state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, state, submessage_arena); + } + + } else { + + } + state_ = state; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Context.state) +} + +// map run_config = 5; +inline int Context::_internal_run_config_size() const { + return run_config_.size(); +} +inline int Context::run_config_size() const { + return _internal_run_config_size(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +Context::_internal_run_config() const { + return run_config_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +Context::run_config() const { + // @@protoc_insertion_point(field_map:flwr.proto.Context.run_config) + return _internal_run_config(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +Context::_internal_mutable_run_config() { + return run_config_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +Context::mutable_run_config() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.Context.run_config) + return _internal_mutable_run_config(); +} + +// ------------------------------------------------------------------- + +// Metadata + +// uint64 run_id = 1; +inline void Metadata::clear_run_id() { + run_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Metadata::_internal_run_id() const { + return run_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Metadata::run_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.Metadata.run_id) + return _internal_run_id(); +} +inline void Metadata::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + run_id_ = value; +} +inline void Metadata::set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_run_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.Metadata.run_id) +} + +// string message_id = 2; +inline void Metadata::clear_message_id() { + message_id_.ClearToEmpty(); +} +inline const std::string& Metadata::message_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.Metadata.message_id) + return _internal_message_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Metadata::set_message_id(ArgT0&& arg0, ArgT... args) { + + message_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Metadata.message_id) +} +inline std::string* Metadata::mutable_message_id() { + std::string* _s = _internal_mutable_message_id(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Metadata.message_id) + return _s; +} +inline const std::string& Metadata::_internal_message_id() const { + return message_id_.Get(); +} +inline void Metadata::_internal_set_message_id(const std::string& value) { + + message_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Metadata::_internal_mutable_message_id() { + + return message_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Metadata::release_message_id() { + // @@protoc_insertion_point(field_release:flwr.proto.Metadata.message_id) + return message_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Metadata::set_allocated_message_id(std::string* message_id) { + if (message_id != nullptr) { + + } else { + + } + message_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message_id, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Metadata.message_id) +} + +// uint64 src_node_id = 3; +inline void Metadata::clear_src_node_id() { + src_node_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Metadata::_internal_src_node_id() const { + return src_node_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Metadata::src_node_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.Metadata.src_node_id) + return _internal_src_node_id(); +} +inline void Metadata::_internal_set_src_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + src_node_id_ = value; +} +inline void Metadata::set_src_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_src_node_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.Metadata.src_node_id) +} + +// uint64 dst_node_id = 4; +inline void Metadata::clear_dst_node_id() { + dst_node_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Metadata::_internal_dst_node_id() const { + return dst_node_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Metadata::dst_node_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.Metadata.dst_node_id) + return _internal_dst_node_id(); +} +inline void Metadata::_internal_set_dst_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + dst_node_id_ = value; +} +inline void Metadata::set_dst_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_dst_node_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.Metadata.dst_node_id) +} + +// string reply_to_message_id = 5; +inline void Metadata::clear_reply_to_message_id() { + reply_to_message_id_.ClearToEmpty(); +} +inline const std::string& Metadata::reply_to_message_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.Metadata.reply_to_message_id) + return _internal_reply_to_message_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Metadata::set_reply_to_message_id(ArgT0&& arg0, ArgT... args) { + + reply_to_message_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Metadata.reply_to_message_id) +} +inline std::string* Metadata::mutable_reply_to_message_id() { + std::string* _s = _internal_mutable_reply_to_message_id(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Metadata.reply_to_message_id) + return _s; +} +inline const std::string& Metadata::_internal_reply_to_message_id() const { + return reply_to_message_id_.Get(); +} +inline void Metadata::_internal_set_reply_to_message_id(const std::string& value) { + + reply_to_message_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Metadata::_internal_mutable_reply_to_message_id() { + + return reply_to_message_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Metadata::release_reply_to_message_id() { + // @@protoc_insertion_point(field_release:flwr.proto.Metadata.reply_to_message_id) + return reply_to_message_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Metadata::set_allocated_reply_to_message_id(std::string* reply_to_message_id) { + if (reply_to_message_id != nullptr) { + + } else { + + } + reply_to_message_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reply_to_message_id, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Metadata.reply_to_message_id) +} + +// string group_id = 6; +inline void Metadata::clear_group_id() { + group_id_.ClearToEmpty(); +} +inline const std::string& Metadata::group_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.Metadata.group_id) + return _internal_group_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Metadata::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.Metadata.group_id) +} +inline std::string* Metadata::mutable_group_id() { + std::string* _s = _internal_mutable_group_id(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Metadata.group_id) + return _s; +} +inline const std::string& Metadata::_internal_group_id() const { + return group_id_.Get(); +} +inline void Metadata::_internal_set_group_id(const std::string& value) { + + group_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Metadata::_internal_mutable_group_id() { + + return group_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Metadata::release_group_id() { + // @@protoc_insertion_point(field_release:flwr.proto.Metadata.group_id) + return group_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Metadata::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.Metadata.group_id) +} + +// double ttl = 7; +inline void Metadata::clear_ttl() { + ttl_ = 0; +} +inline double Metadata::_internal_ttl() const { + return ttl_; +} +inline double Metadata::ttl() const { + // @@protoc_insertion_point(field_get:flwr.proto.Metadata.ttl) + return _internal_ttl(); +} +inline void Metadata::_internal_set_ttl(double value) { + + ttl_ = value; +} +inline void Metadata::set_ttl(double value) { + _internal_set_ttl(value); + // @@protoc_insertion_point(field_set:flwr.proto.Metadata.ttl) +} + +// string message_type = 8; +inline void Metadata::clear_message_type() { + message_type_.ClearToEmpty(); +} +inline const std::string& Metadata::message_type() const { + // @@protoc_insertion_point(field_get:flwr.proto.Metadata.message_type) + return _internal_message_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Metadata::set_message_type(ArgT0&& arg0, ArgT... args) { + + message_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Metadata.message_type) +} +inline std::string* Metadata::mutable_message_type() { + std::string* _s = _internal_mutable_message_type(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Metadata.message_type) + return _s; +} +inline const std::string& Metadata::_internal_message_type() const { + return message_type_.Get(); +} +inline void Metadata::_internal_set_message_type(const std::string& value) { + + message_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Metadata::_internal_mutable_message_type() { + + return message_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Metadata::release_message_type() { + // @@protoc_insertion_point(field_release:flwr.proto.Metadata.message_type) + return message_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Metadata::set_allocated_message_type(std::string* message_type) { + if (message_type != nullptr) { + + } else { + + } + message_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message_type, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Metadata.message_type) +} + +// double created_at = 9; +inline void Metadata::clear_created_at() { + created_at_ = 0; +} +inline double Metadata::_internal_created_at() const { + return created_at_; +} +inline double Metadata::created_at() const { + // @@protoc_insertion_point(field_get:flwr.proto.Metadata.created_at) + return _internal_created_at(); +} +inline void Metadata::_internal_set_created_at(double value) { + + created_at_ = value; +} +inline void Metadata::set_created_at(double value) { + _internal_set_created_at(value); + // @@protoc_insertion_point(field_set:flwr.proto.Metadata.created_at) +} + +// ------------------------------------------------------------------- + +// ObjectIDs + +// repeated string object_ids = 1; +inline int ObjectIDs::_internal_object_ids_size() const { + return object_ids_.size(); +} +inline int ObjectIDs::object_ids_size() const { + return _internal_object_ids_size(); +} +inline void ObjectIDs::clear_object_ids() { + object_ids_.Clear(); +} +inline std::string* ObjectIDs::add_object_ids() { + std::string* _s = _internal_add_object_ids(); + // @@protoc_insertion_point(field_add_mutable:flwr.proto.ObjectIDs.object_ids) + return _s; +} +inline const std::string& ObjectIDs::_internal_object_ids(int index) const { + return object_ids_.Get(index); +} +inline const std::string& ObjectIDs::object_ids(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.ObjectIDs.object_ids) + return _internal_object_ids(index); +} +inline std::string* ObjectIDs::mutable_object_ids(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.ObjectIDs.object_ids) + return object_ids_.Mutable(index); +} +inline void ObjectIDs::set_object_ids(int index, const std::string& value) { + object_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:flwr.proto.ObjectIDs.object_ids) +} +inline void ObjectIDs::set_object_ids(int index, std::string&& value) { + object_ids_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:flwr.proto.ObjectIDs.object_ids) +} +inline void ObjectIDs::set_object_ids(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + object_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flwr.proto.ObjectIDs.object_ids) +} +inline void ObjectIDs::set_object_ids(int index, const char* value, size_t size) { + object_ids_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flwr.proto.ObjectIDs.object_ids) +} +inline std::string* ObjectIDs::_internal_add_object_ids() { + return object_ids_.Add(); +} +inline void ObjectIDs::add_object_ids(const std::string& value) { + object_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flwr.proto.ObjectIDs.object_ids) +} +inline void ObjectIDs::add_object_ids(std::string&& value) { + object_ids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flwr.proto.ObjectIDs.object_ids) +} +inline void ObjectIDs::add_object_ids(const char* value) { + GOOGLE_DCHECK(value != nullptr); + object_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flwr.proto.ObjectIDs.object_ids) +} +inline void ObjectIDs::add_object_ids(const char* value, size_t size) { + object_ids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flwr.proto.ObjectIDs.object_ids) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ObjectIDs::object_ids() const { + // @@protoc_insertion_point(field_list:flwr.proto.ObjectIDs.object_ids) + return object_ids_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ObjectIDs::mutable_object_ids() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.ObjectIDs.object_ids) + return &object_ids_; +} + +// ------------------------------------------------------------------- + +// ObjectTree + +// string object_id = 1; +inline void ObjectTree::clear_object_id() { + object_id_.ClearToEmpty(); +} +inline const std::string& ObjectTree::object_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.ObjectTree.object_id) + return _internal_object_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ObjectTree::set_object_id(ArgT0&& arg0, ArgT... args) { + + object_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.ObjectTree.object_id) +} +inline std::string* ObjectTree::mutable_object_id() { + std::string* _s = _internal_mutable_object_id(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ObjectTree.object_id) + return _s; +} +inline const std::string& ObjectTree::_internal_object_id() const { + return object_id_.Get(); +} +inline void ObjectTree::_internal_set_object_id(const std::string& value) { + + object_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ObjectTree::_internal_mutable_object_id() { + + return object_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ObjectTree::release_object_id() { + // @@protoc_insertion_point(field_release:flwr.proto.ObjectTree.object_id) + return object_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ObjectTree::set_allocated_object_id(std::string* object_id) { + if (object_id != nullptr) { + + } else { + + } + object_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), object_id, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ObjectTree.object_id) +} + +// repeated .flwr.proto.ObjectTree children = 2; +inline int ObjectTree::_internal_children_size() const { + return children_.size(); +} +inline int ObjectTree::children_size() const { + return _internal_children_size(); +} +inline void ObjectTree::clear_children() { + children_.Clear(); +} +inline ::flwr::proto::ObjectTree* ObjectTree::mutable_children(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.ObjectTree.children) + return children_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree >* +ObjectTree::mutable_children() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.ObjectTree.children) + return &children_; +} +inline const ::flwr::proto::ObjectTree& ObjectTree::_internal_children(int index) const { + return children_.Get(index); +} +inline const ::flwr::proto::ObjectTree& ObjectTree::children(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.ObjectTree.children) + return _internal_children(index); +} +inline ::flwr::proto::ObjectTree* ObjectTree::_internal_add_children() { + return children_.Add(); +} +inline ::flwr::proto::ObjectTree* ObjectTree::add_children() { + ::flwr::proto::ObjectTree* _add = _internal_add_children(); + // @@protoc_insertion_point(field_add:flwr.proto.ObjectTree.children) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ObjectTree >& +ObjectTree::children() const { + // @@protoc_insertion_point(field_list:flwr.proto.ObjectTree.children) + return children_; +} + +// ------------------------------------------------------------------- + +// PushObjectRequest + +// .flwr.proto.Node node = 1; +inline bool PushObjectRequest::_internal_has_node() const { + return this != internal_default_instance() && node_ != nullptr; +} +inline bool PushObjectRequest::has_node() const { + return _internal_has_node(); +} +inline const ::flwr::proto::Node& PushObjectRequest::_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& PushObjectRequest::node() const { + // @@protoc_insertion_point(field_get:flwr.proto.PushObjectRequest.node) + return _internal_node(); +} +inline void PushObjectRequest::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.PushObjectRequest.node) +} +inline ::flwr::proto::Node* PushObjectRequest::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* PushObjectRequest::unsafe_arena_release_node() { + // @@protoc_insertion_point(field_release:flwr.proto.PushObjectRequest.node) + + ::flwr::proto::Node* temp = node_; + node_ = nullptr; + return temp; +} +inline ::flwr::proto::Node* PushObjectRequest::_internal_mutable_node() { + + if (node_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); + node_ = p; + } + return node_; +} +inline ::flwr::proto::Node* PushObjectRequest::mutable_node() { + ::flwr::proto::Node* _msg = _internal_mutable_node(); + // @@protoc_insertion_point(field_mutable:flwr.proto.PushObjectRequest.node) + return _msg; +} +inline void PushObjectRequest::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.PushObjectRequest.node) +} + +// uint64 run_id = 2; +inline void PushObjectRequest::clear_run_id() { + run_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PushObjectRequest::_internal_run_id() const { + return run_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PushObjectRequest::run_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.PushObjectRequest.run_id) + return _internal_run_id(); +} +inline void PushObjectRequest::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + run_id_ = value; +} +inline void PushObjectRequest::set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_run_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.PushObjectRequest.run_id) +} + +// string object_id = 3; +inline void PushObjectRequest::clear_object_id() { + object_id_.ClearToEmpty(); +} +inline const std::string& PushObjectRequest::object_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.PushObjectRequest.object_id) + return _internal_object_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PushObjectRequest::set_object_id(ArgT0&& arg0, ArgT... args) { + + object_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.PushObjectRequest.object_id) +} +inline std::string* PushObjectRequest::mutable_object_id() { + std::string* _s = _internal_mutable_object_id(); + // @@protoc_insertion_point(field_mutable:flwr.proto.PushObjectRequest.object_id) + return _s; +} +inline const std::string& PushObjectRequest::_internal_object_id() const { + return object_id_.Get(); +} +inline void PushObjectRequest::_internal_set_object_id(const std::string& value) { + + object_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* PushObjectRequest::_internal_mutable_object_id() { + + return object_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* PushObjectRequest::release_object_id() { + // @@protoc_insertion_point(field_release:flwr.proto.PushObjectRequest.object_id) + return object_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void PushObjectRequest::set_allocated_object_id(std::string* object_id) { + if (object_id != nullptr) { + + } else { + + } + object_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), object_id, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.PushObjectRequest.object_id) +} + +// bytes object_content = 4; +inline void PushObjectRequest::clear_object_content() { + object_content_.ClearToEmpty(); +} +inline const std::string& PushObjectRequest::object_content() const { + // @@protoc_insertion_point(field_get:flwr.proto.PushObjectRequest.object_content) + return _internal_object_content(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PushObjectRequest::set_object_content(ArgT0&& arg0, ArgT... args) { + + object_content_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.PushObjectRequest.object_content) +} +inline std::string* PushObjectRequest::mutable_object_content() { + std::string* _s = _internal_mutable_object_content(); + // @@protoc_insertion_point(field_mutable:flwr.proto.PushObjectRequest.object_content) + return _s; +} +inline const std::string& PushObjectRequest::_internal_object_content() const { + return object_content_.Get(); +} +inline void PushObjectRequest::_internal_set_object_content(const std::string& value) { + + object_content_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* PushObjectRequest::_internal_mutable_object_content() { + + return object_content_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* PushObjectRequest::release_object_content() { + // @@protoc_insertion_point(field_release:flwr.proto.PushObjectRequest.object_content) + return object_content_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void PushObjectRequest::set_allocated_object_content(std::string* object_content) { + if (object_content != nullptr) { + + } else { + + } + object_content_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), object_content, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.PushObjectRequest.object_content) +} + +// ------------------------------------------------------------------- + +// PushObjectResponse + +// bool stored = 1; +inline void PushObjectResponse::clear_stored() { + stored_ = false; +} +inline bool PushObjectResponse::_internal_stored() const { + return stored_; +} +inline bool PushObjectResponse::stored() const { + // @@protoc_insertion_point(field_get:flwr.proto.PushObjectResponse.stored) + return _internal_stored(); +} +inline void PushObjectResponse::_internal_set_stored(bool value) { + + stored_ = value; +} +inline void PushObjectResponse::set_stored(bool value) { + _internal_set_stored(value); + // @@protoc_insertion_point(field_set:flwr.proto.PushObjectResponse.stored) +} + +// ------------------------------------------------------------------- + +// PullObjectRequest + +// .flwr.proto.Node node = 1; +inline bool PullObjectRequest::_internal_has_node() const { + return this != internal_default_instance() && node_ != nullptr; +} +inline bool PullObjectRequest::has_node() const { + return _internal_has_node(); +} +inline const ::flwr::proto::Node& PullObjectRequest::_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& PullObjectRequest::node() const { + // @@protoc_insertion_point(field_get:flwr.proto.PullObjectRequest.node) + return _internal_node(); +} +inline void PullObjectRequest::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.PullObjectRequest.node) +} +inline ::flwr::proto::Node* PullObjectRequest::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* PullObjectRequest::unsafe_arena_release_node() { + // @@protoc_insertion_point(field_release:flwr.proto.PullObjectRequest.node) + + ::flwr::proto::Node* temp = node_; + node_ = nullptr; + return temp; +} +inline ::flwr::proto::Node* PullObjectRequest::_internal_mutable_node() { + + if (node_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); + node_ = p; + } + return node_; +} +inline ::flwr::proto::Node* PullObjectRequest::mutable_node() { + ::flwr::proto::Node* _msg = _internal_mutable_node(); + // @@protoc_insertion_point(field_mutable:flwr.proto.PullObjectRequest.node) + return _msg; +} +inline void PullObjectRequest::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.PullObjectRequest.node) +} + +// uint64 run_id = 2; +inline void PullObjectRequest::clear_run_id() { + run_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PullObjectRequest::_internal_run_id() const { + return run_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PullObjectRequest::run_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.PullObjectRequest.run_id) + return _internal_run_id(); +} +inline void PullObjectRequest::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + run_id_ = value; +} +inline void PullObjectRequest::set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_run_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.PullObjectRequest.run_id) +} + +// string object_id = 3; +inline void PullObjectRequest::clear_object_id() { + object_id_.ClearToEmpty(); +} +inline const std::string& PullObjectRequest::object_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.PullObjectRequest.object_id) + return _internal_object_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PullObjectRequest::set_object_id(ArgT0&& arg0, ArgT... args) { + + object_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.PullObjectRequest.object_id) +} +inline std::string* PullObjectRequest::mutable_object_id() { + std::string* _s = _internal_mutable_object_id(); + // @@protoc_insertion_point(field_mutable:flwr.proto.PullObjectRequest.object_id) + return _s; +} +inline const std::string& PullObjectRequest::_internal_object_id() const { + return object_id_.Get(); +} +inline void PullObjectRequest::_internal_set_object_id(const std::string& value) { + + object_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* PullObjectRequest::_internal_mutable_object_id() { + + return object_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* PullObjectRequest::release_object_id() { + // @@protoc_insertion_point(field_release:flwr.proto.PullObjectRequest.object_id) + return object_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void PullObjectRequest::set_allocated_object_id(std::string* object_id) { + if (object_id != nullptr) { + + } else { + + } + object_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), object_id, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.PullObjectRequest.object_id) +} + +// ------------------------------------------------------------------- + +// PullObjectResponse + +// bool object_found = 1; +inline void PullObjectResponse::clear_object_found() { + object_found_ = false; +} +inline bool PullObjectResponse::_internal_object_found() const { + return object_found_; +} +inline bool PullObjectResponse::object_found() const { + // @@protoc_insertion_point(field_get:flwr.proto.PullObjectResponse.object_found) + return _internal_object_found(); +} +inline void PullObjectResponse::_internal_set_object_found(bool value) { + + object_found_ = value; +} +inline void PullObjectResponse::set_object_found(bool value) { + _internal_set_object_found(value); + // @@protoc_insertion_point(field_set:flwr.proto.PullObjectResponse.object_found) +} + +// bool object_available = 2; +inline void PullObjectResponse::clear_object_available() { + object_available_ = false; +} +inline bool PullObjectResponse::_internal_object_available() const { + return object_available_; +} +inline bool PullObjectResponse::object_available() const { + // @@protoc_insertion_point(field_get:flwr.proto.PullObjectResponse.object_available) + return _internal_object_available(); +} +inline void PullObjectResponse::_internal_set_object_available(bool value) { + + object_available_ = value; +} +inline void PullObjectResponse::set_object_available(bool value) { + _internal_set_object_available(value); + // @@protoc_insertion_point(field_set:flwr.proto.PullObjectResponse.object_available) +} + +// bytes object_content = 3; +inline void PullObjectResponse::clear_object_content() { + object_content_.ClearToEmpty(); +} +inline const std::string& PullObjectResponse::object_content() const { + // @@protoc_insertion_point(field_get:flwr.proto.PullObjectResponse.object_content) + return _internal_object_content(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PullObjectResponse::set_object_content(ArgT0&& arg0, ArgT... args) { + + object_content_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.PullObjectResponse.object_content) +} +inline std::string* PullObjectResponse::mutable_object_content() { + std::string* _s = _internal_mutable_object_content(); + // @@protoc_insertion_point(field_mutable:flwr.proto.PullObjectResponse.object_content) + return _s; +} +inline const std::string& PullObjectResponse::_internal_object_content() const { + return object_content_.Get(); +} +inline void PullObjectResponse::_internal_set_object_content(const std::string& value) { + + object_content_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* PullObjectResponse::_internal_mutable_object_content() { + + return object_content_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* PullObjectResponse::release_object_content() { + // @@protoc_insertion_point(field_release:flwr.proto.PullObjectResponse.object_content) + return object_content_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void PullObjectResponse::set_allocated_object_content(std::string* object_content) { + if (object_content != nullptr) { + + } else { + + } + object_content_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), object_content, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.PullObjectResponse.object_content) +} + +// ------------------------------------------------------------------- + +// ConfirmMessageReceivedRequest + +// .flwr.proto.Node node = 1; +inline bool ConfirmMessageReceivedRequest::_internal_has_node() const { + return this != internal_default_instance() && node_ != nullptr; +} +inline bool ConfirmMessageReceivedRequest::has_node() const { + return _internal_has_node(); +} +inline const ::flwr::proto::Node& ConfirmMessageReceivedRequest::_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& ConfirmMessageReceivedRequest::node() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfirmMessageReceivedRequest.node) + return _internal_node(); +} +inline void ConfirmMessageReceivedRequest::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.ConfirmMessageReceivedRequest.node) +} +inline ::flwr::proto::Node* ConfirmMessageReceivedRequest::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* ConfirmMessageReceivedRequest::unsafe_arena_release_node() { + // @@protoc_insertion_point(field_release:flwr.proto.ConfirmMessageReceivedRequest.node) + + ::flwr::proto::Node* temp = node_; + node_ = nullptr; + return temp; +} +inline ::flwr::proto::Node* ConfirmMessageReceivedRequest::_internal_mutable_node() { + + if (node_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); + node_ = p; + } + return node_; +} +inline ::flwr::proto::Node* ConfirmMessageReceivedRequest::mutable_node() { + ::flwr::proto::Node* _msg = _internal_mutable_node(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ConfirmMessageReceivedRequest.node) + return _msg; +} +inline void ConfirmMessageReceivedRequest::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.ConfirmMessageReceivedRequest.node) +} + +// uint64 run_id = 2; +inline void ConfirmMessageReceivedRequest::clear_run_id() { + run_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 ConfirmMessageReceivedRequest::_internal_run_id() const { + return run_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 ConfirmMessageReceivedRequest::run_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfirmMessageReceivedRequest.run_id) + return _internal_run_id(); +} +inline void ConfirmMessageReceivedRequest::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + run_id_ = value; +} +inline void ConfirmMessageReceivedRequest::set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_run_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.ConfirmMessageReceivedRequest.run_id) +} + +// string message_object_id = 3; +inline void ConfirmMessageReceivedRequest::clear_message_object_id() { + message_object_id_.ClearToEmpty(); +} +inline const std::string& ConfirmMessageReceivedRequest::message_object_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfirmMessageReceivedRequest.message_object_id) + return _internal_message_object_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ConfirmMessageReceivedRequest::set_message_object_id(ArgT0&& arg0, ArgT... args) { + + message_object_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.ConfirmMessageReceivedRequest.message_object_id) +} +inline std::string* ConfirmMessageReceivedRequest::mutable_message_object_id() { + std::string* _s = _internal_mutable_message_object_id(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ConfirmMessageReceivedRequest.message_object_id) + return _s; +} +inline const std::string& ConfirmMessageReceivedRequest::_internal_message_object_id() const { + return message_object_id_.Get(); +} +inline void ConfirmMessageReceivedRequest::_internal_set_message_object_id(const std::string& value) { + + message_object_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ConfirmMessageReceivedRequest::_internal_mutable_message_object_id() { + + return message_object_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ConfirmMessageReceivedRequest::release_message_object_id() { + // @@protoc_insertion_point(field_release:flwr.proto.ConfirmMessageReceivedRequest.message_object_id) + return message_object_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ConfirmMessageReceivedRequest::set_allocated_message_object_id(std::string* message_object_id) { + if (message_object_id != nullptr) { + + } else { + + } + message_object_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message_object_id, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfirmMessageReceivedRequest.message_object_id) +} + +// ------------------------------------------------------------------- + +// ConfirmMessageReceivedResponse + +#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_2fmessage_2eproto diff --git a/framework/cc/flwr/include/flwr/proto/node.pb.cc b/framework/cc/flwr/include/flwr/proto/node.pb.cc index 9b59af028685..47f602a9d74a 100644 --- a/framework/cc/flwr/include/flwr/proto/node.pb.cc +++ b/framework/cc/flwr/include/flwr/proto/node.pb.cc @@ -20,8 +20,7 @@ namespace flwr { namespace proto { constexpr Node::Node( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : node_id_(int64_t{0}) - , anonymous_(false){} + : node_id_(uint64_t{0u}){} struct NodeDefaultTypeInternal { constexpr NodeDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -31,9 +30,31 @@ struct NodeDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NodeDefaultTypeInternal _Node_default_instance_; +constexpr NodeInfo::NodeInfo( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : owner_aid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , owner_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , status_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , registered_at_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , last_activated_at_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , last_deactivated_at_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , unregistered_at_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , public_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , node_id_(uint64_t{0u}) + , online_until_(0) + , heartbeat_interval_(0){} +struct NodeInfoDefaultTypeInternal { + constexpr NodeInfoDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~NodeInfoDefaultTypeInternal() {} + union { + NodeInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NodeInfoDefaultTypeInternal _NodeInfo_default_instance_; } // namespace proto } // namespace flwr -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2fnode_2eproto[1]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2fnode_2eproto[2]; 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; @@ -45,25 +66,62 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2fnode_2eproto::o ~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_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::NodeInfo, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::NodeInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::NodeInfo, node_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::NodeInfo, owner_aid_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::NodeInfo, owner_name_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::NodeInfo, status_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::NodeInfo, registered_at_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::NodeInfo, last_activated_at_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::NodeInfo, last_deactivated_at_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::NodeInfo, unregistered_at_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::NodeInfo, online_until_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::NodeInfo, heartbeat_interval_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::NodeInfo, public_key_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + 1, + 2, + 3, + ~0u, + ~0u, }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::flwr::proto::Node)}, + { 7, 24, -1, sizeof(::flwr::proto::NodeInfo)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::flwr::proto::_Node_default_instance_), + reinterpret_cast(&::flwr::proto::_NodeInfo_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" + "\n\025flwr/proto/node.proto\022\nflwr.proto\"\027\n\004N" + "ode\022\017\n\007node_id\030\001 \001(\004\"\347\002\n\010NodeInfo\022\017\n\007nod" + "e_id\030\001 \001(\004\022\021\n\towner_aid\030\002 \001(\t\022\022\n\nowner_n" + "ame\030\003 \001(\t\022\016\n\006status\030\004 \001(\t\022\025\n\rregistered_" + "at\030\005 \001(\t\022\036\n\021last_activated_at\030\006 \001(\tH\000\210\001\001" + "\022 \n\023last_deactivated_at\030\007 \001(\tH\001\210\001\001\022\034\n\017un" + "registered_at\030\010 \001(\tH\002\210\001\001\022\031\n\014online_until" + "\030\t \001(\001H\003\210\001\001\022\032\n\022heartbeat_interval\030\n \001(\001\022" + "\022\n\npublic_key\030\013 \001(\014B\024\n\022_last_activated_a" + "tB\026\n\024_last_deactivated_atB\022\n\020_unregister" + "ed_atB\017\n\r_online_untilb\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, + false, false, 430, descriptor_table_protodef_flwr_2fproto_2fnode_2eproto, "flwr/proto/node.proto", + &descriptor_table_flwr_2fproto_2fnode_2eproto_once, nullptr, 0, 2, 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, }; @@ -94,17 +152,12 @@ Node::Node(::PROTOBUF_NAMESPACE_ID::Arena* arena, 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_)); + node_id_ = from.node_id_; // @@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_id_ = uint64_t{0u}; } Node::~Node() { @@ -134,9 +187,7 @@ void Node::Clear() { // 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_)); + node_id_ = uint64_t{0u}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -146,18 +197,10 @@ const char* Node::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { - // sint64 node_id = 1; + // uint64 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); + node_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -191,16 +234,10 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Node::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // sint64 node_id = 1; + // uint64 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); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_node_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -219,14 +256,9 @@ size_t Node::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // sint64 node_id = 1; + // uint64 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; + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_node_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); @@ -254,9 +286,6 @@ void Node::MergeFrom(const Node& from) { 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_); } @@ -274,18 +303,622 @@ bool Node::IsInitialized() const { void Node::InternalSwap(Node* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(node_id_, 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]); +} + +// =================================================================== + +class NodeInfo::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_last_activated_at(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_last_deactivated_at(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_unregistered_at(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_online_until(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } +}; + +NodeInfo::NodeInfo(::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.NodeInfo) +} +NodeInfo::NodeInfo(const NodeInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + owner_aid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_owner_aid().empty()) { + owner_aid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_owner_aid(), + GetArenaForAllocation()); + } + owner_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_owner_name().empty()) { + owner_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_owner_name(), + GetArenaForAllocation()); + } + status_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_status().empty()) { + status_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_status(), + GetArenaForAllocation()); + } + registered_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_registered_at().empty()) { + registered_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_registered_at(), + GetArenaForAllocation()); + } + last_activated_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_last_activated_at()) { + last_activated_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_last_activated_at(), + GetArenaForAllocation()); + } + last_deactivated_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_last_deactivated_at()) { + last_deactivated_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_last_deactivated_at(), + GetArenaForAllocation()); + } + unregistered_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_unregistered_at()) { + unregistered_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_unregistered_at(), + GetArenaForAllocation()); + } + public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_public_key().empty()) { + public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_public_key(), + GetArenaForAllocation()); + } + ::memcpy(&node_id_, &from.node_id_, + static_cast(reinterpret_cast(&heartbeat_interval_) - + reinterpret_cast(&node_id_)) + sizeof(heartbeat_interval_)); + // @@protoc_insertion_point(copy_constructor:flwr.proto.NodeInfo) +} + +void NodeInfo::SharedCtor() { +owner_aid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +owner_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +status_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +registered_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +last_activated_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +last_deactivated_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +unregistered_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&node_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&heartbeat_interval_) - + reinterpret_cast(&node_id_)) + sizeof(heartbeat_interval_)); +} + +NodeInfo::~NodeInfo() { + // @@protoc_insertion_point(destructor:flwr.proto.NodeInfo) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void NodeInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + owner_aid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + owner_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + status_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + registered_at_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + last_activated_at_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + last_deactivated_at_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + unregistered_at_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void NodeInfo::ArenaDtor(void* object) { + NodeInfo* _this = reinterpret_cast< NodeInfo* >(object); + (void)_this; +} +void NodeInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void NodeInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void NodeInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.NodeInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + owner_aid_.ClearToEmpty(); + owner_name_.ClearToEmpty(); + status_.ClearToEmpty(); + registered_at_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + last_activated_at_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + last_deactivated_at_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000004u) { + unregistered_at_.ClearNonDefaultToEmpty(); + } + } + public_key_.ClearToEmpty(); + node_id_ = uint64_t{0u}; + online_until_ = 0; + heartbeat_interval_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NodeInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 node_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + node_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string owner_aid = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_owner_aid(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.NodeInfo.owner_aid")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string owner_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_owner_name(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.NodeInfo.owner_name")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string status = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_status(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.NodeInfo.status")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string registered_at = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_registered_at(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.NodeInfo.registered_at")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional string last_activated_at = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_last_activated_at(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.NodeInfo.last_activated_at")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional string last_deactivated_at = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + auto str = _internal_mutable_last_deactivated_at(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.NodeInfo.last_deactivated_at")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional string unregistered_at = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + auto str = _internal_mutable_unregistered_at(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.NodeInfo.unregistered_at")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional double online_until = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 73)) { + _Internal::set_has_online_until(&has_bits); + online_until_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double heartbeat_interval = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 81)) { + heartbeat_interval_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // bytes public_key = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + auto str = _internal_mutable_public_key(); + 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: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* NodeInfo::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.NodeInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 node_id = 1; + if (this->_internal_node_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_node_id(), target); + } + + // string owner_aid = 2; + if (!this->_internal_owner_aid().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_owner_aid().data(), static_cast(this->_internal_owner_aid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.NodeInfo.owner_aid"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_owner_aid(), target); + } + + // string owner_name = 3; + if (!this->_internal_owner_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_owner_name().data(), static_cast(this->_internal_owner_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.NodeInfo.owner_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_owner_name(), target); + } + + // string status = 4; + if (!this->_internal_status().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_status().data(), static_cast(this->_internal_status().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.NodeInfo.status"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_status(), target); + } + + // string registered_at = 5; + if (!this->_internal_registered_at().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_registered_at().data(), static_cast(this->_internal_registered_at().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.NodeInfo.registered_at"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_registered_at(), target); + } + + // optional string last_activated_at = 6; + if (_internal_has_last_activated_at()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_last_activated_at().data(), static_cast(this->_internal_last_activated_at().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.NodeInfo.last_activated_at"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_last_activated_at(), target); + } + + // optional string last_deactivated_at = 7; + if (_internal_has_last_deactivated_at()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_last_deactivated_at().data(), static_cast(this->_internal_last_deactivated_at().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.NodeInfo.last_deactivated_at"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_last_deactivated_at(), target); + } + + // optional string unregistered_at = 8; + if (_internal_has_unregistered_at()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_unregistered_at().data(), static_cast(this->_internal_unregistered_at().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.NodeInfo.unregistered_at"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_unregistered_at(), target); + } + + // optional double online_until = 9; + if (_internal_has_online_until()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(9, this->_internal_online_until(), target); + } + + // double heartbeat_interval = 10; + if (!(this->_internal_heartbeat_interval() <= 0 && this->_internal_heartbeat_interval() >= 0)) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(10, this->_internal_heartbeat_interval(), target); + } + + // bytes public_key = 11; + if (!this->_internal_public_key().empty()) { + target = stream->WriteBytesMaybeAliased( + 11, this->_internal_public_key(), 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.NodeInfo) + return target; +} + +size_t NodeInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.NodeInfo) + 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 owner_aid = 2; + if (!this->_internal_owner_aid().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_owner_aid()); + } + + // string owner_name = 3; + if (!this->_internal_owner_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_owner_name()); + } + + // string status = 4; + if (!this->_internal_status().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_status()); + } + + // string registered_at = 5; + if (!this->_internal_registered_at().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_registered_at()); + } + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // optional string last_activated_at = 6; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_last_activated_at()); + } + + // optional string last_deactivated_at = 7; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_last_deactivated_at()); + } + + // optional string unregistered_at = 8; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_unregistered_at()); + } + + } + // bytes public_key = 11; + if (!this->_internal_public_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_public_key()); + } + + // uint64 node_id = 1; + if (this->_internal_node_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_node_id()); + } + + // optional double online_until = 9; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + 8; + } + + // double heartbeat_interval = 10; + if (!(this->_internal_heartbeat_interval() <= 0 && this->_internal_heartbeat_interval() >= 0)) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NodeInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + NodeInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NodeInfo::GetClassData() const { return &_class_data_; } + +void NodeInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void NodeInfo::MergeFrom(const NodeInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.NodeInfo) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_owner_aid().empty()) { + _internal_set_owner_aid(from._internal_owner_aid()); + } + if (!from._internal_owner_name().empty()) { + _internal_set_owner_name(from._internal_owner_name()); + } + if (!from._internal_status().empty()) { + _internal_set_status(from._internal_status()); + } + if (!from._internal_registered_at().empty()) { + _internal_set_registered_at(from._internal_registered_at()); + } + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_last_activated_at(from._internal_last_activated_at()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_last_deactivated_at(from._internal_last_deactivated_at()); + } + if (cached_has_bits & 0x00000004u) { + _internal_set_unregistered_at(from._internal_unregistered_at()); + } + } + if (!from._internal_public_key().empty()) { + _internal_set_public_key(from._internal_public_key()); + } + if (from._internal_node_id() != 0) { + _internal_set_node_id(from._internal_node_id()); + } + if (cached_has_bits & 0x00000008u) { + _internal_set_online_until(from._internal_online_until()); + } + if (!(from._internal_heartbeat_interval() <= 0 && from._internal_heartbeat_interval() >= 0)) { + _internal_set_heartbeat_interval(from._internal_heartbeat_interval()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void NodeInfo::CopyFrom(const NodeInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.NodeInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeInfo::IsInitialized() const { + return true; +} + +void NodeInfo::InternalSwap(NodeInfo* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &owner_aid_, lhs_arena, + &other->owner_aid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &owner_name_, lhs_arena, + &other->owner_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &status_, lhs_arena, + &other->status_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ®istered_at_, lhs_arena, + &other->registered_at_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &last_activated_at_, lhs_arena, + &other->last_activated_at_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &last_deactivated_at_, lhs_arena, + &other->last_deactivated_at_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &unregistered_at_, lhs_arena, + &other->unregistered_at_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &public_key_, lhs_arena, + &other->public_key_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Node, anonymous_) - + sizeof(Node::anonymous_) - - PROTOBUF_FIELD_OFFSET(Node, node_id_)>( + PROTOBUF_FIELD_OFFSET(NodeInfo, heartbeat_interval_) + + sizeof(NodeInfo::heartbeat_interval_) + - PROTOBUF_FIELD_OFFSET(NodeInfo, node_id_)>( reinterpret_cast(&node_id_), reinterpret_cast(&other->node_id_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Node::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata NodeInfo::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]); + file_level_metadata_flwr_2fproto_2fnode_2eproto[1]); } // @@protoc_insertion_point(namespace_scope) @@ -295,6 +928,9 @@ PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::flwr::proto::Node* Arena::CreateMaybeMessage< ::flwr::proto::Node >(Arena* arena) { return Arena::CreateMessageInternal< ::flwr::proto::Node >(arena); } +template<> PROTOBUF_NOINLINE ::flwr::proto::NodeInfo* Arena::CreateMaybeMessage< ::flwr::proto::NodeInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::NodeInfo >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/framework/cc/flwr/include/flwr/proto/node.pb.h b/framework/cc/flwr/include/flwr/proto/node.pb.h index 1177959ce599..2828f5b6d88e 100644 --- a/framework/cc/flwr/include/flwr/proto/node.pb.h +++ b/framework/cc/flwr/include/flwr/proto/node.pb.h @@ -46,7 +46,7 @@ struct TableStruct_flwr_2fproto_2fnode_2eproto { 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] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -58,10 +58,14 @@ namespace proto { class Node; struct NodeDefaultTypeInternal; extern NodeDefaultTypeInternal _Node_default_instance_; +class NodeInfo; +struct NodeInfoDefaultTypeInternal; +extern NodeInfoDefaultTypeInternal _NodeInfo_default_instance_; } // namespace proto } // namespace flwr PROTOBUF_NAMESPACE_OPEN template<> ::flwr::proto::Node* Arena::CreateMaybeMessage<::flwr::proto::Node>(Arena*); +template<> ::flwr::proto::NodeInfo* Arena::CreateMaybeMessage<::flwr::proto::NodeInfo>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace flwr { namespace proto { @@ -188,36 +192,335 @@ class Node final : enum : int { kNodeIdFieldNumber = 1, - kAnonymousFieldNumber = 2, }; - // sint64 node_id = 1; + // uint64 node_id = 1; void clear_node_id(); - ::PROTOBUF_NAMESPACE_ID::int64 node_id() const; - void set_node_id(::PROTOBUF_NAMESPACE_ID::int64 value); + ::PROTOBUF_NAMESPACE_ID::uint64 node_id() const; + void set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_node_id() const; - void _internal_set_node_id(::PROTOBUF_NAMESPACE_ID::int64 value); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_node_id() const; + void _internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // bool anonymous = 2; - void clear_anonymous(); - bool anonymous() const; - void set_anonymous(bool value); + // @@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::uint64 node_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fnode_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.NodeInfo) */ { + public: + inline NodeInfo() : NodeInfo(nullptr) {} + ~NodeInfo() override; + explicit constexpr NodeInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + NodeInfo(const NodeInfo& from); + NodeInfo(NodeInfo&& from) noexcept + : NodeInfo() { + *this = ::std::move(from); + } + + inline NodeInfo& operator=(const NodeInfo& from) { + CopyFrom(from); + return *this; + } + inline NodeInfo& operator=(NodeInfo&& 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 NodeInfo& default_instance() { + return *internal_default_instance(); + } + static inline const NodeInfo* internal_default_instance() { + return reinterpret_cast( + &_NodeInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(NodeInfo& a, NodeInfo& b) { + a.Swap(&b); + } + inline void Swap(NodeInfo* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(NodeInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline NodeInfo* New() const final { + return new NodeInfo(); + } + + NodeInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NodeInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const NodeInfo& from); private: - bool _internal_anonymous() const; - void _internal_set_anonymous(bool value); + 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; - // @@protoc_insertion_point(class_scope:flwr.proto.Node) + 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(NodeInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.NodeInfo"; + } + protected: + explicit NodeInfo(::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 { + kOwnerAidFieldNumber = 2, + kOwnerNameFieldNumber = 3, + kStatusFieldNumber = 4, + kRegisteredAtFieldNumber = 5, + kLastActivatedAtFieldNumber = 6, + kLastDeactivatedAtFieldNumber = 7, + kUnregisteredAtFieldNumber = 8, + kPublicKeyFieldNumber = 11, + kNodeIdFieldNumber = 1, + kOnlineUntilFieldNumber = 9, + kHeartbeatIntervalFieldNumber = 10, + }; + // string owner_aid = 2; + void clear_owner_aid(); + const std::string& owner_aid() const; + template + void set_owner_aid(ArgT0&& arg0, ArgT... args); + std::string* mutable_owner_aid(); + PROTOBUF_MUST_USE_RESULT std::string* release_owner_aid(); + void set_allocated_owner_aid(std::string* owner_aid); + private: + const std::string& _internal_owner_aid() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_owner_aid(const std::string& value); + std::string* _internal_mutable_owner_aid(); + public: + + // string owner_name = 3; + void clear_owner_name(); + const std::string& owner_name() const; + template + void set_owner_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_owner_name(); + PROTOBUF_MUST_USE_RESULT std::string* release_owner_name(); + void set_allocated_owner_name(std::string* owner_name); + private: + const std::string& _internal_owner_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_owner_name(const std::string& value); + std::string* _internal_mutable_owner_name(); + public: + + // string status = 4; + void clear_status(); + const std::string& status() const; + template + void set_status(ArgT0&& arg0, ArgT... args); + std::string* mutable_status(); + PROTOBUF_MUST_USE_RESULT std::string* release_status(); + void set_allocated_status(std::string* status); + private: + const std::string& _internal_status() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_status(const std::string& value); + std::string* _internal_mutable_status(); + public: + + // string registered_at = 5; + void clear_registered_at(); + const std::string& registered_at() const; + template + void set_registered_at(ArgT0&& arg0, ArgT... args); + std::string* mutable_registered_at(); + PROTOBUF_MUST_USE_RESULT std::string* release_registered_at(); + void set_allocated_registered_at(std::string* registered_at); + private: + const std::string& _internal_registered_at() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_registered_at(const std::string& value); + std::string* _internal_mutable_registered_at(); + public: + + // optional string last_activated_at = 6; + bool has_last_activated_at() const; + private: + bool _internal_has_last_activated_at() const; + public: + void clear_last_activated_at(); + const std::string& last_activated_at() const; + template + void set_last_activated_at(ArgT0&& arg0, ArgT... args); + std::string* mutable_last_activated_at(); + PROTOBUF_MUST_USE_RESULT std::string* release_last_activated_at(); + void set_allocated_last_activated_at(std::string* last_activated_at); + private: + const std::string& _internal_last_activated_at() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_last_activated_at(const std::string& value); + std::string* _internal_mutable_last_activated_at(); + public: + + // optional string last_deactivated_at = 7; + bool has_last_deactivated_at() const; + private: + bool _internal_has_last_deactivated_at() const; + public: + void clear_last_deactivated_at(); + const std::string& last_deactivated_at() const; + template + void set_last_deactivated_at(ArgT0&& arg0, ArgT... args); + std::string* mutable_last_deactivated_at(); + PROTOBUF_MUST_USE_RESULT std::string* release_last_deactivated_at(); + void set_allocated_last_deactivated_at(std::string* last_deactivated_at); + private: + const std::string& _internal_last_deactivated_at() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_last_deactivated_at(const std::string& value); + std::string* _internal_mutable_last_deactivated_at(); + public: + + // optional string unregistered_at = 8; + bool has_unregistered_at() const; + private: + bool _internal_has_unregistered_at() const; + public: + void clear_unregistered_at(); + const std::string& unregistered_at() const; + template + void set_unregistered_at(ArgT0&& arg0, ArgT... args); + std::string* mutable_unregistered_at(); + PROTOBUF_MUST_USE_RESULT std::string* release_unregistered_at(); + void set_allocated_unregistered_at(std::string* unregistered_at); + private: + const std::string& _internal_unregistered_at() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_unregistered_at(const std::string& value); + std::string* _internal_mutable_unregistered_at(); + public: + + // bytes public_key = 11; + void clear_public_key(); + const std::string& public_key() const; + template + void set_public_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_public_key(); + PROTOBUF_MUST_USE_RESULT std::string* release_public_key(); + void set_allocated_public_key(std::string* public_key); + private: + const std::string& _internal_public_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const std::string& value); + std::string* _internal_mutable_public_key(); + public: + + // uint64 node_id = 1; + void clear_node_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 node_id() const; + void set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_node_id() const; + void _internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional double online_until = 9; + bool has_online_until() const; + private: + bool _internal_has_online_until() const; + public: + void clear_online_until(); + double online_until() const; + void set_online_until(double value); + private: + double _internal_online_until() const; + void _internal_set_online_until(double value); + public: + + // double heartbeat_interval = 10; + void clear_heartbeat_interval(); + double heartbeat_interval() const; + void set_heartbeat_interval(double value); + private: + double _internal_heartbeat_interval() const; + void _internal_set_heartbeat_interval(double value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.NodeInfo) 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_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr owner_aid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr owner_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr status_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr registered_at_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr last_activated_at_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr last_deactivated_at_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr unregistered_at_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; + ::PROTOBUF_NAMESPACE_ID::uint64 node_id_; + double online_until_; + double heartbeat_interval_; friend struct ::TableStruct_flwr_2fproto_2fnode_2eproto; }; // =================================================================== @@ -231,49 +534,507 @@ class Node final : #endif // __GNUC__ // Node -// sint64 node_id = 1; +// uint64 node_id = 1; inline void Node::clear_node_id() { - node_id_ = int64_t{0}; + node_id_ = uint64_t{0u}; } -inline ::PROTOBUF_NAMESPACE_ID::int64 Node::_internal_node_id() const { +inline ::PROTOBUF_NAMESPACE_ID::uint64 Node::_internal_node_id() const { return node_id_; } -inline ::PROTOBUF_NAMESPACE_ID::int64 Node::node_id() const { +inline ::PROTOBUF_NAMESPACE_ID::uint64 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) { +inline void Node::_internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { node_id_ = value; } -inline void Node::set_node_id(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Node::set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 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; +// ------------------------------------------------------------------- + +// NodeInfo + +// uint64 node_id = 1; +inline void NodeInfo::clear_node_id() { + node_id_ = uint64_t{0u}; } -inline bool Node::_internal_anonymous() const { - return anonymous_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 NodeInfo::_internal_node_id() const { + return node_id_; } -inline bool Node::anonymous() const { - // @@protoc_insertion_point(field_get:flwr.proto.Node.anonymous) - return _internal_anonymous(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 NodeInfo::node_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.NodeInfo.node_id) + return _internal_node_id(); } -inline void Node::_internal_set_anonymous(bool value) { +inline void NodeInfo::_internal_set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { - anonymous_ = value; + node_id_ = value; } -inline void Node::set_anonymous(bool value) { - _internal_set_anonymous(value); - // @@protoc_insertion_point(field_set:flwr.proto.Node.anonymous) +inline void NodeInfo::set_node_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_node_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.NodeInfo.node_id) +} + +// string owner_aid = 2; +inline void NodeInfo::clear_owner_aid() { + owner_aid_.ClearToEmpty(); +} +inline const std::string& NodeInfo::owner_aid() const { + // @@protoc_insertion_point(field_get:flwr.proto.NodeInfo.owner_aid) + return _internal_owner_aid(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NodeInfo::set_owner_aid(ArgT0&& arg0, ArgT... args) { + + owner_aid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.NodeInfo.owner_aid) +} +inline std::string* NodeInfo::mutable_owner_aid() { + std::string* _s = _internal_mutable_owner_aid(); + // @@protoc_insertion_point(field_mutable:flwr.proto.NodeInfo.owner_aid) + return _s; +} +inline const std::string& NodeInfo::_internal_owner_aid() const { + return owner_aid_.Get(); +} +inline void NodeInfo::_internal_set_owner_aid(const std::string& value) { + + owner_aid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* NodeInfo::_internal_mutable_owner_aid() { + + return owner_aid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* NodeInfo::release_owner_aid() { + // @@protoc_insertion_point(field_release:flwr.proto.NodeInfo.owner_aid) + return owner_aid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void NodeInfo::set_allocated_owner_aid(std::string* owner_aid) { + if (owner_aid != nullptr) { + + } else { + + } + owner_aid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), owner_aid, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.NodeInfo.owner_aid) +} + +// string owner_name = 3; +inline void NodeInfo::clear_owner_name() { + owner_name_.ClearToEmpty(); +} +inline const std::string& NodeInfo::owner_name() const { + // @@protoc_insertion_point(field_get:flwr.proto.NodeInfo.owner_name) + return _internal_owner_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NodeInfo::set_owner_name(ArgT0&& arg0, ArgT... args) { + + owner_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.NodeInfo.owner_name) +} +inline std::string* NodeInfo::mutable_owner_name() { + std::string* _s = _internal_mutable_owner_name(); + // @@protoc_insertion_point(field_mutable:flwr.proto.NodeInfo.owner_name) + return _s; +} +inline const std::string& NodeInfo::_internal_owner_name() const { + return owner_name_.Get(); +} +inline void NodeInfo::_internal_set_owner_name(const std::string& value) { + + owner_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* NodeInfo::_internal_mutable_owner_name() { + + return owner_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* NodeInfo::release_owner_name() { + // @@protoc_insertion_point(field_release:flwr.proto.NodeInfo.owner_name) + return owner_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void NodeInfo::set_allocated_owner_name(std::string* owner_name) { + if (owner_name != nullptr) { + + } else { + + } + owner_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), owner_name, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.NodeInfo.owner_name) +} + +// string status = 4; +inline void NodeInfo::clear_status() { + status_.ClearToEmpty(); +} +inline const std::string& NodeInfo::status() const { + // @@protoc_insertion_point(field_get:flwr.proto.NodeInfo.status) + return _internal_status(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NodeInfo::set_status(ArgT0&& arg0, ArgT... args) { + + status_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.NodeInfo.status) +} +inline std::string* NodeInfo::mutable_status() { + std::string* _s = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:flwr.proto.NodeInfo.status) + return _s; +} +inline const std::string& NodeInfo::_internal_status() const { + return status_.Get(); +} +inline void NodeInfo::_internal_set_status(const std::string& value) { + + status_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* NodeInfo::_internal_mutable_status() { + + return status_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* NodeInfo::release_status() { + // @@protoc_insertion_point(field_release:flwr.proto.NodeInfo.status) + return status_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void NodeInfo::set_allocated_status(std::string* status) { + if (status != nullptr) { + + } else { + + } + status_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), status, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.NodeInfo.status) +} + +// string registered_at = 5; +inline void NodeInfo::clear_registered_at() { + registered_at_.ClearToEmpty(); +} +inline const std::string& NodeInfo::registered_at() const { + // @@protoc_insertion_point(field_get:flwr.proto.NodeInfo.registered_at) + return _internal_registered_at(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NodeInfo::set_registered_at(ArgT0&& arg0, ArgT... args) { + + registered_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.NodeInfo.registered_at) +} +inline std::string* NodeInfo::mutable_registered_at() { + std::string* _s = _internal_mutable_registered_at(); + // @@protoc_insertion_point(field_mutable:flwr.proto.NodeInfo.registered_at) + return _s; +} +inline const std::string& NodeInfo::_internal_registered_at() const { + return registered_at_.Get(); +} +inline void NodeInfo::_internal_set_registered_at(const std::string& value) { + + registered_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* NodeInfo::_internal_mutable_registered_at() { + + return registered_at_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* NodeInfo::release_registered_at() { + // @@protoc_insertion_point(field_release:flwr.proto.NodeInfo.registered_at) + return registered_at_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void NodeInfo::set_allocated_registered_at(std::string* registered_at) { + if (registered_at != nullptr) { + + } else { + + } + registered_at_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), registered_at, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.NodeInfo.registered_at) +} + +// optional string last_activated_at = 6; +inline bool NodeInfo::_internal_has_last_activated_at() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool NodeInfo::has_last_activated_at() const { + return _internal_has_last_activated_at(); +} +inline void NodeInfo::clear_last_activated_at() { + last_activated_at_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& NodeInfo::last_activated_at() const { + // @@protoc_insertion_point(field_get:flwr.proto.NodeInfo.last_activated_at) + return _internal_last_activated_at(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NodeInfo::set_last_activated_at(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + last_activated_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.NodeInfo.last_activated_at) +} +inline std::string* NodeInfo::mutable_last_activated_at() { + std::string* _s = _internal_mutable_last_activated_at(); + // @@protoc_insertion_point(field_mutable:flwr.proto.NodeInfo.last_activated_at) + return _s; +} +inline const std::string& NodeInfo::_internal_last_activated_at() const { + return last_activated_at_.Get(); +} +inline void NodeInfo::_internal_set_last_activated_at(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + last_activated_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* NodeInfo::_internal_mutable_last_activated_at() { + _has_bits_[0] |= 0x00000001u; + return last_activated_at_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* NodeInfo::release_last_activated_at() { + // @@protoc_insertion_point(field_release:flwr.proto.NodeInfo.last_activated_at) + if (!_internal_has_last_activated_at()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return last_activated_at_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void NodeInfo::set_allocated_last_activated_at(std::string* last_activated_at) { + if (last_activated_at != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + last_activated_at_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), last_activated_at, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.NodeInfo.last_activated_at) +} + +// optional string last_deactivated_at = 7; +inline bool NodeInfo::_internal_has_last_deactivated_at() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool NodeInfo::has_last_deactivated_at() const { + return _internal_has_last_deactivated_at(); +} +inline void NodeInfo::clear_last_deactivated_at() { + last_deactivated_at_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& NodeInfo::last_deactivated_at() const { + // @@protoc_insertion_point(field_get:flwr.proto.NodeInfo.last_deactivated_at) + return _internal_last_deactivated_at(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NodeInfo::set_last_deactivated_at(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + last_deactivated_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.NodeInfo.last_deactivated_at) +} +inline std::string* NodeInfo::mutable_last_deactivated_at() { + std::string* _s = _internal_mutable_last_deactivated_at(); + // @@protoc_insertion_point(field_mutable:flwr.proto.NodeInfo.last_deactivated_at) + return _s; +} +inline const std::string& NodeInfo::_internal_last_deactivated_at() const { + return last_deactivated_at_.Get(); +} +inline void NodeInfo::_internal_set_last_deactivated_at(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + last_deactivated_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* NodeInfo::_internal_mutable_last_deactivated_at() { + _has_bits_[0] |= 0x00000002u; + return last_deactivated_at_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* NodeInfo::release_last_deactivated_at() { + // @@protoc_insertion_point(field_release:flwr.proto.NodeInfo.last_deactivated_at) + if (!_internal_has_last_deactivated_at()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return last_deactivated_at_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void NodeInfo::set_allocated_last_deactivated_at(std::string* last_deactivated_at) { + if (last_deactivated_at != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + last_deactivated_at_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), last_deactivated_at, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.NodeInfo.last_deactivated_at) +} + +// optional string unregistered_at = 8; +inline bool NodeInfo::_internal_has_unregistered_at() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool NodeInfo::has_unregistered_at() const { + return _internal_has_unregistered_at(); +} +inline void NodeInfo::clear_unregistered_at() { + unregistered_at_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& NodeInfo::unregistered_at() const { + // @@protoc_insertion_point(field_get:flwr.proto.NodeInfo.unregistered_at) + return _internal_unregistered_at(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NodeInfo::set_unregistered_at(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + unregistered_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.NodeInfo.unregistered_at) +} +inline std::string* NodeInfo::mutable_unregistered_at() { + std::string* _s = _internal_mutable_unregistered_at(); + // @@protoc_insertion_point(field_mutable:flwr.proto.NodeInfo.unregistered_at) + return _s; +} +inline const std::string& NodeInfo::_internal_unregistered_at() const { + return unregistered_at_.Get(); +} +inline void NodeInfo::_internal_set_unregistered_at(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + unregistered_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* NodeInfo::_internal_mutable_unregistered_at() { + _has_bits_[0] |= 0x00000004u; + return unregistered_at_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* NodeInfo::release_unregistered_at() { + // @@protoc_insertion_point(field_release:flwr.proto.NodeInfo.unregistered_at) + if (!_internal_has_unregistered_at()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return unregistered_at_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void NodeInfo::set_allocated_unregistered_at(std::string* unregistered_at) { + if (unregistered_at != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + unregistered_at_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), unregistered_at, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.NodeInfo.unregistered_at) +} + +// optional double online_until = 9; +inline bool NodeInfo::_internal_has_online_until() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool NodeInfo::has_online_until() const { + return _internal_has_online_until(); +} +inline void NodeInfo::clear_online_until() { + online_until_ = 0; + _has_bits_[0] &= ~0x00000008u; +} +inline double NodeInfo::_internal_online_until() const { + return online_until_; +} +inline double NodeInfo::online_until() const { + // @@protoc_insertion_point(field_get:flwr.proto.NodeInfo.online_until) + return _internal_online_until(); +} +inline void NodeInfo::_internal_set_online_until(double value) { + _has_bits_[0] |= 0x00000008u; + online_until_ = value; +} +inline void NodeInfo::set_online_until(double value) { + _internal_set_online_until(value); + // @@protoc_insertion_point(field_set:flwr.proto.NodeInfo.online_until) +} + +// double heartbeat_interval = 10; +inline void NodeInfo::clear_heartbeat_interval() { + heartbeat_interval_ = 0; +} +inline double NodeInfo::_internal_heartbeat_interval() const { + return heartbeat_interval_; +} +inline double NodeInfo::heartbeat_interval() const { + // @@protoc_insertion_point(field_get:flwr.proto.NodeInfo.heartbeat_interval) + return _internal_heartbeat_interval(); +} +inline void NodeInfo::_internal_set_heartbeat_interval(double value) { + + heartbeat_interval_ = value; +} +inline void NodeInfo::set_heartbeat_interval(double value) { + _internal_set_heartbeat_interval(value); + // @@protoc_insertion_point(field_set:flwr.proto.NodeInfo.heartbeat_interval) +} + +// bytes public_key = 11; +inline void NodeInfo::clear_public_key() { + public_key_.ClearToEmpty(); +} +inline const std::string& NodeInfo::public_key() const { + // @@protoc_insertion_point(field_get:flwr.proto.NodeInfo.public_key) + return _internal_public_key(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NodeInfo::set_public_key(ArgT0&& arg0, ArgT... args) { + + public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.NodeInfo.public_key) +} +inline std::string* NodeInfo::mutable_public_key() { + std::string* _s = _internal_mutable_public_key(); + // @@protoc_insertion_point(field_mutable:flwr.proto.NodeInfo.public_key) + return _s; +} +inline const std::string& NodeInfo::_internal_public_key() const { + return public_key_.Get(); +} +inline void NodeInfo::_internal_set_public_key(const std::string& value) { + + public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* NodeInfo::_internal_mutable_public_key() { + + return public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* NodeInfo::release_public_key() { + // @@protoc_insertion_point(field_release:flwr.proto.NodeInfo.public_key) + return public_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void NodeInfo::set_allocated_public_key(std::string* public_key) { + if (public_key != nullptr) { + + } else { + + } + public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.NodeInfo.public_key) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/framework/cc/flwr/include/flwr/proto/recorddict.grpc.pb.cc b/framework/cc/flwr/include/flwr/proto/recorddict.grpc.pb.cc new file mode 100644 index 000000000000..b80f8b61e9ff --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/recorddict.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/recorddict.proto + +#include "flwr/proto/recorddict.pb.h" +#include "flwr/proto/recorddict.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/framework/cc/flwr/include/flwr/proto/recorddict.grpc.pb.h b/framework/cc/flwr/include/flwr/proto/recorddict.grpc.pb.h new file mode 100644 index 000000000000..f746f2d6b632 --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/recorddict.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/recorddict.proto +// Original file comments: +// Copyright 2024 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_2frecorddict_2eproto__INCLUDED +#define GRPC_flwr_2fproto_2frecorddict_2eproto__INCLUDED + +#include "flwr/proto/recorddict.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_2frecorddict_2eproto__INCLUDED diff --git a/framework/cc/flwr/include/flwr/proto/recordset.pb.cc b/framework/cc/flwr/include/flwr/proto/recorddict.pb.cc similarity index 52% rename from framework/cc/flwr/include/flwr/proto/recordset.pb.cc rename to framework/cc/flwr/include/flwr/proto/recorddict.pb.cc index a7cf72084d7a..984b551ca556 100644 --- a/framework/cc/flwr/include/flwr/proto/recordset.pb.cc +++ b/framework/cc/flwr/include/flwr/proto/recorddict.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flwr/proto/recordset.proto +// source: flwr/proto/recorddict.proto -#include "flwr/proto/recordset.pb.h" +#include "flwr/proto/recorddict.pb.h" #include @@ -30,19 +30,32 @@ struct DoubleListDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DoubleListDefaultTypeInternal _DoubleList_default_instance_; -constexpr Sint64List::Sint64List( +constexpr SintList::SintList( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : vals_() , _vals_cached_byte_size_(0){} -struct Sint64ListDefaultTypeInternal { - constexpr Sint64ListDefaultTypeInternal() +struct SintListDefaultTypeInternal { + constexpr SintListDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~Sint64ListDefaultTypeInternal() {} + ~SintListDefaultTypeInternal() {} union { - Sint64List _instance; + SintList _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Sint64ListDefaultTypeInternal _Sint64List_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SintListDefaultTypeInternal _SintList_default_instance_; +constexpr UintList::UintList( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : vals_() + , _vals_cached_byte_size_(0){} +struct UintListDefaultTypeInternal { + constexpr UintListDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~UintListDefaultTypeInternal() {} + union { + UintList _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UintListDefaultTypeInternal _UintList_default_instance_; constexpr BoolList::BoolList( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : vals_(){} @@ -95,143 +108,137 @@ struct ArrayDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ArrayDefaultTypeInternal _Array_default_instance_; -constexpr MetricsRecordValue::MetricsRecordValue( +constexpr MetricRecordValue::MetricRecordValue( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : _oneof_case_{}{} -struct MetricsRecordValueDefaultTypeInternal { - constexpr MetricsRecordValueDefaultTypeInternal() +struct MetricRecordValueDefaultTypeInternal { + constexpr MetricRecordValueDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~MetricsRecordValueDefaultTypeInternal() {} + ~MetricRecordValueDefaultTypeInternal() {} union { - MetricsRecordValue _instance; + MetricRecordValue _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MetricsRecordValueDefaultTypeInternal _MetricsRecordValue_default_instance_; -constexpr ConfigsRecordValue::ConfigsRecordValue( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MetricRecordValueDefaultTypeInternal _MetricRecordValue_default_instance_; +constexpr ConfigRecordValue::ConfigRecordValue( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : _oneof_case_{}{} -struct ConfigsRecordValueDefaultTypeInternal { - constexpr ConfigsRecordValueDefaultTypeInternal() +struct ConfigRecordValueDefaultTypeInternal { + constexpr ConfigRecordValueDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConfigsRecordValueDefaultTypeInternal() {} + ~ConfigRecordValueDefaultTypeInternal() {} union { - ConfigsRecordValue _instance; + ConfigRecordValue _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConfigsRecordValueDefaultTypeInternal _ConfigsRecordValue_default_instance_; -constexpr ParametersRecord::ParametersRecord( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConfigRecordValueDefaultTypeInternal _ConfigRecordValue_default_instance_; +constexpr ArrayRecord_Item::ArrayRecord_Item( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : data_keys_() - , data_values_(){} -struct ParametersRecordDefaultTypeInternal { - constexpr ParametersRecordDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ParametersRecordDefaultTypeInternal() {} - union { - ParametersRecord _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ParametersRecordDefaultTypeInternal _ParametersRecord_default_instance_; -constexpr MetricsRecord_DataEntry_DoNotUse::MetricsRecord_DataEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct MetricsRecord_DataEntry_DoNotUseDefaultTypeInternal { - constexpr MetricsRecord_DataEntry_DoNotUseDefaultTypeInternal() + : key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , value_(nullptr){} +struct ArrayRecord_ItemDefaultTypeInternal { + constexpr ArrayRecord_ItemDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~MetricsRecord_DataEntry_DoNotUseDefaultTypeInternal() {} + ~ArrayRecord_ItemDefaultTypeInternal() {} union { - MetricsRecord_DataEntry_DoNotUse _instance; + ArrayRecord_Item _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MetricsRecord_DataEntry_DoNotUseDefaultTypeInternal _MetricsRecord_DataEntry_DoNotUse_default_instance_; -constexpr MetricsRecord::MetricsRecord( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ArrayRecord_ItemDefaultTypeInternal _ArrayRecord_Item_default_instance_; +constexpr ArrayRecord::ArrayRecord( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : data_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} -struct MetricsRecordDefaultTypeInternal { - constexpr MetricsRecordDefaultTypeInternal() + : items_(){} +struct ArrayRecordDefaultTypeInternal { + constexpr ArrayRecordDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~MetricsRecordDefaultTypeInternal() {} + ~ArrayRecordDefaultTypeInternal() {} union { - MetricsRecord _instance; + ArrayRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MetricsRecordDefaultTypeInternal _MetricsRecord_default_instance_; -constexpr ConfigsRecord_DataEntry_DoNotUse::ConfigsRecord_DataEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct ConfigsRecord_DataEntry_DoNotUseDefaultTypeInternal { - constexpr ConfigsRecord_DataEntry_DoNotUseDefaultTypeInternal() +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ArrayRecordDefaultTypeInternal _ArrayRecord_default_instance_; +constexpr MetricRecord_Item::MetricRecord_Item( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , value_(nullptr){} +struct MetricRecord_ItemDefaultTypeInternal { + constexpr MetricRecord_ItemDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConfigsRecord_DataEntry_DoNotUseDefaultTypeInternal() {} + ~MetricRecord_ItemDefaultTypeInternal() {} union { - ConfigsRecord_DataEntry_DoNotUse _instance; + MetricRecord_Item _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConfigsRecord_DataEntry_DoNotUseDefaultTypeInternal _ConfigsRecord_DataEntry_DoNotUse_default_instance_; -constexpr ConfigsRecord::ConfigsRecord( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MetricRecord_ItemDefaultTypeInternal _MetricRecord_Item_default_instance_; +constexpr MetricRecord::MetricRecord( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : data_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} -struct ConfigsRecordDefaultTypeInternal { - constexpr ConfigsRecordDefaultTypeInternal() + : items_(){} +struct MetricRecordDefaultTypeInternal { + constexpr MetricRecordDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConfigsRecordDefaultTypeInternal() {} + ~MetricRecordDefaultTypeInternal() {} union { - ConfigsRecord _instance; + MetricRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConfigsRecordDefaultTypeInternal _ConfigsRecord_default_instance_; -constexpr RecordSet_ParametersEntry_DoNotUse::RecordSet_ParametersEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct RecordSet_ParametersEntry_DoNotUseDefaultTypeInternal { - constexpr RecordSet_ParametersEntry_DoNotUseDefaultTypeInternal() +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MetricRecordDefaultTypeInternal _MetricRecord_default_instance_; +constexpr ConfigRecord_Item::ConfigRecord_Item( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , value_(nullptr){} +struct ConfigRecord_ItemDefaultTypeInternal { + constexpr ConfigRecord_ItemDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~RecordSet_ParametersEntry_DoNotUseDefaultTypeInternal() {} + ~ConfigRecord_ItemDefaultTypeInternal() {} union { - RecordSet_ParametersEntry_DoNotUse _instance; + ConfigRecord_Item _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RecordSet_ParametersEntry_DoNotUseDefaultTypeInternal _RecordSet_ParametersEntry_DoNotUse_default_instance_; -constexpr RecordSet_MetricsEntry_DoNotUse::RecordSet_MetricsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct RecordSet_MetricsEntry_DoNotUseDefaultTypeInternal { - constexpr RecordSet_MetricsEntry_DoNotUseDefaultTypeInternal() +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConfigRecord_ItemDefaultTypeInternal _ConfigRecord_Item_default_instance_; +constexpr ConfigRecord::ConfigRecord( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : items_(){} +struct ConfigRecordDefaultTypeInternal { + constexpr ConfigRecordDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~RecordSet_MetricsEntry_DoNotUseDefaultTypeInternal() {} + ~ConfigRecordDefaultTypeInternal() {} union { - RecordSet_MetricsEntry_DoNotUse _instance; + ConfigRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RecordSet_MetricsEntry_DoNotUseDefaultTypeInternal _RecordSet_MetricsEntry_DoNotUse_default_instance_; -constexpr RecordSet_ConfigsEntry_DoNotUse::RecordSet_ConfigsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct RecordSet_ConfigsEntry_DoNotUseDefaultTypeInternal { - constexpr RecordSet_ConfigsEntry_DoNotUseDefaultTypeInternal() +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConfigRecordDefaultTypeInternal _ConfigRecord_default_instance_; +constexpr RecordDict_Item::RecordDict_Item( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , _oneof_case_{}{} +struct RecordDict_ItemDefaultTypeInternal { + constexpr RecordDict_ItemDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~RecordSet_ConfigsEntry_DoNotUseDefaultTypeInternal() {} + ~RecordDict_ItemDefaultTypeInternal() {} union { - RecordSet_ConfigsEntry_DoNotUse _instance; + RecordDict_Item _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RecordSet_ConfigsEntry_DoNotUseDefaultTypeInternal _RecordSet_ConfigsEntry_DoNotUse_default_instance_; -constexpr RecordSet::RecordSet( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RecordDict_ItemDefaultTypeInternal _RecordDict_Item_default_instance_; +constexpr RecordDict::RecordDict( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : parameters_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) - , metrics_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) - , configs_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} -struct RecordSetDefaultTypeInternal { - constexpr RecordSetDefaultTypeInternal() + : items_(){} +struct RecordDictDefaultTypeInternal { + constexpr RecordDictDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~RecordSetDefaultTypeInternal() {} + ~RecordDictDefaultTypeInternal() {} union { - RecordSet _instance; + RecordDict _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RecordSetDefaultTypeInternal _RecordSet_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RecordDictDefaultTypeInternal _RecordDict_default_instance_; } // namespace proto } // namespace flwr -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2frecordset_2eproto[17]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_flwr_2fproto_2frecordset_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_flwr_2fproto_2frecordset_2eproto = nullptr; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2frecorddict_2eproto[17]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_flwr_2fproto_2frecorddict_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_flwr_2fproto_2frecorddict_2eproto = nullptr; -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2frecordset_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2frecorddict_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flwr::proto::DoubleList, _internal_metadata_), ~0u, // no _extensions_ @@ -240,12 +247,19 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2frecordset_2epro ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::flwr::proto::DoubleList, vals_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::Sint64List, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::SintList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::SintList, vals_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::UintList, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::Sint64List, vals_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::UintList, vals_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flwr::proto::BoolList, _internal_metadata_), ~0u, // no _extensions_ @@ -278,20 +292,22 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2frecordset_2epro PROTOBUF_FIELD_OFFSET(::flwr::proto::Array, stype_), PROTOBUF_FIELD_OFFSET(::flwr::proto::Array, data_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricsRecordValue, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricRecordValue, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricsRecordValue, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricRecordValue, _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_FIELD_OFFSET(::flwr::proto::MetricsRecordValue, value_), + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricRecordValue, value_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigsRecordValue, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigRecordValue, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigsRecordValue, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigRecordValue, _oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, @@ -304,183 +320,166 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2frecordset_2epro ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigsRecordValue, value_), + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigRecordValue, value_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::ParametersRecord, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ArrayRecord_Item, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::ParametersRecord, data_keys_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::ParametersRecord, data_values_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricsRecord_DataEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricsRecord_DataEntry_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::MetricsRecord_DataEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricsRecord_DataEntry_DoNotUse, value_), - 0, - 1, + PROTOBUF_FIELD_OFFSET(::flwr::proto::ArrayRecord_Item, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ArrayRecord_Item, value_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricsRecord, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ArrayRecord, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricsRecord, data_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigsRecord_DataEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigsRecord_DataEntry_DoNotUse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ArrayRecord, items_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricRecord_Item, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigsRecord_DataEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigsRecord_DataEntry_DoNotUse, value_), - 0, - 1, + PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricRecord_Item, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricRecord_Item, value_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigsRecord, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricRecord, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigsRecord, data_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet_ParametersEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet_ParametersEntry_DoNotUse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::MetricRecord, items_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigRecord_Item, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet_ParametersEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet_ParametersEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet_MetricsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet_MetricsEntry_DoNotUse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigRecord_Item, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigRecord_Item, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigRecord, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet_MetricsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet_MetricsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet_ConfigsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet_ConfigsEntry_DoNotUse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ConfigRecord, items_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordDict_Item, _internal_metadata_), ~0u, // no _extensions_ - ~0u, // no _oneof_case_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordDict_Item, _oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet_ConfigsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet_ConfigsEntry_DoNotUse, value_), - 0, - 1, + PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordDict_Item, key_), + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordDict_Item, value_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordDict, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet, parameters_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet, metrics_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordSet, configs_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::RecordDict, items_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::flwr::proto::DoubleList)}, - { 7, -1, -1, sizeof(::flwr::proto::Sint64List)}, - { 14, -1, -1, sizeof(::flwr::proto::BoolList)}, - { 21, -1, -1, sizeof(::flwr::proto::StringList)}, - { 28, -1, -1, sizeof(::flwr::proto::BytesList)}, - { 35, -1, -1, sizeof(::flwr::proto::Array)}, - { 45, -1, -1, sizeof(::flwr::proto::MetricsRecordValue)}, - { 56, -1, -1, sizeof(::flwr::proto::ConfigsRecordValue)}, - { 73, -1, -1, sizeof(::flwr::proto::ParametersRecord)}, - { 81, 89, -1, sizeof(::flwr::proto::MetricsRecord_DataEntry_DoNotUse)}, - { 91, -1, -1, sizeof(::flwr::proto::MetricsRecord)}, - { 98, 106, -1, sizeof(::flwr::proto::ConfigsRecord_DataEntry_DoNotUse)}, - { 108, -1, -1, sizeof(::flwr::proto::ConfigsRecord)}, - { 115, 123, -1, sizeof(::flwr::proto::RecordSet_ParametersEntry_DoNotUse)}, - { 125, 133, -1, sizeof(::flwr::proto::RecordSet_MetricsEntry_DoNotUse)}, - { 135, 143, -1, sizeof(::flwr::proto::RecordSet_ConfigsEntry_DoNotUse)}, - { 145, -1, -1, sizeof(::flwr::proto::RecordSet)}, + { 7, -1, -1, sizeof(::flwr::proto::SintList)}, + { 14, -1, -1, sizeof(::flwr::proto::UintList)}, + { 21, -1, -1, sizeof(::flwr::proto::BoolList)}, + { 28, -1, -1, sizeof(::flwr::proto::StringList)}, + { 35, -1, -1, sizeof(::flwr::proto::BytesList)}, + { 42, -1, -1, sizeof(::flwr::proto::Array)}, + { 52, -1, -1, sizeof(::flwr::proto::MetricRecordValue)}, + { 65, -1, -1, sizeof(::flwr::proto::ConfigRecordValue)}, + { 84, -1, -1, sizeof(::flwr::proto::ArrayRecord_Item)}, + { 92, -1, -1, sizeof(::flwr::proto::ArrayRecord)}, + { 99, -1, -1, sizeof(::flwr::proto::MetricRecord_Item)}, + { 107, -1, -1, sizeof(::flwr::proto::MetricRecord)}, + { 114, -1, -1, sizeof(::flwr::proto::ConfigRecord_Item)}, + { 122, -1, -1, sizeof(::flwr::proto::ConfigRecord)}, + { 129, -1, -1, sizeof(::flwr::proto::RecordDict_Item)}, + { 140, -1, -1, sizeof(::flwr::proto::RecordDict)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::flwr::proto::_DoubleList_default_instance_), - reinterpret_cast(&::flwr::proto::_Sint64List_default_instance_), + reinterpret_cast(&::flwr::proto::_SintList_default_instance_), + reinterpret_cast(&::flwr::proto::_UintList_default_instance_), reinterpret_cast(&::flwr::proto::_BoolList_default_instance_), reinterpret_cast(&::flwr::proto::_StringList_default_instance_), reinterpret_cast(&::flwr::proto::_BytesList_default_instance_), reinterpret_cast(&::flwr::proto::_Array_default_instance_), - reinterpret_cast(&::flwr::proto::_MetricsRecordValue_default_instance_), - reinterpret_cast(&::flwr::proto::_ConfigsRecordValue_default_instance_), - reinterpret_cast(&::flwr::proto::_ParametersRecord_default_instance_), - reinterpret_cast(&::flwr::proto::_MetricsRecord_DataEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flwr::proto::_MetricsRecord_default_instance_), - reinterpret_cast(&::flwr::proto::_ConfigsRecord_DataEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flwr::proto::_ConfigsRecord_default_instance_), - reinterpret_cast(&::flwr::proto::_RecordSet_ParametersEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flwr::proto::_RecordSet_MetricsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flwr::proto::_RecordSet_ConfigsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flwr::proto::_RecordSet_default_instance_), + reinterpret_cast(&::flwr::proto::_MetricRecordValue_default_instance_), + reinterpret_cast(&::flwr::proto::_ConfigRecordValue_default_instance_), + reinterpret_cast(&::flwr::proto::_ArrayRecord_Item_default_instance_), + reinterpret_cast(&::flwr::proto::_ArrayRecord_default_instance_), + reinterpret_cast(&::flwr::proto::_MetricRecord_Item_default_instance_), + reinterpret_cast(&::flwr::proto::_MetricRecord_default_instance_), + reinterpret_cast(&::flwr::proto::_ConfigRecord_Item_default_instance_), + reinterpret_cast(&::flwr::proto::_ConfigRecord_default_instance_), + reinterpret_cast(&::flwr::proto::_RecordDict_Item_default_instance_), + reinterpret_cast(&::flwr::proto::_RecordDict_default_instance_), }; -const char descriptor_table_protodef_flwr_2fproto_2frecordset_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\032flwr/proto/recordset.proto\022\nflwr.proto" - "\"\032\n\nDoubleList\022\014\n\004vals\030\001 \003(\001\"\032\n\nSint64Li" - "st\022\014\n\004vals\030\001 \003(\022\"\030\n\010BoolList\022\014\n\004vals\030\001 \003" - "(\010\"\032\n\nStringList\022\014\n\004vals\030\001 \003(\t\"\031\n\tBytesL" - "ist\022\014\n\004vals\030\001 \003(\014\"B\n\005Array\022\r\n\005dtype\030\001 \001(" - "\t\022\r\n\005shape\030\002 \003(\005\022\r\n\005stype\030\003 \001(\t\022\014\n\004data\030" - "\004 \001(\014\"\237\001\n\022MetricsRecordValue\022\020\n\006double\030\001" - " \001(\001H\000\022\020\n\006sint64\030\002 \001(\022H\000\022-\n\013double_list\030" - "\025 \001(\0132\026.flwr.proto.DoubleListH\000\022-\n\013sint6" - "4_list\030\026 \001(\0132\026.flwr.proto.Sint64ListH\000B\007" - "\n\005value\"\331\002\n\022ConfigsRecordValue\022\020\n\006double" - "\030\001 \001(\001H\000\022\020\n\006sint64\030\002 \001(\022H\000\022\016\n\004bool\030\003 \001(\010" - "H\000\022\020\n\006string\030\004 \001(\tH\000\022\017\n\005bytes\030\005 \001(\014H\000\022-\n" - "\013double_list\030\025 \001(\0132\026.flwr.proto.DoubleLi" - "stH\000\022-\n\013sint64_list\030\026 \001(\0132\026.flwr.proto.S" - "int64ListH\000\022)\n\tbool_list\030\027 \001(\0132\024.flwr.pr" - "oto.BoolListH\000\022-\n\013string_list\030\030 \001(\0132\026.fl" - "wr.proto.StringListH\000\022+\n\nbytes_list\030\031 \001(" - "\0132\025.flwr.proto.BytesListH\000B\007\n\005value\"M\n\020P" - "arametersRecord\022\021\n\tdata_keys\030\001 \003(\t\022&\n\013da" - "ta_values\030\002 \003(\0132\021.flwr.proto.Array\"\217\001\n\rM" - "etricsRecord\0221\n\004data\030\001 \003(\0132#.flwr.proto." - "MetricsRecord.DataEntry\032K\n\tDataEntry\022\013\n\003" - "key\030\001 \001(\t\022-\n\005value\030\002 \001(\0132\036.flwr.proto.Me" - "tricsRecordValue:\0028\001\"\217\001\n\rConfigsRecord\0221" - "\n\004data\030\001 \003(\0132#.flwr.proto.ConfigsRecord." - "DataEntry\032K\n\tDataEntry\022\013\n\003key\030\001 \001(\t\022-\n\005v" - "alue\030\002 \001(\0132\036.flwr.proto.ConfigsRecordVal" - "ue:\0028\001\"\227\003\n\tRecordSet\0229\n\nparameters\030\001 \003(\013" - "2%.flwr.proto.RecordSet.ParametersEntry\022" - "3\n\007metrics\030\002 \003(\0132\".flwr.proto.RecordSet." - "MetricsEntry\0223\n\007configs\030\003 \003(\0132\".flwr.pro" - "to.RecordSet.ConfigsEntry\032O\n\017ParametersE" - "ntry\022\013\n\003key\030\001 \001(\t\022+\n\005value\030\002 \001(\0132\034.flwr." - "proto.ParametersRecord:\0028\001\032I\n\014MetricsEnt" - "ry\022\013\n\003key\030\001 \001(\t\022(\n\005value\030\002 \001(\0132\031.flwr.pr" - "oto.MetricsRecord:\0028\001\032I\n\014ConfigsEntry\022\013\n" - "\003key\030\001 \001(\t\022(\n\005value\030\002 \001(\0132\031.flwr.proto.C" - "onfigsRecord:\0028\001b\006proto3" +const char descriptor_table_protodef_flwr_2fproto_2frecorddict_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\033flwr/proto/recorddict.proto\022\nflwr.prot" + "o\"\032\n\nDoubleList\022\014\n\004vals\030\001 \003(\001\"\030\n\010SintLis" + "t\022\014\n\004vals\030\001 \003(\022\"\030\n\010UintList\022\014\n\004vals\030\001 \003(" + "\004\"\030\n\010BoolList\022\014\n\004vals\030\001 \003(\010\"\032\n\nStringLis" + "t\022\014\n\004vals\030\001 \003(\t\"\031\n\tBytesList\022\014\n\004vals\030\001 \003" + "(\014\"B\n\005Array\022\r\n\005dtype\030\001 \001(\t\022\r\n\005shape\030\002 \003(" + "\005\022\r\n\005stype\030\003 \001(\t\022\014\n\004data\030\004 \001(\014\"\327\001\n\021Metri" + "cRecordValue\022\020\n\006double\030\001 \001(\001H\000\022\020\n\006sint64" + "\030\002 \001(\022H\000\022\020\n\006uint64\030\003 \001(\004H\000\022-\n\013double_lis" + "t\030\025 \001(\0132\026.flwr.proto.DoubleListH\000\022)\n\tsin" + "t_list\030\026 \001(\0132\024.flwr.proto.SintListH\000\022)\n\t" + "uint_list\030\027 \001(\0132\024.flwr.proto.UintListH\000B" + "\007\n\005value\"\221\003\n\021ConfigRecordValue\022\020\n\006double" + "\030\001 \001(\001H\000\022\020\n\006sint64\030\002 \001(\022H\000\022\020\n\006uint64\030\003 \001" + "(\004H\000\022\016\n\004bool\030\004 \001(\010H\000\022\020\n\006string\030\005 \001(\tH\000\022\017" + "\n\005bytes\030\006 \001(\014H\000\022-\n\013double_list\030\025 \001(\0132\026.f" + "lwr.proto.DoubleListH\000\022)\n\tsint_list\030\026 \001(" + "\0132\024.flwr.proto.SintListH\000\022)\n\tuint_list\030\027" + " \001(\0132\024.flwr.proto.UintListH\000\022)\n\tbool_lis" + "t\030\030 \001(\0132\024.flwr.proto.BoolListH\000\022-\n\013strin" + "g_list\030\031 \001(\0132\026.flwr.proto.StringListH\000\022+" + "\n\nbytes_list\030\032 \001(\0132\025.flwr.proto.BytesLis" + "tH\000B\007\n\005value\"q\n\013ArrayRecord\022+\n\005items\030\001 \003" + "(\0132\034.flwr.proto.ArrayRecord.Item\0325\n\004Item" + "\022\013\n\003key\030\001 \001(\t\022 \n\005value\030\002 \001(\0132\021.flwr.prot" + "o.Array\"\177\n\014MetricRecord\022,\n\005items\030\001 \003(\0132\035" + ".flwr.proto.MetricRecord.Item\032A\n\004Item\022\013\n" + "\003key\030\001 \001(\t\022,\n\005value\030\002 \001(\0132\035.flwr.proto.M" + "etricRecordValue\"\177\n\014ConfigRecord\022,\n\005item" + "s\030\001 \003(\0132\035.flwr.proto.ConfigRecord.Item\032A" + "\n\004Item\022\013\n\003key\030\001 \001(\t\022,\n\005value\030\002 \001(\0132\035.flw" + "r.proto.ConfigRecordValue\"\356\001\n\nRecordDict" + "\022*\n\005items\030\001 \003(\0132\033.flwr.proto.RecordDict." + "Item\032\263\001\n\004Item\022\013\n\003key\030\001 \001(\t\022/\n\014array_reco" + "rd\030\002 \001(\0132\027.flwr.proto.ArrayRecordH\000\0221\n\rm" + "etric_record\030\003 \001(\0132\030.flwr.proto.MetricRe" + "cordH\000\0221\n\rconfig_record\030\004 \001(\0132\030.flwr.pro" + "to.ConfigRecordH\000B\007\n\005valueb\006proto3" ; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_flwr_2fproto_2frecordset_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2frecordset_2eproto = { - false, false, 1544, descriptor_table_protodef_flwr_2fproto_2frecordset_2eproto, "flwr/proto/recordset.proto", - &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, nullptr, 0, 17, - schemas, file_default_instances, TableStruct_flwr_2fproto_2frecordset_2eproto::offsets, - file_level_metadata_flwr_2fproto_2frecordset_2eproto, file_level_enum_descriptors_flwr_2fproto_2frecordset_2eproto, file_level_service_descriptors_flwr_2fproto_2frecordset_2eproto, +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_flwr_2fproto_2frecorddict_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2frecorddict_2eproto = { + false, false, 1514, descriptor_table_protodef_flwr_2fproto_2frecorddict_2eproto, "flwr/proto/recorddict.proto", + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, nullptr, 0, 17, + schemas, file_default_instances, TableStruct_flwr_2fproto_2frecorddict_2eproto::offsets, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto, file_level_enum_descriptors_flwr_2fproto_2frecorddict_2eproto, file_level_service_descriptors_flwr_2fproto_2frecorddict_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_flwr_2fproto_2frecordset_2eproto_getter() { - return &descriptor_table_flwr_2fproto_2frecordset_2eproto; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter() { + return &descriptor_table_flwr_2fproto_2frecorddict_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_flwr_2fproto_2frecordset_2eproto(&descriptor_table_flwr_2fproto_2frecordset_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_flwr_2fproto_2frecorddict_2eproto(&descriptor_table_flwr_2fproto_2frecorddict_2eproto); namespace flwr { namespace proto { @@ -665,17 +664,17 @@ void DoubleList::InternalSwap(DoubleList* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DoubleList::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[0]); + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[0]); } // =================================================================== -class Sint64List::_Internal { +class SintList::_Internal { public: }; -Sint64List::Sint64List(::PROTOBUF_NAMESPACE_ID::Arena* arena, +SintList::SintList(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), vals_(arena) { @@ -683,41 +682,41 @@ Sint64List::Sint64List(::PROTOBUF_NAMESPACE_ID::Arena* arena, if (!is_message_owned) { RegisterArenaDtor(arena); } - // @@protoc_insertion_point(arena_constructor:flwr.proto.Sint64List) + // @@protoc_insertion_point(arena_constructor:flwr.proto.SintList) } -Sint64List::Sint64List(const Sint64List& from) +SintList::SintList(const SintList& 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.Sint64List) + // @@protoc_insertion_point(copy_constructor:flwr.proto.SintList) } -void Sint64List::SharedCtor() { +void SintList::SharedCtor() { } -Sint64List::~Sint64List() { - // @@protoc_insertion_point(destructor:flwr.proto.Sint64List) +SintList::~SintList() { + // @@protoc_insertion_point(destructor:flwr.proto.SintList) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void Sint64List::SharedDtor() { +inline void SintList::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void Sint64List::ArenaDtor(void* object) { - Sint64List* _this = reinterpret_cast< Sint64List* >(object); +void SintList::ArenaDtor(void* object) { + SintList* _this = reinterpret_cast< SintList* >(object); (void)_this; } -void Sint64List::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void SintList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void Sint64List::SetCachedSize(int size) const { +void SintList::SetCachedSize(int size) const { _cached_size_.Set(size); } -void Sint64List::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.Sint64List) +void SintList::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.SintList) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -726,7 +725,7 @@ void Sint64List::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Sint64List::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SintList::_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; @@ -766,9 +765,9 @@ const char* Sint64List::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Sint64List::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* SintList::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Sint64List) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.SintList) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -785,12 +784,12 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Sint64List::_InternalSerialize( 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.Sint64List) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.SintList) return target; } -size_t Sint64List::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Sint64List) +size_t SintList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.SintList) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; @@ -815,21 +814,213 @@ size_t Sint64List::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Sint64List::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SintList::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SintList::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SintList::GetClassData() const { return &_class_data_; } + +void SintList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void SintList::MergeFrom(const SintList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.SintList) + 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 SintList::CopyFrom(const SintList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.SintList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SintList::IsInitialized() const { + return true; +} + +void SintList::InternalSwap(SintList* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + vals_.InternalSwap(&other->vals_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SintList::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[1]); +} + +// =================================================================== + +class UintList::_Internal { + public: +}; + +UintList::UintList(::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.UintList) +} +UintList::UintList(const UintList& 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.UintList) +} + +void UintList::SharedCtor() { +} + +UintList::~UintList() { + // @@protoc_insertion_point(destructor:flwr.proto.UintList) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void UintList::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void UintList::ArenaDtor(void* object) { + UintList* _this = reinterpret_cast< UintList* >(object); + (void)_this; +} +void UintList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void UintList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UintList::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.UintList) + ::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* UintList::_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 uint64 vals = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(_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* UintList::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.UintList) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint64 vals = 1; + { + int byte_size = _vals_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteUInt64Packed( + 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.UintList) + return target; +} + +size_t UintList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.UintList) + 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 uint64 vals = 1; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + UInt64Size(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 UintList::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - Sint64List::MergeImpl + UintList::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Sint64List::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UintList::GetClassData() const { return &_class_data_; } -void Sint64List::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void UintList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void Sint64List::MergeFrom(const Sint64List& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Sint64List) +void UintList::MergeFrom(const UintList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.UintList) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -838,27 +1029,27 @@ void Sint64List::MergeFrom(const Sint64List& from) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void Sint64List::CopyFrom(const Sint64List& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Sint64List) +void UintList::CopyFrom(const UintList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.UintList) if (&from == this) return; Clear(); MergeFrom(from); } -bool Sint64List::IsInitialized() const { +bool UintList::IsInitialized() const { return true; } -void Sint64List::InternalSwap(Sint64List* other) { +void UintList::InternalSwap(UintList* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); vals_.InternalSwap(&other->vals_); } -::PROTOBUF_NAMESPACE_ID::Metadata Sint64List::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UintList::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[1]); + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[2]); } // =================================================================== @@ -1042,8 +1233,8 @@ void BoolList::InternalSwap(BoolList* other) { ::PROTOBUF_NAMESPACE_ID::Metadata BoolList::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[2]); + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[3]); } // =================================================================== @@ -1232,8 +1423,8 @@ void StringList::InternalSwap(StringList* other) { ::PROTOBUF_NAMESPACE_ID::Metadata StringList::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[3]); + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[4]); } // =================================================================== @@ -1417,8 +1608,8 @@ void BytesList::InternalSwap(BytesList* other) { ::PROTOBUF_NAMESPACE_ID::Metadata BytesList::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[4]); + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[5]); } // =================================================================== @@ -1735,27 +1926,32 @@ void Array::InternalSwap(Array* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Array::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[5]); + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[6]); } // =================================================================== -class MetricsRecordValue::_Internal { +class MetricRecordValue::_Internal { public: - static const ::flwr::proto::DoubleList& double_list(const MetricsRecordValue* msg); - static const ::flwr::proto::Sint64List& sint64_list(const MetricsRecordValue* msg); + static const ::flwr::proto::DoubleList& double_list(const MetricRecordValue* msg); + static const ::flwr::proto::SintList& sint_list(const MetricRecordValue* msg); + static const ::flwr::proto::UintList& uint_list(const MetricRecordValue* msg); }; const ::flwr::proto::DoubleList& -MetricsRecordValue::_Internal::double_list(const MetricsRecordValue* msg) { +MetricRecordValue::_Internal::double_list(const MetricRecordValue* msg) { return *msg->value_.double_list_; } -const ::flwr::proto::Sint64List& -MetricsRecordValue::_Internal::sint64_list(const MetricsRecordValue* msg) { - return *msg->value_.sint64_list_; +const ::flwr::proto::SintList& +MetricRecordValue::_Internal::sint_list(const MetricRecordValue* msg) { + return *msg->value_.sint_list_; } -void MetricsRecordValue::set_allocated_double_list(::flwr::proto::DoubleList* double_list) { +const ::flwr::proto::UintList& +MetricRecordValue::_Internal::uint_list(const MetricRecordValue* msg) { + return *msg->value_.uint_list_; +} +void MetricRecordValue::set_allocated_double_list(::flwr::proto::DoubleList* double_list) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_value(); if (double_list) { @@ -1768,33 +1964,48 @@ void MetricsRecordValue::set_allocated_double_list(::flwr::proto::DoubleList* do set_has_double_list(); value_.double_list_ = double_list; } - // @@protoc_insertion_point(field_set_allocated:flwr.proto.MetricsRecordValue.double_list) + // @@protoc_insertion_point(field_set_allocated:flwr.proto.MetricRecordValue.double_list) +} +void MetricRecordValue::set_allocated_sint_list(::flwr::proto::SintList* sint_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_value(); + if (sint_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::SintList>::GetOwningArena(sint_list); + if (message_arena != submessage_arena) { + sint_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sint_list, submessage_arena); + } + set_has_sint_list(); + value_.sint_list_ = sint_list; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.MetricRecordValue.sint_list) } -void MetricsRecordValue::set_allocated_sint64_list(::flwr::proto::Sint64List* sint64_list) { +void MetricRecordValue::set_allocated_uint_list(::flwr::proto::UintList* uint_list) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_value(); - if (sint64_list) { + if (uint_list) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Sint64List>::GetOwningArena(sint64_list); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::UintList>::GetOwningArena(uint_list); if (message_arena != submessage_arena) { - sint64_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sint64_list, submessage_arena); + uint_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, uint_list, submessage_arena); } - set_has_sint64_list(); - value_.sint64_list_ = sint64_list; + set_has_uint_list(); + value_.uint_list_ = uint_list; } - // @@protoc_insertion_point(field_set_allocated:flwr.proto.MetricsRecordValue.sint64_list) + // @@protoc_insertion_point(field_set_allocated:flwr.proto.MetricRecordValue.uint_list) } -MetricsRecordValue::MetricsRecordValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, +MetricRecordValue::MetricRecordValue(::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.MetricsRecordValue) + // @@protoc_insertion_point(arena_constructor:flwr.proto.MetricRecordValue) } -MetricsRecordValue::MetricsRecordValue(const MetricsRecordValue& from) +MetricRecordValue::MetricRecordValue(const MetricRecordValue& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); clear_has_value(); @@ -1807,51 +2018,59 @@ MetricsRecordValue::MetricsRecordValue(const MetricsRecordValue& from) _internal_set_sint64(from._internal_sint64()); break; } + case kUint64: { + _internal_set_uint64(from._internal_uint64()); + break; + } case kDoubleList: { _internal_mutable_double_list()->::flwr::proto::DoubleList::MergeFrom(from._internal_double_list()); break; } - case kSint64List: { - _internal_mutable_sint64_list()->::flwr::proto::Sint64List::MergeFrom(from._internal_sint64_list()); + case kSintList: { + _internal_mutable_sint_list()->::flwr::proto::SintList::MergeFrom(from._internal_sint_list()); + break; + } + case kUintList: { + _internal_mutable_uint_list()->::flwr::proto::UintList::MergeFrom(from._internal_uint_list()); break; } case VALUE_NOT_SET: { break; } } - // @@protoc_insertion_point(copy_constructor:flwr.proto.MetricsRecordValue) + // @@protoc_insertion_point(copy_constructor:flwr.proto.MetricRecordValue) } -void MetricsRecordValue::SharedCtor() { +void MetricRecordValue::SharedCtor() { clear_has_value(); } -MetricsRecordValue::~MetricsRecordValue() { - // @@protoc_insertion_point(destructor:flwr.proto.MetricsRecordValue) +MetricRecordValue::~MetricRecordValue() { + // @@protoc_insertion_point(destructor:flwr.proto.MetricRecordValue) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void MetricsRecordValue::SharedDtor() { +inline void MetricRecordValue::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_value()) { clear_value(); } } -void MetricsRecordValue::ArenaDtor(void* object) { - MetricsRecordValue* _this = reinterpret_cast< MetricsRecordValue* >(object); +void MetricRecordValue::ArenaDtor(void* object) { + MetricRecordValue* _this = reinterpret_cast< MetricRecordValue* >(object); (void)_this; } -void MetricsRecordValue::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void MetricRecordValue::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void MetricsRecordValue::SetCachedSize(int size) const { +void MetricRecordValue::SetCachedSize(int size) const { _cached_size_.Set(size); } -void MetricsRecordValue::clear_value() { -// @@protoc_insertion_point(one_of_clear_start:flwr.proto.MetricsRecordValue) +void MetricRecordValue::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:flwr.proto.MetricRecordValue) switch (value_case()) { case kDouble: { // No need to clear @@ -1861,15 +2080,25 @@ void MetricsRecordValue::clear_value() { // No need to clear break; } + case kUint64: { + // No need to clear + break; + } case kDoubleList: { if (GetArenaForAllocation() == nullptr) { delete value_.double_list_; } break; } - case kSint64List: { + case kSintList: { + if (GetArenaForAllocation() == nullptr) { + delete value_.sint_list_; + } + break; + } + case kUintList: { if (GetArenaForAllocation() == nullptr) { - delete value_.sint64_list_; + delete value_.uint_list_; } break; } @@ -1881,8 +2110,8 @@ void MetricsRecordValue::clear_value() { } -void MetricsRecordValue::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.MetricsRecordValue) +void MetricRecordValue::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.MetricRecordValue) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1891,7 +2120,7 @@ void MetricsRecordValue::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MetricsRecordValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* MetricRecordValue::_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; @@ -1913,6 +2142,14 @@ const char* MetricsRecordValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMES } else goto handle_unusual; continue; + // uint64 uint64 = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _internal_set_uint64(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; // .flwr.proto.DoubleList double_list = 21; case 21: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 170)) { @@ -1921,10 +2158,18 @@ const char* MetricsRecordValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMES } else goto handle_unusual; continue; - // .flwr.proto.Sint64List sint64_list = 22; + // .flwr.proto.SintList sint_list = 22; case 22: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 178)) { - ptr = ctx->ParseMessage(_internal_mutable_sint64_list(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_sint_list(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.UintList uint_list = 23; + case 23: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 186)) { + ptr = ctx->ParseMessage(_internal_mutable_uint_list(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -1952,9 +2197,9 @@ const char* MetricsRecordValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMES #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* MetricsRecordValue::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* MetricRecordValue::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.MetricsRecordValue) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.MetricRecordValue) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1970,6 +2215,12 @@ ::PROTOBUF_NAMESPACE_ID::uint8* MetricsRecordValue::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(2, this->_internal_sint64(), target); } + // uint64 uint64 = 3; + if (_internal_has_uint64()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_uint64(), target); + } + // .flwr.proto.DoubleList double_list = 21; if (_internal_has_double_list()) { target = stream->EnsureSpace(target); @@ -1978,24 +2229,32 @@ ::PROTOBUF_NAMESPACE_ID::uint8* MetricsRecordValue::_InternalSerialize( 21, _Internal::double_list(this), target, stream); } - // .flwr.proto.Sint64List sint64_list = 22; - if (_internal_has_sint64_list()) { + // .flwr.proto.SintList sint_list = 22; + if (_internal_has_sint_list()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 22, _Internal::sint_list(this), target, stream); + } + + // .flwr.proto.UintList uint_list = 23; + if (_internal_has_uint_list()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 22, _Internal::sint64_list(this), target, stream); + 23, _Internal::uint_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.MetricsRecordValue) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.MetricRecordValue) return target; } -size_t MetricsRecordValue::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.MetricsRecordValue) +size_t MetricRecordValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.MetricRecordValue) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; @@ -2013,6 +2272,11 @@ size_t MetricsRecordValue::ByteSizeLong() const { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64SizePlusOne(this->_internal_sint64()); break; } + // uint64 uint64 = 3; + case kUint64: { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_uint64()); + break; + } // .flwr.proto.DoubleList double_list = 21; case kDoubleList: { total_size += 2 + @@ -2020,11 +2284,18 @@ size_t MetricsRecordValue::ByteSizeLong() const { *value_.double_list_); break; } - // .flwr.proto.Sint64List sint64_list = 22; - case kSint64List: { + // .flwr.proto.SintList sint_list = 22; + case kSintList: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_.sint_list_); + break; + } + // .flwr.proto.UintList uint_list = 23; + case kUintList: { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *value_.sint64_list_); + *value_.uint_list_); break; } case VALUE_NOT_SET: { @@ -2034,21 +2305,21 @@ size_t MetricsRecordValue::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MetricsRecordValue::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MetricRecordValue::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - MetricsRecordValue::MergeImpl + MetricRecordValue::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MetricsRecordValue::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MetricRecordValue::GetClassData() const { return &_class_data_; } -void MetricsRecordValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void MetricRecordValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void MetricsRecordValue::MergeFrom(const MetricsRecordValue& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.MetricsRecordValue) +void MetricRecordValue::MergeFrom(const MetricRecordValue& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.MetricRecordValue) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2062,12 +2333,20 @@ void MetricsRecordValue::MergeFrom(const MetricsRecordValue& from) { _internal_set_sint64(from._internal_sint64()); break; } + case kUint64: { + _internal_set_uint64(from._internal_uint64()); + break; + } case kDoubleList: { _internal_mutable_double_list()->::flwr::proto::DoubleList::MergeFrom(from._internal_double_list()); break; } - case kSint64List: { - _internal_mutable_sint64_list()->::flwr::proto::Sint64List::MergeFrom(from._internal_sint64_list()); + case kSintList: { + _internal_mutable_sint_list()->::flwr::proto::SintList::MergeFrom(from._internal_sint_list()); + break; + } + case kUintList: { + _internal_mutable_uint_list()->::flwr::proto::UintList::MergeFrom(from._internal_uint_list()); break; } case VALUE_NOT_SET: { @@ -2077,62 +2356,67 @@ void MetricsRecordValue::MergeFrom(const MetricsRecordValue& from) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void MetricsRecordValue::CopyFrom(const MetricsRecordValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.MetricsRecordValue) +void MetricRecordValue::CopyFrom(const MetricRecordValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.MetricRecordValue) if (&from == this) return; Clear(); MergeFrom(from); } -bool MetricsRecordValue::IsInitialized() const { +bool MetricRecordValue::IsInitialized() const { return true; } -void MetricsRecordValue::InternalSwap(MetricsRecordValue* other) { +void MetricRecordValue::InternalSwap(MetricRecordValue* 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 MetricsRecordValue::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MetricRecordValue::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[6]); + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[7]); } // =================================================================== -class ConfigsRecordValue::_Internal { +class ConfigRecordValue::_Internal { public: - static const ::flwr::proto::DoubleList& double_list(const ConfigsRecordValue* msg); - static const ::flwr::proto::Sint64List& sint64_list(const ConfigsRecordValue* msg); - static const ::flwr::proto::BoolList& bool_list(const ConfigsRecordValue* msg); - static const ::flwr::proto::StringList& string_list(const ConfigsRecordValue* msg); - static const ::flwr::proto::BytesList& bytes_list(const ConfigsRecordValue* msg); + static const ::flwr::proto::DoubleList& double_list(const ConfigRecordValue* msg); + static const ::flwr::proto::SintList& sint_list(const ConfigRecordValue* msg); + static const ::flwr::proto::UintList& uint_list(const ConfigRecordValue* msg); + static const ::flwr::proto::BoolList& bool_list(const ConfigRecordValue* msg); + static const ::flwr::proto::StringList& string_list(const ConfigRecordValue* msg); + static const ::flwr::proto::BytesList& bytes_list(const ConfigRecordValue* msg); }; const ::flwr::proto::DoubleList& -ConfigsRecordValue::_Internal::double_list(const ConfigsRecordValue* msg) { +ConfigRecordValue::_Internal::double_list(const ConfigRecordValue* msg) { return *msg->value_.double_list_; } -const ::flwr::proto::Sint64List& -ConfigsRecordValue::_Internal::sint64_list(const ConfigsRecordValue* msg) { - return *msg->value_.sint64_list_; +const ::flwr::proto::SintList& +ConfigRecordValue::_Internal::sint_list(const ConfigRecordValue* msg) { + return *msg->value_.sint_list_; +} +const ::flwr::proto::UintList& +ConfigRecordValue::_Internal::uint_list(const ConfigRecordValue* msg) { + return *msg->value_.uint_list_; } const ::flwr::proto::BoolList& -ConfigsRecordValue::_Internal::bool_list(const ConfigsRecordValue* msg) { +ConfigRecordValue::_Internal::bool_list(const ConfigRecordValue* msg) { return *msg->value_.bool_list_; } const ::flwr::proto::StringList& -ConfigsRecordValue::_Internal::string_list(const ConfigsRecordValue* msg) { +ConfigRecordValue::_Internal::string_list(const ConfigRecordValue* msg) { return *msg->value_.string_list_; } const ::flwr::proto::BytesList& -ConfigsRecordValue::_Internal::bytes_list(const ConfigsRecordValue* msg) { +ConfigRecordValue::_Internal::bytes_list(const ConfigRecordValue* msg) { return *msg->value_.bytes_list_; } -void ConfigsRecordValue::set_allocated_double_list(::flwr::proto::DoubleList* double_list) { +void ConfigRecordValue::set_allocated_double_list(::flwr::proto::DoubleList* double_list) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_value(); if (double_list) { @@ -2145,24 +2429,39 @@ void ConfigsRecordValue::set_allocated_double_list(::flwr::proto::DoubleList* do set_has_double_list(); value_.double_list_ = double_list; } - // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfigsRecordValue.double_list) + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfigRecordValue.double_list) +} +void ConfigRecordValue::set_allocated_sint_list(::flwr::proto::SintList* sint_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_value(); + if (sint_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::SintList>::GetOwningArena(sint_list); + if (message_arena != submessage_arena) { + sint_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sint_list, submessage_arena); + } + set_has_sint_list(); + value_.sint_list_ = sint_list; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfigRecordValue.sint_list) } -void ConfigsRecordValue::set_allocated_sint64_list(::flwr::proto::Sint64List* sint64_list) { +void ConfigRecordValue::set_allocated_uint_list(::flwr::proto::UintList* uint_list) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_value(); - if (sint64_list) { + if (uint_list) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Sint64List>::GetOwningArena(sint64_list); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::UintList>::GetOwningArena(uint_list); if (message_arena != submessage_arena) { - sint64_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sint64_list, submessage_arena); + uint_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, uint_list, submessage_arena); } - set_has_sint64_list(); - value_.sint64_list_ = sint64_list; + set_has_uint_list(); + value_.uint_list_ = uint_list; } - // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfigsRecordValue.sint64_list) + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfigRecordValue.uint_list) } -void ConfigsRecordValue::set_allocated_bool_list(::flwr::proto::BoolList* bool_list) { +void ConfigRecordValue::set_allocated_bool_list(::flwr::proto::BoolList* bool_list) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_value(); if (bool_list) { @@ -2175,9 +2474,9 @@ void ConfigsRecordValue::set_allocated_bool_list(::flwr::proto::BoolList* bool_l set_has_bool_list(); value_.bool_list_ = bool_list; } - // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfigsRecordValue.bool_list) + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfigRecordValue.bool_list) } -void ConfigsRecordValue::set_allocated_string_list(::flwr::proto::StringList* string_list) { +void ConfigRecordValue::set_allocated_string_list(::flwr::proto::StringList* string_list) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_value(); if (string_list) { @@ -2190,9 +2489,9 @@ void ConfigsRecordValue::set_allocated_string_list(::flwr::proto::StringList* st set_has_string_list(); value_.string_list_ = string_list; } - // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfigsRecordValue.string_list) + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfigRecordValue.string_list) } -void ConfigsRecordValue::set_allocated_bytes_list(::flwr::proto::BytesList* bytes_list) { +void ConfigRecordValue::set_allocated_bytes_list(::flwr::proto::BytesList* bytes_list) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_value(); if (bytes_list) { @@ -2205,18 +2504,18 @@ void ConfigsRecordValue::set_allocated_bytes_list(::flwr::proto::BytesList* byte set_has_bytes_list(); value_.bytes_list_ = bytes_list; } - // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfigsRecordValue.bytes_list) + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfigRecordValue.bytes_list) } -ConfigsRecordValue::ConfigsRecordValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ConfigRecordValue::ConfigRecordValue(::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.ConfigsRecordValue) + // @@protoc_insertion_point(arena_constructor:flwr.proto.ConfigRecordValue) } -ConfigsRecordValue::ConfigsRecordValue(const ConfigsRecordValue& from) +ConfigRecordValue::ConfigRecordValue(const ConfigRecordValue& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); clear_has_value(); @@ -2229,6 +2528,10 @@ ConfigsRecordValue::ConfigsRecordValue(const ConfigsRecordValue& from) _internal_set_sint64(from._internal_sint64()); break; } + case kUint64: { + _internal_set_uint64(from._internal_uint64()); + break; + } case kBool: { _internal_set_bool_(from._internal_bool_()); break; @@ -2245,8 +2548,12 @@ ConfigsRecordValue::ConfigsRecordValue(const ConfigsRecordValue& from) _internal_mutable_double_list()->::flwr::proto::DoubleList::MergeFrom(from._internal_double_list()); break; } - case kSint64List: { - _internal_mutable_sint64_list()->::flwr::proto::Sint64List::MergeFrom(from._internal_sint64_list()); + case kSintList: { + _internal_mutable_sint_list()->::flwr::proto::SintList::MergeFrom(from._internal_sint_list()); + break; + } + case kUintList: { + _internal_mutable_uint_list()->::flwr::proto::UintList::MergeFrom(from._internal_uint_list()); break; } case kBoolList: { @@ -2265,39 +2572,39 @@ ConfigsRecordValue::ConfigsRecordValue(const ConfigsRecordValue& from) break; } } - // @@protoc_insertion_point(copy_constructor:flwr.proto.ConfigsRecordValue) + // @@protoc_insertion_point(copy_constructor:flwr.proto.ConfigRecordValue) } -void ConfigsRecordValue::SharedCtor() { +void ConfigRecordValue::SharedCtor() { clear_has_value(); } -ConfigsRecordValue::~ConfigsRecordValue() { - // @@protoc_insertion_point(destructor:flwr.proto.ConfigsRecordValue) +ConfigRecordValue::~ConfigRecordValue() { + // @@protoc_insertion_point(destructor:flwr.proto.ConfigRecordValue) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void ConfigsRecordValue::SharedDtor() { +inline void ConfigRecordValue::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_value()) { clear_value(); } } -void ConfigsRecordValue::ArenaDtor(void* object) { - ConfigsRecordValue* _this = reinterpret_cast< ConfigsRecordValue* >(object); +void ConfigRecordValue::ArenaDtor(void* object) { + ConfigRecordValue* _this = reinterpret_cast< ConfigRecordValue* >(object); (void)_this; } -void ConfigsRecordValue::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void ConfigRecordValue::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void ConfigsRecordValue::SetCachedSize(int size) const { +void ConfigRecordValue::SetCachedSize(int size) const { _cached_size_.Set(size); } -void ConfigsRecordValue::clear_value() { -// @@protoc_insertion_point(one_of_clear_start:flwr.proto.ConfigsRecordValue) +void ConfigRecordValue::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:flwr.proto.ConfigRecordValue) switch (value_case()) { case kDouble: { // No need to clear @@ -2307,6 +2614,10 @@ void ConfigsRecordValue::clear_value() { // No need to clear break; } + case kUint64: { + // No need to clear + break; + } case kBool: { // No need to clear break; @@ -2325,9 +2636,15 @@ void ConfigsRecordValue::clear_value() { } break; } - case kSint64List: { + case kSintList: { + if (GetArenaForAllocation() == nullptr) { + delete value_.sint_list_; + } + break; + } + case kUintList: { if (GetArenaForAllocation() == nullptr) { - delete value_.sint64_list_; + delete value_.uint_list_; } break; } @@ -2357,8 +2674,8 @@ void ConfigsRecordValue::clear_value() { } -void ConfigsRecordValue::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.ConfigsRecordValue) +void ConfigRecordValue::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ConfigRecordValue) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2367,7 +2684,7 @@ void ConfigsRecordValue::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ConfigsRecordValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ConfigRecordValue::_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; @@ -2389,27 +2706,35 @@ const char* ConfigsRecordValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMES } else goto handle_unusual; continue; - // bool bool = 3; + // uint64 uint64 = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - _internal_set_bool_(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + _internal_set_uint64(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); CHK_(ptr); } else goto handle_unusual; continue; - // string string = 4; + // bool bool = 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.ConfigsRecordValue.string")); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _internal_set_bool_(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); CHK_(ptr); } else goto handle_unusual; continue; - // bytes bytes = 5; + // string string = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_string(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.ConfigRecordValue.string")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes bytes = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { auto str = _internal_mutable_bytes(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); @@ -2424,33 +2749,41 @@ const char* ConfigsRecordValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMES } else goto handle_unusual; continue; - // .flwr.proto.Sint64List sint64_list = 22; + // .flwr.proto.SintList sint_list = 22; case 22: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 178)) { - ptr = ctx->ParseMessage(_internal_mutable_sint64_list(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_sint_list(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .flwr.proto.BoolList bool_list = 23; + // .flwr.proto.UintList uint_list = 23; case 23: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 186)) { - ptr = ctx->ParseMessage(_internal_mutable_bool_list(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_uint_list(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .flwr.proto.StringList string_list = 24; + // .flwr.proto.BoolList bool_list = 24; case 24: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 194)) { - ptr = ctx->ParseMessage(_internal_mutable_string_list(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_bool_list(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .flwr.proto.BytesList bytes_list = 25; + // .flwr.proto.StringList string_list = 25; case 25: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 202)) { + ptr = ctx->ParseMessage(_internal_mutable_string_list(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.BytesList bytes_list = 26; + case 26: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 210)) { ptr = ctx->ParseMessage(_internal_mutable_bytes_list(), ptr); CHK_(ptr); } else @@ -2479,9 +2812,9 @@ const char* ConfigsRecordValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMES #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ConfigsRecordValue::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* ConfigRecordValue::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ConfigsRecordValue) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ConfigRecordValue) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2497,26 +2830,32 @@ ::PROTOBUF_NAMESPACE_ID::uint8* ConfigsRecordValue::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(2, this->_internal_sint64(), target); } - // bool bool = 3; + // uint64 uint64 = 3; + if (_internal_has_uint64()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_uint64(), target); + } + + // bool bool = 4; if (_internal_has_bool_()) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_bool_(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_bool_(), target); } - // string string = 4; + // string string = 5; 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.ConfigsRecordValue.string"); + "flwr.proto.ConfigRecordValue.string"); target = stream->WriteStringMaybeAliased( - 4, this->_internal_string(), target); + 5, this->_internal_string(), target); } - // bytes bytes = 5; + // bytes bytes = 6; if (_internal_has_bytes()) { target = stream->WriteBytesMaybeAliased( - 5, this->_internal_bytes(), target); + 6, this->_internal_bytes(), target); } // .flwr.proto.DoubleList double_list = 21; @@ -2527,48 +2866,56 @@ ::PROTOBUF_NAMESPACE_ID::uint8* ConfigsRecordValue::_InternalSerialize( 21, _Internal::double_list(this), target, stream); } - // .flwr.proto.Sint64List sint64_list = 22; - if (_internal_has_sint64_list()) { + // .flwr.proto.SintList sint_list = 22; + if (_internal_has_sint_list()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 22, _Internal::sint_list(this), target, stream); + } + + // .flwr.proto.UintList uint_list = 23; + if (_internal_has_uint_list()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 22, _Internal::sint64_list(this), target, stream); + 23, _Internal::uint_list(this), target, stream); } - // .flwr.proto.BoolList bool_list = 23; + // .flwr.proto.BoolList bool_list = 24; if (_internal_has_bool_list()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 23, _Internal::bool_list(this), target, stream); + 24, _Internal::bool_list(this), target, stream); } - // .flwr.proto.StringList string_list = 24; + // .flwr.proto.StringList string_list = 25; if (_internal_has_string_list()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 24, _Internal::string_list(this), target, stream); + 25, _Internal::string_list(this), target, stream); } - // .flwr.proto.BytesList bytes_list = 25; + // .flwr.proto.BytesList bytes_list = 26; if (_internal_has_bytes_list()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 25, _Internal::bytes_list(this), target, stream); + 26, _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.ConfigsRecordValue) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ConfigRecordValue) return target; } -size_t ConfigsRecordValue::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ConfigsRecordValue) +size_t ConfigRecordValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ConfigRecordValue) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; @@ -2586,19 +2933,24 @@ size_t ConfigsRecordValue::ByteSizeLong() const { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64SizePlusOne(this->_internal_sint64()); break; } - // bool bool = 3; + // uint64 uint64 = 3; + case kUint64: { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_uint64()); + break; + } + // bool bool = 4; case kBool: { total_size += 1 + 1; break; } - // string string = 4; + // string string = 5; case kString: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_string()); break; } - // bytes bytes = 5; + // bytes bytes = 6; case kBytes: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( @@ -2612,28 +2964,35 @@ size_t ConfigsRecordValue::ByteSizeLong() const { *value_.double_list_); break; } - // .flwr.proto.Sint64List sint64_list = 22; - case kSint64List: { + // .flwr.proto.SintList sint_list = 22; + case kSintList: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_.sint_list_); + break; + } + // .flwr.proto.UintList uint_list = 23; + case kUintList: { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *value_.sint64_list_); + *value_.uint_list_); break; } - // .flwr.proto.BoolList bool_list = 23; + // .flwr.proto.BoolList bool_list = 24; case kBoolList: { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *value_.bool_list_); break; } - // .flwr.proto.StringList string_list = 24; + // .flwr.proto.StringList string_list = 25; case kStringList: { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *value_.string_list_); break; } - // .flwr.proto.BytesList bytes_list = 25; + // .flwr.proto.BytesList bytes_list = 26; case kBytesList: { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( @@ -2647,21 +3006,21 @@ size_t ConfigsRecordValue::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConfigsRecordValue::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConfigRecordValue::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - ConfigsRecordValue::MergeImpl + ConfigRecordValue::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConfigsRecordValue::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConfigRecordValue::GetClassData() const { return &_class_data_; } -void ConfigsRecordValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void ConfigRecordValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void ConfigsRecordValue::MergeFrom(const ConfigsRecordValue& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ConfigsRecordValue) +void ConfigRecordValue::MergeFrom(const ConfigRecordValue& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ConfigRecordValue) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2675,6 +3034,10 @@ void ConfigsRecordValue::MergeFrom(const ConfigsRecordValue& from) { _internal_set_sint64(from._internal_sint64()); break; } + case kUint64: { + _internal_set_uint64(from._internal_uint64()); + break; + } case kBool: { _internal_set_bool_(from._internal_bool_()); break; @@ -2691,8 +3054,12 @@ void ConfigsRecordValue::MergeFrom(const ConfigsRecordValue& from) { _internal_mutable_double_list()->::flwr::proto::DoubleList::MergeFrom(from._internal_double_list()); break; } - case kSint64List: { - _internal_mutable_sint64_list()->::flwr::proto::Sint64List::MergeFrom(from._internal_sint64_list()); + case kSintList: { + _internal_mutable_sint_list()->::flwr::proto::SintList::MergeFrom(from._internal_sint_list()); + break; + } + case kUintList: { + _internal_mutable_uint_list()->::flwr::proto::UintList::MergeFrom(from._internal_uint_list()); break; } case kBoolList: { @@ -2714,121 +3081,129 @@ void ConfigsRecordValue::MergeFrom(const ConfigsRecordValue& from) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ConfigsRecordValue::CopyFrom(const ConfigsRecordValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ConfigsRecordValue) +void ConfigRecordValue::CopyFrom(const ConfigRecordValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ConfigRecordValue) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConfigsRecordValue::IsInitialized() const { +bool ConfigRecordValue::IsInitialized() const { return true; } -void ConfigsRecordValue::InternalSwap(ConfigsRecordValue* other) { +void ConfigRecordValue::InternalSwap(ConfigRecordValue* 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 ConfigsRecordValue::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ConfigRecordValue::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[7]); + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[8]); } // =================================================================== -class ParametersRecord::_Internal { +class ArrayRecord_Item::_Internal { public: + static const ::flwr::proto::Array& value(const ArrayRecord_Item* msg); }; -ParametersRecord::ParametersRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, +const ::flwr::proto::Array& +ArrayRecord_Item::_Internal::value(const ArrayRecord_Item* msg) { + return *msg->value_; +} +ArrayRecord_Item::ArrayRecord_Item(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - data_keys_(arena), - data_values_(arena) { + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } - // @@protoc_insertion_point(arena_constructor:flwr.proto.ParametersRecord) + // @@protoc_insertion_point(arena_constructor:flwr.proto.ArrayRecord.Item) } -ParametersRecord::ParametersRecord(const ParametersRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - data_keys_(from.data_keys_), - data_values_(from.data_values_) { +ArrayRecord_Item::ArrayRecord_Item(const ArrayRecord_Item& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flwr.proto.ParametersRecord) + key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_key().empty()) { + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_key(), + GetArenaForAllocation()); + } + if (from._internal_has_value()) { + value_ = new ::flwr::proto::Array(*from.value_); + } else { + value_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.ArrayRecord.Item) } -void ParametersRecord::SharedCtor() { +void ArrayRecord_Item::SharedCtor() { +key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +value_ = nullptr; } -ParametersRecord::~ParametersRecord() { - // @@protoc_insertion_point(destructor:flwr.proto.ParametersRecord) +ArrayRecord_Item::~ArrayRecord_Item() { + // @@protoc_insertion_point(destructor:flwr.proto.ArrayRecord.Item) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void ParametersRecord::SharedDtor() { +inline void ArrayRecord_Item::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete value_; } -void ParametersRecord::ArenaDtor(void* object) { - ParametersRecord* _this = reinterpret_cast< ParametersRecord* >(object); +void ArrayRecord_Item::ArenaDtor(void* object) { + ArrayRecord_Item* _this = reinterpret_cast< ArrayRecord_Item* >(object); (void)_this; } -void ParametersRecord::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void ArrayRecord_Item::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void ParametersRecord::SetCachedSize(int size) const { +void ArrayRecord_Item::SetCachedSize(int size) const { _cached_size_.Set(size); } -void ParametersRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.ParametersRecord) +void ArrayRecord_Item::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ArrayRecord.Item) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - data_keys_.Clear(); - data_values_.Clear(); + key_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ParametersRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ArrayRecord_Item::_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 data_keys = 1; + // string key = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_data_keys(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.ParametersRecord.data_keys")); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + auto str = _internal_mutable_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.ArrayRecord.Item.key")); + CHK_(ptr); } else goto handle_unusual; continue; - // repeated .flwr.proto.Array data_values = 2; + // .flwr.proto.Array value = 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_data_values(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + ptr = ctx->ParseMessage(_internal_mutable_value(), ptr); + CHK_(ptr); } else goto handle_unusual; continue; @@ -2855,200 +3230,191 @@ const char* ParametersRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ParametersRecord::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* ArrayRecord_Item::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ParametersRecord) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ArrayRecord.Item) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated string data_keys = 1; - for (int i = 0, n = this->_internal_data_keys_size(); i < n; i++) { - const auto& s = this->_internal_data_keys(i); + // string key = 1; + if (!this->_internal_key().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), + this->_internal_key().data(), static_cast(this->_internal_key().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "flwr.proto.ParametersRecord.data_keys"); - target = stream->WriteString(1, s, target); + "flwr.proto.ArrayRecord.Item.key"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_key(), target); } - // repeated .flwr.proto.Array data_values = 2; - for (unsigned int i = 0, - n = static_cast(this->_internal_data_values_size()); i < n; i++) { + // .flwr.proto.Array value = 2; + if (this->_internal_has_value()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_data_values(i), target, stream); + InternalWriteMessage( + 2, _Internal::value(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.ParametersRecord) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ArrayRecord.Item) return target; } -size_t ParametersRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ParametersRecord) +size_t ArrayRecord_Item::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ArrayRecord.Item) 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 data_keys = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(data_keys_.size()); - for (int i = 0, n = data_keys_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - data_keys_.Get(i)); + // string key = 1; + if (!this->_internal_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_key()); } - // repeated .flwr.proto.Array data_values = 2; - total_size += 1UL * this->_internal_data_values_size(); - for (const auto& msg : this->data_values_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + // .flwr.proto.Array value = 2; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ParametersRecord::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ArrayRecord_Item::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - ParametersRecord::MergeImpl + ArrayRecord_Item::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ParametersRecord::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ArrayRecord_Item::GetClassData() const { return &_class_data_; } -void ParametersRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void ArrayRecord_Item::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void ParametersRecord::MergeFrom(const ParametersRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ParametersRecord) +void ArrayRecord_Item::MergeFrom(const ArrayRecord_Item& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ArrayRecord.Item) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - data_keys_.MergeFrom(from.data_keys_); - data_values_.MergeFrom(from.data_values_); + if (!from._internal_key().empty()) { + _internal_set_key(from._internal_key()); + } + if (from._internal_has_value()) { + _internal_mutable_value()->::flwr::proto::Array::MergeFrom(from._internal_value()); + } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ParametersRecord::CopyFrom(const ParametersRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ParametersRecord) +void ArrayRecord_Item::CopyFrom(const ArrayRecord_Item& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ArrayRecord.Item) if (&from == this) return; Clear(); MergeFrom(from); } -bool ParametersRecord::IsInitialized() const { +bool ArrayRecord_Item::IsInitialized() const { return true; } -void ParametersRecord::InternalSwap(ParametersRecord* other) { +void ArrayRecord_Item::InternalSwap(ArrayRecord_Item* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - data_keys_.InternalSwap(&other->data_keys_); - data_values_.InternalSwap(&other->data_values_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ParametersRecord::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[8]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &key_, lhs_arena, + &other->key_, rhs_arena + ); + swap(value_, other->value_); } -// =================================================================== - -MetricsRecord_DataEntry_DoNotUse::MetricsRecord_DataEntry_DoNotUse() {} -MetricsRecord_DataEntry_DoNotUse::MetricsRecord_DataEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void MetricsRecord_DataEntry_DoNotUse::MergeFrom(const MetricsRecord_DataEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata MetricsRecord_DataEntry_DoNotUse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ArrayRecord_Item::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[9]); + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[9]); } // =================================================================== -class MetricsRecord::_Internal { +class ArrayRecord::_Internal { public: }; -MetricsRecord::MetricsRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ArrayRecord::ArrayRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - data_(arena) { + items_(arena) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } - // @@protoc_insertion_point(arena_constructor:flwr.proto.MetricsRecord) + // @@protoc_insertion_point(arena_constructor:flwr.proto.ArrayRecord) } -MetricsRecord::MetricsRecord(const MetricsRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { +ArrayRecord::ArrayRecord(const ArrayRecord& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + items_(from.items_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - data_.MergeFrom(from.data_); - // @@protoc_insertion_point(copy_constructor:flwr.proto.MetricsRecord) + // @@protoc_insertion_point(copy_constructor:flwr.proto.ArrayRecord) } -void MetricsRecord::SharedCtor() { +void ArrayRecord::SharedCtor() { } -MetricsRecord::~MetricsRecord() { - // @@protoc_insertion_point(destructor:flwr.proto.MetricsRecord) +ArrayRecord::~ArrayRecord() { + // @@protoc_insertion_point(destructor:flwr.proto.ArrayRecord) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void MetricsRecord::SharedDtor() { +inline void ArrayRecord::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void MetricsRecord::ArenaDtor(void* object) { - MetricsRecord* _this = reinterpret_cast< MetricsRecord* >(object); +void ArrayRecord::ArenaDtor(void* object) { + ArrayRecord* _this = reinterpret_cast< ArrayRecord* >(object); (void)_this; - _this->data_. ~MapField(); } -inline void MetricsRecord::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { - if (arena != nullptr) { - arena->OwnCustomDestructor(this, &MetricsRecord::ArenaDtor); - } +void ArrayRecord::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void MetricsRecord::SetCachedSize(int size) const { +void ArrayRecord::SetCachedSize(int size) const { _cached_size_.Set(size); } -void MetricsRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.MetricsRecord) +void ArrayRecord::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ArrayRecord) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - data_.Clear(); + items_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MetricsRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ArrayRecord::_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 data = 1; + // repeated .flwr.proto.ArrayRecord.Item items = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr -= 1; do { ptr += 1; - ptr = ctx->ParseMessage(&data_, ptr); + ptr = ctx->ParseMessage(_internal_add_items(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); @@ -3078,219 +3444,191 @@ const char* MetricsRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* MetricsRecord::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* ArrayRecord::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.MetricsRecord) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ArrayRecord) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // map data = 1; - if (!this->_internal_data().empty()) { - typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecordValue >::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.MetricsRecord.DataEntry.key"); - } - }; - - if (stream->IsSerializationDeterministic() && - this->_internal_data().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->_internal_data().size()]); - typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecordValue >::size_type size_type; - size_type n = 0; - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecordValue >::const_iterator - it = this->_internal_data().begin(); - it != this->_internal_data().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 = MetricsRecord_DataEntry_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::MetricsRecordValue >::const_iterator - it = this->_internal_data().begin(); - it != this->_internal_data().end(); ++it) { - target = MetricsRecord_DataEntry_DoNotUse::Funcs::InternalSerialize(1, it->first, it->second, target, stream); - Utf8Check::Check(&(*it)); - } - } + // repeated .flwr.proto.ArrayRecord.Item items = 1; + for (unsigned int i = 0, + n = static_cast(this->_internal_items_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_items(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.MetricsRecord) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ArrayRecord) return target; } -size_t MetricsRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.MetricsRecord) +size_t ArrayRecord::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ArrayRecord) 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 data = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_data_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecordValue >::const_iterator - it = this->_internal_data().begin(); - it != this->_internal_data().end(); ++it) { - total_size += MetricsRecord_DataEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + // repeated .flwr.proto.ArrayRecord.Item items = 1; + total_size += 1UL * this->_internal_items_size(); + for (const auto& msg : this->items_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MetricsRecord::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ArrayRecord::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - MetricsRecord::MergeImpl + ArrayRecord::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MetricsRecord::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ArrayRecord::GetClassData() const { return &_class_data_; } -void MetricsRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void ArrayRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void MetricsRecord::MergeFrom(const MetricsRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.MetricsRecord) +void ArrayRecord::MergeFrom(const ArrayRecord& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ArrayRecord) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - data_.MergeFrom(from.data_); + items_.MergeFrom(from.items_); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void MetricsRecord::CopyFrom(const MetricsRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.MetricsRecord) +void ArrayRecord::CopyFrom(const ArrayRecord& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ArrayRecord) if (&from == this) return; Clear(); MergeFrom(from); } -bool MetricsRecord::IsInitialized() const { +bool ArrayRecord::IsInitialized() const { return true; } -void MetricsRecord::InternalSwap(MetricsRecord* other) { +void ArrayRecord::InternalSwap(ArrayRecord* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - data_.InternalSwap(&other->data_); + items_.InternalSwap(&other->items_); } -::PROTOBUF_NAMESPACE_ID::Metadata MetricsRecord::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[10]); -} - -// =================================================================== - -ConfigsRecord_DataEntry_DoNotUse::ConfigsRecord_DataEntry_DoNotUse() {} -ConfigsRecord_DataEntry_DoNotUse::ConfigsRecord_DataEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void ConfigsRecord_DataEntry_DoNotUse::MergeFrom(const ConfigsRecord_DataEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata ConfigsRecord_DataEntry_DoNotUse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ArrayRecord::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[11]); + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[10]); } // =================================================================== -class ConfigsRecord::_Internal { +class MetricRecord_Item::_Internal { public: + static const ::flwr::proto::MetricRecordValue& value(const MetricRecord_Item* msg); }; -ConfigsRecord::ConfigsRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, +const ::flwr::proto::MetricRecordValue& +MetricRecord_Item::_Internal::value(const MetricRecord_Item* msg) { + return *msg->value_; +} +MetricRecord_Item::MetricRecord_Item(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - data_(arena) { + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } - // @@protoc_insertion_point(arena_constructor:flwr.proto.ConfigsRecord) + // @@protoc_insertion_point(arena_constructor:flwr.proto.MetricRecord.Item) } -ConfigsRecord::ConfigsRecord(const ConfigsRecord& from) +MetricRecord_Item::MetricRecord_Item(const MetricRecord_Item& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - data_.MergeFrom(from.data_); - // @@protoc_insertion_point(copy_constructor:flwr.proto.ConfigsRecord) + key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_key().empty()) { + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_key(), + GetArenaForAllocation()); + } + if (from._internal_has_value()) { + value_ = new ::flwr::proto::MetricRecordValue(*from.value_); + } else { + value_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.MetricRecord.Item) } -void ConfigsRecord::SharedCtor() { +void MetricRecord_Item::SharedCtor() { +key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +value_ = nullptr; } -ConfigsRecord::~ConfigsRecord() { - // @@protoc_insertion_point(destructor:flwr.proto.ConfigsRecord) +MetricRecord_Item::~MetricRecord_Item() { + // @@protoc_insertion_point(destructor:flwr.proto.MetricRecord.Item) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void ConfigsRecord::SharedDtor() { +inline void MetricRecord_Item::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete value_; } -void ConfigsRecord::ArenaDtor(void* object) { - ConfigsRecord* _this = reinterpret_cast< ConfigsRecord* >(object); +void MetricRecord_Item::ArenaDtor(void* object) { + MetricRecord_Item* _this = reinterpret_cast< MetricRecord_Item* >(object); (void)_this; - _this->data_. ~MapField(); } -inline void ConfigsRecord::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { - if (arena != nullptr) { - arena->OwnCustomDestructor(this, &ConfigsRecord::ArenaDtor); - } +void MetricRecord_Item::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void ConfigsRecord::SetCachedSize(int size) const { +void MetricRecord_Item::SetCachedSize(int size) const { _cached_size_.Set(size); } -void ConfigsRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.ConfigsRecord) +void MetricRecord_Item::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.MetricRecord.Item) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - data_.Clear(); + key_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ConfigsRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* MetricRecord_Item::_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 data = 1; + // string key = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&data_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + auto str = _internal_mutable_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.MetricRecord.Item.key")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.MetricRecordValue value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), ptr); + CHK_(ptr); } else goto handle_unusual; continue; @@ -3317,284 +3655,197 @@ const char* ConfigsRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ConfigsRecord::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* MetricRecord_Item::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ConfigsRecord) + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.MetricRecord.Item) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // map data = 1; - if (!this->_internal_data().empty()) { - typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecordValue >::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.ConfigsRecord.DataEntry.key"); - } - }; - - if (stream->IsSerializationDeterministic() && - this->_internal_data().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->_internal_data().size()]); - typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecordValue >::size_type size_type; - size_type n = 0; - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecordValue >::const_iterator - it = this->_internal_data().begin(); - it != this->_internal_data().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 = ConfigsRecord_DataEntry_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::ConfigsRecordValue >::const_iterator - it = this->_internal_data().begin(); - it != this->_internal_data().end(); ++it) { - target = ConfigsRecord_DataEntry_DoNotUse::Funcs::InternalSerialize(1, it->first, it->second, target, stream); - Utf8Check::Check(&(*it)); - } - } + // string key = 1; + if (!this->_internal_key().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_key().data(), static_cast(this->_internal_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.MetricRecord.Item.key"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_key(), target); + } + + // .flwr.proto.MetricRecordValue value = 2; + if (this->_internal_has_value()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::value(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.ConfigsRecord) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.MetricRecord.Item) return target; } -size_t ConfigsRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ConfigsRecord) +size_t MetricRecord_Item::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.MetricRecord.Item) 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 data = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_data_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecordValue >::const_iterator - it = this->_internal_data().begin(); - it != this->_internal_data().end(); ++it) { - total_size += ConfigsRecord_DataEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + // string key = 1; + if (!this->_internal_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_key()); + } + + // .flwr.proto.MetricRecordValue value = 2; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConfigsRecord::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MetricRecord_Item::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - ConfigsRecord::MergeImpl + MetricRecord_Item::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConfigsRecord::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MetricRecord_Item::GetClassData() const { return &_class_data_; } -void ConfigsRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void MetricRecord_Item::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void ConfigsRecord::MergeFrom(const ConfigsRecord& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ConfigsRecord) +void MetricRecord_Item::MergeFrom(const MetricRecord_Item& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.MetricRecord.Item) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - data_.MergeFrom(from.data_); + if (!from._internal_key().empty()) { + _internal_set_key(from._internal_key()); + } + if (from._internal_has_value()) { + _internal_mutable_value()->::flwr::proto::MetricRecordValue::MergeFrom(from._internal_value()); + } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ConfigsRecord::CopyFrom(const ConfigsRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ConfigsRecord) +void MetricRecord_Item::CopyFrom(const MetricRecord_Item& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.MetricRecord.Item) if (&from == this) return; Clear(); MergeFrom(from); } -bool ConfigsRecord::IsInitialized() const { +bool MetricRecord_Item::IsInitialized() const { return true; } -void ConfigsRecord::InternalSwap(ConfigsRecord* other) { +void MetricRecord_Item::InternalSwap(MetricRecord_Item* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - data_.InternalSwap(&other->data_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ConfigsRecord::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[12]); -} - -// =================================================================== - -RecordSet_ParametersEntry_DoNotUse::RecordSet_ParametersEntry_DoNotUse() {} -RecordSet_ParametersEntry_DoNotUse::RecordSet_ParametersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void RecordSet_ParametersEntry_DoNotUse::MergeFrom(const RecordSet_ParametersEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata RecordSet_ParametersEntry_DoNotUse::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[13]); -} - -// =================================================================== - -RecordSet_MetricsEntry_DoNotUse::RecordSet_MetricsEntry_DoNotUse() {} -RecordSet_MetricsEntry_DoNotUse::RecordSet_MetricsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void RecordSet_MetricsEntry_DoNotUse::MergeFrom(const RecordSet_MetricsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata RecordSet_MetricsEntry_DoNotUse::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[14]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &key_, lhs_arena, + &other->key_, rhs_arena + ); + swap(value_, other->value_); } -// =================================================================== - -RecordSet_ConfigsEntry_DoNotUse::RecordSet_ConfigsEntry_DoNotUse() {} -RecordSet_ConfigsEntry_DoNotUse::RecordSet_ConfigsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void RecordSet_ConfigsEntry_DoNotUse::MergeFrom(const RecordSet_ConfigsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata RecordSet_ConfigsEntry_DoNotUse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MetricRecord_Item::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[15]); + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[11]); } // =================================================================== -class RecordSet::_Internal { +class MetricRecord::_Internal { public: }; -RecordSet::RecordSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, +MetricRecord::MetricRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - parameters_(arena), - metrics_(arena), - configs_(arena) { + items_(arena) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } - // @@protoc_insertion_point(arena_constructor:flwr.proto.RecordSet) + // @@protoc_insertion_point(arena_constructor:flwr.proto.MetricRecord) } -RecordSet::RecordSet(const RecordSet& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { +MetricRecord::MetricRecord(const MetricRecord& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + items_(from.items_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - parameters_.MergeFrom(from.parameters_); - metrics_.MergeFrom(from.metrics_); - configs_.MergeFrom(from.configs_); - // @@protoc_insertion_point(copy_constructor:flwr.proto.RecordSet) + // @@protoc_insertion_point(copy_constructor:flwr.proto.MetricRecord) } -void RecordSet::SharedCtor() { +void MetricRecord::SharedCtor() { } -RecordSet::~RecordSet() { - // @@protoc_insertion_point(destructor:flwr.proto.RecordSet) +MetricRecord::~MetricRecord() { + // @@protoc_insertion_point(destructor:flwr.proto.MetricRecord) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void RecordSet::SharedDtor() { +inline void MetricRecord::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void RecordSet::ArenaDtor(void* object) { - RecordSet* _this = reinterpret_cast< RecordSet* >(object); +void MetricRecord::ArenaDtor(void* object) { + MetricRecord* _this = reinterpret_cast< MetricRecord* >(object); (void)_this; - _this->parameters_. ~MapField(); - _this->metrics_. ~MapField(); - _this->configs_. ~MapField(); } -inline void RecordSet::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { - if (arena != nullptr) { - arena->OwnCustomDestructor(this, &RecordSet::ArenaDtor); - } +void MetricRecord::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void RecordSet::SetCachedSize(int size) const { +void MetricRecord::SetCachedSize(int size) const { _cached_size_.Set(size); } -void RecordSet::Clear() { -// @@protoc_insertion_point(message_clear_start:flwr.proto.RecordSet) +void MetricRecord::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.MetricRecord) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - parameters_.Clear(); - metrics_.Clear(); - configs_.Clear(); + items_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RecordSet::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* MetricRecord::_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 parameters = 1; + // repeated .flwr.proto.MetricRecord.Item items = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr -= 1; do { ptr += 1; - ptr = ctx->ParseMessage(¶meters_, ptr); + ptr = ctx->ParseMessage(_internal_add_items(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; - // map metrics = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&metrics_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else - goto handle_unusual; - continue; - // map configs = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&configs_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else - goto handle_unusual; - continue; default: goto handle_unusual; } // switch @@ -3618,249 +3869,1122 @@ const char* RecordSet::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID:: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* RecordSet::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* MetricRecord::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.RecordSet) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map parameters = 1; - if (!this->_internal_parameters().empty()) { - typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ParametersRecord >::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.RecordSet.ParametersEntry.key"); - } - }; - - if (stream->IsSerializationDeterministic() && - this->_internal_parameters().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->_internal_parameters().size()]); - typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ParametersRecord >::size_type size_type; - size_type n = 0; - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ParametersRecord >::const_iterator - it = this->_internal_parameters().begin(); - it != this->_internal_parameters().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 = RecordSet_ParametersEntry_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::ParametersRecord >::const_iterator - it = this->_internal_parameters().begin(); - it != this->_internal_parameters().end(); ++it) { - target = RecordSet_ParametersEntry_DoNotUse::Funcs::InternalSerialize(1, it->first, it->second, target, stream); - Utf8Check::Check(&(*it)); - } - } - } - - // map metrics = 2; - if (!this->_internal_metrics().empty()) { - typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecord >::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.RecordSet.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::MetricsRecord >::size_type size_type; - size_type n = 0; - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecord >::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 = RecordSet_MetricsEntry_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::MetricsRecord >::const_iterator - it = this->_internal_metrics().begin(); - it != this->_internal_metrics().end(); ++it) { - target = RecordSet_MetricsEntry_DoNotUse::Funcs::InternalSerialize(2, it->first, it->second, target, stream); - Utf8Check::Check(&(*it)); - } - } - } + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.MetricRecord) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; - // map configs = 3; - if (!this->_internal_configs().empty()) { - typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecord >::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.RecordSet.ConfigsEntry.key"); - } - }; - - if (stream->IsSerializationDeterministic() && - this->_internal_configs().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->_internal_configs().size()]); - typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecord >::size_type size_type; - size_type n = 0; - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecord >::const_iterator - it = this->_internal_configs().begin(); - it != this->_internal_configs().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 = RecordSet_ConfigsEntry_DoNotUse::Funcs::InternalSerialize(3, 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::ConfigsRecord >::const_iterator - it = this->_internal_configs().begin(); - it != this->_internal_configs().end(); ++it) { - target = RecordSet_ConfigsEntry_DoNotUse::Funcs::InternalSerialize(3, it->first, it->second, target, stream); - Utf8Check::Check(&(*it)); - } - } + // repeated .flwr.proto.MetricRecord.Item items = 1; + for (unsigned int i = 0, + n = static_cast(this->_internal_items_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_items(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.RecordSet) + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.MetricRecord) return target; } -size_t RecordSet::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flwr.proto.RecordSet) +size_t MetricRecord::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.MetricRecord) 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 parameters = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_parameters_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ParametersRecord >::const_iterator - it = this->_internal_parameters().begin(); - it != this->_internal_parameters().end(); ++it) { - total_size += RecordSet_ParametersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // map metrics = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_metrics_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecord >::const_iterator - it = this->_internal_metrics().begin(); - it != this->_internal_metrics().end(); ++it) { - total_size += RecordSet_MetricsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // map configs = 3; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_configs_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecord >::const_iterator - it = this->_internal_configs().begin(); - it != this->_internal_configs().end(); ++it) { - total_size += RecordSet_ConfigsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + // repeated .flwr.proto.MetricRecord.Item items = 1; + total_size += 1UL * this->_internal_items_size(); + for (const auto& msg : this->items_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RecordSet::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MetricRecord::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - RecordSet::MergeImpl + MetricRecord::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RecordSet::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MetricRecord::GetClassData() const { return &_class_data_; } -void RecordSet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void MetricRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void RecordSet::MergeFrom(const RecordSet& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.RecordSet) +void MetricRecord::MergeFrom(const MetricRecord& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.MetricRecord) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - parameters_.MergeFrom(from.parameters_); - metrics_.MergeFrom(from.metrics_); - configs_.MergeFrom(from.configs_); + items_.MergeFrom(from.items_); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void RecordSet::CopyFrom(const RecordSet& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.RecordSet) +void MetricRecord::CopyFrom(const MetricRecord& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.MetricRecord) if (&from == this) return; Clear(); MergeFrom(from); } -bool RecordSet::IsInitialized() const { +bool MetricRecord::IsInitialized() const { return true; } -void RecordSet::InternalSwap(RecordSet* other) { +void MetricRecord::InternalSwap(MetricRecord* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - parameters_.InternalSwap(&other->parameters_); - metrics_.InternalSwap(&other->metrics_); - configs_.InternalSwap(&other->configs_); + items_.InternalSwap(&other->items_); } -::PROTOBUF_NAMESPACE_ID::Metadata RecordSet::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MetricRecord::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_flwr_2fproto_2frecordset_2eproto_getter, &descriptor_table_flwr_2fproto_2frecordset_2eproto_once, - file_level_metadata_flwr_2fproto_2frecordset_2eproto[16]); + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[12]); } -// @@protoc_insertion_point(namespace_scope) -} // namespace proto -} // namespace flwr -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::flwr::proto::DoubleList* Arena::CreateMaybeMessage< ::flwr::proto::DoubleList >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::DoubleList >(arena); +// =================================================================== + +class ConfigRecord_Item::_Internal { + public: + static const ::flwr::proto::ConfigRecordValue& value(const ConfigRecord_Item* msg); +}; + +const ::flwr::proto::ConfigRecordValue& +ConfigRecord_Item::_Internal::value(const ConfigRecord_Item* msg) { + return *msg->value_; } -template<> PROTOBUF_NOINLINE ::flwr::proto::Sint64List* Arena::CreateMaybeMessage< ::flwr::proto::Sint64List >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::Sint64List >(arena); +ConfigRecord_Item::ConfigRecord_Item(::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.ConfigRecord.Item) } -template<> PROTOBUF_NOINLINE ::flwr::proto::BoolList* Arena::CreateMaybeMessage< ::flwr::proto::BoolList >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::BoolList >(arena); +ConfigRecord_Item::ConfigRecord_Item(const ConfigRecord_Item& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_key().empty()) { + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_key(), + GetArenaForAllocation()); + } + if (from._internal_has_value()) { + value_ = new ::flwr::proto::ConfigRecordValue(*from.value_); + } else { + value_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.ConfigRecord.Item) } -template<> PROTOBUF_NOINLINE ::flwr::proto::StringList* Arena::CreateMaybeMessage< ::flwr::proto::StringList >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::StringList >(arena); + +void ConfigRecord_Item::SharedCtor() { +key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +value_ = nullptr; +} + +ConfigRecord_Item::~ConfigRecord_Item() { + // @@protoc_insertion_point(destructor:flwr.proto.ConfigRecord.Item) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ConfigRecord_Item::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete value_; +} + +void ConfigRecord_Item::ArenaDtor(void* object) { + ConfigRecord_Item* _this = reinterpret_cast< ConfigRecord_Item* >(object); + (void)_this; +} +void ConfigRecord_Item::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ConfigRecord_Item::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ConfigRecord_Item::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ConfigRecord.Item) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + key_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ConfigRecord_Item::_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 key = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.ConfigRecord.Item.key")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.ConfigRecordValue value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), 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* ConfigRecord_Item::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ConfigRecord.Item) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (!this->_internal_key().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_key().data(), static_cast(this->_internal_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.ConfigRecord.Item.key"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_key(), target); + } + + // .flwr.proto.ConfigRecordValue value = 2; + if (this->_internal_has_value()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::value(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.ConfigRecord.Item) + return target; +} + +size_t ConfigRecord_Item::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ConfigRecord.Item) + 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 key = 1; + if (!this->_internal_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_key()); + } + + // .flwr.proto.ConfigRecordValue value = 2; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConfigRecord_Item::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ConfigRecord_Item::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConfigRecord_Item::GetClassData() const { return &_class_data_; } + +void ConfigRecord_Item::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ConfigRecord_Item::MergeFrom(const ConfigRecord_Item& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ConfigRecord.Item) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_key().empty()) { + _internal_set_key(from._internal_key()); + } + if (from._internal_has_value()) { + _internal_mutable_value()->::flwr::proto::ConfigRecordValue::MergeFrom(from._internal_value()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ConfigRecord_Item::CopyFrom(const ConfigRecord_Item& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ConfigRecord.Item) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConfigRecord_Item::IsInitialized() const { + return true; +} + +void ConfigRecord_Item::InternalSwap(ConfigRecord_Item* 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(), + &key_, lhs_arena, + &other->key_, rhs_arena + ); + swap(value_, other->value_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ConfigRecord_Item::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[13]); +} + +// =================================================================== + +class ConfigRecord::_Internal { + public: +}; + +ConfigRecord::ConfigRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + items_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ConfigRecord) +} +ConfigRecord::ConfigRecord(const ConfigRecord& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + items_(from.items_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.ConfigRecord) +} + +void ConfigRecord::SharedCtor() { +} + +ConfigRecord::~ConfigRecord() { + // @@protoc_insertion_point(destructor:flwr.proto.ConfigRecord) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ConfigRecord::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ConfigRecord::ArenaDtor(void* object) { + ConfigRecord* _this = reinterpret_cast< ConfigRecord* >(object); + (void)_this; +} +void ConfigRecord::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ConfigRecord::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ConfigRecord::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ConfigRecord) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + items_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ConfigRecord::_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.ConfigRecord.Item items = 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_items(), 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* ConfigRecord::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ConfigRecord) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flwr.proto.ConfigRecord.Item items = 1; + for (unsigned int i = 0, + n = static_cast(this->_internal_items_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_items(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.ConfigRecord) + return target; +} + +size_t ConfigRecord::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ConfigRecord) + 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.ConfigRecord.Item items = 1; + total_size += 1UL * this->_internal_items_size(); + for (const auto& msg : this->items_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConfigRecord::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ConfigRecord::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConfigRecord::GetClassData() const { return &_class_data_; } + +void ConfigRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ConfigRecord::MergeFrom(const ConfigRecord& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ConfigRecord) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + items_.MergeFrom(from.items_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ConfigRecord::CopyFrom(const ConfigRecord& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ConfigRecord) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConfigRecord::IsInitialized() const { + return true; +} + +void ConfigRecord::InternalSwap(ConfigRecord* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + items_.InternalSwap(&other->items_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ConfigRecord::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[14]); +} + +// =================================================================== + +class RecordDict_Item::_Internal { + public: + static const ::flwr::proto::ArrayRecord& array_record(const RecordDict_Item* msg); + static const ::flwr::proto::MetricRecord& metric_record(const RecordDict_Item* msg); + static const ::flwr::proto::ConfigRecord& config_record(const RecordDict_Item* msg); +}; + +const ::flwr::proto::ArrayRecord& +RecordDict_Item::_Internal::array_record(const RecordDict_Item* msg) { + return *msg->value_.array_record_; +} +const ::flwr::proto::MetricRecord& +RecordDict_Item::_Internal::metric_record(const RecordDict_Item* msg) { + return *msg->value_.metric_record_; +} +const ::flwr::proto::ConfigRecord& +RecordDict_Item::_Internal::config_record(const RecordDict_Item* msg) { + return *msg->value_.config_record_; +} +void RecordDict_Item::set_allocated_array_record(::flwr::proto::ArrayRecord* array_record) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_value(); + if (array_record) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::ArrayRecord>::GetOwningArena(array_record); + if (message_arena != submessage_arena) { + array_record = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, array_record, submessage_arena); + } + set_has_array_record(); + value_.array_record_ = array_record; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.RecordDict.Item.array_record) +} +void RecordDict_Item::set_allocated_metric_record(::flwr::proto::MetricRecord* metric_record) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_value(); + if (metric_record) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::MetricRecord>::GetOwningArena(metric_record); + if (message_arena != submessage_arena) { + metric_record = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metric_record, submessage_arena); + } + set_has_metric_record(); + value_.metric_record_ = metric_record; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.RecordDict.Item.metric_record) +} +void RecordDict_Item::set_allocated_config_record(::flwr::proto::ConfigRecord* config_record) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_value(); + if (config_record) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::ConfigRecord>::GetOwningArena(config_record); + if (message_arena != submessage_arena) { + config_record = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config_record, submessage_arena); + } + set_has_config_record(); + value_.config_record_ = config_record; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.RecordDict.Item.config_record) +} +RecordDict_Item::RecordDict_Item(::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.RecordDict.Item) +} +RecordDict_Item::RecordDict_Item(const RecordDict_Item& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_key().empty()) { + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_key(), + GetArenaForAllocation()); + } + clear_has_value(); + switch (from.value_case()) { + case kArrayRecord: { + _internal_mutable_array_record()->::flwr::proto::ArrayRecord::MergeFrom(from._internal_array_record()); + break; + } + case kMetricRecord: { + _internal_mutable_metric_record()->::flwr::proto::MetricRecord::MergeFrom(from._internal_metric_record()); + break; + } + case kConfigRecord: { + _internal_mutable_config_record()->::flwr::proto::ConfigRecord::MergeFrom(from._internal_config_record()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.RecordDict.Item) +} + +void RecordDict_Item::SharedCtor() { +key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +clear_has_value(); +} + +RecordDict_Item::~RecordDict_Item() { + // @@protoc_insertion_point(destructor:flwr.proto.RecordDict.Item) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void RecordDict_Item::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (has_value()) { + clear_value(); + } +} + +void RecordDict_Item::ArenaDtor(void* object) { + RecordDict_Item* _this = reinterpret_cast< RecordDict_Item* >(object); + (void)_this; +} +void RecordDict_Item::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void RecordDict_Item::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RecordDict_Item::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:flwr.proto.RecordDict.Item) + switch (value_case()) { + case kArrayRecord: { + if (GetArenaForAllocation() == nullptr) { + delete value_.array_record_; + } + break; + } + case kMetricRecord: { + if (GetArenaForAllocation() == nullptr) { + delete value_.metric_record_; + } + break; + } + case kConfigRecord: { + if (GetArenaForAllocation() == nullptr) { + delete value_.config_record_; + } + break; + } + case VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = VALUE_NOT_SET; +} + + +void RecordDict_Item::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.RecordDict.Item) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + key_.ClearToEmpty(); + clear_value(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RecordDict_Item::_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 key = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.RecordDict.Item.key")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.ArrayRecord array_record = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_array_record(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.MetricRecord metric_record = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_metric_record(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.ConfigRecord config_record = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_config_record(), 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* RecordDict_Item::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.RecordDict.Item) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (!this->_internal_key().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_key().data(), static_cast(this->_internal_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.RecordDict.Item.key"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_key(), target); + } + + // .flwr.proto.ArrayRecord array_record = 2; + if (_internal_has_array_record()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::array_record(this), target, stream); + } + + // .flwr.proto.MetricRecord metric_record = 3; + if (_internal_has_metric_record()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::metric_record(this), target, stream); + } + + // .flwr.proto.ConfigRecord config_record = 4; + if (_internal_has_config_record()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::config_record(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.RecordDict.Item) + return target; +} + +size_t RecordDict_Item::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.RecordDict.Item) + 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 key = 1; + if (!this->_internal_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_key()); + } + + switch (value_case()) { + // .flwr.proto.ArrayRecord array_record = 2; + case kArrayRecord: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_.array_record_); + break; + } + // .flwr.proto.MetricRecord metric_record = 3; + case kMetricRecord: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_.metric_record_); + break; + } + // .flwr.proto.ConfigRecord config_record = 4; + case kConfigRecord: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_.config_record_); + break; + } + case VALUE_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RecordDict_Item::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RecordDict_Item::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RecordDict_Item::GetClassData() const { return &_class_data_; } + +void RecordDict_Item::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void RecordDict_Item::MergeFrom(const RecordDict_Item& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.RecordDict.Item) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_key().empty()) { + _internal_set_key(from._internal_key()); + } + switch (from.value_case()) { + case kArrayRecord: { + _internal_mutable_array_record()->::flwr::proto::ArrayRecord::MergeFrom(from._internal_array_record()); + break; + } + case kMetricRecord: { + _internal_mutable_metric_record()->::flwr::proto::MetricRecord::MergeFrom(from._internal_metric_record()); + break; + } + case kConfigRecord: { + _internal_mutable_config_record()->::flwr::proto::ConfigRecord::MergeFrom(from._internal_config_record()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RecordDict_Item::CopyFrom(const RecordDict_Item& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.RecordDict.Item) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RecordDict_Item::IsInitialized() const { + return true; +} + +void RecordDict_Item::InternalSwap(RecordDict_Item* 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(), + &key_, lhs_arena, + &other->key_, rhs_arena + ); + swap(value_, other->value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RecordDict_Item::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[15]); +} + +// =================================================================== + +class RecordDict::_Internal { + public: +}; + +RecordDict::RecordDict(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + items_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.RecordDict) +} +RecordDict::RecordDict(const RecordDict& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + items_(from.items_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.RecordDict) +} + +void RecordDict::SharedCtor() { +} + +RecordDict::~RecordDict() { + // @@protoc_insertion_point(destructor:flwr.proto.RecordDict) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void RecordDict::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void RecordDict::ArenaDtor(void* object) { + RecordDict* _this = reinterpret_cast< RecordDict* >(object); + (void)_this; +} +void RecordDict::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void RecordDict::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RecordDict::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.RecordDict) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + items_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RecordDict::_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.RecordDict.Item items = 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_items(), 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* RecordDict::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.RecordDict) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flwr.proto.RecordDict.Item items = 1; + for (unsigned int i = 0, + n = static_cast(this->_internal_items_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_items(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.RecordDict) + return target; +} + +size_t RecordDict::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.RecordDict) + 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.RecordDict.Item items = 1; + total_size += 1UL * this->_internal_items_size(); + for (const auto& msg : this->items_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RecordDict::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RecordDict::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RecordDict::GetClassData() const { return &_class_data_; } + +void RecordDict::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void RecordDict::MergeFrom(const RecordDict& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.RecordDict) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + items_.MergeFrom(from.items_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RecordDict::CopyFrom(const RecordDict& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.RecordDict) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RecordDict::IsInitialized() const { + return true; +} + +void RecordDict::InternalSwap(RecordDict* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + items_.InternalSwap(&other->items_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RecordDict::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frecorddict_2eproto_getter, &descriptor_table_flwr_2fproto_2frecorddict_2eproto_once, + file_level_metadata_flwr_2fproto_2frecorddict_2eproto[16]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::flwr::proto::DoubleList* Arena::CreateMaybeMessage< ::flwr::proto::DoubleList >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::DoubleList >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::SintList* Arena::CreateMaybeMessage< ::flwr::proto::SintList >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::SintList >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::UintList* Arena::CreateMaybeMessage< ::flwr::proto::UintList >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::UintList >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::BoolList* Arena::CreateMaybeMessage< ::flwr::proto::BoolList >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::BoolList >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::StringList* Arena::CreateMaybeMessage< ::flwr::proto::StringList >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::StringList >(arena); } template<> PROTOBUF_NOINLINE ::flwr::proto::BytesList* Arena::CreateMaybeMessage< ::flwr::proto::BytesList >(Arena* arena) { return Arena::CreateMessageInternal< ::flwr::proto::BytesList >(arena); @@ -3868,38 +4992,35 @@ template<> PROTOBUF_NOINLINE ::flwr::proto::BytesList* Arena::CreateMaybeMessage template<> PROTOBUF_NOINLINE ::flwr::proto::Array* Arena::CreateMaybeMessage< ::flwr::proto::Array >(Arena* arena) { return Arena::CreateMessageInternal< ::flwr::proto::Array >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::MetricsRecordValue* Arena::CreateMaybeMessage< ::flwr::proto::MetricsRecordValue >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::MetricsRecordValue >(arena); -} -template<> PROTOBUF_NOINLINE ::flwr::proto::ConfigsRecordValue* Arena::CreateMaybeMessage< ::flwr::proto::ConfigsRecordValue >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::ConfigsRecordValue >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::MetricRecordValue* Arena::CreateMaybeMessage< ::flwr::proto::MetricRecordValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::MetricRecordValue >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::ParametersRecord* Arena::CreateMaybeMessage< ::flwr::proto::ParametersRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::ParametersRecord >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::ConfigRecordValue* Arena::CreateMaybeMessage< ::flwr::proto::ConfigRecordValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ConfigRecordValue >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::MetricsRecord_DataEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::MetricsRecord_DataEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::MetricsRecord_DataEntry_DoNotUse >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::ArrayRecord_Item* Arena::CreateMaybeMessage< ::flwr::proto::ArrayRecord_Item >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ArrayRecord_Item >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::MetricsRecord* Arena::CreateMaybeMessage< ::flwr::proto::MetricsRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::MetricsRecord >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::ArrayRecord* Arena::CreateMaybeMessage< ::flwr::proto::ArrayRecord >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ArrayRecord >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::ConfigsRecord_DataEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::ConfigsRecord_DataEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::ConfigsRecord_DataEntry_DoNotUse >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::MetricRecord_Item* Arena::CreateMaybeMessage< ::flwr::proto::MetricRecord_Item >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::MetricRecord_Item >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::ConfigsRecord* Arena::CreateMaybeMessage< ::flwr::proto::ConfigsRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::ConfigsRecord >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::MetricRecord* Arena::CreateMaybeMessage< ::flwr::proto::MetricRecord >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::MetricRecord >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::RecordSet_ParametersEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::RecordSet_ParametersEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::RecordSet_ParametersEntry_DoNotUse >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::ConfigRecord_Item* Arena::CreateMaybeMessage< ::flwr::proto::ConfigRecord_Item >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ConfigRecord_Item >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::RecordSet_MetricsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::RecordSet_MetricsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::RecordSet_MetricsEntry_DoNotUse >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::ConfigRecord* Arena::CreateMaybeMessage< ::flwr::proto::ConfigRecord >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ConfigRecord >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::RecordSet_ConfigsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::RecordSet_ConfigsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::RecordSet_ConfigsEntry_DoNotUse >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::RecordDict_Item* Arena::CreateMaybeMessage< ::flwr::proto::RecordDict_Item >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::RecordDict_Item >(arena); } -template<> PROTOBUF_NOINLINE ::flwr::proto::RecordSet* Arena::CreateMaybeMessage< ::flwr::proto::RecordSet >(Arena* arena) { - return Arena::CreateMessageInternal< ::flwr::proto::RecordSet >(arena); +template<> PROTOBUF_NOINLINE ::flwr::proto::RecordDict* Arena::CreateMaybeMessage< ::flwr::proto::RecordDict >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::RecordDict >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/framework/cc/flwr/include/flwr/proto/recorddict.pb.h b/framework/cc/flwr/include/flwr/proto/recorddict.pb.h new file mode 100644 index 000000000000..8ac08c877852 --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/recorddict.pb.h @@ -0,0 +1,5885 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/recorddict.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2frecorddict_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2frecorddict_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_2frecorddict_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_2frecorddict_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[17] + 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_2frecorddict_2eproto; +namespace flwr { +namespace proto { +class Array; +struct ArrayDefaultTypeInternal; +extern ArrayDefaultTypeInternal _Array_default_instance_; +class ArrayRecord; +struct ArrayRecordDefaultTypeInternal; +extern ArrayRecordDefaultTypeInternal _ArrayRecord_default_instance_; +class ArrayRecord_Item; +struct ArrayRecord_ItemDefaultTypeInternal; +extern ArrayRecord_ItemDefaultTypeInternal _ArrayRecord_Item_default_instance_; +class BoolList; +struct BoolListDefaultTypeInternal; +extern BoolListDefaultTypeInternal _BoolList_default_instance_; +class BytesList; +struct BytesListDefaultTypeInternal; +extern BytesListDefaultTypeInternal _BytesList_default_instance_; +class ConfigRecord; +struct ConfigRecordDefaultTypeInternal; +extern ConfigRecordDefaultTypeInternal _ConfigRecord_default_instance_; +class ConfigRecordValue; +struct ConfigRecordValueDefaultTypeInternal; +extern ConfigRecordValueDefaultTypeInternal _ConfigRecordValue_default_instance_; +class ConfigRecord_Item; +struct ConfigRecord_ItemDefaultTypeInternal; +extern ConfigRecord_ItemDefaultTypeInternal _ConfigRecord_Item_default_instance_; +class DoubleList; +struct DoubleListDefaultTypeInternal; +extern DoubleListDefaultTypeInternal _DoubleList_default_instance_; +class MetricRecord; +struct MetricRecordDefaultTypeInternal; +extern MetricRecordDefaultTypeInternal _MetricRecord_default_instance_; +class MetricRecordValue; +struct MetricRecordValueDefaultTypeInternal; +extern MetricRecordValueDefaultTypeInternal _MetricRecordValue_default_instance_; +class MetricRecord_Item; +struct MetricRecord_ItemDefaultTypeInternal; +extern MetricRecord_ItemDefaultTypeInternal _MetricRecord_Item_default_instance_; +class RecordDict; +struct RecordDictDefaultTypeInternal; +extern RecordDictDefaultTypeInternal _RecordDict_default_instance_; +class RecordDict_Item; +struct RecordDict_ItemDefaultTypeInternal; +extern RecordDict_ItemDefaultTypeInternal _RecordDict_Item_default_instance_; +class SintList; +struct SintListDefaultTypeInternal; +extern SintListDefaultTypeInternal _SintList_default_instance_; +class StringList; +struct StringListDefaultTypeInternal; +extern StringListDefaultTypeInternal _StringList_default_instance_; +class UintList; +struct UintListDefaultTypeInternal; +extern UintListDefaultTypeInternal _UintList_default_instance_; +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> ::flwr::proto::Array* Arena::CreateMaybeMessage<::flwr::proto::Array>(Arena*); +template<> ::flwr::proto::ArrayRecord* Arena::CreateMaybeMessage<::flwr::proto::ArrayRecord>(Arena*); +template<> ::flwr::proto::ArrayRecord_Item* Arena::CreateMaybeMessage<::flwr::proto::ArrayRecord_Item>(Arena*); +template<> ::flwr::proto::BoolList* Arena::CreateMaybeMessage<::flwr::proto::BoolList>(Arena*); +template<> ::flwr::proto::BytesList* Arena::CreateMaybeMessage<::flwr::proto::BytesList>(Arena*); +template<> ::flwr::proto::ConfigRecord* Arena::CreateMaybeMessage<::flwr::proto::ConfigRecord>(Arena*); +template<> ::flwr::proto::ConfigRecordValue* Arena::CreateMaybeMessage<::flwr::proto::ConfigRecordValue>(Arena*); +template<> ::flwr::proto::ConfigRecord_Item* Arena::CreateMaybeMessage<::flwr::proto::ConfigRecord_Item>(Arena*); +template<> ::flwr::proto::DoubleList* Arena::CreateMaybeMessage<::flwr::proto::DoubleList>(Arena*); +template<> ::flwr::proto::MetricRecord* Arena::CreateMaybeMessage<::flwr::proto::MetricRecord>(Arena*); +template<> ::flwr::proto::MetricRecordValue* Arena::CreateMaybeMessage<::flwr::proto::MetricRecordValue>(Arena*); +template<> ::flwr::proto::MetricRecord_Item* Arena::CreateMaybeMessage<::flwr::proto::MetricRecord_Item>(Arena*); +template<> ::flwr::proto::RecordDict* Arena::CreateMaybeMessage<::flwr::proto::RecordDict>(Arena*); +template<> ::flwr::proto::RecordDict_Item* Arena::CreateMaybeMessage<::flwr::proto::RecordDict_Item>(Arena*); +template<> ::flwr::proto::SintList* Arena::CreateMaybeMessage<::flwr::proto::SintList>(Arena*); +template<> ::flwr::proto::StringList* Arena::CreateMaybeMessage<::flwr::proto::StringList>(Arena*); +template<> ::flwr::proto::UintList* Arena::CreateMaybeMessage<::flwr::proto::UintList>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace flwr { +namespace proto { + +// =================================================================== + +class DoubleList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.DoubleList) */ { + public: + inline DoubleList() : DoubleList(nullptr) {} + ~DoubleList() override; + explicit constexpr DoubleList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DoubleList(const DoubleList& from); + DoubleList(DoubleList&& from) noexcept + : DoubleList() { + *this = ::std::move(from); + } + + inline DoubleList& operator=(const DoubleList& from) { + CopyFrom(from); + return *this; + } + inline DoubleList& operator=(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 DoubleList& default_instance() { + return *internal_default_instance(); + } + static inline const DoubleList* internal_default_instance() { + return reinterpret_cast( + &_DoubleList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(DoubleList& a, DoubleList& b) { + a.Swap(&b); + } + inline void Swap(DoubleList* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DoubleList* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DoubleList* New() const final { + return new DoubleList(); + } + + DoubleList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DoubleList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const 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(DoubleList* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.DoubleList"; + } + protected: + explicit 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.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_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class SintList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.SintList) */ { + public: + inline SintList() : SintList(nullptr) {} + ~SintList() override; + explicit constexpr SintList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SintList(const SintList& from); + SintList(SintList&& from) noexcept + : SintList() { + *this = ::std::move(from); + } + + inline SintList& operator=(const SintList& from) { + CopyFrom(from); + return *this; + } + inline SintList& operator=(SintList&& 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 SintList& default_instance() { + return *internal_default_instance(); + } + static inline const SintList* internal_default_instance() { + return reinterpret_cast( + &_SintList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(SintList& a, SintList& b) { + a.Swap(&b); + } + inline void Swap(SintList* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SintList* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SintList* New() const final { + return new SintList(); + } + + SintList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SintList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SintList& 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(SintList* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.SintList"; + } + protected: + explicit SintList(::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.SintList) + 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_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class UintList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.UintList) */ { + public: + inline UintList() : UintList(nullptr) {} + ~UintList() override; + explicit constexpr UintList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UintList(const UintList& from); + UintList(UintList&& from) noexcept + : UintList() { + *this = ::std::move(from); + } + + inline UintList& operator=(const UintList& from) { + CopyFrom(from); + return *this; + } + inline UintList& operator=(UintList&& 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 UintList& default_instance() { + return *internal_default_instance(); + } + static inline const UintList* internal_default_instance() { + return reinterpret_cast( + &_UintList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(UintList& a, UintList& b) { + a.Swap(&b); + } + inline void Swap(UintList* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(UintList* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline UintList* New() const final { + return new UintList(); + } + + UintList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UintList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UintList& 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(UintList* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.UintList"; + } + protected: + explicit UintList(::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 uint64 vals = 1; + int vals_size() const; + private: + int _internal_vals_size() const; + public: + void clear_vals(); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_vals(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& + _internal_vals() const; + void _internal_add_vals(::PROTOBUF_NAMESPACE_ID::uint64 value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* + _internal_mutable_vals(); + public: + ::PROTOBUF_NAMESPACE_ID::uint64 vals(int index) const; + void set_vals(int index, ::PROTOBUF_NAMESPACE_ID::uint64 value); + void add_vals(::PROTOBUF_NAMESPACE_ID::uint64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& + vals() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* + mutable_vals(); + + // @@protoc_insertion_point(class_scope:flwr.proto.UintList) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 > vals_; + mutable std::atomic _vals_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class BoolList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.BoolList) */ { + public: + inline BoolList() : BoolList(nullptr) {} + ~BoolList() override; + explicit constexpr BoolList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BoolList(const BoolList& from); + BoolList(BoolList&& from) noexcept + : BoolList() { + *this = ::std::move(from); + } + + inline BoolList& operator=(const BoolList& from) { + CopyFrom(from); + return *this; + } + inline BoolList& operator=(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 BoolList& default_instance() { + return *internal_default_instance(); + } + static inline const BoolList* internal_default_instance() { + return reinterpret_cast( + &_BoolList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(BoolList& a, BoolList& b) { + a.Swap(&b); + } + inline void Swap(BoolList* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BoolList* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline BoolList* New() const final { + return new BoolList(); + } + + BoolList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BoolList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const 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(BoolList* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.BoolList"; + } + protected: + explicit 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.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_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class StringList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.StringList) */ { + public: + inline StringList() : StringList(nullptr) {} + ~StringList() override; + explicit constexpr StringList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StringList(const StringList& from); + StringList(StringList&& from) noexcept + : StringList() { + *this = ::std::move(from); + } + + inline StringList& operator=(const StringList& from) { + CopyFrom(from); + return *this; + } + inline StringList& operator=(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 StringList& default_instance() { + return *internal_default_instance(); + } + static inline const StringList* internal_default_instance() { + return reinterpret_cast( + &_StringList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(StringList& a, StringList& b) { + a.Swap(&b); + } + inline void Swap(StringList* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(StringList* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline StringList* New() const final { + return new StringList(); + } + + StringList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StringList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const 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(StringList* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.StringList"; + } + protected: + explicit 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.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_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class BytesList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.BytesList) */ { + public: + inline BytesList() : BytesList(nullptr) {} + ~BytesList() override; + explicit constexpr BytesList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BytesList(const BytesList& from); + BytesList(BytesList&& from) noexcept + : BytesList() { + *this = ::std::move(from); + } + + inline BytesList& operator=(const BytesList& from) { + CopyFrom(from); + return *this; + } + inline BytesList& operator=(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 BytesList& default_instance() { + return *internal_default_instance(); + } + static inline const BytesList* internal_default_instance() { + return reinterpret_cast( + &_BytesList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(BytesList& a, BytesList& b) { + a.Swap(&b); + } + inline void Swap(BytesList* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BytesList* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline BytesList* New() const final { + return new BytesList(); + } + + BytesList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BytesList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const 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(BytesList* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.BytesList"; + } + protected: + explicit 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.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_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class Array final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Array) */ { + public: + inline Array() : Array(nullptr) {} + ~Array() override; + explicit constexpr Array(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Array(const Array& from); + Array(Array&& from) noexcept + : Array() { + *this = ::std::move(from); + } + + inline Array& operator=(const Array& from) { + CopyFrom(from); + return *this; + } + inline Array& operator=(Array&& 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 Array& default_instance() { + return *internal_default_instance(); + } + static inline const Array* internal_default_instance() { + return reinterpret_cast( + &_Array_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(Array& a, Array& b) { + a.Swap(&b); + } + inline void Swap(Array* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Array* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Array* New() const final { + return new Array(); + } + + Array* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Array& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Array& 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(Array* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Array"; + } + protected: + explicit Array(::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 { + kShapeFieldNumber = 2, + kDtypeFieldNumber = 1, + kStypeFieldNumber = 3, + kDataFieldNumber = 4, + }; + // repeated int32 shape = 2; + int shape_size() const; + private: + int _internal_shape_size() const; + public: + void clear_shape(); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_shape(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& + _internal_shape() const; + void _internal_add_shape(::PROTOBUF_NAMESPACE_ID::int32 value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* + _internal_mutable_shape(); + public: + ::PROTOBUF_NAMESPACE_ID::int32 shape(int index) const; + void set_shape(int index, ::PROTOBUF_NAMESPACE_ID::int32 value); + void add_shape(::PROTOBUF_NAMESPACE_ID::int32 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& + shape() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* + mutable_shape(); + + // string dtype = 1; + void clear_dtype(); + const std::string& dtype() const; + template + void set_dtype(ArgT0&& arg0, ArgT... args); + std::string* mutable_dtype(); + PROTOBUF_MUST_USE_RESULT std::string* release_dtype(); + void set_allocated_dtype(std::string* dtype); + private: + const std::string& _internal_dtype() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_dtype(const std::string& value); + std::string* _internal_mutable_dtype(); + public: + + // string stype = 3; + void clear_stype(); + const std::string& stype() const; + template + void set_stype(ArgT0&& arg0, ArgT... args); + std::string* mutable_stype(); + PROTOBUF_MUST_USE_RESULT std::string* release_stype(); + void set_allocated_stype(std::string* stype); + private: + const std::string& _internal_stype() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_stype(const std::string& value); + std::string* _internal_mutable_stype(); + public: + + // bytes data = 4; + void clear_data(); + const std::string& data() const; + template + void set_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_data(); + PROTOBUF_MUST_USE_RESULT std::string* release_data(); + void set_allocated_data(std::string* data); + private: + const std::string& _internal_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); + std::string* _internal_mutable_data(); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.Array) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > shape_; + mutable std::atomic _shape_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dtype_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stype_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class MetricRecordValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.MetricRecordValue) */ { + public: + inline MetricRecordValue() : MetricRecordValue(nullptr) {} + ~MetricRecordValue() override; + explicit constexpr MetricRecordValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MetricRecordValue(const MetricRecordValue& from); + MetricRecordValue(MetricRecordValue&& from) noexcept + : MetricRecordValue() { + *this = ::std::move(from); + } + + inline MetricRecordValue& operator=(const MetricRecordValue& from) { + CopyFrom(from); + return *this; + } + inline MetricRecordValue& operator=(MetricRecordValue&& 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 MetricRecordValue& default_instance() { + return *internal_default_instance(); + } + enum ValueCase { + kDouble = 1, + kSint64 = 2, + kUint64 = 3, + kDoubleList = 21, + kSintList = 22, + kUintList = 23, + VALUE_NOT_SET = 0, + }; + + static inline const MetricRecordValue* internal_default_instance() { + return reinterpret_cast( + &_MetricRecordValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(MetricRecordValue& a, MetricRecordValue& b) { + a.Swap(&b); + } + inline void Swap(MetricRecordValue* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MetricRecordValue* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline MetricRecordValue* New() const final { + return new MetricRecordValue(); + } + + MetricRecordValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MetricRecordValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MetricRecordValue& 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(MetricRecordValue* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.MetricRecordValue"; + } + protected: + explicit MetricRecordValue(::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 = 2, + kUint64FieldNumber = 3, + kDoubleListFieldNumber = 21, + kSintListFieldNumber = 22, + kUintListFieldNumber = 23, + }; + // 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: + + // uint64 uint64 = 3; + bool has_uint64() const; + private: + bool _internal_has_uint64() const; + public: + void clear_uint64(); + ::PROTOBUF_NAMESPACE_ID::uint64 uint64() const; + void set_uint64(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_uint64() const; + void _internal_set_uint64(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // .flwr.proto.DoubleList double_list = 21; + bool has_double_list() const; + private: + bool _internal_has_double_list() const; + public: + void clear_double_list(); + const ::flwr::proto::DoubleList& double_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::DoubleList* release_double_list(); + ::flwr::proto::DoubleList* mutable_double_list(); + void set_allocated_double_list(::flwr::proto::DoubleList* double_list); + private: + const ::flwr::proto::DoubleList& _internal_double_list() const; + ::flwr::proto::DoubleList* _internal_mutable_double_list(); + public: + void unsafe_arena_set_allocated_double_list( + ::flwr::proto::DoubleList* double_list); + ::flwr::proto::DoubleList* unsafe_arena_release_double_list(); + + // .flwr.proto.SintList sint_list = 22; + bool has_sint_list() const; + private: + bool _internal_has_sint_list() const; + public: + void clear_sint_list(); + const ::flwr::proto::SintList& sint_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::SintList* release_sint_list(); + ::flwr::proto::SintList* mutable_sint_list(); + void set_allocated_sint_list(::flwr::proto::SintList* sint_list); + private: + const ::flwr::proto::SintList& _internal_sint_list() const; + ::flwr::proto::SintList* _internal_mutable_sint_list(); + public: + void unsafe_arena_set_allocated_sint_list( + ::flwr::proto::SintList* sint_list); + ::flwr::proto::SintList* unsafe_arena_release_sint_list(); + + // .flwr.proto.UintList uint_list = 23; + bool has_uint_list() const; + private: + bool _internal_has_uint_list() const; + public: + void clear_uint_list(); + const ::flwr::proto::UintList& uint_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::UintList* release_uint_list(); + ::flwr::proto::UintList* mutable_uint_list(); + void set_allocated_uint_list(::flwr::proto::UintList* uint_list); + private: + const ::flwr::proto::UintList& _internal_uint_list() const; + ::flwr::proto::UintList* _internal_mutable_uint_list(); + public: + void unsafe_arena_set_allocated_uint_list( + ::flwr::proto::UintList* uint_list); + ::flwr::proto::UintList* unsafe_arena_release_uint_list(); + + void clear_value(); + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:flwr.proto.MetricRecordValue) + private: + class _Internal; + void set_has_double_(); + void set_has_sint64(); + void set_has_uint64(); + void set_has_double_list(); + void set_has_sint_list(); + void set_has_uint_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_; + ::PROTOBUF_NAMESPACE_ID::uint64 uint64_; + ::flwr::proto::DoubleList* double_list_; + ::flwr::proto::SintList* sint_list_; + ::flwr::proto::UintList* uint_list_; + } value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flwr_2fproto_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class ConfigRecordValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ConfigRecordValue) */ { + public: + inline ConfigRecordValue() : ConfigRecordValue(nullptr) {} + ~ConfigRecordValue() override; + explicit constexpr ConfigRecordValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ConfigRecordValue(const ConfigRecordValue& from); + ConfigRecordValue(ConfigRecordValue&& from) noexcept + : ConfigRecordValue() { + *this = ::std::move(from); + } + + inline ConfigRecordValue& operator=(const ConfigRecordValue& from) { + CopyFrom(from); + return *this; + } + inline ConfigRecordValue& operator=(ConfigRecordValue&& 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 ConfigRecordValue& default_instance() { + return *internal_default_instance(); + } + enum ValueCase { + kDouble = 1, + kSint64 = 2, + kUint64 = 3, + kBool = 4, + kString = 5, + kBytes = 6, + kDoubleList = 21, + kSintList = 22, + kUintList = 23, + kBoolList = 24, + kStringList = 25, + kBytesList = 26, + VALUE_NOT_SET = 0, + }; + + static inline const ConfigRecordValue* internal_default_instance() { + return reinterpret_cast( + &_ConfigRecordValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(ConfigRecordValue& a, ConfigRecordValue& b) { + a.Swap(&b); + } + inline void Swap(ConfigRecordValue* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConfigRecordValue* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ConfigRecordValue* New() const final { + return new ConfigRecordValue(); + } + + ConfigRecordValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ConfigRecordValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ConfigRecordValue& 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(ConfigRecordValue* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ConfigRecordValue"; + } + protected: + explicit ConfigRecordValue(::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 = 2, + kUint64FieldNumber = 3, + kBoolFieldNumber = 4, + kStringFieldNumber = 5, + kBytesFieldNumber = 6, + kDoubleListFieldNumber = 21, + kSintListFieldNumber = 22, + kUintListFieldNumber = 23, + kBoolListFieldNumber = 24, + kStringListFieldNumber = 25, + kBytesListFieldNumber = 26, + }; + // 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: + + // uint64 uint64 = 3; + bool has_uint64() const; + private: + bool _internal_has_uint64() const; + public: + void clear_uint64(); + ::PROTOBUF_NAMESPACE_ID::uint64 uint64() const; + void set_uint64(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_uint64() const; + void _internal_set_uint64(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // bool bool = 4; + 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 = 5; + 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 = 6; + 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.DoubleList double_list = 21; + bool has_double_list() const; + private: + bool _internal_has_double_list() const; + public: + void clear_double_list(); + const ::flwr::proto::DoubleList& double_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::DoubleList* release_double_list(); + ::flwr::proto::DoubleList* mutable_double_list(); + void set_allocated_double_list(::flwr::proto::DoubleList* double_list); + private: + const ::flwr::proto::DoubleList& _internal_double_list() const; + ::flwr::proto::DoubleList* _internal_mutable_double_list(); + public: + void unsafe_arena_set_allocated_double_list( + ::flwr::proto::DoubleList* double_list); + ::flwr::proto::DoubleList* unsafe_arena_release_double_list(); + + // .flwr.proto.SintList sint_list = 22; + bool has_sint_list() const; + private: + bool _internal_has_sint_list() const; + public: + void clear_sint_list(); + const ::flwr::proto::SintList& sint_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::SintList* release_sint_list(); + ::flwr::proto::SintList* mutable_sint_list(); + void set_allocated_sint_list(::flwr::proto::SintList* sint_list); + private: + const ::flwr::proto::SintList& _internal_sint_list() const; + ::flwr::proto::SintList* _internal_mutable_sint_list(); + public: + void unsafe_arena_set_allocated_sint_list( + ::flwr::proto::SintList* sint_list); + ::flwr::proto::SintList* unsafe_arena_release_sint_list(); + + // .flwr.proto.UintList uint_list = 23; + bool has_uint_list() const; + private: + bool _internal_has_uint_list() const; + public: + void clear_uint_list(); + const ::flwr::proto::UintList& uint_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::UintList* release_uint_list(); + ::flwr::proto::UintList* mutable_uint_list(); + void set_allocated_uint_list(::flwr::proto::UintList* uint_list); + private: + const ::flwr::proto::UintList& _internal_uint_list() const; + ::flwr::proto::UintList* _internal_mutable_uint_list(); + public: + void unsafe_arena_set_allocated_uint_list( + ::flwr::proto::UintList* uint_list); + ::flwr::proto::UintList* unsafe_arena_release_uint_list(); + + // .flwr.proto.BoolList bool_list = 24; + bool has_bool_list() const; + private: + bool _internal_has_bool_list() const; + public: + void clear_bool_list(); + const ::flwr::proto::BoolList& bool_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::BoolList* release_bool_list(); + ::flwr::proto::BoolList* mutable_bool_list(); + void set_allocated_bool_list(::flwr::proto::BoolList* bool_list); + private: + const ::flwr::proto::BoolList& _internal_bool_list() const; + ::flwr::proto::BoolList* _internal_mutable_bool_list(); + public: + void unsafe_arena_set_allocated_bool_list( + ::flwr::proto::BoolList* bool_list); + ::flwr::proto::BoolList* unsafe_arena_release_bool_list(); + + // .flwr.proto.StringList string_list = 25; + bool has_string_list() const; + private: + bool _internal_has_string_list() const; + public: + void clear_string_list(); + const ::flwr::proto::StringList& string_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::StringList* release_string_list(); + ::flwr::proto::StringList* mutable_string_list(); + void set_allocated_string_list(::flwr::proto::StringList* string_list); + private: + const ::flwr::proto::StringList& _internal_string_list() const; + ::flwr::proto::StringList* _internal_mutable_string_list(); + public: + void unsafe_arena_set_allocated_string_list( + ::flwr::proto::StringList* string_list); + ::flwr::proto::StringList* unsafe_arena_release_string_list(); + + // .flwr.proto.BytesList bytes_list = 26; + bool has_bytes_list() const; + private: + bool _internal_has_bytes_list() const; + public: + void clear_bytes_list(); + const ::flwr::proto::BytesList& bytes_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::BytesList* release_bytes_list(); + ::flwr::proto::BytesList* mutable_bytes_list(); + void set_allocated_bytes_list(::flwr::proto::BytesList* bytes_list); + private: + const ::flwr::proto::BytesList& _internal_bytes_list() const; + ::flwr::proto::BytesList* _internal_mutable_bytes_list(); + public: + void unsafe_arena_set_allocated_bytes_list( + ::flwr::proto::BytesList* bytes_list); + ::flwr::proto::BytesList* unsafe_arena_release_bytes_list(); + + void clear_value(); + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:flwr.proto.ConfigRecordValue) + private: + class _Internal; + void set_has_double_(); + void set_has_sint64(); + void set_has_uint64(); + void set_has_bool_(); + void set_has_string(); + void set_has_bytes(); + void set_has_double_list(); + void set_has_sint_list(); + void set_has_uint_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_; + ::PROTOBUF_NAMESPACE_ID::uint64 uint64_; + bool bool__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bytes_; + ::flwr::proto::DoubleList* double_list_; + ::flwr::proto::SintList* sint_list_; + ::flwr::proto::UintList* uint_list_; + ::flwr::proto::BoolList* bool_list_; + ::flwr::proto::StringList* string_list_; + ::flwr::proto::BytesList* bytes_list_; + } value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flwr_2fproto_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class ArrayRecord_Item final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ArrayRecord.Item) */ { + public: + inline ArrayRecord_Item() : ArrayRecord_Item(nullptr) {} + ~ArrayRecord_Item() override; + explicit constexpr ArrayRecord_Item(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ArrayRecord_Item(const ArrayRecord_Item& from); + ArrayRecord_Item(ArrayRecord_Item&& from) noexcept + : ArrayRecord_Item() { + *this = ::std::move(from); + } + + inline ArrayRecord_Item& operator=(const ArrayRecord_Item& from) { + CopyFrom(from); + return *this; + } + inline ArrayRecord_Item& operator=(ArrayRecord_Item&& 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 ArrayRecord_Item& default_instance() { + return *internal_default_instance(); + } + static inline const ArrayRecord_Item* internal_default_instance() { + return reinterpret_cast( + &_ArrayRecord_Item_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(ArrayRecord_Item& a, ArrayRecord_Item& b) { + a.Swap(&b); + } + inline void Swap(ArrayRecord_Item* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ArrayRecord_Item* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ArrayRecord_Item* New() const final { + return new ArrayRecord_Item(); + } + + ArrayRecord_Item* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ArrayRecord_Item& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ArrayRecord_Item& 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(ArrayRecord_Item* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ArrayRecord.Item"; + } + protected: + explicit ArrayRecord_Item(::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 { + kKeyFieldNumber = 1, + kValueFieldNumber = 2, + }; + // string key = 1; + void clear_key(); + const std::string& key() const; + template + void set_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_key(); + PROTOBUF_MUST_USE_RESULT std::string* release_key(); + void set_allocated_key(std::string* key); + private: + const std::string& _internal_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value); + std::string* _internal_mutable_key(); + public: + + // .flwr.proto.Array value = 2; + bool has_value() const; + private: + bool _internal_has_value() const; + public: + void clear_value(); + const ::flwr::proto::Array& value() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Array* release_value(); + ::flwr::proto::Array* mutable_value(); + void set_allocated_value(::flwr::proto::Array* value); + private: + const ::flwr::proto::Array& _internal_value() const; + ::flwr::proto::Array* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::flwr::proto::Array* value); + ::flwr::proto::Array* unsafe_arena_release_value(); + + // @@protoc_insertion_point(class_scope:flwr.proto.ArrayRecord.Item) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; + ::flwr::proto::Array* value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class ArrayRecord final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ArrayRecord) */ { + public: + inline ArrayRecord() : ArrayRecord(nullptr) {} + ~ArrayRecord() override; + explicit constexpr ArrayRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ArrayRecord(const ArrayRecord& from); + ArrayRecord(ArrayRecord&& from) noexcept + : ArrayRecord() { + *this = ::std::move(from); + } + + inline ArrayRecord& operator=(const ArrayRecord& from) { + CopyFrom(from); + return *this; + } + inline ArrayRecord& operator=(ArrayRecord&& 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 ArrayRecord& default_instance() { + return *internal_default_instance(); + } + static inline const ArrayRecord* internal_default_instance() { + return reinterpret_cast( + &_ArrayRecord_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(ArrayRecord& a, ArrayRecord& b) { + a.Swap(&b); + } + inline void Swap(ArrayRecord* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ArrayRecord* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ArrayRecord* New() const final { + return new ArrayRecord(); + } + + ArrayRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ArrayRecord& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ArrayRecord& 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(ArrayRecord* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ArrayRecord"; + } + protected: + explicit ArrayRecord(::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 ArrayRecord_Item Item; + + // accessors ------------------------------------------------------- + + enum : int { + kItemsFieldNumber = 1, + }; + // repeated .flwr.proto.ArrayRecord.Item items = 1; + int items_size() const; + private: + int _internal_items_size() const; + public: + void clear_items(); + ::flwr::proto::ArrayRecord_Item* mutable_items(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ArrayRecord_Item >* + mutable_items(); + private: + const ::flwr::proto::ArrayRecord_Item& _internal_items(int index) const; + ::flwr::proto::ArrayRecord_Item* _internal_add_items(); + public: + const ::flwr::proto::ArrayRecord_Item& items(int index) const; + ::flwr::proto::ArrayRecord_Item* add_items(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ArrayRecord_Item >& + items() const; + + // @@protoc_insertion_point(class_scope:flwr.proto.ArrayRecord) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ArrayRecord_Item > items_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class MetricRecord_Item final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.MetricRecord.Item) */ { + public: + inline MetricRecord_Item() : MetricRecord_Item(nullptr) {} + ~MetricRecord_Item() override; + explicit constexpr MetricRecord_Item(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MetricRecord_Item(const MetricRecord_Item& from); + MetricRecord_Item(MetricRecord_Item&& from) noexcept + : MetricRecord_Item() { + *this = ::std::move(from); + } + + inline MetricRecord_Item& operator=(const MetricRecord_Item& from) { + CopyFrom(from); + return *this; + } + inline MetricRecord_Item& operator=(MetricRecord_Item&& 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 MetricRecord_Item& default_instance() { + return *internal_default_instance(); + } + static inline const MetricRecord_Item* internal_default_instance() { + return reinterpret_cast( + &_MetricRecord_Item_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(MetricRecord_Item& a, MetricRecord_Item& b) { + a.Swap(&b); + } + inline void Swap(MetricRecord_Item* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MetricRecord_Item* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline MetricRecord_Item* New() const final { + return new MetricRecord_Item(); + } + + MetricRecord_Item* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MetricRecord_Item& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MetricRecord_Item& 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(MetricRecord_Item* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.MetricRecord.Item"; + } + protected: + explicit MetricRecord_Item(::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 { + kKeyFieldNumber = 1, + kValueFieldNumber = 2, + }; + // string key = 1; + void clear_key(); + const std::string& key() const; + template + void set_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_key(); + PROTOBUF_MUST_USE_RESULT std::string* release_key(); + void set_allocated_key(std::string* key); + private: + const std::string& _internal_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value); + std::string* _internal_mutable_key(); + public: + + // .flwr.proto.MetricRecordValue value = 2; + bool has_value() const; + private: + bool _internal_has_value() const; + public: + void clear_value(); + const ::flwr::proto::MetricRecordValue& value() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::MetricRecordValue* release_value(); + ::flwr::proto::MetricRecordValue* mutable_value(); + void set_allocated_value(::flwr::proto::MetricRecordValue* value); + private: + const ::flwr::proto::MetricRecordValue& _internal_value() const; + ::flwr::proto::MetricRecordValue* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::flwr::proto::MetricRecordValue* value); + ::flwr::proto::MetricRecordValue* unsafe_arena_release_value(); + + // @@protoc_insertion_point(class_scope:flwr.proto.MetricRecord.Item) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; + ::flwr::proto::MetricRecordValue* value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class MetricRecord final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.MetricRecord) */ { + public: + inline MetricRecord() : MetricRecord(nullptr) {} + ~MetricRecord() override; + explicit constexpr MetricRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MetricRecord(const MetricRecord& from); + MetricRecord(MetricRecord&& from) noexcept + : MetricRecord() { + *this = ::std::move(from); + } + + inline MetricRecord& operator=(const MetricRecord& from) { + CopyFrom(from); + return *this; + } + inline MetricRecord& operator=(MetricRecord&& 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 MetricRecord& default_instance() { + return *internal_default_instance(); + } + static inline const MetricRecord* internal_default_instance() { + return reinterpret_cast( + &_MetricRecord_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(MetricRecord& a, MetricRecord& b) { + a.Swap(&b); + } + inline void Swap(MetricRecord* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MetricRecord* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline MetricRecord* New() const final { + return new MetricRecord(); + } + + MetricRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MetricRecord& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MetricRecord& 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(MetricRecord* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.MetricRecord"; + } + protected: + explicit MetricRecord(::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 MetricRecord_Item Item; + + // accessors ------------------------------------------------------- + + enum : int { + kItemsFieldNumber = 1, + }; + // repeated .flwr.proto.MetricRecord.Item items = 1; + int items_size() const; + private: + int _internal_items_size() const; + public: + void clear_items(); + ::flwr::proto::MetricRecord_Item* mutable_items(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::MetricRecord_Item >* + mutable_items(); + private: + const ::flwr::proto::MetricRecord_Item& _internal_items(int index) const; + ::flwr::proto::MetricRecord_Item* _internal_add_items(); + public: + const ::flwr::proto::MetricRecord_Item& items(int index) const; + ::flwr::proto::MetricRecord_Item* add_items(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::MetricRecord_Item >& + items() const; + + // @@protoc_insertion_point(class_scope:flwr.proto.MetricRecord) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::MetricRecord_Item > items_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class ConfigRecord_Item final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ConfigRecord.Item) */ { + public: + inline ConfigRecord_Item() : ConfigRecord_Item(nullptr) {} + ~ConfigRecord_Item() override; + explicit constexpr ConfigRecord_Item(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ConfigRecord_Item(const ConfigRecord_Item& from); + ConfigRecord_Item(ConfigRecord_Item&& from) noexcept + : ConfigRecord_Item() { + *this = ::std::move(from); + } + + inline ConfigRecord_Item& operator=(const ConfigRecord_Item& from) { + CopyFrom(from); + return *this; + } + inline ConfigRecord_Item& operator=(ConfigRecord_Item&& 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 ConfigRecord_Item& default_instance() { + return *internal_default_instance(); + } + static inline const ConfigRecord_Item* internal_default_instance() { + return reinterpret_cast( + &_ConfigRecord_Item_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(ConfigRecord_Item& a, ConfigRecord_Item& b) { + a.Swap(&b); + } + inline void Swap(ConfigRecord_Item* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConfigRecord_Item* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ConfigRecord_Item* New() const final { + return new ConfigRecord_Item(); + } + + ConfigRecord_Item* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ConfigRecord_Item& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ConfigRecord_Item& 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(ConfigRecord_Item* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ConfigRecord.Item"; + } + protected: + explicit ConfigRecord_Item(::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 { + kKeyFieldNumber = 1, + kValueFieldNumber = 2, + }; + // string key = 1; + void clear_key(); + const std::string& key() const; + template + void set_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_key(); + PROTOBUF_MUST_USE_RESULT std::string* release_key(); + void set_allocated_key(std::string* key); + private: + const std::string& _internal_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value); + std::string* _internal_mutable_key(); + public: + + // .flwr.proto.ConfigRecordValue value = 2; + bool has_value() const; + private: + bool _internal_has_value() const; + public: + void clear_value(); + const ::flwr::proto::ConfigRecordValue& value() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ConfigRecordValue* release_value(); + ::flwr::proto::ConfigRecordValue* mutable_value(); + void set_allocated_value(::flwr::proto::ConfigRecordValue* value); + private: + const ::flwr::proto::ConfigRecordValue& _internal_value() const; + ::flwr::proto::ConfigRecordValue* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::flwr::proto::ConfigRecordValue* value); + ::flwr::proto::ConfigRecordValue* unsafe_arena_release_value(); + + // @@protoc_insertion_point(class_scope:flwr.proto.ConfigRecord.Item) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; + ::flwr::proto::ConfigRecordValue* value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class ConfigRecord final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ConfigRecord) */ { + public: + inline ConfigRecord() : ConfigRecord(nullptr) {} + ~ConfigRecord() override; + explicit constexpr ConfigRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ConfigRecord(const ConfigRecord& from); + ConfigRecord(ConfigRecord&& from) noexcept + : ConfigRecord() { + *this = ::std::move(from); + } + + inline ConfigRecord& operator=(const ConfigRecord& from) { + CopyFrom(from); + return *this; + } + inline ConfigRecord& operator=(ConfigRecord&& 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 ConfigRecord& default_instance() { + return *internal_default_instance(); + } + static inline const ConfigRecord* internal_default_instance() { + return reinterpret_cast( + &_ConfigRecord_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(ConfigRecord& a, ConfigRecord& b) { + a.Swap(&b); + } + inline void Swap(ConfigRecord* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConfigRecord* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ConfigRecord* New() const final { + return new ConfigRecord(); + } + + ConfigRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ConfigRecord& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ConfigRecord& 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(ConfigRecord* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ConfigRecord"; + } + protected: + explicit ConfigRecord(::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 ConfigRecord_Item Item; + + // accessors ------------------------------------------------------- + + enum : int { + kItemsFieldNumber = 1, + }; + // repeated .flwr.proto.ConfigRecord.Item items = 1; + int items_size() const; + private: + int _internal_items_size() const; + public: + void clear_items(); + ::flwr::proto::ConfigRecord_Item* mutable_items(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ConfigRecord_Item >* + mutable_items(); + private: + const ::flwr::proto::ConfigRecord_Item& _internal_items(int index) const; + ::flwr::proto::ConfigRecord_Item* _internal_add_items(); + public: + const ::flwr::proto::ConfigRecord_Item& items(int index) const; + ::flwr::proto::ConfigRecord_Item* add_items(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ConfigRecord_Item >& + items() const; + + // @@protoc_insertion_point(class_scope:flwr.proto.ConfigRecord) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ConfigRecord_Item > items_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class RecordDict_Item final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.RecordDict.Item) */ { + public: + inline RecordDict_Item() : RecordDict_Item(nullptr) {} + ~RecordDict_Item() override; + explicit constexpr RecordDict_Item(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RecordDict_Item(const RecordDict_Item& from); + RecordDict_Item(RecordDict_Item&& from) noexcept + : RecordDict_Item() { + *this = ::std::move(from); + } + + inline RecordDict_Item& operator=(const RecordDict_Item& from) { + CopyFrom(from); + return *this; + } + inline RecordDict_Item& operator=(RecordDict_Item&& 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 RecordDict_Item& default_instance() { + return *internal_default_instance(); + } + enum ValueCase { + kArrayRecord = 2, + kMetricRecord = 3, + kConfigRecord = 4, + VALUE_NOT_SET = 0, + }; + + static inline const RecordDict_Item* internal_default_instance() { + return reinterpret_cast( + &_RecordDict_Item_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(RecordDict_Item& a, RecordDict_Item& b) { + a.Swap(&b); + } + inline void Swap(RecordDict_Item* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RecordDict_Item* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline RecordDict_Item* New() const final { + return new RecordDict_Item(); + } + + RecordDict_Item* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RecordDict_Item& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RecordDict_Item& 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(RecordDict_Item* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.RecordDict.Item"; + } + protected: + explicit RecordDict_Item(::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 { + kKeyFieldNumber = 1, + kArrayRecordFieldNumber = 2, + kMetricRecordFieldNumber = 3, + kConfigRecordFieldNumber = 4, + }; + // string key = 1; + void clear_key(); + const std::string& key() const; + template + void set_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_key(); + PROTOBUF_MUST_USE_RESULT std::string* release_key(); + void set_allocated_key(std::string* key); + private: + const std::string& _internal_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value); + std::string* _internal_mutable_key(); + public: + + // .flwr.proto.ArrayRecord array_record = 2; + bool has_array_record() const; + private: + bool _internal_has_array_record() const; + public: + void clear_array_record(); + const ::flwr::proto::ArrayRecord& array_record() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ArrayRecord* release_array_record(); + ::flwr::proto::ArrayRecord* mutable_array_record(); + void set_allocated_array_record(::flwr::proto::ArrayRecord* array_record); + private: + const ::flwr::proto::ArrayRecord& _internal_array_record() const; + ::flwr::proto::ArrayRecord* _internal_mutable_array_record(); + public: + void unsafe_arena_set_allocated_array_record( + ::flwr::proto::ArrayRecord* array_record); + ::flwr::proto::ArrayRecord* unsafe_arena_release_array_record(); + + // .flwr.proto.MetricRecord metric_record = 3; + bool has_metric_record() const; + private: + bool _internal_has_metric_record() const; + public: + void clear_metric_record(); + const ::flwr::proto::MetricRecord& metric_record() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::MetricRecord* release_metric_record(); + ::flwr::proto::MetricRecord* mutable_metric_record(); + void set_allocated_metric_record(::flwr::proto::MetricRecord* metric_record); + private: + const ::flwr::proto::MetricRecord& _internal_metric_record() const; + ::flwr::proto::MetricRecord* _internal_mutable_metric_record(); + public: + void unsafe_arena_set_allocated_metric_record( + ::flwr::proto::MetricRecord* metric_record); + ::flwr::proto::MetricRecord* unsafe_arena_release_metric_record(); + + // .flwr.proto.ConfigRecord config_record = 4; + bool has_config_record() const; + private: + bool _internal_has_config_record() const; + public: + void clear_config_record(); + const ::flwr::proto::ConfigRecord& config_record() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ConfigRecord* release_config_record(); + ::flwr::proto::ConfigRecord* mutable_config_record(); + void set_allocated_config_record(::flwr::proto::ConfigRecord* config_record); + private: + const ::flwr::proto::ConfigRecord& _internal_config_record() const; + ::flwr::proto::ConfigRecord* _internal_mutable_config_record(); + public: + void unsafe_arena_set_allocated_config_record( + ::flwr::proto::ConfigRecord* config_record); + ::flwr::proto::ConfigRecord* unsafe_arena_release_config_record(); + + void clear_value(); + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:flwr.proto.RecordDict.Item) + private: + class _Internal; + void set_has_array_record(); + void set_has_metric_record(); + void set_has_config_record(); + + inline bool has_value() const; + inline void clear_has_value(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; + union ValueUnion { + constexpr ValueUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::flwr::proto::ArrayRecord* array_record_; + ::flwr::proto::MetricRecord* metric_record_; + ::flwr::proto::ConfigRecord* config_record_; + } value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flwr_2fproto_2frecorddict_2eproto; +}; +// ------------------------------------------------------------------- + +class RecordDict final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.RecordDict) */ { + public: + inline RecordDict() : RecordDict(nullptr) {} + ~RecordDict() override; + explicit constexpr RecordDict(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RecordDict(const RecordDict& from); + RecordDict(RecordDict&& from) noexcept + : RecordDict() { + *this = ::std::move(from); + } + + inline RecordDict& operator=(const RecordDict& from) { + CopyFrom(from); + return *this; + } + inline RecordDict& operator=(RecordDict&& 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 RecordDict& default_instance() { + return *internal_default_instance(); + } + static inline const RecordDict* internal_default_instance() { + return reinterpret_cast( + &_RecordDict_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(RecordDict& a, RecordDict& b) { + a.Swap(&b); + } + inline void Swap(RecordDict* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RecordDict* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline RecordDict* New() const final { + return new RecordDict(); + } + + RecordDict* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RecordDict& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RecordDict& 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(RecordDict* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.RecordDict"; + } + protected: + explicit RecordDict(::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 RecordDict_Item Item; + + // accessors ------------------------------------------------------- + + enum : int { + kItemsFieldNumber = 1, + }; + // repeated .flwr.proto.RecordDict.Item items = 1; + int items_size() const; + private: + int _internal_items_size() const; + public: + void clear_items(); + ::flwr::proto::RecordDict_Item* mutable_items(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::RecordDict_Item >* + mutable_items(); + private: + const ::flwr::proto::RecordDict_Item& _internal_items(int index) const; + ::flwr::proto::RecordDict_Item* _internal_add_items(); + public: + const ::flwr::proto::RecordDict_Item& items(int index) const; + ::flwr::proto::RecordDict_Item* add_items(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::RecordDict_Item >& + items() const; + + // @@protoc_insertion_point(class_scope:flwr.proto.RecordDict) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::RecordDict_Item > items_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frecorddict_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// DoubleList + +// repeated double vals = 1; +inline int DoubleList::_internal_vals_size() const { + return vals_.size(); +} +inline int DoubleList::vals_size() const { + return _internal_vals_size(); +} +inline void DoubleList::clear_vals() { + vals_.Clear(); +} +inline double DoubleList::_internal_vals(int index) const { + return vals_.Get(index); +} +inline double DoubleList::vals(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.DoubleList.vals) + return _internal_vals(index); +} +inline void DoubleList::set_vals(int index, double value) { + vals_.Set(index, value); + // @@protoc_insertion_point(field_set:flwr.proto.DoubleList.vals) +} +inline void DoubleList::_internal_add_vals(double value) { + vals_.Add(value); +} +inline void DoubleList::add_vals(double value) { + _internal_add_vals(value); + // @@protoc_insertion_point(field_add:flwr.proto.DoubleList.vals) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +DoubleList::_internal_vals() const { + return vals_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +DoubleList::vals() const { + // @@protoc_insertion_point(field_list:flwr.proto.DoubleList.vals) + return _internal_vals(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +DoubleList::_internal_mutable_vals() { + return &vals_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +DoubleList::mutable_vals() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.DoubleList.vals) + return _internal_mutable_vals(); +} + +// ------------------------------------------------------------------- + +// SintList + +// repeated sint64 vals = 1; +inline int SintList::_internal_vals_size() const { + return vals_.size(); +} +inline int SintList::vals_size() const { + return _internal_vals_size(); +} +inline void SintList::clear_vals() { + vals_.Clear(); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 SintList::_internal_vals(int index) const { + return vals_.Get(index); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 SintList::vals(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.SintList.vals) + return _internal_vals(index); +} +inline void SintList::set_vals(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { + vals_.Set(index, value); + // @@protoc_insertion_point(field_set:flwr.proto.SintList.vals) +} +inline void SintList::_internal_add_vals(::PROTOBUF_NAMESPACE_ID::int64 value) { + vals_.Add(value); +} +inline void SintList::add_vals(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_add_vals(value); + // @@protoc_insertion_point(field_add:flwr.proto.SintList.vals) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& +SintList::_internal_vals() const { + return vals_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& +SintList::vals() const { + // @@protoc_insertion_point(field_list:flwr.proto.SintList.vals) + return _internal_vals(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* +SintList::_internal_mutable_vals() { + return &vals_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* +SintList::mutable_vals() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.SintList.vals) + return _internal_mutable_vals(); +} + +// ------------------------------------------------------------------- + +// UintList + +// repeated uint64 vals = 1; +inline int UintList::_internal_vals_size() const { + return vals_.size(); +} +inline int UintList::vals_size() const { + return _internal_vals_size(); +} +inline void UintList::clear_vals() { + vals_.Clear(); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 UintList::_internal_vals(int index) const { + return vals_.Get(index); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 UintList::vals(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.UintList.vals) + return _internal_vals(index); +} +inline void UintList::set_vals(int index, ::PROTOBUF_NAMESPACE_ID::uint64 value) { + vals_.Set(index, value); + // @@protoc_insertion_point(field_set:flwr.proto.UintList.vals) +} +inline void UintList::_internal_add_vals(::PROTOBUF_NAMESPACE_ID::uint64 value) { + vals_.Add(value); +} +inline void UintList::add_vals(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_add_vals(value); + // @@protoc_insertion_point(field_add:flwr.proto.UintList.vals) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& +UintList::_internal_vals() const { + return vals_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& +UintList::vals() const { + // @@protoc_insertion_point(field_list:flwr.proto.UintList.vals) + return _internal_vals(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* +UintList::_internal_mutable_vals() { + return &vals_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* +UintList::mutable_vals() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.UintList.vals) + return _internal_mutable_vals(); +} + +// ------------------------------------------------------------------- + +// BoolList + +// repeated bool vals = 1; +inline int BoolList::_internal_vals_size() const { + return vals_.size(); +} +inline int BoolList::vals_size() const { + return _internal_vals_size(); +} +inline void BoolList::clear_vals() { + vals_.Clear(); +} +inline bool BoolList::_internal_vals(int index) const { + return vals_.Get(index); +} +inline bool BoolList::vals(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.BoolList.vals) + return _internal_vals(index); +} +inline void BoolList::set_vals(int index, bool value) { + vals_.Set(index, value); + // @@protoc_insertion_point(field_set:flwr.proto.BoolList.vals) +} +inline void BoolList::_internal_add_vals(bool value) { + vals_.Add(value); +} +inline void BoolList::add_vals(bool value) { + _internal_add_vals(value); + // @@protoc_insertion_point(field_add:flwr.proto.BoolList.vals) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& +BoolList::_internal_vals() const { + return vals_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& +BoolList::vals() const { + // @@protoc_insertion_point(field_list:flwr.proto.BoolList.vals) + return _internal_vals(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* +BoolList::_internal_mutable_vals() { + return &vals_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* +BoolList::mutable_vals() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.BoolList.vals) + return _internal_mutable_vals(); +} + +// ------------------------------------------------------------------- + +// StringList + +// repeated string vals = 1; +inline int StringList::_internal_vals_size() const { + return vals_.size(); +} +inline int StringList::vals_size() const { + return _internal_vals_size(); +} +inline void StringList::clear_vals() { + vals_.Clear(); +} +inline std::string* StringList::add_vals() { + std::string* _s = _internal_add_vals(); + // @@protoc_insertion_point(field_add_mutable:flwr.proto.StringList.vals) + return _s; +} +inline const std::string& StringList::_internal_vals(int index) const { + return vals_.Get(index); +} +inline const std::string& StringList::vals(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.StringList.vals) + return _internal_vals(index); +} +inline std::string* StringList::mutable_vals(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.StringList.vals) + return vals_.Mutable(index); +} +inline void StringList::set_vals(int index, const std::string& value) { + vals_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:flwr.proto.StringList.vals) +} +inline void StringList::set_vals(int index, std::string&& value) { + vals_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:flwr.proto.StringList.vals) +} +inline void 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.StringList.vals) +} +inline void 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.StringList.vals) +} +inline std::string* StringList::_internal_add_vals() { + return vals_.Add(); +} +inline void StringList::add_vals(const std::string& value) { + vals_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flwr.proto.StringList.vals) +} +inline void StringList::add_vals(std::string&& value) { + vals_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flwr.proto.StringList.vals) +} +inline void StringList::add_vals(const char* value) { + GOOGLE_DCHECK(value != nullptr); + vals_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flwr.proto.StringList.vals) +} +inline void StringList::add_vals(const char* value, size_t size) { + vals_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flwr.proto.StringList.vals) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +StringList::vals() const { + // @@protoc_insertion_point(field_list:flwr.proto.StringList.vals) + return vals_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +StringList::mutable_vals() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.StringList.vals) + return &vals_; +} + +// ------------------------------------------------------------------- + +// BytesList + +// repeated bytes vals = 1; +inline int BytesList::_internal_vals_size() const { + return vals_.size(); +} +inline int BytesList::vals_size() const { + return _internal_vals_size(); +} +inline void BytesList::clear_vals() { + vals_.Clear(); +} +inline std::string* BytesList::add_vals() { + std::string* _s = _internal_add_vals(); + // @@protoc_insertion_point(field_add_mutable:flwr.proto.BytesList.vals) + return _s; +} +inline const std::string& BytesList::_internal_vals(int index) const { + return vals_.Get(index); +} +inline const std::string& BytesList::vals(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.BytesList.vals) + return _internal_vals(index); +} +inline std::string* BytesList::mutable_vals(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.BytesList.vals) + return vals_.Mutable(index); +} +inline void BytesList::set_vals(int index, const std::string& value) { + vals_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:flwr.proto.BytesList.vals) +} +inline void BytesList::set_vals(int index, std::string&& value) { + vals_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:flwr.proto.BytesList.vals) +} +inline void 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.BytesList.vals) +} +inline void 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.BytesList.vals) +} +inline std::string* BytesList::_internal_add_vals() { + return vals_.Add(); +} +inline void BytesList::add_vals(const std::string& value) { + vals_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flwr.proto.BytesList.vals) +} +inline void BytesList::add_vals(std::string&& value) { + vals_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flwr.proto.BytesList.vals) +} +inline void BytesList::add_vals(const char* value) { + GOOGLE_DCHECK(value != nullptr); + vals_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flwr.proto.BytesList.vals) +} +inline void BytesList::add_vals(const void* value, size_t size) { + vals_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flwr.proto.BytesList.vals) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +BytesList::vals() const { + // @@protoc_insertion_point(field_list:flwr.proto.BytesList.vals) + return vals_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +BytesList::mutable_vals() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.BytesList.vals) + return &vals_; +} + +// ------------------------------------------------------------------- + +// Array + +// string dtype = 1; +inline void Array::clear_dtype() { + dtype_.ClearToEmpty(); +} +inline const std::string& Array::dtype() const { + // @@protoc_insertion_point(field_get:flwr.proto.Array.dtype) + return _internal_dtype(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Array::set_dtype(ArgT0&& arg0, ArgT... args) { + + dtype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Array.dtype) +} +inline std::string* Array::mutable_dtype() { + std::string* _s = _internal_mutable_dtype(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Array.dtype) + return _s; +} +inline const std::string& Array::_internal_dtype() const { + return dtype_.Get(); +} +inline void Array::_internal_set_dtype(const std::string& value) { + + dtype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Array::_internal_mutable_dtype() { + + return dtype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Array::release_dtype() { + // @@protoc_insertion_point(field_release:flwr.proto.Array.dtype) + return dtype_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Array::set_allocated_dtype(std::string* dtype) { + if (dtype != nullptr) { + + } else { + + } + dtype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), dtype, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Array.dtype) +} + +// repeated int32 shape = 2; +inline int Array::_internal_shape_size() const { + return shape_.size(); +} +inline int Array::shape_size() const { + return _internal_shape_size(); +} +inline void Array::clear_shape() { + shape_.Clear(); +} +inline ::PROTOBUF_NAMESPACE_ID::int32 Array::_internal_shape(int index) const { + return shape_.Get(index); +} +inline ::PROTOBUF_NAMESPACE_ID::int32 Array::shape(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.Array.shape) + return _internal_shape(index); +} +inline void Array::set_shape(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) { + shape_.Set(index, value); + // @@protoc_insertion_point(field_set:flwr.proto.Array.shape) +} +inline void Array::_internal_add_shape(::PROTOBUF_NAMESPACE_ID::int32 value) { + shape_.Add(value); +} +inline void Array::add_shape(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_add_shape(value); + // @@protoc_insertion_point(field_add:flwr.proto.Array.shape) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& +Array::_internal_shape() const { + return shape_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& +Array::shape() const { + // @@protoc_insertion_point(field_list:flwr.proto.Array.shape) + return _internal_shape(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* +Array::_internal_mutable_shape() { + return &shape_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* +Array::mutable_shape() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.Array.shape) + return _internal_mutable_shape(); +} + +// string stype = 3; +inline void Array::clear_stype() { + stype_.ClearToEmpty(); +} +inline const std::string& Array::stype() const { + // @@protoc_insertion_point(field_get:flwr.proto.Array.stype) + return _internal_stype(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Array::set_stype(ArgT0&& arg0, ArgT... args) { + + stype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Array.stype) +} +inline std::string* Array::mutable_stype() { + std::string* _s = _internal_mutable_stype(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Array.stype) + return _s; +} +inline const std::string& Array::_internal_stype() const { + return stype_.Get(); +} +inline void Array::_internal_set_stype(const std::string& value) { + + stype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Array::_internal_mutable_stype() { + + return stype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Array::release_stype() { + // @@protoc_insertion_point(field_release:flwr.proto.Array.stype) + return stype_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Array::set_allocated_stype(std::string* stype) { + if (stype != nullptr) { + + } else { + + } + stype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stype, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Array.stype) +} + +// bytes data = 4; +inline void Array::clear_data() { + data_.ClearToEmpty(); +} +inline const std::string& Array::data() const { + // @@protoc_insertion_point(field_get:flwr.proto.Array.data) + return _internal_data(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Array::set_data(ArgT0&& arg0, ArgT... args) { + + data_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Array.data) +} +inline std::string* Array::mutable_data() { + std::string* _s = _internal_mutable_data(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Array.data) + return _s; +} +inline const std::string& Array::_internal_data() const { + return data_.Get(); +} +inline void Array::_internal_set_data(const std::string& value) { + + data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Array::_internal_mutable_data() { + + return data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Array::release_data() { + // @@protoc_insertion_point(field_release:flwr.proto.Array.data) + return data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Array::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Array.data) +} + +// ------------------------------------------------------------------- + +// MetricRecordValue + +// double double = 1; +inline bool MetricRecordValue::_internal_has_double_() const { + return value_case() == kDouble; +} +inline bool MetricRecordValue::has_double_() const { + return _internal_has_double_(); +} +inline void MetricRecordValue::set_has_double_() { + _oneof_case_[0] = kDouble; +} +inline void MetricRecordValue::clear_double_() { + if (_internal_has_double_()) { + value_.double__ = 0; + clear_has_value(); + } +} +inline double MetricRecordValue::_internal_double_() const { + if (_internal_has_double_()) { + return value_.double__; + } + return 0; +} +inline void MetricRecordValue::_internal_set_double_(double value) { + if (!_internal_has_double_()) { + clear_value(); + set_has_double_(); + } + value_.double__ = value; +} +inline double MetricRecordValue::double_() const { + // @@protoc_insertion_point(field_get:flwr.proto.MetricRecordValue.double) + return _internal_double_(); +} +inline void MetricRecordValue::set_double_(double value) { + _internal_set_double_(value); + // @@protoc_insertion_point(field_set:flwr.proto.MetricRecordValue.double) +} + +// sint64 sint64 = 2; +inline bool MetricRecordValue::_internal_has_sint64() const { + return value_case() == kSint64; +} +inline bool MetricRecordValue::has_sint64() const { + return _internal_has_sint64(); +} +inline void MetricRecordValue::set_has_sint64() { + _oneof_case_[0] = kSint64; +} +inline void MetricRecordValue::clear_sint64() { + if (_internal_has_sint64()) { + value_.sint64_ = int64_t{0}; + clear_has_value(); + } +} +inline ::PROTOBUF_NAMESPACE_ID::int64 MetricRecordValue::_internal_sint64() const { + if (_internal_has_sint64()) { + return value_.sint64_; + } + return int64_t{0}; +} +inline void MetricRecordValue::_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 MetricRecordValue::sint64() const { + // @@protoc_insertion_point(field_get:flwr.proto.MetricRecordValue.sint64) + return _internal_sint64(); +} +inline void MetricRecordValue::set_sint64(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_sint64(value); + // @@protoc_insertion_point(field_set:flwr.proto.MetricRecordValue.sint64) +} + +// uint64 uint64 = 3; +inline bool MetricRecordValue::_internal_has_uint64() const { + return value_case() == kUint64; +} +inline bool MetricRecordValue::has_uint64() const { + return _internal_has_uint64(); +} +inline void MetricRecordValue::set_has_uint64() { + _oneof_case_[0] = kUint64; +} +inline void MetricRecordValue::clear_uint64() { + if (_internal_has_uint64()) { + value_.uint64_ = uint64_t{0u}; + clear_has_value(); + } +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 MetricRecordValue::_internal_uint64() const { + if (_internal_has_uint64()) { + return value_.uint64_; + } + return uint64_t{0u}; +} +inline void MetricRecordValue::_internal_set_uint64(::PROTOBUF_NAMESPACE_ID::uint64 value) { + if (!_internal_has_uint64()) { + clear_value(); + set_has_uint64(); + } + value_.uint64_ = value; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 MetricRecordValue::uint64() const { + // @@protoc_insertion_point(field_get:flwr.proto.MetricRecordValue.uint64) + return _internal_uint64(); +} +inline void MetricRecordValue::set_uint64(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_uint64(value); + // @@protoc_insertion_point(field_set:flwr.proto.MetricRecordValue.uint64) +} + +// .flwr.proto.DoubleList double_list = 21; +inline bool MetricRecordValue::_internal_has_double_list() const { + return value_case() == kDoubleList; +} +inline bool MetricRecordValue::has_double_list() const { + return _internal_has_double_list(); +} +inline void MetricRecordValue::set_has_double_list() { + _oneof_case_[0] = kDoubleList; +} +inline void MetricRecordValue::clear_double_list() { + if (_internal_has_double_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.double_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::DoubleList* MetricRecordValue::release_double_list() { + // @@protoc_insertion_point(field_release:flwr.proto.MetricRecordValue.double_list) + if (_internal_has_double_list()) { + clear_has_value(); + ::flwr::proto::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::DoubleList& MetricRecordValue::_internal_double_list() const { + return _internal_has_double_list() + ? *value_.double_list_ + : reinterpret_cast< ::flwr::proto::DoubleList&>(::flwr::proto::_DoubleList_default_instance_); +} +inline const ::flwr::proto::DoubleList& MetricRecordValue::double_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.MetricRecordValue.double_list) + return _internal_double_list(); +} +inline ::flwr::proto::DoubleList* MetricRecordValue::unsafe_arena_release_double_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.MetricRecordValue.double_list) + if (_internal_has_double_list()) { + clear_has_value(); + ::flwr::proto::DoubleList* temp = value_.double_list_; + value_.double_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void MetricRecordValue::unsafe_arena_set_allocated_double_list(::flwr::proto::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.MetricRecordValue.double_list) +} +inline ::flwr::proto::DoubleList* MetricRecordValue::_internal_mutable_double_list() { + if (!_internal_has_double_list()) { + clear_value(); + set_has_double_list(); + value_.double_list_ = CreateMaybeMessage< ::flwr::proto::DoubleList >(GetArenaForAllocation()); + } + return value_.double_list_; +} +inline ::flwr::proto::DoubleList* MetricRecordValue::mutable_double_list() { + ::flwr::proto::DoubleList* _msg = _internal_mutable_double_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.MetricRecordValue.double_list) + return _msg; +} + +// .flwr.proto.SintList sint_list = 22; +inline bool MetricRecordValue::_internal_has_sint_list() const { + return value_case() == kSintList; +} +inline bool MetricRecordValue::has_sint_list() const { + return _internal_has_sint_list(); +} +inline void MetricRecordValue::set_has_sint_list() { + _oneof_case_[0] = kSintList; +} +inline void MetricRecordValue::clear_sint_list() { + if (_internal_has_sint_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.sint_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::SintList* MetricRecordValue::release_sint_list() { + // @@protoc_insertion_point(field_release:flwr.proto.MetricRecordValue.sint_list) + if (_internal_has_sint_list()) { + clear_has_value(); + ::flwr::proto::SintList* temp = value_.sint_list_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + value_.sint_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::SintList& MetricRecordValue::_internal_sint_list() const { + return _internal_has_sint_list() + ? *value_.sint_list_ + : reinterpret_cast< ::flwr::proto::SintList&>(::flwr::proto::_SintList_default_instance_); +} +inline const ::flwr::proto::SintList& MetricRecordValue::sint_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.MetricRecordValue.sint_list) + return _internal_sint_list(); +} +inline ::flwr::proto::SintList* MetricRecordValue::unsafe_arena_release_sint_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.MetricRecordValue.sint_list) + if (_internal_has_sint_list()) { + clear_has_value(); + ::flwr::proto::SintList* temp = value_.sint_list_; + value_.sint_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void MetricRecordValue::unsafe_arena_set_allocated_sint_list(::flwr::proto::SintList* sint_list) { + clear_value(); + if (sint_list) { + set_has_sint_list(); + value_.sint_list_ = sint_list; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.MetricRecordValue.sint_list) +} +inline ::flwr::proto::SintList* MetricRecordValue::_internal_mutable_sint_list() { + if (!_internal_has_sint_list()) { + clear_value(); + set_has_sint_list(); + value_.sint_list_ = CreateMaybeMessage< ::flwr::proto::SintList >(GetArenaForAllocation()); + } + return value_.sint_list_; +} +inline ::flwr::proto::SintList* MetricRecordValue::mutable_sint_list() { + ::flwr::proto::SintList* _msg = _internal_mutable_sint_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.MetricRecordValue.sint_list) + return _msg; +} + +// .flwr.proto.UintList uint_list = 23; +inline bool MetricRecordValue::_internal_has_uint_list() const { + return value_case() == kUintList; +} +inline bool MetricRecordValue::has_uint_list() const { + return _internal_has_uint_list(); +} +inline void MetricRecordValue::set_has_uint_list() { + _oneof_case_[0] = kUintList; +} +inline void MetricRecordValue::clear_uint_list() { + if (_internal_has_uint_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.uint_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::UintList* MetricRecordValue::release_uint_list() { + // @@protoc_insertion_point(field_release:flwr.proto.MetricRecordValue.uint_list) + if (_internal_has_uint_list()) { + clear_has_value(); + ::flwr::proto::UintList* temp = value_.uint_list_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + value_.uint_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::UintList& MetricRecordValue::_internal_uint_list() const { + return _internal_has_uint_list() + ? *value_.uint_list_ + : reinterpret_cast< ::flwr::proto::UintList&>(::flwr::proto::_UintList_default_instance_); +} +inline const ::flwr::proto::UintList& MetricRecordValue::uint_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.MetricRecordValue.uint_list) + return _internal_uint_list(); +} +inline ::flwr::proto::UintList* MetricRecordValue::unsafe_arena_release_uint_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.MetricRecordValue.uint_list) + if (_internal_has_uint_list()) { + clear_has_value(); + ::flwr::proto::UintList* temp = value_.uint_list_; + value_.uint_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void MetricRecordValue::unsafe_arena_set_allocated_uint_list(::flwr::proto::UintList* uint_list) { + clear_value(); + if (uint_list) { + set_has_uint_list(); + value_.uint_list_ = uint_list; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.MetricRecordValue.uint_list) +} +inline ::flwr::proto::UintList* MetricRecordValue::_internal_mutable_uint_list() { + if (!_internal_has_uint_list()) { + clear_value(); + set_has_uint_list(); + value_.uint_list_ = CreateMaybeMessage< ::flwr::proto::UintList >(GetArenaForAllocation()); + } + return value_.uint_list_; +} +inline ::flwr::proto::UintList* MetricRecordValue::mutable_uint_list() { + ::flwr::proto::UintList* _msg = _internal_mutable_uint_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.MetricRecordValue.uint_list) + return _msg; +} + +inline bool MetricRecordValue::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void MetricRecordValue::clear_has_value() { + _oneof_case_[0] = VALUE_NOT_SET; +} +inline MetricRecordValue::ValueCase MetricRecordValue::value_case() const { + return MetricRecordValue::ValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ConfigRecordValue + +// double double = 1; +inline bool ConfigRecordValue::_internal_has_double_() const { + return value_case() == kDouble; +} +inline bool ConfigRecordValue::has_double_() const { + return _internal_has_double_(); +} +inline void ConfigRecordValue::set_has_double_() { + _oneof_case_[0] = kDouble; +} +inline void ConfigRecordValue::clear_double_() { + if (_internal_has_double_()) { + value_.double__ = 0; + clear_has_value(); + } +} +inline double ConfigRecordValue::_internal_double_() const { + if (_internal_has_double_()) { + return value_.double__; + } + return 0; +} +inline void ConfigRecordValue::_internal_set_double_(double value) { + if (!_internal_has_double_()) { + clear_value(); + set_has_double_(); + } + value_.double__ = value; +} +inline double ConfigRecordValue::double_() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecordValue.double) + return _internal_double_(); +} +inline void ConfigRecordValue::set_double_(double value) { + _internal_set_double_(value); + // @@protoc_insertion_point(field_set:flwr.proto.ConfigRecordValue.double) +} + +// sint64 sint64 = 2; +inline bool ConfigRecordValue::_internal_has_sint64() const { + return value_case() == kSint64; +} +inline bool ConfigRecordValue::has_sint64() const { + return _internal_has_sint64(); +} +inline void ConfigRecordValue::set_has_sint64() { + _oneof_case_[0] = kSint64; +} +inline void ConfigRecordValue::clear_sint64() { + if (_internal_has_sint64()) { + value_.sint64_ = int64_t{0}; + clear_has_value(); + } +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ConfigRecordValue::_internal_sint64() const { + if (_internal_has_sint64()) { + return value_.sint64_; + } + return int64_t{0}; +} +inline void ConfigRecordValue::_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 ConfigRecordValue::sint64() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecordValue.sint64) + return _internal_sint64(); +} +inline void ConfigRecordValue::set_sint64(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_sint64(value); + // @@protoc_insertion_point(field_set:flwr.proto.ConfigRecordValue.sint64) +} + +// uint64 uint64 = 3; +inline bool ConfigRecordValue::_internal_has_uint64() const { + return value_case() == kUint64; +} +inline bool ConfigRecordValue::has_uint64() const { + return _internal_has_uint64(); +} +inline void ConfigRecordValue::set_has_uint64() { + _oneof_case_[0] = kUint64; +} +inline void ConfigRecordValue::clear_uint64() { + if (_internal_has_uint64()) { + value_.uint64_ = uint64_t{0u}; + clear_has_value(); + } +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 ConfigRecordValue::_internal_uint64() const { + if (_internal_has_uint64()) { + return value_.uint64_; + } + return uint64_t{0u}; +} +inline void ConfigRecordValue::_internal_set_uint64(::PROTOBUF_NAMESPACE_ID::uint64 value) { + if (!_internal_has_uint64()) { + clear_value(); + set_has_uint64(); + } + value_.uint64_ = value; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 ConfigRecordValue::uint64() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecordValue.uint64) + return _internal_uint64(); +} +inline void ConfigRecordValue::set_uint64(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_uint64(value); + // @@protoc_insertion_point(field_set:flwr.proto.ConfigRecordValue.uint64) +} + +// bool bool = 4; +inline bool ConfigRecordValue::_internal_has_bool_() const { + return value_case() == kBool; +} +inline bool ConfigRecordValue::has_bool_() const { + return _internal_has_bool_(); +} +inline void ConfigRecordValue::set_has_bool_() { + _oneof_case_[0] = kBool; +} +inline void ConfigRecordValue::clear_bool_() { + if (_internal_has_bool_()) { + value_.bool__ = false; + clear_has_value(); + } +} +inline bool ConfigRecordValue::_internal_bool_() const { + if (_internal_has_bool_()) { + return value_.bool__; + } + return false; +} +inline void ConfigRecordValue::_internal_set_bool_(bool value) { + if (!_internal_has_bool_()) { + clear_value(); + set_has_bool_(); + } + value_.bool__ = value; +} +inline bool ConfigRecordValue::bool_() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecordValue.bool) + return _internal_bool_(); +} +inline void ConfigRecordValue::set_bool_(bool value) { + _internal_set_bool_(value); + // @@protoc_insertion_point(field_set:flwr.proto.ConfigRecordValue.bool) +} + +// string string = 5; +inline bool ConfigRecordValue::_internal_has_string() const { + return value_case() == kString; +} +inline bool ConfigRecordValue::has_string() const { + return _internal_has_string(); +} +inline void ConfigRecordValue::set_has_string() { + _oneof_case_[0] = kString; +} +inline void ConfigRecordValue::clear_string() { + if (_internal_has_string()) { + value_.string_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + clear_has_value(); + } +} +inline const std::string& ConfigRecordValue::string() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecordValue.string) + return _internal_string(); +} +template +inline void ConfigRecordValue::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.ConfigRecordValue.string) +} +inline std::string* ConfigRecordValue::mutable_string() { + std::string* _s = _internal_mutable_string(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigRecordValue.string) + return _s; +} +inline const std::string& ConfigRecordValue::_internal_string() const { + if (_internal_has_string()) { + return value_.string_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void ConfigRecordValue::_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* ConfigRecordValue::_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* ConfigRecordValue::release_string() { + // @@protoc_insertion_point(field_release:flwr.proto.ConfigRecordValue.string) + if (_internal_has_string()) { + clear_has_value(); + return value_.string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + } else { + return nullptr; + } +} +inline void ConfigRecordValue::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.ConfigRecordValue.string) +} + +// bytes bytes = 6; +inline bool ConfigRecordValue::_internal_has_bytes() const { + return value_case() == kBytes; +} +inline bool ConfigRecordValue::has_bytes() const { + return _internal_has_bytes(); +} +inline void ConfigRecordValue::set_has_bytes() { + _oneof_case_[0] = kBytes; +} +inline void ConfigRecordValue::clear_bytes() { + if (_internal_has_bytes()) { + value_.bytes_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + clear_has_value(); + } +} +inline const std::string& ConfigRecordValue::bytes() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecordValue.bytes) + return _internal_bytes(); +} +template +inline void ConfigRecordValue::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.ConfigRecordValue.bytes) +} +inline std::string* ConfigRecordValue::mutable_bytes() { + std::string* _s = _internal_mutable_bytes(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigRecordValue.bytes) + return _s; +} +inline const std::string& ConfigRecordValue::_internal_bytes() const { + if (_internal_has_bytes()) { + return value_.bytes_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void ConfigRecordValue::_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* ConfigRecordValue::_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* ConfigRecordValue::release_bytes() { + // @@protoc_insertion_point(field_release:flwr.proto.ConfigRecordValue.bytes) + if (_internal_has_bytes()) { + clear_has_value(); + return value_.bytes_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + } else { + return nullptr; + } +} +inline void ConfigRecordValue::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.ConfigRecordValue.bytes) +} + +// .flwr.proto.DoubleList double_list = 21; +inline bool ConfigRecordValue::_internal_has_double_list() const { + return value_case() == kDoubleList; +} +inline bool ConfigRecordValue::has_double_list() const { + return _internal_has_double_list(); +} +inline void ConfigRecordValue::set_has_double_list() { + _oneof_case_[0] = kDoubleList; +} +inline void ConfigRecordValue::clear_double_list() { + if (_internal_has_double_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.double_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::DoubleList* ConfigRecordValue::release_double_list() { + // @@protoc_insertion_point(field_release:flwr.proto.ConfigRecordValue.double_list) + if (_internal_has_double_list()) { + clear_has_value(); + ::flwr::proto::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::DoubleList& ConfigRecordValue::_internal_double_list() const { + return _internal_has_double_list() + ? *value_.double_list_ + : reinterpret_cast< ::flwr::proto::DoubleList&>(::flwr::proto::_DoubleList_default_instance_); +} +inline const ::flwr::proto::DoubleList& ConfigRecordValue::double_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecordValue.double_list) + return _internal_double_list(); +} +inline ::flwr::proto::DoubleList* ConfigRecordValue::unsafe_arena_release_double_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ConfigRecordValue.double_list) + if (_internal_has_double_list()) { + clear_has_value(); + ::flwr::proto::DoubleList* temp = value_.double_list_; + value_.double_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ConfigRecordValue::unsafe_arena_set_allocated_double_list(::flwr::proto::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.ConfigRecordValue.double_list) +} +inline ::flwr::proto::DoubleList* ConfigRecordValue::_internal_mutable_double_list() { + if (!_internal_has_double_list()) { + clear_value(); + set_has_double_list(); + value_.double_list_ = CreateMaybeMessage< ::flwr::proto::DoubleList >(GetArenaForAllocation()); + } + return value_.double_list_; +} +inline ::flwr::proto::DoubleList* ConfigRecordValue::mutable_double_list() { + ::flwr::proto::DoubleList* _msg = _internal_mutable_double_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigRecordValue.double_list) + return _msg; +} + +// .flwr.proto.SintList sint_list = 22; +inline bool ConfigRecordValue::_internal_has_sint_list() const { + return value_case() == kSintList; +} +inline bool ConfigRecordValue::has_sint_list() const { + return _internal_has_sint_list(); +} +inline void ConfigRecordValue::set_has_sint_list() { + _oneof_case_[0] = kSintList; +} +inline void ConfigRecordValue::clear_sint_list() { + if (_internal_has_sint_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.sint_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::SintList* ConfigRecordValue::release_sint_list() { + // @@protoc_insertion_point(field_release:flwr.proto.ConfigRecordValue.sint_list) + if (_internal_has_sint_list()) { + clear_has_value(); + ::flwr::proto::SintList* temp = value_.sint_list_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + value_.sint_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::SintList& ConfigRecordValue::_internal_sint_list() const { + return _internal_has_sint_list() + ? *value_.sint_list_ + : reinterpret_cast< ::flwr::proto::SintList&>(::flwr::proto::_SintList_default_instance_); +} +inline const ::flwr::proto::SintList& ConfigRecordValue::sint_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecordValue.sint_list) + return _internal_sint_list(); +} +inline ::flwr::proto::SintList* ConfigRecordValue::unsafe_arena_release_sint_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ConfigRecordValue.sint_list) + if (_internal_has_sint_list()) { + clear_has_value(); + ::flwr::proto::SintList* temp = value_.sint_list_; + value_.sint_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ConfigRecordValue::unsafe_arena_set_allocated_sint_list(::flwr::proto::SintList* sint_list) { + clear_value(); + if (sint_list) { + set_has_sint_list(); + value_.sint_list_ = sint_list; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ConfigRecordValue.sint_list) +} +inline ::flwr::proto::SintList* ConfigRecordValue::_internal_mutable_sint_list() { + if (!_internal_has_sint_list()) { + clear_value(); + set_has_sint_list(); + value_.sint_list_ = CreateMaybeMessage< ::flwr::proto::SintList >(GetArenaForAllocation()); + } + return value_.sint_list_; +} +inline ::flwr::proto::SintList* ConfigRecordValue::mutable_sint_list() { + ::flwr::proto::SintList* _msg = _internal_mutable_sint_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigRecordValue.sint_list) + return _msg; +} + +// .flwr.proto.UintList uint_list = 23; +inline bool ConfigRecordValue::_internal_has_uint_list() const { + return value_case() == kUintList; +} +inline bool ConfigRecordValue::has_uint_list() const { + return _internal_has_uint_list(); +} +inline void ConfigRecordValue::set_has_uint_list() { + _oneof_case_[0] = kUintList; +} +inline void ConfigRecordValue::clear_uint_list() { + if (_internal_has_uint_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.uint_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::UintList* ConfigRecordValue::release_uint_list() { + // @@protoc_insertion_point(field_release:flwr.proto.ConfigRecordValue.uint_list) + if (_internal_has_uint_list()) { + clear_has_value(); + ::flwr::proto::UintList* temp = value_.uint_list_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + value_.uint_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::UintList& ConfigRecordValue::_internal_uint_list() const { + return _internal_has_uint_list() + ? *value_.uint_list_ + : reinterpret_cast< ::flwr::proto::UintList&>(::flwr::proto::_UintList_default_instance_); +} +inline const ::flwr::proto::UintList& ConfigRecordValue::uint_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecordValue.uint_list) + return _internal_uint_list(); +} +inline ::flwr::proto::UintList* ConfigRecordValue::unsafe_arena_release_uint_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ConfigRecordValue.uint_list) + if (_internal_has_uint_list()) { + clear_has_value(); + ::flwr::proto::UintList* temp = value_.uint_list_; + value_.uint_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ConfigRecordValue::unsafe_arena_set_allocated_uint_list(::flwr::proto::UintList* uint_list) { + clear_value(); + if (uint_list) { + set_has_uint_list(); + value_.uint_list_ = uint_list; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ConfigRecordValue.uint_list) +} +inline ::flwr::proto::UintList* ConfigRecordValue::_internal_mutable_uint_list() { + if (!_internal_has_uint_list()) { + clear_value(); + set_has_uint_list(); + value_.uint_list_ = CreateMaybeMessage< ::flwr::proto::UintList >(GetArenaForAllocation()); + } + return value_.uint_list_; +} +inline ::flwr::proto::UintList* ConfigRecordValue::mutable_uint_list() { + ::flwr::proto::UintList* _msg = _internal_mutable_uint_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigRecordValue.uint_list) + return _msg; +} + +// .flwr.proto.BoolList bool_list = 24; +inline bool ConfigRecordValue::_internal_has_bool_list() const { + return value_case() == kBoolList; +} +inline bool ConfigRecordValue::has_bool_list() const { + return _internal_has_bool_list(); +} +inline void ConfigRecordValue::set_has_bool_list() { + _oneof_case_[0] = kBoolList; +} +inline void ConfigRecordValue::clear_bool_list() { + if (_internal_has_bool_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.bool_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::BoolList* ConfigRecordValue::release_bool_list() { + // @@protoc_insertion_point(field_release:flwr.proto.ConfigRecordValue.bool_list) + if (_internal_has_bool_list()) { + clear_has_value(); + ::flwr::proto::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::BoolList& ConfigRecordValue::_internal_bool_list() const { + return _internal_has_bool_list() + ? *value_.bool_list_ + : reinterpret_cast< ::flwr::proto::BoolList&>(::flwr::proto::_BoolList_default_instance_); +} +inline const ::flwr::proto::BoolList& ConfigRecordValue::bool_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecordValue.bool_list) + return _internal_bool_list(); +} +inline ::flwr::proto::BoolList* ConfigRecordValue::unsafe_arena_release_bool_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ConfigRecordValue.bool_list) + if (_internal_has_bool_list()) { + clear_has_value(); + ::flwr::proto::BoolList* temp = value_.bool_list_; + value_.bool_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ConfigRecordValue::unsafe_arena_set_allocated_bool_list(::flwr::proto::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.ConfigRecordValue.bool_list) +} +inline ::flwr::proto::BoolList* ConfigRecordValue::_internal_mutable_bool_list() { + if (!_internal_has_bool_list()) { + clear_value(); + set_has_bool_list(); + value_.bool_list_ = CreateMaybeMessage< ::flwr::proto::BoolList >(GetArenaForAllocation()); + } + return value_.bool_list_; +} +inline ::flwr::proto::BoolList* ConfigRecordValue::mutable_bool_list() { + ::flwr::proto::BoolList* _msg = _internal_mutable_bool_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigRecordValue.bool_list) + return _msg; +} + +// .flwr.proto.StringList string_list = 25; +inline bool ConfigRecordValue::_internal_has_string_list() const { + return value_case() == kStringList; +} +inline bool ConfigRecordValue::has_string_list() const { + return _internal_has_string_list(); +} +inline void ConfigRecordValue::set_has_string_list() { + _oneof_case_[0] = kStringList; +} +inline void ConfigRecordValue::clear_string_list() { + if (_internal_has_string_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.string_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::StringList* ConfigRecordValue::release_string_list() { + // @@protoc_insertion_point(field_release:flwr.proto.ConfigRecordValue.string_list) + if (_internal_has_string_list()) { + clear_has_value(); + ::flwr::proto::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::StringList& ConfigRecordValue::_internal_string_list() const { + return _internal_has_string_list() + ? *value_.string_list_ + : reinterpret_cast< ::flwr::proto::StringList&>(::flwr::proto::_StringList_default_instance_); +} +inline const ::flwr::proto::StringList& ConfigRecordValue::string_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecordValue.string_list) + return _internal_string_list(); +} +inline ::flwr::proto::StringList* ConfigRecordValue::unsafe_arena_release_string_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ConfigRecordValue.string_list) + if (_internal_has_string_list()) { + clear_has_value(); + ::flwr::proto::StringList* temp = value_.string_list_; + value_.string_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ConfigRecordValue::unsafe_arena_set_allocated_string_list(::flwr::proto::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.ConfigRecordValue.string_list) +} +inline ::flwr::proto::StringList* ConfigRecordValue::_internal_mutable_string_list() { + if (!_internal_has_string_list()) { + clear_value(); + set_has_string_list(); + value_.string_list_ = CreateMaybeMessage< ::flwr::proto::StringList >(GetArenaForAllocation()); + } + return value_.string_list_; +} +inline ::flwr::proto::StringList* ConfigRecordValue::mutable_string_list() { + ::flwr::proto::StringList* _msg = _internal_mutable_string_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigRecordValue.string_list) + return _msg; +} + +// .flwr.proto.BytesList bytes_list = 26; +inline bool ConfigRecordValue::_internal_has_bytes_list() const { + return value_case() == kBytesList; +} +inline bool ConfigRecordValue::has_bytes_list() const { + return _internal_has_bytes_list(); +} +inline void ConfigRecordValue::set_has_bytes_list() { + _oneof_case_[0] = kBytesList; +} +inline void ConfigRecordValue::clear_bytes_list() { + if (_internal_has_bytes_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.bytes_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::BytesList* ConfigRecordValue::release_bytes_list() { + // @@protoc_insertion_point(field_release:flwr.proto.ConfigRecordValue.bytes_list) + if (_internal_has_bytes_list()) { + clear_has_value(); + ::flwr::proto::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::BytesList& ConfigRecordValue::_internal_bytes_list() const { + return _internal_has_bytes_list() + ? *value_.bytes_list_ + : reinterpret_cast< ::flwr::proto::BytesList&>(::flwr::proto::_BytesList_default_instance_); +} +inline const ::flwr::proto::BytesList& ConfigRecordValue::bytes_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecordValue.bytes_list) + return _internal_bytes_list(); +} +inline ::flwr::proto::BytesList* ConfigRecordValue::unsafe_arena_release_bytes_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ConfigRecordValue.bytes_list) + if (_internal_has_bytes_list()) { + clear_has_value(); + ::flwr::proto::BytesList* temp = value_.bytes_list_; + value_.bytes_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ConfigRecordValue::unsafe_arena_set_allocated_bytes_list(::flwr::proto::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.ConfigRecordValue.bytes_list) +} +inline ::flwr::proto::BytesList* ConfigRecordValue::_internal_mutable_bytes_list() { + if (!_internal_has_bytes_list()) { + clear_value(); + set_has_bytes_list(); + value_.bytes_list_ = CreateMaybeMessage< ::flwr::proto::BytesList >(GetArenaForAllocation()); + } + return value_.bytes_list_; +} +inline ::flwr::proto::BytesList* ConfigRecordValue::mutable_bytes_list() { + ::flwr::proto::BytesList* _msg = _internal_mutable_bytes_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigRecordValue.bytes_list) + return _msg; +} + +inline bool ConfigRecordValue::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void ConfigRecordValue::clear_has_value() { + _oneof_case_[0] = VALUE_NOT_SET; +} +inline ConfigRecordValue::ValueCase ConfigRecordValue::value_case() const { + return ConfigRecordValue::ValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ArrayRecord_Item + +// string key = 1; +inline void ArrayRecord_Item::clear_key() { + key_.ClearToEmpty(); +} +inline const std::string& ArrayRecord_Item::key() const { + // @@protoc_insertion_point(field_get:flwr.proto.ArrayRecord.Item.key) + return _internal_key(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ArrayRecord_Item::set_key(ArgT0&& arg0, ArgT... args) { + + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.ArrayRecord.Item.key) +} +inline std::string* ArrayRecord_Item::mutable_key() { + std::string* _s = _internal_mutable_key(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ArrayRecord.Item.key) + return _s; +} +inline const std::string& ArrayRecord_Item::_internal_key() const { + return key_.Get(); +} +inline void ArrayRecord_Item::_internal_set_key(const std::string& value) { + + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ArrayRecord_Item::_internal_mutable_key() { + + return key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ArrayRecord_Item::release_key() { + // @@protoc_insertion_point(field_release:flwr.proto.ArrayRecord.Item.key) + return key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ArrayRecord_Item::set_allocated_key(std::string* key) { + if (key != nullptr) { + + } else { + + } + key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ArrayRecord.Item.key) +} + +// .flwr.proto.Array value = 2; +inline bool ArrayRecord_Item::_internal_has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} +inline bool ArrayRecord_Item::has_value() const { + return _internal_has_value(); +} +inline void ArrayRecord_Item::clear_value() { + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; +} +inline const ::flwr::proto::Array& ArrayRecord_Item::_internal_value() const { + const ::flwr::proto::Array* p = value_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Array_default_instance_); +} +inline const ::flwr::proto::Array& ArrayRecord_Item::value() const { + // @@protoc_insertion_point(field_get:flwr.proto.ArrayRecord.Item.value) + return _internal_value(); +} +inline void ArrayRecord_Item::unsafe_arena_set_allocated_value( + ::flwr::proto::Array* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_); + } + value_ = value; + if (value) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ArrayRecord.Item.value) +} +inline ::flwr::proto::Array* ArrayRecord_Item::release_value() { + + ::flwr::proto::Array* temp = value_; + value_ = 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::Array* ArrayRecord_Item::unsafe_arena_release_value() { + // @@protoc_insertion_point(field_release:flwr.proto.ArrayRecord.Item.value) + + ::flwr::proto::Array* temp = value_; + value_ = nullptr; + return temp; +} +inline ::flwr::proto::Array* ArrayRecord_Item::_internal_mutable_value() { + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Array>(GetArenaForAllocation()); + value_ = p; + } + return value_; +} +inline ::flwr::proto::Array* ArrayRecord_Item::mutable_value() { + ::flwr::proto::Array* _msg = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ArrayRecord.Item.value) + return _msg; +} +inline void ArrayRecord_Item::set_allocated_value(::flwr::proto::Array* value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete value_; + } + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Array>::GetOwningArena(value); + if (message_arena != submessage_arena) { + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + value_ = value; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ArrayRecord.Item.value) +} + +// ------------------------------------------------------------------- + +// ArrayRecord + +// repeated .flwr.proto.ArrayRecord.Item items = 1; +inline int ArrayRecord::_internal_items_size() const { + return items_.size(); +} +inline int ArrayRecord::items_size() const { + return _internal_items_size(); +} +inline void ArrayRecord::clear_items() { + items_.Clear(); +} +inline ::flwr::proto::ArrayRecord_Item* ArrayRecord::mutable_items(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.ArrayRecord.items) + return items_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ArrayRecord_Item >* +ArrayRecord::mutable_items() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.ArrayRecord.items) + return &items_; +} +inline const ::flwr::proto::ArrayRecord_Item& ArrayRecord::_internal_items(int index) const { + return items_.Get(index); +} +inline const ::flwr::proto::ArrayRecord_Item& ArrayRecord::items(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.ArrayRecord.items) + return _internal_items(index); +} +inline ::flwr::proto::ArrayRecord_Item* ArrayRecord::_internal_add_items() { + return items_.Add(); +} +inline ::flwr::proto::ArrayRecord_Item* ArrayRecord::add_items() { + ::flwr::proto::ArrayRecord_Item* _add = _internal_add_items(); + // @@protoc_insertion_point(field_add:flwr.proto.ArrayRecord.items) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ArrayRecord_Item >& +ArrayRecord::items() const { + // @@protoc_insertion_point(field_list:flwr.proto.ArrayRecord.items) + return items_; +} + +// ------------------------------------------------------------------- + +// MetricRecord_Item + +// string key = 1; +inline void MetricRecord_Item::clear_key() { + key_.ClearToEmpty(); +} +inline const std::string& MetricRecord_Item::key() const { + // @@protoc_insertion_point(field_get:flwr.proto.MetricRecord.Item.key) + return _internal_key(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MetricRecord_Item::set_key(ArgT0&& arg0, ArgT... args) { + + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.MetricRecord.Item.key) +} +inline std::string* MetricRecord_Item::mutable_key() { + std::string* _s = _internal_mutable_key(); + // @@protoc_insertion_point(field_mutable:flwr.proto.MetricRecord.Item.key) + return _s; +} +inline const std::string& MetricRecord_Item::_internal_key() const { + return key_.Get(); +} +inline void MetricRecord_Item::_internal_set_key(const std::string& value) { + + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* MetricRecord_Item::_internal_mutable_key() { + + return key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* MetricRecord_Item::release_key() { + // @@protoc_insertion_point(field_release:flwr.proto.MetricRecord.Item.key) + return key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void MetricRecord_Item::set_allocated_key(std::string* key) { + if (key != nullptr) { + + } else { + + } + key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.MetricRecord.Item.key) +} + +// .flwr.proto.MetricRecordValue value = 2; +inline bool MetricRecord_Item::_internal_has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} +inline bool MetricRecord_Item::has_value() const { + return _internal_has_value(); +} +inline void MetricRecord_Item::clear_value() { + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; +} +inline const ::flwr::proto::MetricRecordValue& MetricRecord_Item::_internal_value() const { + const ::flwr::proto::MetricRecordValue* p = value_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_MetricRecordValue_default_instance_); +} +inline const ::flwr::proto::MetricRecordValue& MetricRecord_Item::value() const { + // @@protoc_insertion_point(field_get:flwr.proto.MetricRecord.Item.value) + return _internal_value(); +} +inline void MetricRecord_Item::unsafe_arena_set_allocated_value( + ::flwr::proto::MetricRecordValue* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_); + } + value_ = value; + if (value) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.MetricRecord.Item.value) +} +inline ::flwr::proto::MetricRecordValue* MetricRecord_Item::release_value() { + + ::flwr::proto::MetricRecordValue* temp = value_; + value_ = 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::MetricRecordValue* MetricRecord_Item::unsafe_arena_release_value() { + // @@protoc_insertion_point(field_release:flwr.proto.MetricRecord.Item.value) + + ::flwr::proto::MetricRecordValue* temp = value_; + value_ = nullptr; + return temp; +} +inline ::flwr::proto::MetricRecordValue* MetricRecord_Item::_internal_mutable_value() { + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::MetricRecordValue>(GetArenaForAllocation()); + value_ = p; + } + return value_; +} +inline ::flwr::proto::MetricRecordValue* MetricRecord_Item::mutable_value() { + ::flwr::proto::MetricRecordValue* _msg = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:flwr.proto.MetricRecord.Item.value) + return _msg; +} +inline void MetricRecord_Item::set_allocated_value(::flwr::proto::MetricRecordValue* value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete value_; + } + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::MetricRecordValue>::GetOwningArena(value); + if (message_arena != submessage_arena) { + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + value_ = value; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.MetricRecord.Item.value) +} + +// ------------------------------------------------------------------- + +// MetricRecord + +// repeated .flwr.proto.MetricRecord.Item items = 1; +inline int MetricRecord::_internal_items_size() const { + return items_.size(); +} +inline int MetricRecord::items_size() const { + return _internal_items_size(); +} +inline void MetricRecord::clear_items() { + items_.Clear(); +} +inline ::flwr::proto::MetricRecord_Item* MetricRecord::mutable_items(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.MetricRecord.items) + return items_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::MetricRecord_Item >* +MetricRecord::mutable_items() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.MetricRecord.items) + return &items_; +} +inline const ::flwr::proto::MetricRecord_Item& MetricRecord::_internal_items(int index) const { + return items_.Get(index); +} +inline const ::flwr::proto::MetricRecord_Item& MetricRecord::items(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.MetricRecord.items) + return _internal_items(index); +} +inline ::flwr::proto::MetricRecord_Item* MetricRecord::_internal_add_items() { + return items_.Add(); +} +inline ::flwr::proto::MetricRecord_Item* MetricRecord::add_items() { + ::flwr::proto::MetricRecord_Item* _add = _internal_add_items(); + // @@protoc_insertion_point(field_add:flwr.proto.MetricRecord.items) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::MetricRecord_Item >& +MetricRecord::items() const { + // @@protoc_insertion_point(field_list:flwr.proto.MetricRecord.items) + return items_; +} + +// ------------------------------------------------------------------- + +// ConfigRecord_Item + +// string key = 1; +inline void ConfigRecord_Item::clear_key() { + key_.ClearToEmpty(); +} +inline const std::string& ConfigRecord_Item::key() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecord.Item.key) + return _internal_key(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ConfigRecord_Item::set_key(ArgT0&& arg0, ArgT... args) { + + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.ConfigRecord.Item.key) +} +inline std::string* ConfigRecord_Item::mutable_key() { + std::string* _s = _internal_mutable_key(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigRecord.Item.key) + return _s; +} +inline const std::string& ConfigRecord_Item::_internal_key() const { + return key_.Get(); +} +inline void ConfigRecord_Item::_internal_set_key(const std::string& value) { + + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ConfigRecord_Item::_internal_mutable_key() { + + return key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ConfigRecord_Item::release_key() { + // @@protoc_insertion_point(field_release:flwr.proto.ConfigRecord.Item.key) + return key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ConfigRecord_Item::set_allocated_key(std::string* key) { + if (key != nullptr) { + + } else { + + } + key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfigRecord.Item.key) +} + +// .flwr.proto.ConfigRecordValue value = 2; +inline bool ConfigRecord_Item::_internal_has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} +inline bool ConfigRecord_Item::has_value() const { + return _internal_has_value(); +} +inline void ConfigRecord_Item::clear_value() { + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; +} +inline const ::flwr::proto::ConfigRecordValue& ConfigRecord_Item::_internal_value() const { + const ::flwr::proto::ConfigRecordValue* p = value_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_ConfigRecordValue_default_instance_); +} +inline const ::flwr::proto::ConfigRecordValue& ConfigRecord_Item::value() const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecord.Item.value) + return _internal_value(); +} +inline void ConfigRecord_Item::unsafe_arena_set_allocated_value( + ::flwr::proto::ConfigRecordValue* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_); + } + value_ = value; + if (value) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ConfigRecord.Item.value) +} +inline ::flwr::proto::ConfigRecordValue* ConfigRecord_Item::release_value() { + + ::flwr::proto::ConfigRecordValue* temp = value_; + value_ = 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::ConfigRecordValue* ConfigRecord_Item::unsafe_arena_release_value() { + // @@protoc_insertion_point(field_release:flwr.proto.ConfigRecord.Item.value) + + ::flwr::proto::ConfigRecordValue* temp = value_; + value_ = nullptr; + return temp; +} +inline ::flwr::proto::ConfigRecordValue* ConfigRecord_Item::_internal_mutable_value() { + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::ConfigRecordValue>(GetArenaForAllocation()); + value_ = p; + } + return value_; +} +inline ::flwr::proto::ConfigRecordValue* ConfigRecord_Item::mutable_value() { + ::flwr::proto::ConfigRecordValue* _msg = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigRecord.Item.value) + return _msg; +} +inline void ConfigRecord_Item::set_allocated_value(::flwr::proto::ConfigRecordValue* value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete value_; + } + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::ConfigRecordValue>::GetOwningArena(value); + if (message_arena != submessage_arena) { + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + value_ = value; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ConfigRecord.Item.value) +} + +// ------------------------------------------------------------------- + +// ConfigRecord + +// repeated .flwr.proto.ConfigRecord.Item items = 1; +inline int ConfigRecord::_internal_items_size() const { + return items_.size(); +} +inline int ConfigRecord::items_size() const { + return _internal_items_size(); +} +inline void ConfigRecord::clear_items() { + items_.Clear(); +} +inline ::flwr::proto::ConfigRecord_Item* ConfigRecord::mutable_items(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigRecord.items) + return items_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ConfigRecord_Item >* +ConfigRecord::mutable_items() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.ConfigRecord.items) + return &items_; +} +inline const ::flwr::proto::ConfigRecord_Item& ConfigRecord::_internal_items(int index) const { + return items_.Get(index); +} +inline const ::flwr::proto::ConfigRecord_Item& ConfigRecord::items(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.ConfigRecord.items) + return _internal_items(index); +} +inline ::flwr::proto::ConfigRecord_Item* ConfigRecord::_internal_add_items() { + return items_.Add(); +} +inline ::flwr::proto::ConfigRecord_Item* ConfigRecord::add_items() { + ::flwr::proto::ConfigRecord_Item* _add = _internal_add_items(); + // @@protoc_insertion_point(field_add:flwr.proto.ConfigRecord.items) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::ConfigRecord_Item >& +ConfigRecord::items() const { + // @@protoc_insertion_point(field_list:flwr.proto.ConfigRecord.items) + return items_; +} + +// ------------------------------------------------------------------- + +// RecordDict_Item + +// string key = 1; +inline void RecordDict_Item::clear_key() { + key_.ClearToEmpty(); +} +inline const std::string& RecordDict_Item::key() const { + // @@protoc_insertion_point(field_get:flwr.proto.RecordDict.Item.key) + return _internal_key(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RecordDict_Item::set_key(ArgT0&& arg0, ArgT... args) { + + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.RecordDict.Item.key) +} +inline std::string* RecordDict_Item::mutable_key() { + std::string* _s = _internal_mutable_key(); + // @@protoc_insertion_point(field_mutable:flwr.proto.RecordDict.Item.key) + return _s; +} +inline const std::string& RecordDict_Item::_internal_key() const { + return key_.Get(); +} +inline void RecordDict_Item::_internal_set_key(const std::string& value) { + + key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* RecordDict_Item::_internal_mutable_key() { + + return key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* RecordDict_Item::release_key() { + // @@protoc_insertion_point(field_release:flwr.proto.RecordDict.Item.key) + return key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void RecordDict_Item::set_allocated_key(std::string* key) { + if (key != nullptr) { + + } else { + + } + key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.RecordDict.Item.key) +} + +// .flwr.proto.ArrayRecord array_record = 2; +inline bool RecordDict_Item::_internal_has_array_record() const { + return value_case() == kArrayRecord; +} +inline bool RecordDict_Item::has_array_record() const { + return _internal_has_array_record(); +} +inline void RecordDict_Item::set_has_array_record() { + _oneof_case_[0] = kArrayRecord; +} +inline void RecordDict_Item::clear_array_record() { + if (_internal_has_array_record()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.array_record_; + } + clear_has_value(); + } +} +inline ::flwr::proto::ArrayRecord* RecordDict_Item::release_array_record() { + // @@protoc_insertion_point(field_release:flwr.proto.RecordDict.Item.array_record) + if (_internal_has_array_record()) { + clear_has_value(); + ::flwr::proto::ArrayRecord* temp = value_.array_record_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + value_.array_record_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::ArrayRecord& RecordDict_Item::_internal_array_record() const { + return _internal_has_array_record() + ? *value_.array_record_ + : reinterpret_cast< ::flwr::proto::ArrayRecord&>(::flwr::proto::_ArrayRecord_default_instance_); +} +inline const ::flwr::proto::ArrayRecord& RecordDict_Item::array_record() const { + // @@protoc_insertion_point(field_get:flwr.proto.RecordDict.Item.array_record) + return _internal_array_record(); +} +inline ::flwr::proto::ArrayRecord* RecordDict_Item::unsafe_arena_release_array_record() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.RecordDict.Item.array_record) + if (_internal_has_array_record()) { + clear_has_value(); + ::flwr::proto::ArrayRecord* temp = value_.array_record_; + value_.array_record_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void RecordDict_Item::unsafe_arena_set_allocated_array_record(::flwr::proto::ArrayRecord* array_record) { + clear_value(); + if (array_record) { + set_has_array_record(); + value_.array_record_ = array_record; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.RecordDict.Item.array_record) +} +inline ::flwr::proto::ArrayRecord* RecordDict_Item::_internal_mutable_array_record() { + if (!_internal_has_array_record()) { + clear_value(); + set_has_array_record(); + value_.array_record_ = CreateMaybeMessage< ::flwr::proto::ArrayRecord >(GetArenaForAllocation()); + } + return value_.array_record_; +} +inline ::flwr::proto::ArrayRecord* RecordDict_Item::mutable_array_record() { + ::flwr::proto::ArrayRecord* _msg = _internal_mutable_array_record(); + // @@protoc_insertion_point(field_mutable:flwr.proto.RecordDict.Item.array_record) + return _msg; +} + +// .flwr.proto.MetricRecord metric_record = 3; +inline bool RecordDict_Item::_internal_has_metric_record() const { + return value_case() == kMetricRecord; +} +inline bool RecordDict_Item::has_metric_record() const { + return _internal_has_metric_record(); +} +inline void RecordDict_Item::set_has_metric_record() { + _oneof_case_[0] = kMetricRecord; +} +inline void RecordDict_Item::clear_metric_record() { + if (_internal_has_metric_record()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.metric_record_; + } + clear_has_value(); + } +} +inline ::flwr::proto::MetricRecord* RecordDict_Item::release_metric_record() { + // @@protoc_insertion_point(field_release:flwr.proto.RecordDict.Item.metric_record) + if (_internal_has_metric_record()) { + clear_has_value(); + ::flwr::proto::MetricRecord* temp = value_.metric_record_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + value_.metric_record_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::MetricRecord& RecordDict_Item::_internal_metric_record() const { + return _internal_has_metric_record() + ? *value_.metric_record_ + : reinterpret_cast< ::flwr::proto::MetricRecord&>(::flwr::proto::_MetricRecord_default_instance_); +} +inline const ::flwr::proto::MetricRecord& RecordDict_Item::metric_record() const { + // @@protoc_insertion_point(field_get:flwr.proto.RecordDict.Item.metric_record) + return _internal_metric_record(); +} +inline ::flwr::proto::MetricRecord* RecordDict_Item::unsafe_arena_release_metric_record() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.RecordDict.Item.metric_record) + if (_internal_has_metric_record()) { + clear_has_value(); + ::flwr::proto::MetricRecord* temp = value_.metric_record_; + value_.metric_record_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void RecordDict_Item::unsafe_arena_set_allocated_metric_record(::flwr::proto::MetricRecord* metric_record) { + clear_value(); + if (metric_record) { + set_has_metric_record(); + value_.metric_record_ = metric_record; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.RecordDict.Item.metric_record) +} +inline ::flwr::proto::MetricRecord* RecordDict_Item::_internal_mutable_metric_record() { + if (!_internal_has_metric_record()) { + clear_value(); + set_has_metric_record(); + value_.metric_record_ = CreateMaybeMessage< ::flwr::proto::MetricRecord >(GetArenaForAllocation()); + } + return value_.metric_record_; +} +inline ::flwr::proto::MetricRecord* RecordDict_Item::mutable_metric_record() { + ::flwr::proto::MetricRecord* _msg = _internal_mutable_metric_record(); + // @@protoc_insertion_point(field_mutable:flwr.proto.RecordDict.Item.metric_record) + return _msg; +} + +// .flwr.proto.ConfigRecord config_record = 4; +inline bool RecordDict_Item::_internal_has_config_record() const { + return value_case() == kConfigRecord; +} +inline bool RecordDict_Item::has_config_record() const { + return _internal_has_config_record(); +} +inline void RecordDict_Item::set_has_config_record() { + _oneof_case_[0] = kConfigRecord; +} +inline void RecordDict_Item::clear_config_record() { + if (_internal_has_config_record()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.config_record_; + } + clear_has_value(); + } +} +inline ::flwr::proto::ConfigRecord* RecordDict_Item::release_config_record() { + // @@protoc_insertion_point(field_release:flwr.proto.RecordDict.Item.config_record) + if (_internal_has_config_record()) { + clear_has_value(); + ::flwr::proto::ConfigRecord* temp = value_.config_record_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + value_.config_record_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::ConfigRecord& RecordDict_Item::_internal_config_record() const { + return _internal_has_config_record() + ? *value_.config_record_ + : reinterpret_cast< ::flwr::proto::ConfigRecord&>(::flwr::proto::_ConfigRecord_default_instance_); +} +inline const ::flwr::proto::ConfigRecord& RecordDict_Item::config_record() const { + // @@protoc_insertion_point(field_get:flwr.proto.RecordDict.Item.config_record) + return _internal_config_record(); +} +inline ::flwr::proto::ConfigRecord* RecordDict_Item::unsafe_arena_release_config_record() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.RecordDict.Item.config_record) + if (_internal_has_config_record()) { + clear_has_value(); + ::flwr::proto::ConfigRecord* temp = value_.config_record_; + value_.config_record_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void RecordDict_Item::unsafe_arena_set_allocated_config_record(::flwr::proto::ConfigRecord* config_record) { + clear_value(); + if (config_record) { + set_has_config_record(); + value_.config_record_ = config_record; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.RecordDict.Item.config_record) +} +inline ::flwr::proto::ConfigRecord* RecordDict_Item::_internal_mutable_config_record() { + if (!_internal_has_config_record()) { + clear_value(); + set_has_config_record(); + value_.config_record_ = CreateMaybeMessage< ::flwr::proto::ConfigRecord >(GetArenaForAllocation()); + } + return value_.config_record_; +} +inline ::flwr::proto::ConfigRecord* RecordDict_Item::mutable_config_record() { + ::flwr::proto::ConfigRecord* _msg = _internal_mutable_config_record(); + // @@protoc_insertion_point(field_mutable:flwr.proto.RecordDict.Item.config_record) + return _msg; +} + +inline bool RecordDict_Item::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void RecordDict_Item::clear_has_value() { + _oneof_case_[0] = VALUE_NOT_SET; +} +inline RecordDict_Item::ValueCase RecordDict_Item::value_case() const { + return RecordDict_Item::ValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// RecordDict + +// repeated .flwr.proto.RecordDict.Item items = 1; +inline int RecordDict::_internal_items_size() const { + return items_.size(); +} +inline int RecordDict::items_size() const { + return _internal_items_size(); +} +inline void RecordDict::clear_items() { + items_.Clear(); +} +inline ::flwr::proto::RecordDict_Item* RecordDict::mutable_items(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.RecordDict.items) + return items_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::RecordDict_Item >* +RecordDict::mutable_items() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.RecordDict.items) + return &items_; +} +inline const ::flwr::proto::RecordDict_Item& RecordDict::_internal_items(int index) const { + return items_.Get(index); +} +inline const ::flwr::proto::RecordDict_Item& RecordDict::items(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.RecordDict.items) + return _internal_items(index); +} +inline ::flwr::proto::RecordDict_Item* RecordDict::_internal_add_items() { + return items_.Add(); +} +inline ::flwr::proto::RecordDict_Item* RecordDict::add_items() { + ::flwr::proto::RecordDict_Item* _add = _internal_add_items(); + // @@protoc_insertion_point(field_add:flwr.proto.RecordDict.items) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::RecordDict_Item >& +RecordDict::items() const { + // @@protoc_insertion_point(field_list:flwr.proto.RecordDict.items) + return items_; +} + +#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_2frecorddict_2eproto diff --git a/framework/cc/flwr/include/flwr/proto/recordset.pb.h b/framework/cc/flwr/include/flwr/proto/recordset.pb.h deleted file mode 100644 index 74c336cf61ad..000000000000 --- a/framework/cc/flwr/include/flwr/proto/recordset.pb.h +++ /dev/null @@ -1,4255 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flwr/proto/recordset.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2frecordset_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2frecordset_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 -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flwr_2fproto_2frecordset_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_2frecordset_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[17] - 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_2frecordset_2eproto; -namespace flwr { -namespace proto { -class Array; -struct ArrayDefaultTypeInternal; -extern ArrayDefaultTypeInternal _Array_default_instance_; -class BoolList; -struct BoolListDefaultTypeInternal; -extern BoolListDefaultTypeInternal _BoolList_default_instance_; -class BytesList; -struct BytesListDefaultTypeInternal; -extern BytesListDefaultTypeInternal _BytesList_default_instance_; -class ConfigsRecord; -struct ConfigsRecordDefaultTypeInternal; -extern ConfigsRecordDefaultTypeInternal _ConfigsRecord_default_instance_; -class ConfigsRecordValue; -struct ConfigsRecordValueDefaultTypeInternal; -extern ConfigsRecordValueDefaultTypeInternal _ConfigsRecordValue_default_instance_; -class ConfigsRecord_DataEntry_DoNotUse; -struct ConfigsRecord_DataEntry_DoNotUseDefaultTypeInternal; -extern ConfigsRecord_DataEntry_DoNotUseDefaultTypeInternal _ConfigsRecord_DataEntry_DoNotUse_default_instance_; -class DoubleList; -struct DoubleListDefaultTypeInternal; -extern DoubleListDefaultTypeInternal _DoubleList_default_instance_; -class MetricsRecord; -struct MetricsRecordDefaultTypeInternal; -extern MetricsRecordDefaultTypeInternal _MetricsRecord_default_instance_; -class MetricsRecordValue; -struct MetricsRecordValueDefaultTypeInternal; -extern MetricsRecordValueDefaultTypeInternal _MetricsRecordValue_default_instance_; -class MetricsRecord_DataEntry_DoNotUse; -struct MetricsRecord_DataEntry_DoNotUseDefaultTypeInternal; -extern MetricsRecord_DataEntry_DoNotUseDefaultTypeInternal _MetricsRecord_DataEntry_DoNotUse_default_instance_; -class ParametersRecord; -struct ParametersRecordDefaultTypeInternal; -extern ParametersRecordDefaultTypeInternal _ParametersRecord_default_instance_; -class RecordSet; -struct RecordSetDefaultTypeInternal; -extern RecordSetDefaultTypeInternal _RecordSet_default_instance_; -class RecordSet_ConfigsEntry_DoNotUse; -struct RecordSet_ConfigsEntry_DoNotUseDefaultTypeInternal; -extern RecordSet_ConfigsEntry_DoNotUseDefaultTypeInternal _RecordSet_ConfigsEntry_DoNotUse_default_instance_; -class RecordSet_MetricsEntry_DoNotUse; -struct RecordSet_MetricsEntry_DoNotUseDefaultTypeInternal; -extern RecordSet_MetricsEntry_DoNotUseDefaultTypeInternal _RecordSet_MetricsEntry_DoNotUse_default_instance_; -class RecordSet_ParametersEntry_DoNotUse; -struct RecordSet_ParametersEntry_DoNotUseDefaultTypeInternal; -extern RecordSet_ParametersEntry_DoNotUseDefaultTypeInternal _RecordSet_ParametersEntry_DoNotUse_default_instance_; -class Sint64List; -struct Sint64ListDefaultTypeInternal; -extern Sint64ListDefaultTypeInternal _Sint64List_default_instance_; -class StringList; -struct StringListDefaultTypeInternal; -extern StringListDefaultTypeInternal _StringList_default_instance_; -} // namespace proto -} // namespace flwr -PROTOBUF_NAMESPACE_OPEN -template<> ::flwr::proto::Array* Arena::CreateMaybeMessage<::flwr::proto::Array>(Arena*); -template<> ::flwr::proto::BoolList* Arena::CreateMaybeMessage<::flwr::proto::BoolList>(Arena*); -template<> ::flwr::proto::BytesList* Arena::CreateMaybeMessage<::flwr::proto::BytesList>(Arena*); -template<> ::flwr::proto::ConfigsRecord* Arena::CreateMaybeMessage<::flwr::proto::ConfigsRecord>(Arena*); -template<> ::flwr::proto::ConfigsRecordValue* Arena::CreateMaybeMessage<::flwr::proto::ConfigsRecordValue>(Arena*); -template<> ::flwr::proto::ConfigsRecord_DataEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::ConfigsRecord_DataEntry_DoNotUse>(Arena*); -template<> ::flwr::proto::DoubleList* Arena::CreateMaybeMessage<::flwr::proto::DoubleList>(Arena*); -template<> ::flwr::proto::MetricsRecord* Arena::CreateMaybeMessage<::flwr::proto::MetricsRecord>(Arena*); -template<> ::flwr::proto::MetricsRecordValue* Arena::CreateMaybeMessage<::flwr::proto::MetricsRecordValue>(Arena*); -template<> ::flwr::proto::MetricsRecord_DataEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::MetricsRecord_DataEntry_DoNotUse>(Arena*); -template<> ::flwr::proto::ParametersRecord* Arena::CreateMaybeMessage<::flwr::proto::ParametersRecord>(Arena*); -template<> ::flwr::proto::RecordSet* Arena::CreateMaybeMessage<::flwr::proto::RecordSet>(Arena*); -template<> ::flwr::proto::RecordSet_ConfigsEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::RecordSet_ConfigsEntry_DoNotUse>(Arena*); -template<> ::flwr::proto::RecordSet_MetricsEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::RecordSet_MetricsEntry_DoNotUse>(Arena*); -template<> ::flwr::proto::RecordSet_ParametersEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::RecordSet_ParametersEntry_DoNotUse>(Arena*); -template<> ::flwr::proto::Sint64List* Arena::CreateMaybeMessage<::flwr::proto::Sint64List>(Arena*); -template<> ::flwr::proto::StringList* Arena::CreateMaybeMessage<::flwr::proto::StringList>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace flwr { -namespace proto { - -// =================================================================== - -class DoubleList final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.DoubleList) */ { - public: - inline DoubleList() : DoubleList(nullptr) {} - ~DoubleList() override; - explicit constexpr DoubleList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DoubleList(const DoubleList& from); - DoubleList(DoubleList&& from) noexcept - : DoubleList() { - *this = ::std::move(from); - } - - inline DoubleList& operator=(const DoubleList& from) { - CopyFrom(from); - return *this; - } - inline DoubleList& operator=(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 DoubleList& default_instance() { - return *internal_default_instance(); - } - static inline const DoubleList* internal_default_instance() { - return reinterpret_cast( - &_DoubleList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(DoubleList& a, DoubleList& b) { - a.Swap(&b); - } - inline void Swap(DoubleList* other) { - if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DoubleList* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline DoubleList* New() const final { - return new DoubleList(); - } - - DoubleList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DoubleList& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const 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(DoubleList* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.DoubleList"; - } - protected: - explicit 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.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_2frecordset_2eproto; -}; -// ------------------------------------------------------------------- - -class Sint64List final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Sint64List) */ { - public: - inline Sint64List() : Sint64List(nullptr) {} - ~Sint64List() override; - explicit constexpr Sint64List(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Sint64List(const Sint64List& from); - Sint64List(Sint64List&& from) noexcept - : Sint64List() { - *this = ::std::move(from); - } - - inline Sint64List& operator=(const Sint64List& from) { - CopyFrom(from); - return *this; - } - inline Sint64List& operator=(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 Sint64List& default_instance() { - return *internal_default_instance(); - } - static inline const Sint64List* internal_default_instance() { - return reinterpret_cast( - &_Sint64List_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Sint64List& a, Sint64List& b) { - a.Swap(&b); - } - inline void Swap(Sint64List* other) { - if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Sint64List* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Sint64List* New() const final { - return new Sint64List(); - } - - Sint64List* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Sint64List& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const 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(Sint64List* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.Sint64List"; - } - protected: - explicit 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.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_2frecordset_2eproto; -}; -// ------------------------------------------------------------------- - -class BoolList final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.BoolList) */ { - public: - inline BoolList() : BoolList(nullptr) {} - ~BoolList() override; - explicit constexpr BoolList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BoolList(const BoolList& from); - BoolList(BoolList&& from) noexcept - : BoolList() { - *this = ::std::move(from); - } - - inline BoolList& operator=(const BoolList& from) { - CopyFrom(from); - return *this; - } - inline BoolList& operator=(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 BoolList& default_instance() { - return *internal_default_instance(); - } - static inline const BoolList* internal_default_instance() { - return reinterpret_cast( - &_BoolList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(BoolList& a, BoolList& b) { - a.Swap(&b); - } - inline void Swap(BoolList* other) { - if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BoolList* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline BoolList* New() const final { - return new BoolList(); - } - - BoolList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const BoolList& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const 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(BoolList* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.BoolList"; - } - protected: - explicit 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.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_2frecordset_2eproto; -}; -// ------------------------------------------------------------------- - -class StringList final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.StringList) */ { - public: - inline StringList() : StringList(nullptr) {} - ~StringList() override; - explicit constexpr StringList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - StringList(const StringList& from); - StringList(StringList&& from) noexcept - : StringList() { - *this = ::std::move(from); - } - - inline StringList& operator=(const StringList& from) { - CopyFrom(from); - return *this; - } - inline StringList& operator=(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 StringList& default_instance() { - return *internal_default_instance(); - } - static inline const StringList* internal_default_instance() { - return reinterpret_cast( - &_StringList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(StringList& a, StringList& b) { - a.Swap(&b); - } - inline void Swap(StringList* other) { - if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(StringList* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline StringList* New() const final { - return new StringList(); - } - - StringList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StringList& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const 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(StringList* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.StringList"; - } - protected: - explicit 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.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_2frecordset_2eproto; -}; -// ------------------------------------------------------------------- - -class BytesList final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.BytesList) */ { - public: - inline BytesList() : BytesList(nullptr) {} - ~BytesList() override; - explicit constexpr BytesList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BytesList(const BytesList& from); - BytesList(BytesList&& from) noexcept - : BytesList() { - *this = ::std::move(from); - } - - inline BytesList& operator=(const BytesList& from) { - CopyFrom(from); - return *this; - } - inline BytesList& operator=(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 BytesList& default_instance() { - return *internal_default_instance(); - } - static inline const BytesList* internal_default_instance() { - return reinterpret_cast( - &_BytesList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(BytesList& a, BytesList& b) { - a.Swap(&b); - } - inline void Swap(BytesList* other) { - if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BytesList* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline BytesList* New() const final { - return new BytesList(); - } - - BytesList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const BytesList& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const 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(BytesList* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.BytesList"; - } - protected: - explicit 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.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_2frecordset_2eproto; -}; -// ------------------------------------------------------------------- - -class Array final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Array) */ { - public: - inline Array() : Array(nullptr) {} - ~Array() override; - explicit constexpr Array(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Array(const Array& from); - Array(Array&& from) noexcept - : Array() { - *this = ::std::move(from); - } - - inline Array& operator=(const Array& from) { - CopyFrom(from); - return *this; - } - inline Array& operator=(Array&& 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 Array& default_instance() { - return *internal_default_instance(); - } - static inline const Array* internal_default_instance() { - return reinterpret_cast( - &_Array_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(Array& a, Array& b) { - a.Swap(&b); - } - inline void Swap(Array* other) { - if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Array* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Array* New() const final { - return new Array(); - } - - Array* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Array& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const Array& 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(Array* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.Array"; - } - protected: - explicit Array(::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 { - kShapeFieldNumber = 2, - kDtypeFieldNumber = 1, - kStypeFieldNumber = 3, - kDataFieldNumber = 4, - }; - // repeated int32 shape = 2; - int shape_size() const; - private: - int _internal_shape_size() const; - public: - void clear_shape(); - private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_shape(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& - _internal_shape() const; - void _internal_add_shape(::PROTOBUF_NAMESPACE_ID::int32 value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* - _internal_mutable_shape(); - public: - ::PROTOBUF_NAMESPACE_ID::int32 shape(int index) const; - void set_shape(int index, ::PROTOBUF_NAMESPACE_ID::int32 value); - void add_shape(::PROTOBUF_NAMESPACE_ID::int32 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& - shape() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* - mutable_shape(); - - // string dtype = 1; - void clear_dtype(); - const std::string& dtype() const; - template - void set_dtype(ArgT0&& arg0, ArgT... args); - std::string* mutable_dtype(); - PROTOBUF_MUST_USE_RESULT std::string* release_dtype(); - void set_allocated_dtype(std::string* dtype); - private: - const std::string& _internal_dtype() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_dtype(const std::string& value); - std::string* _internal_mutable_dtype(); - public: - - // string stype = 3; - void clear_stype(); - const std::string& stype() const; - template - void set_stype(ArgT0&& arg0, ArgT... args); - std::string* mutable_stype(); - PROTOBUF_MUST_USE_RESULT std::string* release_stype(); - void set_allocated_stype(std::string* stype); - private: - const std::string& _internal_stype() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_stype(const std::string& value); - std::string* _internal_mutable_stype(); - public: - - // bytes data = 4; - void clear_data(); - const std::string& data() const; - template - void set_data(ArgT0&& arg0, ArgT... args); - std::string* mutable_data(); - PROTOBUF_MUST_USE_RESULT std::string* release_data(); - void set_allocated_data(std::string* data); - private: - const std::string& _internal_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); - std::string* _internal_mutable_data(); - public: - - // @@protoc_insertion_point(class_scope:flwr.proto.Array) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > shape_; - mutable std::atomic _shape_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dtype_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stype_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flwr_2fproto_2frecordset_2eproto; -}; -// ------------------------------------------------------------------- - -class MetricsRecordValue final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.MetricsRecordValue) */ { - public: - inline MetricsRecordValue() : MetricsRecordValue(nullptr) {} - ~MetricsRecordValue() override; - explicit constexpr MetricsRecordValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - MetricsRecordValue(const MetricsRecordValue& from); - MetricsRecordValue(MetricsRecordValue&& from) noexcept - : MetricsRecordValue() { - *this = ::std::move(from); - } - - inline MetricsRecordValue& operator=(const MetricsRecordValue& from) { - CopyFrom(from); - return *this; - } - inline MetricsRecordValue& operator=(MetricsRecordValue&& 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 MetricsRecordValue& default_instance() { - return *internal_default_instance(); - } - enum ValueCase { - kDouble = 1, - kSint64 = 2, - kDoubleList = 21, - kSint64List = 22, - VALUE_NOT_SET = 0, - }; - - static inline const MetricsRecordValue* internal_default_instance() { - return reinterpret_cast( - &_MetricsRecordValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(MetricsRecordValue& a, MetricsRecordValue& b) { - a.Swap(&b); - } - inline void Swap(MetricsRecordValue* other) { - if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MetricsRecordValue* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MetricsRecordValue* New() const final { - return new MetricsRecordValue(); - } - - MetricsRecordValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MetricsRecordValue& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MetricsRecordValue& 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(MetricsRecordValue* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.MetricsRecordValue"; - } - protected: - explicit MetricsRecordValue(::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 = 2, - kDoubleListFieldNumber = 21, - kSint64ListFieldNumber = 22, - }; - // 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: - - // .flwr.proto.DoubleList double_list = 21; - bool has_double_list() const; - private: - bool _internal_has_double_list() const; - public: - void clear_double_list(); - const ::flwr::proto::DoubleList& double_list() const; - PROTOBUF_MUST_USE_RESULT ::flwr::proto::DoubleList* release_double_list(); - ::flwr::proto::DoubleList* mutable_double_list(); - void set_allocated_double_list(::flwr::proto::DoubleList* double_list); - private: - const ::flwr::proto::DoubleList& _internal_double_list() const; - ::flwr::proto::DoubleList* _internal_mutable_double_list(); - public: - void unsafe_arena_set_allocated_double_list( - ::flwr::proto::DoubleList* double_list); - ::flwr::proto::DoubleList* unsafe_arena_release_double_list(); - - // .flwr.proto.Sint64List sint64_list = 22; - bool has_sint64_list() const; - private: - bool _internal_has_sint64_list() const; - public: - void clear_sint64_list(); - const ::flwr::proto::Sint64List& sint64_list() const; - PROTOBUF_MUST_USE_RESULT ::flwr::proto::Sint64List* release_sint64_list(); - ::flwr::proto::Sint64List* mutable_sint64_list(); - void set_allocated_sint64_list(::flwr::proto::Sint64List* sint64_list); - private: - const ::flwr::proto::Sint64List& _internal_sint64_list() const; - ::flwr::proto::Sint64List* _internal_mutable_sint64_list(); - public: - void unsafe_arena_set_allocated_sint64_list( - ::flwr::proto::Sint64List* sint64_list); - ::flwr::proto::Sint64List* unsafe_arena_release_sint64_list(); - - void clear_value(); - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:flwr.proto.MetricsRecordValue) - private: - class _Internal; - void set_has_double_(); - void set_has_sint64(); - void set_has_double_list(); - void set_has_sint64_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_; - ::flwr::proto::DoubleList* double_list_; - ::flwr::proto::Sint64List* sint64_list_; - } value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flwr_2fproto_2frecordset_2eproto; -}; -// ------------------------------------------------------------------- - -class ConfigsRecordValue final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ConfigsRecordValue) */ { - public: - inline ConfigsRecordValue() : ConfigsRecordValue(nullptr) {} - ~ConfigsRecordValue() override; - explicit constexpr ConfigsRecordValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConfigsRecordValue(const ConfigsRecordValue& from); - ConfigsRecordValue(ConfigsRecordValue&& from) noexcept - : ConfigsRecordValue() { - *this = ::std::move(from); - } - - inline ConfigsRecordValue& operator=(const ConfigsRecordValue& from) { - CopyFrom(from); - return *this; - } - inline ConfigsRecordValue& operator=(ConfigsRecordValue&& 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 ConfigsRecordValue& 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 ConfigsRecordValue* internal_default_instance() { - return reinterpret_cast( - &_ConfigsRecordValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(ConfigsRecordValue& a, ConfigsRecordValue& b) { - a.Swap(&b); - } - inline void Swap(ConfigsRecordValue* other) { - if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConfigsRecordValue* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ConfigsRecordValue* New() const final { - return new ConfigsRecordValue(); - } - - ConfigsRecordValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ConfigsRecordValue& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ConfigsRecordValue& 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(ConfigsRecordValue* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.ConfigsRecordValue"; - } - protected: - explicit ConfigsRecordValue(::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 = 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.DoubleList double_list = 21; - bool has_double_list() const; - private: - bool _internal_has_double_list() const; - public: - void clear_double_list(); - const ::flwr::proto::DoubleList& double_list() const; - PROTOBUF_MUST_USE_RESULT ::flwr::proto::DoubleList* release_double_list(); - ::flwr::proto::DoubleList* mutable_double_list(); - void set_allocated_double_list(::flwr::proto::DoubleList* double_list); - private: - const ::flwr::proto::DoubleList& _internal_double_list() const; - ::flwr::proto::DoubleList* _internal_mutable_double_list(); - public: - void unsafe_arena_set_allocated_double_list( - ::flwr::proto::DoubleList* double_list); - ::flwr::proto::DoubleList* unsafe_arena_release_double_list(); - - // .flwr.proto.Sint64List sint64_list = 22; - bool has_sint64_list() const; - private: - bool _internal_has_sint64_list() const; - public: - void clear_sint64_list(); - const ::flwr::proto::Sint64List& sint64_list() const; - PROTOBUF_MUST_USE_RESULT ::flwr::proto::Sint64List* release_sint64_list(); - ::flwr::proto::Sint64List* mutable_sint64_list(); - void set_allocated_sint64_list(::flwr::proto::Sint64List* sint64_list); - private: - const ::flwr::proto::Sint64List& _internal_sint64_list() const; - ::flwr::proto::Sint64List* _internal_mutable_sint64_list(); - public: - void unsafe_arena_set_allocated_sint64_list( - ::flwr::proto::Sint64List* sint64_list); - ::flwr::proto::Sint64List* unsafe_arena_release_sint64_list(); - - // .flwr.proto.BoolList bool_list = 23; - bool has_bool_list() const; - private: - bool _internal_has_bool_list() const; - public: - void clear_bool_list(); - const ::flwr::proto::BoolList& bool_list() const; - PROTOBUF_MUST_USE_RESULT ::flwr::proto::BoolList* release_bool_list(); - ::flwr::proto::BoolList* mutable_bool_list(); - void set_allocated_bool_list(::flwr::proto::BoolList* bool_list); - private: - const ::flwr::proto::BoolList& _internal_bool_list() const; - ::flwr::proto::BoolList* _internal_mutable_bool_list(); - public: - void unsafe_arena_set_allocated_bool_list( - ::flwr::proto::BoolList* bool_list); - ::flwr::proto::BoolList* unsafe_arena_release_bool_list(); - - // .flwr.proto.StringList string_list = 24; - bool has_string_list() const; - private: - bool _internal_has_string_list() const; - public: - void clear_string_list(); - const ::flwr::proto::StringList& string_list() const; - PROTOBUF_MUST_USE_RESULT ::flwr::proto::StringList* release_string_list(); - ::flwr::proto::StringList* mutable_string_list(); - void set_allocated_string_list(::flwr::proto::StringList* string_list); - private: - const ::flwr::proto::StringList& _internal_string_list() const; - ::flwr::proto::StringList* _internal_mutable_string_list(); - public: - void unsafe_arena_set_allocated_string_list( - ::flwr::proto::StringList* string_list); - ::flwr::proto::StringList* unsafe_arena_release_string_list(); - - // .flwr.proto.BytesList bytes_list = 25; - bool has_bytes_list() const; - private: - bool _internal_has_bytes_list() const; - public: - void clear_bytes_list(); - const ::flwr::proto::BytesList& bytes_list() const; - PROTOBUF_MUST_USE_RESULT ::flwr::proto::BytesList* release_bytes_list(); - ::flwr::proto::BytesList* mutable_bytes_list(); - void set_allocated_bytes_list(::flwr::proto::BytesList* bytes_list); - private: - const ::flwr::proto::BytesList& _internal_bytes_list() const; - ::flwr::proto::BytesList* _internal_mutable_bytes_list(); - public: - void unsafe_arena_set_allocated_bytes_list( - ::flwr::proto::BytesList* bytes_list); - ::flwr::proto::BytesList* unsafe_arena_release_bytes_list(); - - void clear_value(); - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:flwr.proto.ConfigsRecordValue) - 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::DoubleList* double_list_; - ::flwr::proto::Sint64List* sint64_list_; - ::flwr::proto::BoolList* bool_list_; - ::flwr::proto::StringList* string_list_; - ::flwr::proto::BytesList* bytes_list_; - } value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flwr_2fproto_2frecordset_2eproto; -}; -// ------------------------------------------------------------------- - -class ParametersRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ParametersRecord) */ { - public: - inline ParametersRecord() : ParametersRecord(nullptr) {} - ~ParametersRecord() override; - explicit constexpr ParametersRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ParametersRecord(const ParametersRecord& from); - ParametersRecord(ParametersRecord&& from) noexcept - : ParametersRecord() { - *this = ::std::move(from); - } - - inline ParametersRecord& operator=(const ParametersRecord& from) { - CopyFrom(from); - return *this; - } - inline ParametersRecord& operator=(ParametersRecord&& 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 ParametersRecord& default_instance() { - return *internal_default_instance(); - } - static inline const ParametersRecord* internal_default_instance() { - return reinterpret_cast( - &_ParametersRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(ParametersRecord& a, ParametersRecord& b) { - a.Swap(&b); - } - inline void Swap(ParametersRecord* other) { - if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ParametersRecord* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ParametersRecord* New() const final { - return new ParametersRecord(); - } - - ParametersRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ParametersRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ParametersRecord& 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(ParametersRecord* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.ParametersRecord"; - } - protected: - explicit ParametersRecord(::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 { - kDataKeysFieldNumber = 1, - kDataValuesFieldNumber = 2, - }; - // repeated string data_keys = 1; - int data_keys_size() const; - private: - int _internal_data_keys_size() const; - public: - void clear_data_keys(); - const std::string& data_keys(int index) const; - std::string* mutable_data_keys(int index); - void set_data_keys(int index, const std::string& value); - void set_data_keys(int index, std::string&& value); - void set_data_keys(int index, const char* value); - void set_data_keys(int index, const char* value, size_t size); - std::string* add_data_keys(); - void add_data_keys(const std::string& value); - void add_data_keys(std::string&& value); - void add_data_keys(const char* value); - void add_data_keys(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& data_keys() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_data_keys(); - private: - const std::string& _internal_data_keys(int index) const; - std::string* _internal_add_data_keys(); - public: - - // repeated .flwr.proto.Array data_values = 2; - int data_values_size() const; - private: - int _internal_data_values_size() const; - public: - void clear_data_values(); - ::flwr::proto::Array* mutable_data_values(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Array >* - mutable_data_values(); - private: - const ::flwr::proto::Array& _internal_data_values(int index) const; - ::flwr::proto::Array* _internal_add_data_values(); - public: - const ::flwr::proto::Array& data_values(int index) const; - ::flwr::proto::Array* add_data_values(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Array >& - data_values() const; - - // @@protoc_insertion_point(class_scope:flwr.proto.ParametersRecord) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField data_keys_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Array > data_values_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flwr_2fproto_2frecordset_2eproto; -}; -// ------------------------------------------------------------------- - -class MetricsRecord_DataEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - MetricsRecord_DataEntry_DoNotUse(); - explicit constexpr MetricsRecord_DataEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit MetricsRecord_DataEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const MetricsRecord_DataEntry_DoNotUse& other); - static const MetricsRecord_DataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_MetricsRecord_DataEntry_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.MetricsRecord.DataEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; -}; - -// ------------------------------------------------------------------- - -class MetricsRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.MetricsRecord) */ { - public: - inline MetricsRecord() : MetricsRecord(nullptr) {} - ~MetricsRecord() override; - explicit constexpr MetricsRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - MetricsRecord(const MetricsRecord& from); - MetricsRecord(MetricsRecord&& from) noexcept - : MetricsRecord() { - *this = ::std::move(from); - } - - inline MetricsRecord& operator=(const MetricsRecord& from) { - CopyFrom(from); - return *this; - } - inline MetricsRecord& operator=(MetricsRecord&& 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 MetricsRecord& default_instance() { - return *internal_default_instance(); - } - static inline const MetricsRecord* internal_default_instance() { - return reinterpret_cast( - &_MetricsRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(MetricsRecord& a, MetricsRecord& b) { - a.Swap(&b); - } - inline void Swap(MetricsRecord* other) { - if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MetricsRecord* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline MetricsRecord* New() const final { - return new MetricsRecord(); - } - - MetricsRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MetricsRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MetricsRecord& 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(MetricsRecord* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.MetricsRecord"; - } - protected: - explicit MetricsRecord(::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 { - kDataFieldNumber = 1, - }; - // map data = 1; - int data_size() const; - private: - int _internal_data_size() const; - public: - void clear_data(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecordValue >& - _internal_data() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecordValue >* - _internal_mutable_data(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecordValue >& - data() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecordValue >* - mutable_data(); - - // @@protoc_insertion_point(class_scope:flwr.proto.MetricsRecord) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - MetricsRecord_DataEntry_DoNotUse, - std::string, ::flwr::proto::MetricsRecordValue, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flwr_2fproto_2frecordset_2eproto; -}; -// ------------------------------------------------------------------- - -class ConfigsRecord_DataEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - ConfigsRecord_DataEntry_DoNotUse(); - explicit constexpr ConfigsRecord_DataEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit ConfigsRecord_DataEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const ConfigsRecord_DataEntry_DoNotUse& other); - static const ConfigsRecord_DataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ConfigsRecord_DataEntry_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.ConfigsRecord.DataEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; -}; - -// ------------------------------------------------------------------- - -class ConfigsRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ConfigsRecord) */ { - public: - inline ConfigsRecord() : ConfigsRecord(nullptr) {} - ~ConfigsRecord() override; - explicit constexpr ConfigsRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConfigsRecord(const ConfigsRecord& from); - ConfigsRecord(ConfigsRecord&& from) noexcept - : ConfigsRecord() { - *this = ::std::move(from); - } - - inline ConfigsRecord& operator=(const ConfigsRecord& from) { - CopyFrom(from); - return *this; - } - inline ConfigsRecord& operator=(ConfigsRecord&& 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 ConfigsRecord& default_instance() { - return *internal_default_instance(); - } - static inline const ConfigsRecord* internal_default_instance() { - return reinterpret_cast( - &_ConfigsRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(ConfigsRecord& a, ConfigsRecord& b) { - a.Swap(&b); - } - inline void Swap(ConfigsRecord* other) { - if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConfigsRecord* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ConfigsRecord* New() const final { - return new ConfigsRecord(); - } - - ConfigsRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ConfigsRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ConfigsRecord& 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(ConfigsRecord* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.ConfigsRecord"; - } - protected: - explicit ConfigsRecord(::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 { - kDataFieldNumber = 1, - }; - // map data = 1; - int data_size() const; - private: - int _internal_data_size() const; - public: - void clear_data(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecordValue >& - _internal_data() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecordValue >* - _internal_mutable_data(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecordValue >& - data() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecordValue >* - mutable_data(); - - // @@protoc_insertion_point(class_scope:flwr.proto.ConfigsRecord) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - ConfigsRecord_DataEntry_DoNotUse, - std::string, ::flwr::proto::ConfigsRecordValue, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flwr_2fproto_2frecordset_2eproto; -}; -// ------------------------------------------------------------------- - -class RecordSet_ParametersEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - RecordSet_ParametersEntry_DoNotUse(); - explicit constexpr RecordSet_ParametersEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit RecordSet_ParametersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const RecordSet_ParametersEntry_DoNotUse& other); - static const RecordSet_ParametersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_RecordSet_ParametersEntry_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.RecordSet.ParametersEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; -}; - -// ------------------------------------------------------------------- - -class RecordSet_MetricsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - RecordSet_MetricsEntry_DoNotUse(); - explicit constexpr RecordSet_MetricsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit RecordSet_MetricsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const RecordSet_MetricsEntry_DoNotUse& other); - static const RecordSet_MetricsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_RecordSet_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.RecordSet.MetricsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; -}; - -// ------------------------------------------------------------------- - -class RecordSet_ConfigsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - RecordSet_ConfigsEntry_DoNotUse(); - explicit constexpr RecordSet_ConfigsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit RecordSet_ConfigsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const RecordSet_ConfigsEntry_DoNotUse& other); - static const RecordSet_ConfigsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_RecordSet_ConfigsEntry_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.RecordSet.ConfigsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; -}; - -// ------------------------------------------------------------------- - -class RecordSet final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.RecordSet) */ { - public: - inline RecordSet() : RecordSet(nullptr) {} - ~RecordSet() override; - explicit constexpr RecordSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RecordSet(const RecordSet& from); - RecordSet(RecordSet&& from) noexcept - : RecordSet() { - *this = ::std::move(from); - } - - inline RecordSet& operator=(const RecordSet& from) { - CopyFrom(from); - return *this; - } - inline RecordSet& operator=(RecordSet&& 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 RecordSet& default_instance() { - return *internal_default_instance(); - } - static inline const RecordSet* internal_default_instance() { - return reinterpret_cast( - &_RecordSet_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(RecordSet& a, RecordSet& b) { - a.Swap(&b); - } - inline void Swap(RecordSet* other) { - if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RecordSet* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline RecordSet* New() const final { - return new RecordSet(); - } - - RecordSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RecordSet& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const RecordSet& 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(RecordSet* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "flwr.proto.RecordSet"; - } - protected: - explicit RecordSet(::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 { - kParametersFieldNumber = 1, - kMetricsFieldNumber = 2, - kConfigsFieldNumber = 3, - }; - // map parameters = 1; - int parameters_size() const; - private: - int _internal_parameters_size() const; - public: - void clear_parameters(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ParametersRecord >& - _internal_parameters() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ParametersRecord >* - _internal_mutable_parameters(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ParametersRecord >& - parameters() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ParametersRecord >* - mutable_parameters(); - - // map metrics = 2; - int metrics_size() const; - private: - int _internal_metrics_size() const; - public: - void clear_metrics(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecord >& - _internal_metrics() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecord >* - _internal_mutable_metrics(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecord >& - metrics() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecord >* - mutable_metrics(); - - // map configs = 3; - int configs_size() const; - private: - int _internal_configs_size() const; - public: - void clear_configs(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecord >& - _internal_configs() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecord >* - _internal_mutable_configs(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecord >& - configs() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecord >* - mutable_configs(); - - // @@protoc_insertion_point(class_scope:flwr.proto.RecordSet) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - RecordSet_ParametersEntry_DoNotUse, - std::string, ::flwr::proto::ParametersRecord, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> parameters_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - RecordSet_MetricsEntry_DoNotUse, - std::string, ::flwr::proto::MetricsRecord, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> metrics_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - RecordSet_ConfigsEntry_DoNotUse, - std::string, ::flwr::proto::ConfigsRecord, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> configs_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flwr_2fproto_2frecordset_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// DoubleList - -// repeated double vals = 1; -inline int DoubleList::_internal_vals_size() const { - return vals_.size(); -} -inline int DoubleList::vals_size() const { - return _internal_vals_size(); -} -inline void DoubleList::clear_vals() { - vals_.Clear(); -} -inline double DoubleList::_internal_vals(int index) const { - return vals_.Get(index); -} -inline double DoubleList::vals(int index) const { - // @@protoc_insertion_point(field_get:flwr.proto.DoubleList.vals) - return _internal_vals(index); -} -inline void DoubleList::set_vals(int index, double value) { - vals_.Set(index, value); - // @@protoc_insertion_point(field_set:flwr.proto.DoubleList.vals) -} -inline void DoubleList::_internal_add_vals(double value) { - vals_.Add(value); -} -inline void DoubleList::add_vals(double value) { - _internal_add_vals(value); - // @@protoc_insertion_point(field_add:flwr.proto.DoubleList.vals) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -DoubleList::_internal_vals() const { - return vals_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -DoubleList::vals() const { - // @@protoc_insertion_point(field_list:flwr.proto.DoubleList.vals) - return _internal_vals(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -DoubleList::_internal_mutable_vals() { - return &vals_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -DoubleList::mutable_vals() { - // @@protoc_insertion_point(field_mutable_list:flwr.proto.DoubleList.vals) - return _internal_mutable_vals(); -} - -// ------------------------------------------------------------------- - -// Sint64List - -// repeated sint64 vals = 1; -inline int Sint64List::_internal_vals_size() const { - return vals_.size(); -} -inline int Sint64List::vals_size() const { - return _internal_vals_size(); -} -inline void Sint64List::clear_vals() { - vals_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Sint64List::_internal_vals(int index) const { - return vals_.Get(index); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Sint64List::vals(int index) const { - // @@protoc_insertion_point(field_get:flwr.proto.Sint64List.vals) - return _internal_vals(index); -} -inline void Sint64List::set_vals(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - vals_.Set(index, value); - // @@protoc_insertion_point(field_set:flwr.proto.Sint64List.vals) -} -inline void Sint64List::_internal_add_vals(::PROTOBUF_NAMESPACE_ID::int64 value) { - vals_.Add(value); -} -inline void Sint64List::add_vals(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_add_vals(value); - // @@protoc_insertion_point(field_add:flwr.proto.Sint64List.vals) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -Sint64List::_internal_vals() const { - return vals_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -Sint64List::vals() const { - // @@protoc_insertion_point(field_list:flwr.proto.Sint64List.vals) - return _internal_vals(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -Sint64List::_internal_mutable_vals() { - return &vals_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -Sint64List::mutable_vals() { - // @@protoc_insertion_point(field_mutable_list:flwr.proto.Sint64List.vals) - return _internal_mutable_vals(); -} - -// ------------------------------------------------------------------- - -// BoolList - -// repeated bool vals = 1; -inline int BoolList::_internal_vals_size() const { - return vals_.size(); -} -inline int BoolList::vals_size() const { - return _internal_vals_size(); -} -inline void BoolList::clear_vals() { - vals_.Clear(); -} -inline bool BoolList::_internal_vals(int index) const { - return vals_.Get(index); -} -inline bool BoolList::vals(int index) const { - // @@protoc_insertion_point(field_get:flwr.proto.BoolList.vals) - return _internal_vals(index); -} -inline void BoolList::set_vals(int index, bool value) { - vals_.Set(index, value); - // @@protoc_insertion_point(field_set:flwr.proto.BoolList.vals) -} -inline void BoolList::_internal_add_vals(bool value) { - vals_.Add(value); -} -inline void BoolList::add_vals(bool value) { - _internal_add_vals(value); - // @@protoc_insertion_point(field_add:flwr.proto.BoolList.vals) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& -BoolList::_internal_vals() const { - return vals_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& -BoolList::vals() const { - // @@protoc_insertion_point(field_list:flwr.proto.BoolList.vals) - return _internal_vals(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* -BoolList::_internal_mutable_vals() { - return &vals_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* -BoolList::mutable_vals() { - // @@protoc_insertion_point(field_mutable_list:flwr.proto.BoolList.vals) - return _internal_mutable_vals(); -} - -// ------------------------------------------------------------------- - -// StringList - -// repeated string vals = 1; -inline int StringList::_internal_vals_size() const { - return vals_.size(); -} -inline int StringList::vals_size() const { - return _internal_vals_size(); -} -inline void StringList::clear_vals() { - vals_.Clear(); -} -inline std::string* StringList::add_vals() { - std::string* _s = _internal_add_vals(); - // @@protoc_insertion_point(field_add_mutable:flwr.proto.StringList.vals) - return _s; -} -inline const std::string& StringList::_internal_vals(int index) const { - return vals_.Get(index); -} -inline const std::string& StringList::vals(int index) const { - // @@protoc_insertion_point(field_get:flwr.proto.StringList.vals) - return _internal_vals(index); -} -inline std::string* StringList::mutable_vals(int index) { - // @@protoc_insertion_point(field_mutable:flwr.proto.StringList.vals) - return vals_.Mutable(index); -} -inline void StringList::set_vals(int index, const std::string& value) { - vals_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:flwr.proto.StringList.vals) -} -inline void StringList::set_vals(int index, std::string&& value) { - vals_.Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:flwr.proto.StringList.vals) -} -inline void 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.StringList.vals) -} -inline void 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.StringList.vals) -} -inline std::string* StringList::_internal_add_vals() { - return vals_.Add(); -} -inline void StringList::add_vals(const std::string& value) { - vals_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flwr.proto.StringList.vals) -} -inline void StringList::add_vals(std::string&& value) { - vals_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flwr.proto.StringList.vals) -} -inline void StringList::add_vals(const char* value) { - GOOGLE_DCHECK(value != nullptr); - vals_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flwr.proto.StringList.vals) -} -inline void StringList::add_vals(const char* value, size_t size) { - vals_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flwr.proto.StringList.vals) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -StringList::vals() const { - // @@protoc_insertion_point(field_list:flwr.proto.StringList.vals) - return vals_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -StringList::mutable_vals() { - // @@protoc_insertion_point(field_mutable_list:flwr.proto.StringList.vals) - return &vals_; -} - -// ------------------------------------------------------------------- - -// BytesList - -// repeated bytes vals = 1; -inline int BytesList::_internal_vals_size() const { - return vals_.size(); -} -inline int BytesList::vals_size() const { - return _internal_vals_size(); -} -inline void BytesList::clear_vals() { - vals_.Clear(); -} -inline std::string* BytesList::add_vals() { - std::string* _s = _internal_add_vals(); - // @@protoc_insertion_point(field_add_mutable:flwr.proto.BytesList.vals) - return _s; -} -inline const std::string& BytesList::_internal_vals(int index) const { - return vals_.Get(index); -} -inline const std::string& BytesList::vals(int index) const { - // @@protoc_insertion_point(field_get:flwr.proto.BytesList.vals) - return _internal_vals(index); -} -inline std::string* BytesList::mutable_vals(int index) { - // @@protoc_insertion_point(field_mutable:flwr.proto.BytesList.vals) - return vals_.Mutable(index); -} -inline void BytesList::set_vals(int index, const std::string& value) { - vals_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:flwr.proto.BytesList.vals) -} -inline void BytesList::set_vals(int index, std::string&& value) { - vals_.Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:flwr.proto.BytesList.vals) -} -inline void 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.BytesList.vals) -} -inline void 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.BytesList.vals) -} -inline std::string* BytesList::_internal_add_vals() { - return vals_.Add(); -} -inline void BytesList::add_vals(const std::string& value) { - vals_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flwr.proto.BytesList.vals) -} -inline void BytesList::add_vals(std::string&& value) { - vals_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flwr.proto.BytesList.vals) -} -inline void BytesList::add_vals(const char* value) { - GOOGLE_DCHECK(value != nullptr); - vals_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flwr.proto.BytesList.vals) -} -inline void BytesList::add_vals(const void* value, size_t size) { - vals_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flwr.proto.BytesList.vals) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -BytesList::vals() const { - // @@protoc_insertion_point(field_list:flwr.proto.BytesList.vals) - return vals_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -BytesList::mutable_vals() { - // @@protoc_insertion_point(field_mutable_list:flwr.proto.BytesList.vals) - return &vals_; -} - -// ------------------------------------------------------------------- - -// Array - -// string dtype = 1; -inline void Array::clear_dtype() { - dtype_.ClearToEmpty(); -} -inline const std::string& Array::dtype() const { - // @@protoc_insertion_point(field_get:flwr.proto.Array.dtype) - return _internal_dtype(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Array::set_dtype(ArgT0&& arg0, ArgT... args) { - - dtype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:flwr.proto.Array.dtype) -} -inline std::string* Array::mutable_dtype() { - std::string* _s = _internal_mutable_dtype(); - // @@protoc_insertion_point(field_mutable:flwr.proto.Array.dtype) - return _s; -} -inline const std::string& Array::_internal_dtype() const { - return dtype_.Get(); -} -inline void Array::_internal_set_dtype(const std::string& value) { - - dtype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* Array::_internal_mutable_dtype() { - - return dtype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* Array::release_dtype() { - // @@protoc_insertion_point(field_release:flwr.proto.Array.dtype) - return dtype_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -} -inline void Array::set_allocated_dtype(std::string* dtype) { - if (dtype != nullptr) { - - } else { - - } - dtype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), dtype, - GetArenaForAllocation()); - // @@protoc_insertion_point(field_set_allocated:flwr.proto.Array.dtype) -} - -// repeated int32 shape = 2; -inline int Array::_internal_shape_size() const { - return shape_.size(); -} -inline int Array::shape_size() const { - return _internal_shape_size(); -} -inline void Array::clear_shape() { - shape_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Array::_internal_shape(int index) const { - return shape_.Get(index); -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Array::shape(int index) const { - // @@protoc_insertion_point(field_get:flwr.proto.Array.shape) - return _internal_shape(index); -} -inline void Array::set_shape(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) { - shape_.Set(index, value); - // @@protoc_insertion_point(field_set:flwr.proto.Array.shape) -} -inline void Array::_internal_add_shape(::PROTOBUF_NAMESPACE_ID::int32 value) { - shape_.Add(value); -} -inline void Array::add_shape(::PROTOBUF_NAMESPACE_ID::int32 value) { - _internal_add_shape(value); - // @@protoc_insertion_point(field_add:flwr.proto.Array.shape) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& -Array::_internal_shape() const { - return shape_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& -Array::shape() const { - // @@protoc_insertion_point(field_list:flwr.proto.Array.shape) - return _internal_shape(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* -Array::_internal_mutable_shape() { - return &shape_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* -Array::mutable_shape() { - // @@protoc_insertion_point(field_mutable_list:flwr.proto.Array.shape) - return _internal_mutable_shape(); -} - -// string stype = 3; -inline void Array::clear_stype() { - stype_.ClearToEmpty(); -} -inline const std::string& Array::stype() const { - // @@protoc_insertion_point(field_get:flwr.proto.Array.stype) - return _internal_stype(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Array::set_stype(ArgT0&& arg0, ArgT... args) { - - stype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:flwr.proto.Array.stype) -} -inline std::string* Array::mutable_stype() { - std::string* _s = _internal_mutable_stype(); - // @@protoc_insertion_point(field_mutable:flwr.proto.Array.stype) - return _s; -} -inline const std::string& Array::_internal_stype() const { - return stype_.Get(); -} -inline void Array::_internal_set_stype(const std::string& value) { - - stype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* Array::_internal_mutable_stype() { - - return stype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* Array::release_stype() { - // @@protoc_insertion_point(field_release:flwr.proto.Array.stype) - return stype_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -} -inline void Array::set_allocated_stype(std::string* stype) { - if (stype != nullptr) { - - } else { - - } - stype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stype, - GetArenaForAllocation()); - // @@protoc_insertion_point(field_set_allocated:flwr.proto.Array.stype) -} - -// bytes data = 4; -inline void Array::clear_data() { - data_.ClearToEmpty(); -} -inline const std::string& Array::data() const { - // @@protoc_insertion_point(field_get:flwr.proto.Array.data) - return _internal_data(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Array::set_data(ArgT0&& arg0, ArgT... args) { - - data_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:flwr.proto.Array.data) -} -inline std::string* Array::mutable_data() { - std::string* _s = _internal_mutable_data(); - // @@protoc_insertion_point(field_mutable:flwr.proto.Array.data) - return _s; -} -inline const std::string& Array::_internal_data() const { - return data_.Get(); -} -inline void Array::_internal_set_data(const std::string& value) { - - data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* Array::_internal_mutable_data() { - - return data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* Array::release_data() { - // @@protoc_insertion_point(field_release:flwr.proto.Array.data) - return data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -} -inline void Array::set_allocated_data(std::string* data) { - if (data != nullptr) { - - } else { - - } - data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data, - GetArenaForAllocation()); - // @@protoc_insertion_point(field_set_allocated:flwr.proto.Array.data) -} - -// ------------------------------------------------------------------- - -// MetricsRecordValue - -// double double = 1; -inline bool MetricsRecordValue::_internal_has_double_() const { - return value_case() == kDouble; -} -inline bool MetricsRecordValue::has_double_() const { - return _internal_has_double_(); -} -inline void MetricsRecordValue::set_has_double_() { - _oneof_case_[0] = kDouble; -} -inline void MetricsRecordValue::clear_double_() { - if (_internal_has_double_()) { - value_.double__ = 0; - clear_has_value(); - } -} -inline double MetricsRecordValue::_internal_double_() const { - if (_internal_has_double_()) { - return value_.double__; - } - return 0; -} -inline void MetricsRecordValue::_internal_set_double_(double value) { - if (!_internal_has_double_()) { - clear_value(); - set_has_double_(); - } - value_.double__ = value; -} -inline double MetricsRecordValue::double_() const { - // @@protoc_insertion_point(field_get:flwr.proto.MetricsRecordValue.double) - return _internal_double_(); -} -inline void MetricsRecordValue::set_double_(double value) { - _internal_set_double_(value); - // @@protoc_insertion_point(field_set:flwr.proto.MetricsRecordValue.double) -} - -// sint64 sint64 = 2; -inline bool MetricsRecordValue::_internal_has_sint64() const { - return value_case() == kSint64; -} -inline bool MetricsRecordValue::has_sint64() const { - return _internal_has_sint64(); -} -inline void MetricsRecordValue::set_has_sint64() { - _oneof_case_[0] = kSint64; -} -inline void MetricsRecordValue::clear_sint64() { - if (_internal_has_sint64()) { - value_.sint64_ = int64_t{0}; - clear_has_value(); - } -} -inline ::PROTOBUF_NAMESPACE_ID::int64 MetricsRecordValue::_internal_sint64() const { - if (_internal_has_sint64()) { - return value_.sint64_; - } - return int64_t{0}; -} -inline void MetricsRecordValue::_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 MetricsRecordValue::sint64() const { - // @@protoc_insertion_point(field_get:flwr.proto.MetricsRecordValue.sint64) - return _internal_sint64(); -} -inline void MetricsRecordValue::set_sint64(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_sint64(value); - // @@protoc_insertion_point(field_set:flwr.proto.MetricsRecordValue.sint64) -} - -// .flwr.proto.DoubleList double_list = 21; -inline bool MetricsRecordValue::_internal_has_double_list() const { - return value_case() == kDoubleList; -} -inline bool MetricsRecordValue::has_double_list() const { - return _internal_has_double_list(); -} -inline void MetricsRecordValue::set_has_double_list() { - _oneof_case_[0] = kDoubleList; -} -inline void MetricsRecordValue::clear_double_list() { - if (_internal_has_double_list()) { - if (GetArenaForAllocation() == nullptr) { - delete value_.double_list_; - } - clear_has_value(); - } -} -inline ::flwr::proto::DoubleList* MetricsRecordValue::release_double_list() { - // @@protoc_insertion_point(field_release:flwr.proto.MetricsRecordValue.double_list) - if (_internal_has_double_list()) { - clear_has_value(); - ::flwr::proto::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::DoubleList& MetricsRecordValue::_internal_double_list() const { - return _internal_has_double_list() - ? *value_.double_list_ - : reinterpret_cast< ::flwr::proto::DoubleList&>(::flwr::proto::_DoubleList_default_instance_); -} -inline const ::flwr::proto::DoubleList& MetricsRecordValue::double_list() const { - // @@protoc_insertion_point(field_get:flwr.proto.MetricsRecordValue.double_list) - return _internal_double_list(); -} -inline ::flwr::proto::DoubleList* MetricsRecordValue::unsafe_arena_release_double_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.MetricsRecordValue.double_list) - if (_internal_has_double_list()) { - clear_has_value(); - ::flwr::proto::DoubleList* temp = value_.double_list_; - value_.double_list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void MetricsRecordValue::unsafe_arena_set_allocated_double_list(::flwr::proto::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.MetricsRecordValue.double_list) -} -inline ::flwr::proto::DoubleList* MetricsRecordValue::_internal_mutable_double_list() { - if (!_internal_has_double_list()) { - clear_value(); - set_has_double_list(); - value_.double_list_ = CreateMaybeMessage< ::flwr::proto::DoubleList >(GetArenaForAllocation()); - } - return value_.double_list_; -} -inline ::flwr::proto::DoubleList* MetricsRecordValue::mutable_double_list() { - ::flwr::proto::DoubleList* _msg = _internal_mutable_double_list(); - // @@protoc_insertion_point(field_mutable:flwr.proto.MetricsRecordValue.double_list) - return _msg; -} - -// .flwr.proto.Sint64List sint64_list = 22; -inline bool MetricsRecordValue::_internal_has_sint64_list() const { - return value_case() == kSint64List; -} -inline bool MetricsRecordValue::has_sint64_list() const { - return _internal_has_sint64_list(); -} -inline void MetricsRecordValue::set_has_sint64_list() { - _oneof_case_[0] = kSint64List; -} -inline void MetricsRecordValue::clear_sint64_list() { - if (_internal_has_sint64_list()) { - if (GetArenaForAllocation() == nullptr) { - delete value_.sint64_list_; - } - clear_has_value(); - } -} -inline ::flwr::proto::Sint64List* MetricsRecordValue::release_sint64_list() { - // @@protoc_insertion_point(field_release:flwr.proto.MetricsRecordValue.sint64_list) - if (_internal_has_sint64_list()) { - clear_has_value(); - ::flwr::proto::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::Sint64List& MetricsRecordValue::_internal_sint64_list() const { - return _internal_has_sint64_list() - ? *value_.sint64_list_ - : reinterpret_cast< ::flwr::proto::Sint64List&>(::flwr::proto::_Sint64List_default_instance_); -} -inline const ::flwr::proto::Sint64List& MetricsRecordValue::sint64_list() const { - // @@protoc_insertion_point(field_get:flwr.proto.MetricsRecordValue.sint64_list) - return _internal_sint64_list(); -} -inline ::flwr::proto::Sint64List* MetricsRecordValue::unsafe_arena_release_sint64_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.MetricsRecordValue.sint64_list) - if (_internal_has_sint64_list()) { - clear_has_value(); - ::flwr::proto::Sint64List* temp = value_.sint64_list_; - value_.sint64_list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void MetricsRecordValue::unsafe_arena_set_allocated_sint64_list(::flwr::proto::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.MetricsRecordValue.sint64_list) -} -inline ::flwr::proto::Sint64List* MetricsRecordValue::_internal_mutable_sint64_list() { - if (!_internal_has_sint64_list()) { - clear_value(); - set_has_sint64_list(); - value_.sint64_list_ = CreateMaybeMessage< ::flwr::proto::Sint64List >(GetArenaForAllocation()); - } - return value_.sint64_list_; -} -inline ::flwr::proto::Sint64List* MetricsRecordValue::mutable_sint64_list() { - ::flwr::proto::Sint64List* _msg = _internal_mutable_sint64_list(); - // @@protoc_insertion_point(field_mutable:flwr.proto.MetricsRecordValue.sint64_list) - return _msg; -} - -inline bool MetricsRecordValue::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void MetricsRecordValue::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline MetricsRecordValue::ValueCase MetricsRecordValue::value_case() const { - return MetricsRecordValue::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ConfigsRecordValue - -// double double = 1; -inline bool ConfigsRecordValue::_internal_has_double_() const { - return value_case() == kDouble; -} -inline bool ConfigsRecordValue::has_double_() const { - return _internal_has_double_(); -} -inline void ConfigsRecordValue::set_has_double_() { - _oneof_case_[0] = kDouble; -} -inline void ConfigsRecordValue::clear_double_() { - if (_internal_has_double_()) { - value_.double__ = 0; - clear_has_value(); - } -} -inline double ConfigsRecordValue::_internal_double_() const { - if (_internal_has_double_()) { - return value_.double__; - } - return 0; -} -inline void ConfigsRecordValue::_internal_set_double_(double value) { - if (!_internal_has_double_()) { - clear_value(); - set_has_double_(); - } - value_.double__ = value; -} -inline double ConfigsRecordValue::double_() const { - // @@protoc_insertion_point(field_get:flwr.proto.ConfigsRecordValue.double) - return _internal_double_(); -} -inline void ConfigsRecordValue::set_double_(double value) { - _internal_set_double_(value); - // @@protoc_insertion_point(field_set:flwr.proto.ConfigsRecordValue.double) -} - -// sint64 sint64 = 2; -inline bool ConfigsRecordValue::_internal_has_sint64() const { - return value_case() == kSint64; -} -inline bool ConfigsRecordValue::has_sint64() const { - return _internal_has_sint64(); -} -inline void ConfigsRecordValue::set_has_sint64() { - _oneof_case_[0] = kSint64; -} -inline void ConfigsRecordValue::clear_sint64() { - if (_internal_has_sint64()) { - value_.sint64_ = int64_t{0}; - clear_has_value(); - } -} -inline ::PROTOBUF_NAMESPACE_ID::int64 ConfigsRecordValue::_internal_sint64() const { - if (_internal_has_sint64()) { - return value_.sint64_; - } - return int64_t{0}; -} -inline void ConfigsRecordValue::_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 ConfigsRecordValue::sint64() const { - // @@protoc_insertion_point(field_get:flwr.proto.ConfigsRecordValue.sint64) - return _internal_sint64(); -} -inline void ConfigsRecordValue::set_sint64(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_sint64(value); - // @@protoc_insertion_point(field_set:flwr.proto.ConfigsRecordValue.sint64) -} - -// bool bool = 3; -inline bool ConfigsRecordValue::_internal_has_bool_() const { - return value_case() == kBool; -} -inline bool ConfigsRecordValue::has_bool_() const { - return _internal_has_bool_(); -} -inline void ConfigsRecordValue::set_has_bool_() { - _oneof_case_[0] = kBool; -} -inline void ConfigsRecordValue::clear_bool_() { - if (_internal_has_bool_()) { - value_.bool__ = false; - clear_has_value(); - } -} -inline bool ConfigsRecordValue::_internal_bool_() const { - if (_internal_has_bool_()) { - return value_.bool__; - } - return false; -} -inline void ConfigsRecordValue::_internal_set_bool_(bool value) { - if (!_internal_has_bool_()) { - clear_value(); - set_has_bool_(); - } - value_.bool__ = value; -} -inline bool ConfigsRecordValue::bool_() const { - // @@protoc_insertion_point(field_get:flwr.proto.ConfigsRecordValue.bool) - return _internal_bool_(); -} -inline void ConfigsRecordValue::set_bool_(bool value) { - _internal_set_bool_(value); - // @@protoc_insertion_point(field_set:flwr.proto.ConfigsRecordValue.bool) -} - -// string string = 4; -inline bool ConfigsRecordValue::_internal_has_string() const { - return value_case() == kString; -} -inline bool ConfigsRecordValue::has_string() const { - return _internal_has_string(); -} -inline void ConfigsRecordValue::set_has_string() { - _oneof_case_[0] = kString; -} -inline void ConfigsRecordValue::clear_string() { - if (_internal_has_string()) { - value_.string_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); - clear_has_value(); - } -} -inline const std::string& ConfigsRecordValue::string() const { - // @@protoc_insertion_point(field_get:flwr.proto.ConfigsRecordValue.string) - return _internal_string(); -} -template -inline void ConfigsRecordValue::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.ConfigsRecordValue.string) -} -inline std::string* ConfigsRecordValue::mutable_string() { - std::string* _s = _internal_mutable_string(); - // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigsRecordValue.string) - return _s; -} -inline const std::string& ConfigsRecordValue::_internal_string() const { - if (_internal_has_string()) { - return value_.string_.Get(); - } - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void ConfigsRecordValue::_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* ConfigsRecordValue::_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* ConfigsRecordValue::release_string() { - // @@protoc_insertion_point(field_release:flwr.proto.ConfigsRecordValue.string) - if (_internal_has_string()) { - clear_has_value(); - return value_.string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); - } else { - return nullptr; - } -} -inline void ConfigsRecordValue::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.ConfigsRecordValue.string) -} - -// bytes bytes = 5; -inline bool ConfigsRecordValue::_internal_has_bytes() const { - return value_case() == kBytes; -} -inline bool ConfigsRecordValue::has_bytes() const { - return _internal_has_bytes(); -} -inline void ConfigsRecordValue::set_has_bytes() { - _oneof_case_[0] = kBytes; -} -inline void ConfigsRecordValue::clear_bytes() { - if (_internal_has_bytes()) { - value_.bytes_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); - clear_has_value(); - } -} -inline const std::string& ConfigsRecordValue::bytes() const { - // @@protoc_insertion_point(field_get:flwr.proto.ConfigsRecordValue.bytes) - return _internal_bytes(); -} -template -inline void ConfigsRecordValue::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.ConfigsRecordValue.bytes) -} -inline std::string* ConfigsRecordValue::mutable_bytes() { - std::string* _s = _internal_mutable_bytes(); - // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigsRecordValue.bytes) - return _s; -} -inline const std::string& ConfigsRecordValue::_internal_bytes() const { - if (_internal_has_bytes()) { - return value_.bytes_.Get(); - } - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); -} -inline void ConfigsRecordValue::_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* ConfigsRecordValue::_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* ConfigsRecordValue::release_bytes() { - // @@protoc_insertion_point(field_release:flwr.proto.ConfigsRecordValue.bytes) - if (_internal_has_bytes()) { - clear_has_value(); - return value_.bytes_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); - } else { - return nullptr; - } -} -inline void ConfigsRecordValue::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.ConfigsRecordValue.bytes) -} - -// .flwr.proto.DoubleList double_list = 21; -inline bool ConfigsRecordValue::_internal_has_double_list() const { - return value_case() == kDoubleList; -} -inline bool ConfigsRecordValue::has_double_list() const { - return _internal_has_double_list(); -} -inline void ConfigsRecordValue::set_has_double_list() { - _oneof_case_[0] = kDoubleList; -} -inline void ConfigsRecordValue::clear_double_list() { - if (_internal_has_double_list()) { - if (GetArenaForAllocation() == nullptr) { - delete value_.double_list_; - } - clear_has_value(); - } -} -inline ::flwr::proto::DoubleList* ConfigsRecordValue::release_double_list() { - // @@protoc_insertion_point(field_release:flwr.proto.ConfigsRecordValue.double_list) - if (_internal_has_double_list()) { - clear_has_value(); - ::flwr::proto::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::DoubleList& ConfigsRecordValue::_internal_double_list() const { - return _internal_has_double_list() - ? *value_.double_list_ - : reinterpret_cast< ::flwr::proto::DoubleList&>(::flwr::proto::_DoubleList_default_instance_); -} -inline const ::flwr::proto::DoubleList& ConfigsRecordValue::double_list() const { - // @@protoc_insertion_point(field_get:flwr.proto.ConfigsRecordValue.double_list) - return _internal_double_list(); -} -inline ::flwr::proto::DoubleList* ConfigsRecordValue::unsafe_arena_release_double_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ConfigsRecordValue.double_list) - if (_internal_has_double_list()) { - clear_has_value(); - ::flwr::proto::DoubleList* temp = value_.double_list_; - value_.double_list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ConfigsRecordValue::unsafe_arena_set_allocated_double_list(::flwr::proto::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.ConfigsRecordValue.double_list) -} -inline ::flwr::proto::DoubleList* ConfigsRecordValue::_internal_mutable_double_list() { - if (!_internal_has_double_list()) { - clear_value(); - set_has_double_list(); - value_.double_list_ = CreateMaybeMessage< ::flwr::proto::DoubleList >(GetArenaForAllocation()); - } - return value_.double_list_; -} -inline ::flwr::proto::DoubleList* ConfigsRecordValue::mutable_double_list() { - ::flwr::proto::DoubleList* _msg = _internal_mutable_double_list(); - // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigsRecordValue.double_list) - return _msg; -} - -// .flwr.proto.Sint64List sint64_list = 22; -inline bool ConfigsRecordValue::_internal_has_sint64_list() const { - return value_case() == kSint64List; -} -inline bool ConfigsRecordValue::has_sint64_list() const { - return _internal_has_sint64_list(); -} -inline void ConfigsRecordValue::set_has_sint64_list() { - _oneof_case_[0] = kSint64List; -} -inline void ConfigsRecordValue::clear_sint64_list() { - if (_internal_has_sint64_list()) { - if (GetArenaForAllocation() == nullptr) { - delete value_.sint64_list_; - } - clear_has_value(); - } -} -inline ::flwr::proto::Sint64List* ConfigsRecordValue::release_sint64_list() { - // @@protoc_insertion_point(field_release:flwr.proto.ConfigsRecordValue.sint64_list) - if (_internal_has_sint64_list()) { - clear_has_value(); - ::flwr::proto::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::Sint64List& ConfigsRecordValue::_internal_sint64_list() const { - return _internal_has_sint64_list() - ? *value_.sint64_list_ - : reinterpret_cast< ::flwr::proto::Sint64List&>(::flwr::proto::_Sint64List_default_instance_); -} -inline const ::flwr::proto::Sint64List& ConfigsRecordValue::sint64_list() const { - // @@protoc_insertion_point(field_get:flwr.proto.ConfigsRecordValue.sint64_list) - return _internal_sint64_list(); -} -inline ::flwr::proto::Sint64List* ConfigsRecordValue::unsafe_arena_release_sint64_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ConfigsRecordValue.sint64_list) - if (_internal_has_sint64_list()) { - clear_has_value(); - ::flwr::proto::Sint64List* temp = value_.sint64_list_; - value_.sint64_list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ConfigsRecordValue::unsafe_arena_set_allocated_sint64_list(::flwr::proto::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.ConfigsRecordValue.sint64_list) -} -inline ::flwr::proto::Sint64List* ConfigsRecordValue::_internal_mutable_sint64_list() { - if (!_internal_has_sint64_list()) { - clear_value(); - set_has_sint64_list(); - value_.sint64_list_ = CreateMaybeMessage< ::flwr::proto::Sint64List >(GetArenaForAllocation()); - } - return value_.sint64_list_; -} -inline ::flwr::proto::Sint64List* ConfigsRecordValue::mutable_sint64_list() { - ::flwr::proto::Sint64List* _msg = _internal_mutable_sint64_list(); - // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigsRecordValue.sint64_list) - return _msg; -} - -// .flwr.proto.BoolList bool_list = 23; -inline bool ConfigsRecordValue::_internal_has_bool_list() const { - return value_case() == kBoolList; -} -inline bool ConfigsRecordValue::has_bool_list() const { - return _internal_has_bool_list(); -} -inline void ConfigsRecordValue::set_has_bool_list() { - _oneof_case_[0] = kBoolList; -} -inline void ConfigsRecordValue::clear_bool_list() { - if (_internal_has_bool_list()) { - if (GetArenaForAllocation() == nullptr) { - delete value_.bool_list_; - } - clear_has_value(); - } -} -inline ::flwr::proto::BoolList* ConfigsRecordValue::release_bool_list() { - // @@protoc_insertion_point(field_release:flwr.proto.ConfigsRecordValue.bool_list) - if (_internal_has_bool_list()) { - clear_has_value(); - ::flwr::proto::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::BoolList& ConfigsRecordValue::_internal_bool_list() const { - return _internal_has_bool_list() - ? *value_.bool_list_ - : reinterpret_cast< ::flwr::proto::BoolList&>(::flwr::proto::_BoolList_default_instance_); -} -inline const ::flwr::proto::BoolList& ConfigsRecordValue::bool_list() const { - // @@protoc_insertion_point(field_get:flwr.proto.ConfigsRecordValue.bool_list) - return _internal_bool_list(); -} -inline ::flwr::proto::BoolList* ConfigsRecordValue::unsafe_arena_release_bool_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ConfigsRecordValue.bool_list) - if (_internal_has_bool_list()) { - clear_has_value(); - ::flwr::proto::BoolList* temp = value_.bool_list_; - value_.bool_list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ConfigsRecordValue::unsafe_arena_set_allocated_bool_list(::flwr::proto::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.ConfigsRecordValue.bool_list) -} -inline ::flwr::proto::BoolList* ConfigsRecordValue::_internal_mutable_bool_list() { - if (!_internal_has_bool_list()) { - clear_value(); - set_has_bool_list(); - value_.bool_list_ = CreateMaybeMessage< ::flwr::proto::BoolList >(GetArenaForAllocation()); - } - return value_.bool_list_; -} -inline ::flwr::proto::BoolList* ConfigsRecordValue::mutable_bool_list() { - ::flwr::proto::BoolList* _msg = _internal_mutable_bool_list(); - // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigsRecordValue.bool_list) - return _msg; -} - -// .flwr.proto.StringList string_list = 24; -inline bool ConfigsRecordValue::_internal_has_string_list() const { - return value_case() == kStringList; -} -inline bool ConfigsRecordValue::has_string_list() const { - return _internal_has_string_list(); -} -inline void ConfigsRecordValue::set_has_string_list() { - _oneof_case_[0] = kStringList; -} -inline void ConfigsRecordValue::clear_string_list() { - if (_internal_has_string_list()) { - if (GetArenaForAllocation() == nullptr) { - delete value_.string_list_; - } - clear_has_value(); - } -} -inline ::flwr::proto::StringList* ConfigsRecordValue::release_string_list() { - // @@protoc_insertion_point(field_release:flwr.proto.ConfigsRecordValue.string_list) - if (_internal_has_string_list()) { - clear_has_value(); - ::flwr::proto::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::StringList& ConfigsRecordValue::_internal_string_list() const { - return _internal_has_string_list() - ? *value_.string_list_ - : reinterpret_cast< ::flwr::proto::StringList&>(::flwr::proto::_StringList_default_instance_); -} -inline const ::flwr::proto::StringList& ConfigsRecordValue::string_list() const { - // @@protoc_insertion_point(field_get:flwr.proto.ConfigsRecordValue.string_list) - return _internal_string_list(); -} -inline ::flwr::proto::StringList* ConfigsRecordValue::unsafe_arena_release_string_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ConfigsRecordValue.string_list) - if (_internal_has_string_list()) { - clear_has_value(); - ::flwr::proto::StringList* temp = value_.string_list_; - value_.string_list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ConfigsRecordValue::unsafe_arena_set_allocated_string_list(::flwr::proto::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.ConfigsRecordValue.string_list) -} -inline ::flwr::proto::StringList* ConfigsRecordValue::_internal_mutable_string_list() { - if (!_internal_has_string_list()) { - clear_value(); - set_has_string_list(); - value_.string_list_ = CreateMaybeMessage< ::flwr::proto::StringList >(GetArenaForAllocation()); - } - return value_.string_list_; -} -inline ::flwr::proto::StringList* ConfigsRecordValue::mutable_string_list() { - ::flwr::proto::StringList* _msg = _internal_mutable_string_list(); - // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigsRecordValue.string_list) - return _msg; -} - -// .flwr.proto.BytesList bytes_list = 25; -inline bool ConfigsRecordValue::_internal_has_bytes_list() const { - return value_case() == kBytesList; -} -inline bool ConfigsRecordValue::has_bytes_list() const { - return _internal_has_bytes_list(); -} -inline void ConfigsRecordValue::set_has_bytes_list() { - _oneof_case_[0] = kBytesList; -} -inline void ConfigsRecordValue::clear_bytes_list() { - if (_internal_has_bytes_list()) { - if (GetArenaForAllocation() == nullptr) { - delete value_.bytes_list_; - } - clear_has_value(); - } -} -inline ::flwr::proto::BytesList* ConfigsRecordValue::release_bytes_list() { - // @@protoc_insertion_point(field_release:flwr.proto.ConfigsRecordValue.bytes_list) - if (_internal_has_bytes_list()) { - clear_has_value(); - ::flwr::proto::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::BytesList& ConfigsRecordValue::_internal_bytes_list() const { - return _internal_has_bytes_list() - ? *value_.bytes_list_ - : reinterpret_cast< ::flwr::proto::BytesList&>(::flwr::proto::_BytesList_default_instance_); -} -inline const ::flwr::proto::BytesList& ConfigsRecordValue::bytes_list() const { - // @@protoc_insertion_point(field_get:flwr.proto.ConfigsRecordValue.bytes_list) - return _internal_bytes_list(); -} -inline ::flwr::proto::BytesList* ConfigsRecordValue::unsafe_arena_release_bytes_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ConfigsRecordValue.bytes_list) - if (_internal_has_bytes_list()) { - clear_has_value(); - ::flwr::proto::BytesList* temp = value_.bytes_list_; - value_.bytes_list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ConfigsRecordValue::unsafe_arena_set_allocated_bytes_list(::flwr::proto::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.ConfigsRecordValue.bytes_list) -} -inline ::flwr::proto::BytesList* ConfigsRecordValue::_internal_mutable_bytes_list() { - if (!_internal_has_bytes_list()) { - clear_value(); - set_has_bytes_list(); - value_.bytes_list_ = CreateMaybeMessage< ::flwr::proto::BytesList >(GetArenaForAllocation()); - } - return value_.bytes_list_; -} -inline ::flwr::proto::BytesList* ConfigsRecordValue::mutable_bytes_list() { - ::flwr::proto::BytesList* _msg = _internal_mutable_bytes_list(); - // @@protoc_insertion_point(field_mutable:flwr.proto.ConfigsRecordValue.bytes_list) - return _msg; -} - -inline bool ConfigsRecordValue::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void ConfigsRecordValue::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline ConfigsRecordValue::ValueCase ConfigsRecordValue::value_case() const { - return ConfigsRecordValue::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ParametersRecord - -// repeated string data_keys = 1; -inline int ParametersRecord::_internal_data_keys_size() const { - return data_keys_.size(); -} -inline int ParametersRecord::data_keys_size() const { - return _internal_data_keys_size(); -} -inline void ParametersRecord::clear_data_keys() { - data_keys_.Clear(); -} -inline std::string* ParametersRecord::add_data_keys() { - std::string* _s = _internal_add_data_keys(); - // @@protoc_insertion_point(field_add_mutable:flwr.proto.ParametersRecord.data_keys) - return _s; -} -inline const std::string& ParametersRecord::_internal_data_keys(int index) const { - return data_keys_.Get(index); -} -inline const std::string& ParametersRecord::data_keys(int index) const { - // @@protoc_insertion_point(field_get:flwr.proto.ParametersRecord.data_keys) - return _internal_data_keys(index); -} -inline std::string* ParametersRecord::mutable_data_keys(int index) { - // @@protoc_insertion_point(field_mutable:flwr.proto.ParametersRecord.data_keys) - return data_keys_.Mutable(index); -} -inline void ParametersRecord::set_data_keys(int index, const std::string& value) { - data_keys_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:flwr.proto.ParametersRecord.data_keys) -} -inline void ParametersRecord::set_data_keys(int index, std::string&& value) { - data_keys_.Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:flwr.proto.ParametersRecord.data_keys) -} -inline void ParametersRecord::set_data_keys(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - data_keys_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flwr.proto.ParametersRecord.data_keys) -} -inline void ParametersRecord::set_data_keys(int index, const char* value, size_t size) { - data_keys_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flwr.proto.ParametersRecord.data_keys) -} -inline std::string* ParametersRecord::_internal_add_data_keys() { - return data_keys_.Add(); -} -inline void ParametersRecord::add_data_keys(const std::string& value) { - data_keys_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flwr.proto.ParametersRecord.data_keys) -} -inline void ParametersRecord::add_data_keys(std::string&& value) { - data_keys_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flwr.proto.ParametersRecord.data_keys) -} -inline void ParametersRecord::add_data_keys(const char* value) { - GOOGLE_DCHECK(value != nullptr); - data_keys_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flwr.proto.ParametersRecord.data_keys) -} -inline void ParametersRecord::add_data_keys(const char* value, size_t size) { - data_keys_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flwr.proto.ParametersRecord.data_keys) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -ParametersRecord::data_keys() const { - // @@protoc_insertion_point(field_list:flwr.proto.ParametersRecord.data_keys) - return data_keys_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -ParametersRecord::mutable_data_keys() { - // @@protoc_insertion_point(field_mutable_list:flwr.proto.ParametersRecord.data_keys) - return &data_keys_; -} - -// repeated .flwr.proto.Array data_values = 2; -inline int ParametersRecord::_internal_data_values_size() const { - return data_values_.size(); -} -inline int ParametersRecord::data_values_size() const { - return _internal_data_values_size(); -} -inline void ParametersRecord::clear_data_values() { - data_values_.Clear(); -} -inline ::flwr::proto::Array* ParametersRecord::mutable_data_values(int index) { - // @@protoc_insertion_point(field_mutable:flwr.proto.ParametersRecord.data_values) - return data_values_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Array >* -ParametersRecord::mutable_data_values() { - // @@protoc_insertion_point(field_mutable_list:flwr.proto.ParametersRecord.data_values) - return &data_values_; -} -inline const ::flwr::proto::Array& ParametersRecord::_internal_data_values(int index) const { - return data_values_.Get(index); -} -inline const ::flwr::proto::Array& ParametersRecord::data_values(int index) const { - // @@protoc_insertion_point(field_get:flwr.proto.ParametersRecord.data_values) - return _internal_data_values(index); -} -inline ::flwr::proto::Array* ParametersRecord::_internal_add_data_values() { - return data_values_.Add(); -} -inline ::flwr::proto::Array* ParametersRecord::add_data_values() { - ::flwr::proto::Array* _add = _internal_add_data_values(); - // @@protoc_insertion_point(field_add:flwr.proto.ParametersRecord.data_values) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::Array >& -ParametersRecord::data_values() const { - // @@protoc_insertion_point(field_list:flwr.proto.ParametersRecord.data_values) - return data_values_; -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// MetricsRecord - -// map data = 1; -inline int MetricsRecord::_internal_data_size() const { - return data_.size(); -} -inline int MetricsRecord::data_size() const { - return _internal_data_size(); -} -inline void MetricsRecord::clear_data() { - data_.Clear(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecordValue >& -MetricsRecord::_internal_data() const { - return data_.GetMap(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecordValue >& -MetricsRecord::data() const { - // @@protoc_insertion_point(field_map:flwr.proto.MetricsRecord.data) - return _internal_data(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecordValue >* -MetricsRecord::_internal_mutable_data() { - return data_.MutableMap(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecordValue >* -MetricsRecord::mutable_data() { - // @@protoc_insertion_point(field_mutable_map:flwr.proto.MetricsRecord.data) - return _internal_mutable_data(); -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ConfigsRecord - -// map data = 1; -inline int ConfigsRecord::_internal_data_size() const { - return data_.size(); -} -inline int ConfigsRecord::data_size() const { - return _internal_data_size(); -} -inline void ConfigsRecord::clear_data() { - data_.Clear(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecordValue >& -ConfigsRecord::_internal_data() const { - return data_.GetMap(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecordValue >& -ConfigsRecord::data() const { - // @@protoc_insertion_point(field_map:flwr.proto.ConfigsRecord.data) - return _internal_data(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecordValue >* -ConfigsRecord::_internal_mutable_data() { - return data_.MutableMap(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecordValue >* -ConfigsRecord::mutable_data() { - // @@protoc_insertion_point(field_mutable_map:flwr.proto.ConfigsRecord.data) - return _internal_mutable_data(); -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// RecordSet - -// map parameters = 1; -inline int RecordSet::_internal_parameters_size() const { - return parameters_.size(); -} -inline int RecordSet::parameters_size() const { - return _internal_parameters_size(); -} -inline void RecordSet::clear_parameters() { - parameters_.Clear(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ParametersRecord >& -RecordSet::_internal_parameters() const { - return parameters_.GetMap(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ParametersRecord >& -RecordSet::parameters() const { - // @@protoc_insertion_point(field_map:flwr.proto.RecordSet.parameters) - return _internal_parameters(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ParametersRecord >* -RecordSet::_internal_mutable_parameters() { - return parameters_.MutableMap(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ParametersRecord >* -RecordSet::mutable_parameters() { - // @@protoc_insertion_point(field_mutable_map:flwr.proto.RecordSet.parameters) - return _internal_mutable_parameters(); -} - -// map metrics = 2; -inline int RecordSet::_internal_metrics_size() const { - return metrics_.size(); -} -inline int RecordSet::metrics_size() const { - return _internal_metrics_size(); -} -inline void RecordSet::clear_metrics() { - metrics_.Clear(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecord >& -RecordSet::_internal_metrics() const { - return metrics_.GetMap(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecord >& -RecordSet::metrics() const { - // @@protoc_insertion_point(field_map:flwr.proto.RecordSet.metrics) - return _internal_metrics(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecord >* -RecordSet::_internal_mutable_metrics() { - return metrics_.MutableMap(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::MetricsRecord >* -RecordSet::mutable_metrics() { - // @@protoc_insertion_point(field_mutable_map:flwr.proto.RecordSet.metrics) - return _internal_mutable_metrics(); -} - -// map configs = 3; -inline int RecordSet::_internal_configs_size() const { - return configs_.size(); -} -inline int RecordSet::configs_size() const { - return _internal_configs_size(); -} -inline void RecordSet::clear_configs() { - configs_.Clear(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecord >& -RecordSet::_internal_configs() const { - return configs_.GetMap(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecord >& -RecordSet::configs() const { - // @@protoc_insertion_point(field_map:flwr.proto.RecordSet.configs) - return _internal_configs(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecord >* -RecordSet::_internal_mutable_configs() { - return configs_.MutableMap(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::ConfigsRecord >* -RecordSet::mutable_configs() { - // @@protoc_insertion_point(field_mutable_map:flwr.proto.RecordSet.configs) - return _internal_mutable_configs(); -} - -#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_2frecordset_2eproto diff --git a/framework/cc/flwr/include/flwr/proto/run.grpc.pb.cc b/framework/cc/flwr/include/flwr/proto/run.grpc.pb.cc new file mode 100644 index 000000000000..aac071be0fc9 --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/run.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/run.proto + +#include "flwr/proto/run.pb.h" +#include "flwr/proto/run.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/framework/cc/flwr/include/flwr/proto/task.grpc.pb.h b/framework/cc/flwr/include/flwr/proto/run.grpc.pb.h similarity index 85% rename from framework/cc/flwr/include/flwr/proto/task.grpc.pb.h rename to framework/cc/flwr/include/flwr/proto/run.grpc.pb.h index c1adfdac5d1b..6cd7b4e7e516 100644 --- a/framework/cc/flwr/include/flwr/proto/task.grpc.pb.h +++ b/framework/cc/flwr/include/flwr/proto/run.grpc.pb.h @@ -1,8 +1,8 @@ // Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. -// source: flwr/proto/task.proto +// source: flwr/proto/run.proto // Original file comments: -// Copyright 2022 Flower Labs GmbH. All Rights Reserved. +// Copyright 2024 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. @@ -17,10 +17,10 @@ // limitations under the License. // ============================================================================== // -#ifndef GRPC_flwr_2fproto_2ftask_2eproto__INCLUDED -#define GRPC_flwr_2fproto_2ftask_2eproto__INCLUDED +#ifndef GRPC_flwr_2fproto_2frun_2eproto__INCLUDED +#define GRPC_flwr_2fproto_2frun_2eproto__INCLUDED -#include "flwr/proto/task.pb.h" +#include "flwr/proto/run.pb.h" #include #include @@ -48,4 +48,4 @@ namespace proto { } // namespace flwr -#endif // GRPC_flwr_2fproto_2ftask_2eproto__INCLUDED +#endif // GRPC_flwr_2fproto_2frun_2eproto__INCLUDED diff --git a/framework/cc/flwr/include/flwr/proto/run.pb.cc b/framework/cc/flwr/include/flwr/proto/run.pb.cc new file mode 100644 index 000000000000..7fee1bfdf75d --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/run.pb.cc @@ -0,0 +1,2520 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/run.proto + +#include "flwr/proto/run.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG +namespace flwr { +namespace proto { +constexpr Run_OverrideConfigEntry_DoNotUse::Run_OverrideConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct Run_OverrideConfigEntry_DoNotUseDefaultTypeInternal { + constexpr Run_OverrideConfigEntry_DoNotUseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~Run_OverrideConfigEntry_DoNotUseDefaultTypeInternal() {} + union { + Run_OverrideConfigEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Run_OverrideConfigEntry_DoNotUseDefaultTypeInternal _Run_OverrideConfigEntry_DoNotUse_default_instance_; +constexpr Run::Run( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : override_config_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , fab_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , fab_version_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , fab_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , pending_at_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , starting_at_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , running_at_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , finished_at_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , flwr_aid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , federation_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , run_type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , status_(nullptr) + , run_id_(uint64_t{0u}) + , bytes_sent_(uint64_t{0u}) + , bytes_recv_(uint64_t{0u}) + , clientapp_runtime_(0){} +struct RunDefaultTypeInternal { + constexpr RunDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~RunDefaultTypeInternal() {} + union { + Run _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RunDefaultTypeInternal _Run_default_instance_; +constexpr RunStatus::RunStatus( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : status_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , sub_status_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , details_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct RunStatusDefaultTypeInternal { + constexpr RunStatusDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~RunStatusDefaultTypeInternal() {} + union { + RunStatus _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RunStatusDefaultTypeInternal _RunStatus_default_instance_; +constexpr GetRunRequest::GetRunRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : node_(nullptr) + , run_id_(uint64_t{0u}){} +struct GetRunRequestDefaultTypeInternal { + constexpr GetRunRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~GetRunRequestDefaultTypeInternal() {} + union { + GetRunRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetRunRequestDefaultTypeInternal _GetRunRequest_default_instance_; +constexpr GetRunResponse::GetRunResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : run_(nullptr){} +struct GetRunResponseDefaultTypeInternal { + constexpr GetRunResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~GetRunResponseDefaultTypeInternal() {} + union { + GetRunResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetRunResponseDefaultTypeInternal _GetRunResponse_default_instance_; +constexpr UpdateRunStatusRequest::UpdateRunStatusRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : run_status_(nullptr) + , run_id_(uint64_t{0u}){} +struct UpdateRunStatusRequestDefaultTypeInternal { + constexpr UpdateRunStatusRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~UpdateRunStatusRequestDefaultTypeInternal() {} + union { + UpdateRunStatusRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UpdateRunStatusRequestDefaultTypeInternal _UpdateRunStatusRequest_default_instance_; +constexpr UpdateRunStatusResponse::UpdateRunStatusResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct UpdateRunStatusResponseDefaultTypeInternal { + constexpr UpdateRunStatusResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~UpdateRunStatusResponseDefaultTypeInternal() {} + union { + UpdateRunStatusResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UpdateRunStatusResponseDefaultTypeInternal _UpdateRunStatusResponse_default_instance_; +constexpr GetFederationOptionsRequest::GetFederationOptionsRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : run_id_(uint64_t{0u}){} +struct GetFederationOptionsRequestDefaultTypeInternal { + constexpr GetFederationOptionsRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~GetFederationOptionsRequestDefaultTypeInternal() {} + union { + GetFederationOptionsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetFederationOptionsRequestDefaultTypeInternal _GetFederationOptionsRequest_default_instance_; +constexpr GetFederationOptionsResponse::GetFederationOptionsResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : federation_options_(nullptr){} +struct GetFederationOptionsResponseDefaultTypeInternal { + constexpr GetFederationOptionsResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~GetFederationOptionsResponseDefaultTypeInternal() {} + union { + GetFederationOptionsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetFederationOptionsResponseDefaultTypeInternal _GetFederationOptionsResponse_default_instance_; +} // namespace proto +} // namespace flwr +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2frun_2eproto[9]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_flwr_2fproto_2frun_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_flwr_2fproto_2frun_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2frun_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run_OverrideConfigEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run_OverrideConfigEntry_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::Run_OverrideConfigEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run_OverrideConfigEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, run_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, fab_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, fab_version_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, override_config_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, fab_hash_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, pending_at_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, starting_at_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, running_at_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, finished_at_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, status_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, flwr_aid_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, federation_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, bytes_sent_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, bytes_recv_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, clientapp_runtime_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Run, run_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::RunStatus, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::RunStatus, status_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::RunStatus, sub_status_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::RunStatus, details_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetRunRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetRunRequest, node_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetRunRequest, run_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetRunResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetRunResponse, run_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::UpdateRunStatusRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::UpdateRunStatusRequest, run_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::UpdateRunStatusRequest, run_status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::UpdateRunStatusResponse, _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::GetFederationOptionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetFederationOptionsRequest, run_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetFederationOptionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::GetFederationOptionsResponse, federation_options_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 8, -1, sizeof(::flwr::proto::Run_OverrideConfigEntry_DoNotUse)}, + { 10, -1, -1, sizeof(::flwr::proto::Run)}, + { 32, -1, -1, sizeof(::flwr::proto::RunStatus)}, + { 41, -1, -1, sizeof(::flwr::proto::GetRunRequest)}, + { 49, -1, -1, sizeof(::flwr::proto::GetRunResponse)}, + { 56, -1, -1, sizeof(::flwr::proto::UpdateRunStatusRequest)}, + { 64, -1, -1, sizeof(::flwr::proto::UpdateRunStatusResponse)}, + { 70, -1, -1, sizeof(::flwr::proto::GetFederationOptionsRequest)}, + { 77, -1, -1, sizeof(::flwr::proto::GetFederationOptionsResponse)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::flwr::proto::_Run_OverrideConfigEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_Run_default_instance_), + reinterpret_cast(&::flwr::proto::_RunStatus_default_instance_), + reinterpret_cast(&::flwr::proto::_GetRunRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_GetRunResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_UpdateRunStatusRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_UpdateRunStatusResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_GetFederationOptionsRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_GetFederationOptionsResponse_default_instance_), +}; + +const char descriptor_table_protodef_flwr_2fproto_2frun_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\024flwr/proto/run.proto\022\nflwr.proto\032\025flwr" + "/proto/node.proto\032\033flwr/proto/recorddict" + ".proto\032\032flwr/proto/transport.proto\"\311\003\n\003R" + "un\022\016\n\006run_id\030\001 \001(\004\022\016\n\006fab_id\030\002 \001(\t\022\023\n\013fa" + "b_version\030\003 \001(\t\022<\n\017override_config\030\004 \003(\013" + "2#.flwr.proto.Run.OverrideConfigEntry\022\020\n" + "\010fab_hash\030\005 \001(\t\022\022\n\npending_at\030\006 \001(\t\022\023\n\013s" + "tarting_at\030\007 \001(\t\022\022\n\nrunning_at\030\010 \001(\t\022\023\n\013" + "finished_at\030\t \001(\t\022%\n\006status\030\n \001(\0132\025.flwr" + ".proto.RunStatus\022\020\n\010flwr_aid\030\013 \001(\t\022\022\n\nfe" + "deration\030\014 \001(\t\022\022\n\nbytes_sent\030\r \001(\004\022\022\n\nby" + "tes_recv\030\016 \001(\004\022\031\n\021clientapp_runtime\030\017 \001(" + "\001\022\020\n\010run_type\030\020 \001(\t\032I\n\023OverrideConfigEnt" + "ry\022\013\n\003key\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.flwr.pr" + "oto.Scalar:\0028\001\"@\n\tRunStatus\022\016\n\006status\030\001 " + "\001(\t\022\022\n\nsub_status\030\002 \001(\t\022\017\n\007details\030\003 \001(\t" + "\"\?\n\rGetRunRequest\022\036\n\004node\030\001 \001(\0132\020.flwr.p" + "roto.Node\022\016\n\006run_id\030\002 \001(\004\".\n\016GetRunRespo" + "nse\022\034\n\003run\030\001 \001(\0132\017.flwr.proto.Run\"S\n\026Upd" + "ateRunStatusRequest\022\016\n\006run_id\030\001 \001(\004\022)\n\nr" + "un_status\030\002 \001(\0132\025.flwr.proto.RunStatus\"\031" + "\n\027UpdateRunStatusResponse\"-\n\033GetFederati" + "onOptionsRequest\022\016\n\006run_id\030\001 \001(\004\"T\n\034GetF" + "ederationOptionsResponse\0224\n\022federation_o" + "ptions\030\001 \001(\0132\030.flwr.proto.ConfigRecordb\006" + "proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_flwr_2fproto_2frun_2eproto_deps[3] = { + &::descriptor_table_flwr_2fproto_2fnode_2eproto, + &::descriptor_table_flwr_2fproto_2frecorddict_2eproto, + &::descriptor_table_flwr_2fproto_2ftransport_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_flwr_2fproto_2frun_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2frun_2eproto = { + false, false, 1006, descriptor_table_protodef_flwr_2fproto_2frun_2eproto, "flwr/proto/run.proto", + &descriptor_table_flwr_2fproto_2frun_2eproto_once, descriptor_table_flwr_2fproto_2frun_2eproto_deps, 3, 9, + schemas, file_default_instances, TableStruct_flwr_2fproto_2frun_2eproto::offsets, + file_level_metadata_flwr_2fproto_2frun_2eproto, file_level_enum_descriptors_flwr_2fproto_2frun_2eproto, file_level_service_descriptors_flwr_2fproto_2frun_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_flwr_2fproto_2frun_2eproto_getter() { + return &descriptor_table_flwr_2fproto_2frun_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_flwr_2fproto_2frun_2eproto(&descriptor_table_flwr_2fproto_2frun_2eproto); +namespace flwr { +namespace proto { + +// =================================================================== + +Run_OverrideConfigEntry_DoNotUse::Run_OverrideConfigEntry_DoNotUse() {} +Run_OverrideConfigEntry_DoNotUse::Run_OverrideConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void Run_OverrideConfigEntry_DoNotUse::MergeFrom(const Run_OverrideConfigEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata Run_OverrideConfigEntry_DoNotUse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frun_2eproto_getter, &descriptor_table_flwr_2fproto_2frun_2eproto_once, + file_level_metadata_flwr_2fproto_2frun_2eproto[0]); +} + +// =================================================================== + +class Run::_Internal { + public: + static const ::flwr::proto::RunStatus& status(const Run* msg); +}; + +const ::flwr::proto::RunStatus& +Run::_Internal::status(const Run* msg) { + return *msg->status_; +} +void Run::clear_override_config() { + override_config_.Clear(); +} +Run::Run(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + override_config_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Run) +} +Run::Run(const Run& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + override_config_.MergeFrom(from.override_config_); + fab_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_fab_id().empty()) { + fab_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fab_id(), + GetArenaForAllocation()); + } + fab_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_fab_version().empty()) { + fab_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fab_version(), + GetArenaForAllocation()); + } + fab_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_fab_hash().empty()) { + fab_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fab_hash(), + GetArenaForAllocation()); + } + pending_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_pending_at().empty()) { + pending_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pending_at(), + GetArenaForAllocation()); + } + starting_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_starting_at().empty()) { + starting_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_starting_at(), + GetArenaForAllocation()); + } + running_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_running_at().empty()) { + running_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_running_at(), + GetArenaForAllocation()); + } + finished_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_finished_at().empty()) { + finished_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_finished_at(), + GetArenaForAllocation()); + } + flwr_aid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_flwr_aid().empty()) { + flwr_aid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_flwr_aid(), + GetArenaForAllocation()); + } + federation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_federation().empty()) { + federation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_federation(), + GetArenaForAllocation()); + } + run_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_run_type().empty()) { + run_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_run_type(), + GetArenaForAllocation()); + } + if (from._internal_has_status()) { + status_ = new ::flwr::proto::RunStatus(*from.status_); + } else { + status_ = nullptr; + } + ::memcpy(&run_id_, &from.run_id_, + static_cast(reinterpret_cast(&clientapp_runtime_) - + reinterpret_cast(&run_id_)) + sizeof(clientapp_runtime_)); + // @@protoc_insertion_point(copy_constructor:flwr.proto.Run) +} + +void Run::SharedCtor() { +fab_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +fab_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +fab_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +pending_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +starting_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +running_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +finished_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +flwr_aid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +federation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +run_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&status_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&clientapp_runtime_) - + reinterpret_cast(&status_)) + sizeof(clientapp_runtime_)); +} + +Run::~Run() { + // @@protoc_insertion_point(destructor:flwr.proto.Run) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Run::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + fab_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + fab_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + fab_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + pending_at_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + starting_at_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + running_at_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + finished_at_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + flwr_aid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + federation_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + run_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete status_; +} + +void Run::ArenaDtor(void* object) { + Run* _this = reinterpret_cast< Run* >(object); + (void)_this; + _this->override_config_. ~MapField(); +} +inline void Run::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { + if (arena != nullptr) { + arena->OwnCustomDestructor(this, &Run::ArenaDtor); + } +} +void Run::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Run::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Run) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + override_config_.Clear(); + fab_id_.ClearToEmpty(); + fab_version_.ClearToEmpty(); + fab_hash_.ClearToEmpty(); + pending_at_.ClearToEmpty(); + starting_at_.ClearToEmpty(); + running_at_.ClearToEmpty(); + finished_at_.ClearToEmpty(); + flwr_aid_.ClearToEmpty(); + federation_.ClearToEmpty(); + run_type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + ::memset(&run_id_, 0, static_cast( + reinterpret_cast(&clientapp_runtime_) - + reinterpret_cast(&run_id_)) + sizeof(clientapp_runtime_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Run::_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 run_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + run_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string fab_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_fab_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Run.fab_id")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string fab_version = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_fab_version(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Run.fab_version")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map override_config = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&override_config_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // string fab_hash = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_fab_hash(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Run.fab_hash")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string pending_at = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_pending_at(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Run.pending_at")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string starting_at = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + auto str = _internal_mutable_starting_at(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Run.starting_at")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string running_at = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + auto str = _internal_mutable_running_at(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Run.running_at")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string finished_at = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + auto str = _internal_mutable_finished_at(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Run.finished_at")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.RunStatus status = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string flwr_aid = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + auto str = _internal_mutable_flwr_aid(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Run.flwr_aid")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string federation = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + auto str = _internal_mutable_federation(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Run.federation")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 bytes_sent = 13; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) { + bytes_sent_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 bytes_recv = 14; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 112)) { + bytes_recv_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double clientapp_runtime = 15; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 121)) { + clientapp_runtime_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // string run_type = 16; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + auto str = _internal_mutable_run_type(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Run.run_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* Run::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Run) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 run_id = 1; + if (this->_internal_run_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_run_id(), target); + } + + // string fab_id = 2; + if (!this->_internal_fab_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fab_id().data(), static_cast(this->_internal_fab_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Run.fab_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_fab_id(), target); + } + + // string fab_version = 3; + if (!this->_internal_fab_version().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fab_version().data(), static_cast(this->_internal_fab_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Run.fab_version"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_fab_version(), target); + } + + // map override_config = 4; + if (!this->_internal_override_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.Run.OverrideConfigEntry.key"); + } + }; + + if (stream->IsSerializationDeterministic() && + this->_internal_override_config().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->_internal_override_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_override_config().begin(); + it != this->_internal_override_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 = Run_OverrideConfigEntry_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_override_config().begin(); + it != this->_internal_override_config().end(); ++it) { + target = Run_OverrideConfigEntry_DoNotUse::Funcs::InternalSerialize(4, it->first, it->second, target, stream); + Utf8Check::Check(&(*it)); + } + } + } + + // string fab_hash = 5; + if (!this->_internal_fab_hash().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fab_hash().data(), static_cast(this->_internal_fab_hash().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Run.fab_hash"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_fab_hash(), target); + } + + // string pending_at = 6; + if (!this->_internal_pending_at().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pending_at().data(), static_cast(this->_internal_pending_at().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Run.pending_at"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_pending_at(), target); + } + + // string starting_at = 7; + if (!this->_internal_starting_at().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_starting_at().data(), static_cast(this->_internal_starting_at().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Run.starting_at"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_starting_at(), target); + } + + // string running_at = 8; + if (!this->_internal_running_at().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_running_at().data(), static_cast(this->_internal_running_at().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Run.running_at"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_running_at(), target); + } + + // string finished_at = 9; + if (!this->_internal_finished_at().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_finished_at().data(), static_cast(this->_internal_finished_at().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Run.finished_at"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_finished_at(), target); + } + + // .flwr.proto.RunStatus status = 10; + if (this->_internal_has_status()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 10, _Internal::status(this), target, stream); + } + + // string flwr_aid = 11; + if (!this->_internal_flwr_aid().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_flwr_aid().data(), static_cast(this->_internal_flwr_aid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Run.flwr_aid"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_flwr_aid(), target); + } + + // string federation = 12; + if (!this->_internal_federation().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_federation().data(), static_cast(this->_internal_federation().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Run.federation"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_federation(), target); + } + + // uint64 bytes_sent = 13; + if (this->_internal_bytes_sent() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(13, this->_internal_bytes_sent(), target); + } + + // uint64 bytes_recv = 14; + if (this->_internal_bytes_recv() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(14, this->_internal_bytes_recv(), target); + } + + // double clientapp_runtime = 15; + if (!(this->_internal_clientapp_runtime() <= 0 && this->_internal_clientapp_runtime() >= 0)) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(15, this->_internal_clientapp_runtime(), target); + } + + // string run_type = 16; + if (!this->_internal_run_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_run_type().data(), static_cast(this->_internal_run_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Run.run_type"); + target = stream->WriteStringMaybeAliased( + 16, this->_internal_run_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.Run) + return target; +} + +size_t Run::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Run) + 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 override_config = 4; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_override_config_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_override_config().begin(); + it != this->_internal_override_config().end(); ++it) { + total_size += Run_OverrideConfigEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string fab_id = 2; + if (!this->_internal_fab_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fab_id()); + } + + // string fab_version = 3; + if (!this->_internal_fab_version().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fab_version()); + } + + // string fab_hash = 5; + if (!this->_internal_fab_hash().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fab_hash()); + } + + // string pending_at = 6; + if (!this->_internal_pending_at().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pending_at()); + } + + // string starting_at = 7; + if (!this->_internal_starting_at().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_starting_at()); + } + + // string running_at = 8; + if (!this->_internal_running_at().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_running_at()); + } + + // string finished_at = 9; + if (!this->_internal_finished_at().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_finished_at()); + } + + // string flwr_aid = 11; + if (!this->_internal_flwr_aid().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_flwr_aid()); + } + + // string federation = 12; + if (!this->_internal_federation().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_federation()); + } + + // string run_type = 16; + if (!this->_internal_run_type().empty()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_run_type()); + } + + // .flwr.proto.RunStatus status = 10; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // uint64 run_id = 1; + if (this->_internal_run_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_run_id()); + } + + // uint64 bytes_sent = 13; + if (this->_internal_bytes_sent() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_bytes_sent()); + } + + // uint64 bytes_recv = 14; + if (this->_internal_bytes_recv() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_bytes_recv()); + } + + // double clientapp_runtime = 15; + if (!(this->_internal_clientapp_runtime() <= 0 && this->_internal_clientapp_runtime() >= 0)) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Run::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Run::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Run::GetClassData() const { return &_class_data_; } + +void Run::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Run::MergeFrom(const Run& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Run) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + override_config_.MergeFrom(from.override_config_); + if (!from._internal_fab_id().empty()) { + _internal_set_fab_id(from._internal_fab_id()); + } + if (!from._internal_fab_version().empty()) { + _internal_set_fab_version(from._internal_fab_version()); + } + if (!from._internal_fab_hash().empty()) { + _internal_set_fab_hash(from._internal_fab_hash()); + } + if (!from._internal_pending_at().empty()) { + _internal_set_pending_at(from._internal_pending_at()); + } + if (!from._internal_starting_at().empty()) { + _internal_set_starting_at(from._internal_starting_at()); + } + if (!from._internal_running_at().empty()) { + _internal_set_running_at(from._internal_running_at()); + } + if (!from._internal_finished_at().empty()) { + _internal_set_finished_at(from._internal_finished_at()); + } + if (!from._internal_flwr_aid().empty()) { + _internal_set_flwr_aid(from._internal_flwr_aid()); + } + if (!from._internal_federation().empty()) { + _internal_set_federation(from._internal_federation()); + } + if (!from._internal_run_type().empty()) { + _internal_set_run_type(from._internal_run_type()); + } + if (from._internal_has_status()) { + _internal_mutable_status()->::flwr::proto::RunStatus::MergeFrom(from._internal_status()); + } + if (from._internal_run_id() != 0) { + _internal_set_run_id(from._internal_run_id()); + } + if (from._internal_bytes_sent() != 0) { + _internal_set_bytes_sent(from._internal_bytes_sent()); + } + if (from._internal_bytes_recv() != 0) { + _internal_set_bytes_recv(from._internal_bytes_recv()); + } + if (!(from._internal_clientapp_runtime() <= 0 && from._internal_clientapp_runtime() >= 0)) { + _internal_set_clientapp_runtime(from._internal_clientapp_runtime()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Run::CopyFrom(const Run& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Run) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Run::IsInitialized() const { + return true; +} + +void Run::InternalSwap(Run* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + override_config_.InternalSwap(&other->override_config_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &fab_id_, lhs_arena, + &other->fab_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &fab_version_, lhs_arena, + &other->fab_version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &fab_hash_, lhs_arena, + &other->fab_hash_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &pending_at_, lhs_arena, + &other->pending_at_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &starting_at_, lhs_arena, + &other->starting_at_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &running_at_, lhs_arena, + &other->running_at_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &finished_at_, lhs_arena, + &other->finished_at_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &flwr_aid_, lhs_arena, + &other->flwr_aid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &federation_, lhs_arena, + &other->federation_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &run_type_, lhs_arena, + &other->run_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Run, clientapp_runtime_) + + sizeof(Run::clientapp_runtime_) + - PROTOBUF_FIELD_OFFSET(Run, status_)>( + reinterpret_cast(&status_), + reinterpret_cast(&other->status_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Run::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frun_2eproto_getter, &descriptor_table_flwr_2fproto_2frun_2eproto_once, + file_level_metadata_flwr_2fproto_2frun_2eproto[1]); +} + +// =================================================================== + +class RunStatus::_Internal { + public: +}; + +RunStatus::RunStatus(::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.RunStatus) +} +RunStatus::RunStatus(const RunStatus& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + status_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_status().empty()) { + status_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_status(), + GetArenaForAllocation()); + } + sub_status_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_sub_status().empty()) { + sub_status_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sub_status(), + GetArenaForAllocation()); + } + details_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_details().empty()) { + details_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_details(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.RunStatus) +} + +void RunStatus::SharedCtor() { +status_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +sub_status_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +details_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +RunStatus::~RunStatus() { + // @@protoc_insertion_point(destructor:flwr.proto.RunStatus) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void RunStatus::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + status_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + sub_status_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + details_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void RunStatus::ArenaDtor(void* object) { + RunStatus* _this = reinterpret_cast< RunStatus* >(object); + (void)_this; +} +void RunStatus::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void RunStatus::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RunStatus::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.RunStatus) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + status_.ClearToEmpty(); + sub_status_.ClearToEmpty(); + details_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RunStatus::_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 status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_status(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.RunStatus.status")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string sub_status = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_sub_status(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.RunStatus.sub_status")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string details = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_details(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.RunStatus.details")); + 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* RunStatus::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.RunStatus) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string status = 1; + if (!this->_internal_status().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_status().data(), static_cast(this->_internal_status().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.RunStatus.status"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_status(), target); + } + + // string sub_status = 2; + if (!this->_internal_sub_status().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_sub_status().data(), static_cast(this->_internal_sub_status().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.RunStatus.sub_status"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_sub_status(), target); + } + + // string details = 3; + if (!this->_internal_details().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_details().data(), static_cast(this->_internal_details().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.RunStatus.details"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_details(), 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.RunStatus) + return target; +} + +size_t RunStatus::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.RunStatus) + 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 status = 1; + if (!this->_internal_status().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_status()); + } + + // string sub_status = 2; + if (!this->_internal_sub_status().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_sub_status()); + } + + // string details = 3; + if (!this->_internal_details().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_details()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RunStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RunStatus::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RunStatus::GetClassData() const { return &_class_data_; } + +void RunStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void RunStatus::MergeFrom(const RunStatus& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.RunStatus) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_status().empty()) { + _internal_set_status(from._internal_status()); + } + if (!from._internal_sub_status().empty()) { + _internal_set_sub_status(from._internal_sub_status()); + } + if (!from._internal_details().empty()) { + _internal_set_details(from._internal_details()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RunStatus::CopyFrom(const RunStatus& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.RunStatus) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RunStatus::IsInitialized() const { + return true; +} + +void RunStatus::InternalSwap(RunStatus* 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(), + &status_, lhs_arena, + &other->status_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &sub_status_, lhs_arena, + &other->sub_status_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &details_, lhs_arena, + &other->details_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RunStatus::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frun_2eproto_getter, &descriptor_table_flwr_2fproto_2frun_2eproto_once, + file_level_metadata_flwr_2fproto_2frun_2eproto[2]); +} + +// =================================================================== + +class GetRunRequest::_Internal { + public: + static const ::flwr::proto::Node& node(const GetRunRequest* msg); +}; + +const ::flwr::proto::Node& +GetRunRequest::_Internal::node(const GetRunRequest* msg) { + return *msg->node_; +} +void GetRunRequest::clear_node() { + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; +} +GetRunRequest::GetRunRequest(::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.GetRunRequest) +} +GetRunRequest::GetRunRequest(const GetRunRequest& 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; + } + run_id_ = from.run_id_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.GetRunRequest) +} + +void GetRunRequest::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&node_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&run_id_) - + reinterpret_cast(&node_)) + sizeof(run_id_)); +} + +GetRunRequest::~GetRunRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.GetRunRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void GetRunRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete node_; +} + +void GetRunRequest::ArenaDtor(void* object) { + GetRunRequest* _this = reinterpret_cast< GetRunRequest* >(object); + (void)_this; +} +void GetRunRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GetRunRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetRunRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.GetRunRequest) + ::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; + run_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRunRequest::_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; + // uint64 run_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + run_id_ = ::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* GetRunRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.GetRunRequest) + ::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); + } + + // uint64 run_id = 2; + if (this->_internal_run_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_run_id(), 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.GetRunRequest) + return target; +} + +size_t GetRunRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.GetRunRequest) + 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_); + } + + // uint64 run_id = 2; + if (this->_internal_run_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_run_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRunRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRunRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRunRequest::GetClassData() const { return &_class_data_; } + +void GetRunRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetRunRequest::MergeFrom(const GetRunRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.GetRunRequest) + 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()); + } + if (from._internal_run_id() != 0) { + _internal_set_run_id(from._internal_run_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetRunRequest::CopyFrom(const GetRunRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.GetRunRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRunRequest::IsInitialized() const { + return true; +} + +void GetRunRequest::InternalSwap(GetRunRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetRunRequest, run_id_) + + sizeof(GetRunRequest::run_id_) + - PROTOBUF_FIELD_OFFSET(GetRunRequest, node_)>( + reinterpret_cast(&node_), + reinterpret_cast(&other->node_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetRunRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frun_2eproto_getter, &descriptor_table_flwr_2fproto_2frun_2eproto_once, + file_level_metadata_flwr_2fproto_2frun_2eproto[3]); +} + +// =================================================================== + +class GetRunResponse::_Internal { + public: + static const ::flwr::proto::Run& run(const GetRunResponse* msg); +}; + +const ::flwr::proto::Run& +GetRunResponse::_Internal::run(const GetRunResponse* msg) { + return *msg->run_; +} +GetRunResponse::GetRunResponse(::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.GetRunResponse) +} +GetRunResponse::GetRunResponse(const GetRunResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_run()) { + run_ = new ::flwr::proto::Run(*from.run_); + } else { + run_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.GetRunResponse) +} + +void GetRunResponse::SharedCtor() { +run_ = nullptr; +} + +GetRunResponse::~GetRunResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.GetRunResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void GetRunResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete run_; +} + +void GetRunResponse::ArenaDtor(void* object) { + GetRunResponse* _this = reinterpret_cast< GetRunResponse* >(object); + (void)_this; +} +void GetRunResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GetRunResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetRunResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.GetRunResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && run_ != nullptr) { + delete run_; + } + run_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRunResponse::_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.Run run = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_run(), 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* GetRunResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.GetRunResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Run run = 1; + if (this->_internal_has_run()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::run(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.GetRunResponse) + return target; +} + +size_t GetRunResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.GetRunResponse) + 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.Run run = 1; + if (this->_internal_has_run()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *run_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRunResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRunResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRunResponse::GetClassData() const { return &_class_data_; } + +void GetRunResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetRunResponse::MergeFrom(const GetRunResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.GetRunResponse) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_run()) { + _internal_mutable_run()->::flwr::proto::Run::MergeFrom(from._internal_run()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetRunResponse::CopyFrom(const GetRunResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.GetRunResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRunResponse::IsInitialized() const { + return true; +} + +void GetRunResponse::InternalSwap(GetRunResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(run_, other->run_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetRunResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frun_2eproto_getter, &descriptor_table_flwr_2fproto_2frun_2eproto_once, + file_level_metadata_flwr_2fproto_2frun_2eproto[4]); +} + +// =================================================================== + +class UpdateRunStatusRequest::_Internal { + public: + static const ::flwr::proto::RunStatus& run_status(const UpdateRunStatusRequest* msg); +}; + +const ::flwr::proto::RunStatus& +UpdateRunStatusRequest::_Internal::run_status(const UpdateRunStatusRequest* msg) { + return *msg->run_status_; +} +UpdateRunStatusRequest::UpdateRunStatusRequest(::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.UpdateRunStatusRequest) +} +UpdateRunStatusRequest::UpdateRunStatusRequest(const UpdateRunStatusRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_run_status()) { + run_status_ = new ::flwr::proto::RunStatus(*from.run_status_); + } else { + run_status_ = nullptr; + } + run_id_ = from.run_id_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.UpdateRunStatusRequest) +} + +void UpdateRunStatusRequest::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&run_status_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&run_id_) - + reinterpret_cast(&run_status_)) + sizeof(run_id_)); +} + +UpdateRunStatusRequest::~UpdateRunStatusRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.UpdateRunStatusRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void UpdateRunStatusRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete run_status_; +} + +void UpdateRunStatusRequest::ArenaDtor(void* object) { + UpdateRunStatusRequest* _this = reinterpret_cast< UpdateRunStatusRequest* >(object); + (void)_this; +} +void UpdateRunStatusRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void UpdateRunStatusRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UpdateRunStatusRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.UpdateRunStatusRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && run_status_ != nullptr) { + delete run_status_; + } + run_status_ = nullptr; + run_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateRunStatusRequest::_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 run_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + run_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.RunStatus run_status = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_run_status(), 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* UpdateRunStatusRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.UpdateRunStatusRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 run_id = 1; + if (this->_internal_run_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_run_id(), target); + } + + // .flwr.proto.RunStatus run_status = 2; + if (this->_internal_has_run_status()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::run_status(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.UpdateRunStatusRequest) + return target; +} + +size_t UpdateRunStatusRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.UpdateRunStatusRequest) + 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.RunStatus run_status = 2; + if (this->_internal_has_run_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *run_status_); + } + + // uint64 run_id = 1; + if (this->_internal_run_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_run_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateRunStatusRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateRunStatusRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateRunStatusRequest::GetClassData() const { return &_class_data_; } + +void UpdateRunStatusRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void UpdateRunStatusRequest::MergeFrom(const UpdateRunStatusRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.UpdateRunStatusRequest) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_run_status()) { + _internal_mutable_run_status()->::flwr::proto::RunStatus::MergeFrom(from._internal_run_status()); + } + if (from._internal_run_id() != 0) { + _internal_set_run_id(from._internal_run_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UpdateRunStatusRequest::CopyFrom(const UpdateRunStatusRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.UpdateRunStatusRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateRunStatusRequest::IsInitialized() const { + return true; +} + +void UpdateRunStatusRequest::InternalSwap(UpdateRunStatusRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(UpdateRunStatusRequest, run_id_) + + sizeof(UpdateRunStatusRequest::run_id_) + - PROTOBUF_FIELD_OFFSET(UpdateRunStatusRequest, run_status_)>( + reinterpret_cast(&run_status_), + reinterpret_cast(&other->run_status_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateRunStatusRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frun_2eproto_getter, &descriptor_table_flwr_2fproto_2frun_2eproto_once, + file_level_metadata_flwr_2fproto_2frun_2eproto[5]); +} + +// =================================================================== + +class UpdateRunStatusResponse::_Internal { + public: +}; + +UpdateRunStatusResponse::UpdateRunStatusResponse(::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.UpdateRunStatusResponse) +} +UpdateRunStatusResponse::UpdateRunStatusResponse(const UpdateRunStatusResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.UpdateRunStatusResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateRunStatusResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateRunStatusResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateRunStatusResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frun_2eproto_getter, &descriptor_table_flwr_2fproto_2frun_2eproto_once, + file_level_metadata_flwr_2fproto_2frun_2eproto[6]); +} + +// =================================================================== + +class GetFederationOptionsRequest::_Internal { + public: +}; + +GetFederationOptionsRequest::GetFederationOptionsRequest(::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.GetFederationOptionsRequest) +} +GetFederationOptionsRequest::GetFederationOptionsRequest(const GetFederationOptionsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + run_id_ = from.run_id_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.GetFederationOptionsRequest) +} + +void GetFederationOptionsRequest::SharedCtor() { +run_id_ = uint64_t{0u}; +} + +GetFederationOptionsRequest::~GetFederationOptionsRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.GetFederationOptionsRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void GetFederationOptionsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetFederationOptionsRequest::ArenaDtor(void* object) { + GetFederationOptionsRequest* _this = reinterpret_cast< GetFederationOptionsRequest* >(object); + (void)_this; +} +void GetFederationOptionsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GetFederationOptionsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetFederationOptionsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.GetFederationOptionsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + run_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetFederationOptionsRequest::_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 run_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + run_id_ = ::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* GetFederationOptionsRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.GetFederationOptionsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 run_id = 1; + if (this->_internal_run_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_run_id(), 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.GetFederationOptionsRequest) + return target; +} + +size_t GetFederationOptionsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.GetFederationOptionsRequest) + 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 run_id = 1; + if (this->_internal_run_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_run_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetFederationOptionsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetFederationOptionsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetFederationOptionsRequest::GetClassData() const { return &_class_data_; } + +void GetFederationOptionsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetFederationOptionsRequest::MergeFrom(const GetFederationOptionsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.GetFederationOptionsRequest) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_run_id() != 0) { + _internal_set_run_id(from._internal_run_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetFederationOptionsRequest::CopyFrom(const GetFederationOptionsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.GetFederationOptionsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetFederationOptionsRequest::IsInitialized() const { + return true; +} + +void GetFederationOptionsRequest::InternalSwap(GetFederationOptionsRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(run_id_, other->run_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetFederationOptionsRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frun_2eproto_getter, &descriptor_table_flwr_2fproto_2frun_2eproto_once, + file_level_metadata_flwr_2fproto_2frun_2eproto[7]); +} + +// =================================================================== + +class GetFederationOptionsResponse::_Internal { + public: + static const ::flwr::proto::ConfigRecord& federation_options(const GetFederationOptionsResponse* msg); +}; + +const ::flwr::proto::ConfigRecord& +GetFederationOptionsResponse::_Internal::federation_options(const GetFederationOptionsResponse* msg) { + return *msg->federation_options_; +} +void GetFederationOptionsResponse::clear_federation_options() { + if (GetArenaForAllocation() == nullptr && federation_options_ != nullptr) { + delete federation_options_; + } + federation_options_ = nullptr; +} +GetFederationOptionsResponse::GetFederationOptionsResponse(::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.GetFederationOptionsResponse) +} +GetFederationOptionsResponse::GetFederationOptionsResponse(const GetFederationOptionsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_federation_options()) { + federation_options_ = new ::flwr::proto::ConfigRecord(*from.federation_options_); + } else { + federation_options_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.GetFederationOptionsResponse) +} + +void GetFederationOptionsResponse::SharedCtor() { +federation_options_ = nullptr; +} + +GetFederationOptionsResponse::~GetFederationOptionsResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.GetFederationOptionsResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void GetFederationOptionsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete federation_options_; +} + +void GetFederationOptionsResponse::ArenaDtor(void* object) { + GetFederationOptionsResponse* _this = reinterpret_cast< GetFederationOptionsResponse* >(object); + (void)_this; +} +void GetFederationOptionsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GetFederationOptionsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetFederationOptionsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.GetFederationOptionsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && federation_options_ != nullptr) { + delete federation_options_; + } + federation_options_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetFederationOptionsResponse::_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.ConfigRecord federation_options = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_federation_options(), 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* GetFederationOptionsResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.GetFederationOptionsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.ConfigRecord federation_options = 1; + if (this->_internal_has_federation_options()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::federation_options(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.GetFederationOptionsResponse) + return target; +} + +size_t GetFederationOptionsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.GetFederationOptionsResponse) + 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.ConfigRecord federation_options = 1; + if (this->_internal_has_federation_options()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *federation_options_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetFederationOptionsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetFederationOptionsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetFederationOptionsResponse::GetClassData() const { return &_class_data_; } + +void GetFederationOptionsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetFederationOptionsResponse::MergeFrom(const GetFederationOptionsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.GetFederationOptionsResponse) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_federation_options()) { + _internal_mutable_federation_options()->::flwr::proto::ConfigRecord::MergeFrom(from._internal_federation_options()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetFederationOptionsResponse::CopyFrom(const GetFederationOptionsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.GetFederationOptionsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetFederationOptionsResponse::IsInitialized() const { + return true; +} + +void GetFederationOptionsResponse::InternalSwap(GetFederationOptionsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(federation_options_, other->federation_options_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetFederationOptionsResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2frun_2eproto_getter, &descriptor_table_flwr_2fproto_2frun_2eproto_once, + file_level_metadata_flwr_2fproto_2frun_2eproto[8]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::flwr::proto::Run_OverrideConfigEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::Run_OverrideConfigEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Run_OverrideConfigEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Run* Arena::CreateMaybeMessage< ::flwr::proto::Run >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Run >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::RunStatus* Arena::CreateMaybeMessage< ::flwr::proto::RunStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::RunStatus >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::GetRunRequest* Arena::CreateMaybeMessage< ::flwr::proto::GetRunRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::GetRunRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::GetRunResponse* Arena::CreateMaybeMessage< ::flwr::proto::GetRunResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::GetRunResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::UpdateRunStatusRequest* Arena::CreateMaybeMessage< ::flwr::proto::UpdateRunStatusRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::UpdateRunStatusRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::UpdateRunStatusResponse* Arena::CreateMaybeMessage< ::flwr::proto::UpdateRunStatusResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::UpdateRunStatusResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::GetFederationOptionsRequest* Arena::CreateMaybeMessage< ::flwr::proto::GetFederationOptionsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::GetFederationOptionsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::GetFederationOptionsResponse* Arena::CreateMaybeMessage< ::flwr::proto::GetFederationOptionsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::GetFederationOptionsResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/framework/cc/flwr/include/flwr/proto/run.pb.h b/framework/cc/flwr/include/flwr/proto/run.pb.h new file mode 100644 index 000000000000..bac3aac28049 --- /dev/null +++ b/framework/cc/flwr/include/flwr/proto/run.pb.h @@ -0,0 +1,2856 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/run.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2frun_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2frun_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/recorddict.pb.h" +#include "flwr/proto/transport.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flwr_2fproto_2frun_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_2frun_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[9] + 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_2frun_2eproto; +namespace flwr { +namespace proto { +class GetFederationOptionsRequest; +struct GetFederationOptionsRequestDefaultTypeInternal; +extern GetFederationOptionsRequestDefaultTypeInternal _GetFederationOptionsRequest_default_instance_; +class GetFederationOptionsResponse; +struct GetFederationOptionsResponseDefaultTypeInternal; +extern GetFederationOptionsResponseDefaultTypeInternal _GetFederationOptionsResponse_default_instance_; +class GetRunRequest; +struct GetRunRequestDefaultTypeInternal; +extern GetRunRequestDefaultTypeInternal _GetRunRequest_default_instance_; +class GetRunResponse; +struct GetRunResponseDefaultTypeInternal; +extern GetRunResponseDefaultTypeInternal _GetRunResponse_default_instance_; +class Run; +struct RunDefaultTypeInternal; +extern RunDefaultTypeInternal _Run_default_instance_; +class RunStatus; +struct RunStatusDefaultTypeInternal; +extern RunStatusDefaultTypeInternal _RunStatus_default_instance_; +class Run_OverrideConfigEntry_DoNotUse; +struct Run_OverrideConfigEntry_DoNotUseDefaultTypeInternal; +extern Run_OverrideConfigEntry_DoNotUseDefaultTypeInternal _Run_OverrideConfigEntry_DoNotUse_default_instance_; +class UpdateRunStatusRequest; +struct UpdateRunStatusRequestDefaultTypeInternal; +extern UpdateRunStatusRequestDefaultTypeInternal _UpdateRunStatusRequest_default_instance_; +class UpdateRunStatusResponse; +struct UpdateRunStatusResponseDefaultTypeInternal; +extern UpdateRunStatusResponseDefaultTypeInternal _UpdateRunStatusResponse_default_instance_; +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> ::flwr::proto::GetFederationOptionsRequest* Arena::CreateMaybeMessage<::flwr::proto::GetFederationOptionsRequest>(Arena*); +template<> ::flwr::proto::GetFederationOptionsResponse* Arena::CreateMaybeMessage<::flwr::proto::GetFederationOptionsResponse>(Arena*); +template<> ::flwr::proto::GetRunRequest* Arena::CreateMaybeMessage<::flwr::proto::GetRunRequest>(Arena*); +template<> ::flwr::proto::GetRunResponse* Arena::CreateMaybeMessage<::flwr::proto::GetRunResponse>(Arena*); +template<> ::flwr::proto::Run* Arena::CreateMaybeMessage<::flwr::proto::Run>(Arena*); +template<> ::flwr::proto::RunStatus* Arena::CreateMaybeMessage<::flwr::proto::RunStatus>(Arena*); +template<> ::flwr::proto::Run_OverrideConfigEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::Run_OverrideConfigEntry_DoNotUse>(Arena*); +template<> ::flwr::proto::UpdateRunStatusRequest* Arena::CreateMaybeMessage<::flwr::proto::UpdateRunStatusRequest>(Arena*); +template<> ::flwr::proto::UpdateRunStatusResponse* Arena::CreateMaybeMessage<::flwr::proto::UpdateRunStatusResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace flwr { +namespace proto { + +// =================================================================== + +class Run_OverrideConfigEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + Run_OverrideConfigEntry_DoNotUse(); + explicit constexpr Run_OverrideConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit Run_OverrideConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const Run_OverrideConfigEntry_DoNotUse& other); + static const Run_OverrideConfigEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Run_OverrideConfigEntry_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.Run.OverrideConfigEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class Run final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Run) */ { + public: + inline Run() : Run(nullptr) {} + ~Run() override; + explicit constexpr Run(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Run(const Run& from); + Run(Run&& from) noexcept + : Run() { + *this = ::std::move(from); + } + + inline Run& operator=(const Run& from) { + CopyFrom(from); + return *this; + } + inline Run& operator=(Run&& 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 Run& default_instance() { + return *internal_default_instance(); + } + static inline const Run* internal_default_instance() { + return reinterpret_cast( + &_Run_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(Run& a, Run& b) { + a.Swap(&b); + } + inline void Swap(Run* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Run* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Run* New() const final { + return new Run(); + } + + Run* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Run& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Run& 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(Run* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Run"; + } + protected: + explicit Run(::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 { + kOverrideConfigFieldNumber = 4, + kFabIdFieldNumber = 2, + kFabVersionFieldNumber = 3, + kFabHashFieldNumber = 5, + kPendingAtFieldNumber = 6, + kStartingAtFieldNumber = 7, + kRunningAtFieldNumber = 8, + kFinishedAtFieldNumber = 9, + kFlwrAidFieldNumber = 11, + kFederationFieldNumber = 12, + kRunTypeFieldNumber = 16, + kStatusFieldNumber = 10, + kRunIdFieldNumber = 1, + kBytesSentFieldNumber = 13, + kBytesRecvFieldNumber = 14, + kClientappRuntimeFieldNumber = 15, + }; + // map override_config = 4; + int override_config_size() const; + private: + int _internal_override_config_size() const; + public: + void clear_override_config(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + _internal_override_config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + _internal_mutable_override_config(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + override_config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + mutable_override_config(); + + // string fab_id = 2; + void clear_fab_id(); + const std::string& fab_id() const; + template + void set_fab_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_fab_id(); + PROTOBUF_MUST_USE_RESULT std::string* release_fab_id(); + void set_allocated_fab_id(std::string* fab_id); + private: + const std::string& _internal_fab_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fab_id(const std::string& value); + std::string* _internal_mutable_fab_id(); + public: + + // string fab_version = 3; + void clear_fab_version(); + const std::string& fab_version() const; + template + void set_fab_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_fab_version(); + PROTOBUF_MUST_USE_RESULT std::string* release_fab_version(); + void set_allocated_fab_version(std::string* fab_version); + private: + const std::string& _internal_fab_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fab_version(const std::string& value); + std::string* _internal_mutable_fab_version(); + public: + + // string fab_hash = 5; + void clear_fab_hash(); + const std::string& fab_hash() const; + template + void set_fab_hash(ArgT0&& arg0, ArgT... args); + std::string* mutable_fab_hash(); + PROTOBUF_MUST_USE_RESULT std::string* release_fab_hash(); + void set_allocated_fab_hash(std::string* fab_hash); + private: + const std::string& _internal_fab_hash() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fab_hash(const std::string& value); + std::string* _internal_mutable_fab_hash(); + public: + + // string pending_at = 6; + void clear_pending_at(); + const std::string& pending_at() const; + template + void set_pending_at(ArgT0&& arg0, ArgT... args); + std::string* mutable_pending_at(); + PROTOBUF_MUST_USE_RESULT std::string* release_pending_at(); + void set_allocated_pending_at(std::string* pending_at); + private: + const std::string& _internal_pending_at() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pending_at(const std::string& value); + std::string* _internal_mutable_pending_at(); + public: + + // string starting_at = 7; + void clear_starting_at(); + const std::string& starting_at() const; + template + void set_starting_at(ArgT0&& arg0, ArgT... args); + std::string* mutable_starting_at(); + PROTOBUF_MUST_USE_RESULT std::string* release_starting_at(); + void set_allocated_starting_at(std::string* starting_at); + private: + const std::string& _internal_starting_at() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_starting_at(const std::string& value); + std::string* _internal_mutable_starting_at(); + public: + + // string running_at = 8; + void clear_running_at(); + const std::string& running_at() const; + template + void set_running_at(ArgT0&& arg0, ArgT... args); + std::string* mutable_running_at(); + PROTOBUF_MUST_USE_RESULT std::string* release_running_at(); + void set_allocated_running_at(std::string* running_at); + private: + const std::string& _internal_running_at() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_running_at(const std::string& value); + std::string* _internal_mutable_running_at(); + public: + + // string finished_at = 9; + void clear_finished_at(); + const std::string& finished_at() const; + template + void set_finished_at(ArgT0&& arg0, ArgT... args); + std::string* mutable_finished_at(); + PROTOBUF_MUST_USE_RESULT std::string* release_finished_at(); + void set_allocated_finished_at(std::string* finished_at); + private: + const std::string& _internal_finished_at() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_finished_at(const std::string& value); + std::string* _internal_mutable_finished_at(); + public: + + // string flwr_aid = 11; + void clear_flwr_aid(); + const std::string& flwr_aid() const; + template + void set_flwr_aid(ArgT0&& arg0, ArgT... args); + std::string* mutable_flwr_aid(); + PROTOBUF_MUST_USE_RESULT std::string* release_flwr_aid(); + void set_allocated_flwr_aid(std::string* flwr_aid); + private: + const std::string& _internal_flwr_aid() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_flwr_aid(const std::string& value); + std::string* _internal_mutable_flwr_aid(); + public: + + // string federation = 12; + void clear_federation(); + const std::string& federation() const; + template + void set_federation(ArgT0&& arg0, ArgT... args); + std::string* mutable_federation(); + PROTOBUF_MUST_USE_RESULT std::string* release_federation(); + void set_allocated_federation(std::string* federation); + private: + const std::string& _internal_federation() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_federation(const std::string& value); + std::string* _internal_mutable_federation(); + public: + + // string run_type = 16; + void clear_run_type(); + const std::string& run_type() const; + template + void set_run_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_run_type(); + PROTOBUF_MUST_USE_RESULT std::string* release_run_type(); + void set_allocated_run_type(std::string* run_type); + private: + const std::string& _internal_run_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_run_type(const std::string& value); + std::string* _internal_mutable_run_type(); + public: + + // .flwr.proto.RunStatus status = 10; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::flwr::proto::RunStatus& status() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::RunStatus* release_status(); + ::flwr::proto::RunStatus* mutable_status(); + void set_allocated_status(::flwr::proto::RunStatus* status); + private: + const ::flwr::proto::RunStatus& _internal_status() const; + ::flwr::proto::RunStatus* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::flwr::proto::RunStatus* status); + ::flwr::proto::RunStatus* unsafe_arena_release_status(); + + // uint64 run_id = 1; + void clear_run_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 run_id() const; + void set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_run_id() const; + void _internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // uint64 bytes_sent = 13; + void clear_bytes_sent(); + ::PROTOBUF_NAMESPACE_ID::uint64 bytes_sent() const; + void set_bytes_sent(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_bytes_sent() const; + void _internal_set_bytes_sent(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // uint64 bytes_recv = 14; + void clear_bytes_recv(); + ::PROTOBUF_NAMESPACE_ID::uint64 bytes_recv() const; + void set_bytes_recv(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_bytes_recv() const; + void _internal_set_bytes_recv(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // double clientapp_runtime = 15; + void clear_clientapp_runtime(); + double clientapp_runtime() const; + void set_clientapp_runtime(double value); + private: + double _internal_clientapp_runtime() const; + void _internal_set_clientapp_runtime(double value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.Run) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + Run_OverrideConfigEntry_DoNotUse, + std::string, ::flwr::proto::Scalar, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> override_config_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fab_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fab_version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fab_hash_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pending_at_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr starting_at_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr running_at_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr finished_at_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr flwr_aid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr federation_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr run_type_; + ::flwr::proto::RunStatus* status_; + ::PROTOBUF_NAMESPACE_ID::uint64 run_id_; + ::PROTOBUF_NAMESPACE_ID::uint64 bytes_sent_; + ::PROTOBUF_NAMESPACE_ID::uint64 bytes_recv_; + double clientapp_runtime_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frun_2eproto; +}; +// ------------------------------------------------------------------- + +class RunStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.RunStatus) */ { + public: + inline RunStatus() : RunStatus(nullptr) {} + ~RunStatus() override; + explicit constexpr RunStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RunStatus(const RunStatus& from); + RunStatus(RunStatus&& from) noexcept + : RunStatus() { + *this = ::std::move(from); + } + + inline RunStatus& operator=(const RunStatus& from) { + CopyFrom(from); + return *this; + } + inline RunStatus& operator=(RunStatus&& 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 RunStatus& default_instance() { + return *internal_default_instance(); + } + static inline const RunStatus* internal_default_instance() { + return reinterpret_cast( + &_RunStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(RunStatus& a, RunStatus& b) { + a.Swap(&b); + } + inline void Swap(RunStatus* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RunStatus* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline RunStatus* New() const final { + return new RunStatus(); + } + + RunStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RunStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RunStatus& 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(RunStatus* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.RunStatus"; + } + protected: + explicit RunStatus(::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, + kSubStatusFieldNumber = 2, + kDetailsFieldNumber = 3, + }; + // string status = 1; + void clear_status(); + const std::string& status() const; + template + void set_status(ArgT0&& arg0, ArgT... args); + std::string* mutable_status(); + PROTOBUF_MUST_USE_RESULT std::string* release_status(); + void set_allocated_status(std::string* status); + private: + const std::string& _internal_status() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_status(const std::string& value); + std::string* _internal_mutable_status(); + public: + + // string sub_status = 2; + void clear_sub_status(); + const std::string& sub_status() const; + template + void set_sub_status(ArgT0&& arg0, ArgT... args); + std::string* mutable_sub_status(); + PROTOBUF_MUST_USE_RESULT std::string* release_sub_status(); + void set_allocated_sub_status(std::string* sub_status); + private: + const std::string& _internal_sub_status() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sub_status(const std::string& value); + std::string* _internal_mutable_sub_status(); + public: + + // string details = 3; + void clear_details(); + const std::string& details() const; + template + void set_details(ArgT0&& arg0, ArgT... args); + std::string* mutable_details(); + PROTOBUF_MUST_USE_RESULT std::string* release_details(); + void set_allocated_details(std::string* details); + private: + const std::string& _internal_details() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_details(const std::string& value); + std::string* _internal_mutable_details(); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.RunStatus) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr status_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sub_status_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr details_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frun_2eproto; +}; +// ------------------------------------------------------------------- + +class GetRunRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.GetRunRequest) */ { + public: + inline GetRunRequest() : GetRunRequest(nullptr) {} + ~GetRunRequest() override; + explicit constexpr GetRunRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetRunRequest(const GetRunRequest& from); + GetRunRequest(GetRunRequest&& from) noexcept + : GetRunRequest() { + *this = ::std::move(from); + } + + inline GetRunRequest& operator=(const GetRunRequest& from) { + CopyFrom(from); + return *this; + } + inline GetRunRequest& operator=(GetRunRequest&& 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 GetRunRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetRunRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRunRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GetRunRequest& a, GetRunRequest& b) { + a.Swap(&b); + } + inline void Swap(GetRunRequest* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetRunRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline GetRunRequest* New() const final { + return new GetRunRequest(); + } + + GetRunRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRunRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRunRequest& 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(GetRunRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.GetRunRequest"; + } + protected: + explicit GetRunRequest(::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, + kRunIdFieldNumber = 2, + }; + // .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(); + + // uint64 run_id = 2; + void clear_run_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 run_id() const; + void set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_run_id() const; + void _internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.GetRunRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::flwr::proto::Node* node_; + ::PROTOBUF_NAMESPACE_ID::uint64 run_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frun_2eproto; +}; +// ------------------------------------------------------------------- + +class GetRunResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.GetRunResponse) */ { + public: + inline GetRunResponse() : GetRunResponse(nullptr) {} + ~GetRunResponse() override; + explicit constexpr GetRunResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetRunResponse(const GetRunResponse& from); + GetRunResponse(GetRunResponse&& from) noexcept + : GetRunResponse() { + *this = ::std::move(from); + } + + inline GetRunResponse& operator=(const GetRunResponse& from) { + CopyFrom(from); + return *this; + } + inline GetRunResponse& operator=(GetRunResponse&& 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 GetRunResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetRunResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRunResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(GetRunResponse& a, GetRunResponse& b) { + a.Swap(&b); + } + inline void Swap(GetRunResponse* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetRunResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline GetRunResponse* New() const final { + return new GetRunResponse(); + } + + GetRunResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRunResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRunResponse& 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(GetRunResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.GetRunResponse"; + } + protected: + explicit GetRunResponse(::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 { + kRunFieldNumber = 1, + }; + // .flwr.proto.Run run = 1; + bool has_run() const; + private: + bool _internal_has_run() const; + public: + void clear_run(); + const ::flwr::proto::Run& run() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Run* release_run(); + ::flwr::proto::Run* mutable_run(); + void set_allocated_run(::flwr::proto::Run* run); + private: + const ::flwr::proto::Run& _internal_run() const; + ::flwr::proto::Run* _internal_mutable_run(); + public: + void unsafe_arena_set_allocated_run( + ::flwr::proto::Run* run); + ::flwr::proto::Run* unsafe_arena_release_run(); + + // @@protoc_insertion_point(class_scope:flwr.proto.GetRunResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::flwr::proto::Run* run_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frun_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateRunStatusRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.UpdateRunStatusRequest) */ { + public: + inline UpdateRunStatusRequest() : UpdateRunStatusRequest(nullptr) {} + ~UpdateRunStatusRequest() override; + explicit constexpr UpdateRunStatusRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UpdateRunStatusRequest(const UpdateRunStatusRequest& from); + UpdateRunStatusRequest(UpdateRunStatusRequest&& from) noexcept + : UpdateRunStatusRequest() { + *this = ::std::move(from); + } + + inline UpdateRunStatusRequest& operator=(const UpdateRunStatusRequest& from) { + CopyFrom(from); + return *this; + } + inline UpdateRunStatusRequest& operator=(UpdateRunStatusRequest&& 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 UpdateRunStatusRequest& default_instance() { + return *internal_default_instance(); + } + static inline const UpdateRunStatusRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateRunStatusRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(UpdateRunStatusRequest& a, UpdateRunStatusRequest& b) { + a.Swap(&b); + } + inline void Swap(UpdateRunStatusRequest* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(UpdateRunStatusRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline UpdateRunStatusRequest* New() const final { + return new UpdateRunStatusRequest(); + } + + UpdateRunStatusRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateRunStatusRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateRunStatusRequest& 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(UpdateRunStatusRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.UpdateRunStatusRequest"; + } + protected: + explicit UpdateRunStatusRequest(::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 { + kRunStatusFieldNumber = 2, + kRunIdFieldNumber = 1, + }; + // .flwr.proto.RunStatus run_status = 2; + bool has_run_status() const; + private: + bool _internal_has_run_status() const; + public: + void clear_run_status(); + const ::flwr::proto::RunStatus& run_status() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::RunStatus* release_run_status(); + ::flwr::proto::RunStatus* mutable_run_status(); + void set_allocated_run_status(::flwr::proto::RunStatus* run_status); + private: + const ::flwr::proto::RunStatus& _internal_run_status() const; + ::flwr::proto::RunStatus* _internal_mutable_run_status(); + public: + void unsafe_arena_set_allocated_run_status( + ::flwr::proto::RunStatus* run_status); + ::flwr::proto::RunStatus* unsafe_arena_release_run_status(); + + // uint64 run_id = 1; + void clear_run_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 run_id() const; + void set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_run_id() const; + void _internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.UpdateRunStatusRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::flwr::proto::RunStatus* run_status_; + ::PROTOBUF_NAMESPACE_ID::uint64 run_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frun_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateRunStatusResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:flwr.proto.UpdateRunStatusResponse) */ { + public: + inline UpdateRunStatusResponse() : UpdateRunStatusResponse(nullptr) {} + explicit constexpr UpdateRunStatusResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UpdateRunStatusResponse(const UpdateRunStatusResponse& from); + UpdateRunStatusResponse(UpdateRunStatusResponse&& from) noexcept + : UpdateRunStatusResponse() { + *this = ::std::move(from); + } + + inline UpdateRunStatusResponse& operator=(const UpdateRunStatusResponse& from) { + CopyFrom(from); + return *this; + } + inline UpdateRunStatusResponse& operator=(UpdateRunStatusResponse&& 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 UpdateRunStatusResponse& default_instance() { + return *internal_default_instance(); + } + static inline const UpdateRunStatusResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateRunStatusResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(UpdateRunStatusResponse& a, UpdateRunStatusResponse& b) { + a.Swap(&b); + } + inline void Swap(UpdateRunStatusResponse* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(UpdateRunStatusResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline UpdateRunStatusResponse* New() const final { + return new UpdateRunStatusResponse(); + } + + UpdateRunStatusResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const UpdateRunStatusResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const UpdateRunStatusResponse& 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.UpdateRunStatusResponse"; + } + protected: + explicit UpdateRunStatusResponse(::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.UpdateRunStatusResponse) + 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_2frun_2eproto; +}; +// ------------------------------------------------------------------- + +class GetFederationOptionsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.GetFederationOptionsRequest) */ { + public: + inline GetFederationOptionsRequest() : GetFederationOptionsRequest(nullptr) {} + ~GetFederationOptionsRequest() override; + explicit constexpr GetFederationOptionsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetFederationOptionsRequest(const GetFederationOptionsRequest& from); + GetFederationOptionsRequest(GetFederationOptionsRequest&& from) noexcept + : GetFederationOptionsRequest() { + *this = ::std::move(from); + } + + inline GetFederationOptionsRequest& operator=(const GetFederationOptionsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetFederationOptionsRequest& operator=(GetFederationOptionsRequest&& 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 GetFederationOptionsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetFederationOptionsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetFederationOptionsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(GetFederationOptionsRequest& a, GetFederationOptionsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetFederationOptionsRequest* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetFederationOptionsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline GetFederationOptionsRequest* New() const final { + return new GetFederationOptionsRequest(); + } + + GetFederationOptionsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetFederationOptionsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetFederationOptionsRequest& 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(GetFederationOptionsRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.GetFederationOptionsRequest"; + } + protected: + explicit GetFederationOptionsRequest(::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 { + kRunIdFieldNumber = 1, + }; + // uint64 run_id = 1; + void clear_run_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 run_id() const; + void set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_run_id() const; + void _internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.GetFederationOptionsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::uint64 run_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frun_2eproto; +}; +// ------------------------------------------------------------------- + +class GetFederationOptionsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.GetFederationOptionsResponse) */ { + public: + inline GetFederationOptionsResponse() : GetFederationOptionsResponse(nullptr) {} + ~GetFederationOptionsResponse() override; + explicit constexpr GetFederationOptionsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetFederationOptionsResponse(const GetFederationOptionsResponse& from); + GetFederationOptionsResponse(GetFederationOptionsResponse&& from) noexcept + : GetFederationOptionsResponse() { + *this = ::std::move(from); + } + + inline GetFederationOptionsResponse& operator=(const GetFederationOptionsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetFederationOptionsResponse& operator=(GetFederationOptionsResponse&& 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 GetFederationOptionsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetFederationOptionsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetFederationOptionsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(GetFederationOptionsResponse& a, GetFederationOptionsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetFederationOptionsResponse* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetFederationOptionsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline GetFederationOptionsResponse* New() const final { + return new GetFederationOptionsResponse(); + } + + GetFederationOptionsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetFederationOptionsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetFederationOptionsResponse& 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(GetFederationOptionsResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.GetFederationOptionsResponse"; + } + protected: + explicit GetFederationOptionsResponse(::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 { + kFederationOptionsFieldNumber = 1, + }; + // .flwr.proto.ConfigRecord federation_options = 1; + bool has_federation_options() const; + private: + bool _internal_has_federation_options() const; + public: + void clear_federation_options(); + const ::flwr::proto::ConfigRecord& federation_options() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ConfigRecord* release_federation_options(); + ::flwr::proto::ConfigRecord* mutable_federation_options(); + void set_allocated_federation_options(::flwr::proto::ConfigRecord* federation_options); + private: + const ::flwr::proto::ConfigRecord& _internal_federation_options() const; + ::flwr::proto::ConfigRecord* _internal_mutable_federation_options(); + public: + void unsafe_arena_set_allocated_federation_options( + ::flwr::proto::ConfigRecord* federation_options); + ::flwr::proto::ConfigRecord* unsafe_arena_release_federation_options(); + + // @@protoc_insertion_point(class_scope:flwr.proto.GetFederationOptionsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::flwr::proto::ConfigRecord* federation_options_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2frun_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// Run + +// uint64 run_id = 1; +inline void Run::clear_run_id() { + run_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Run::_internal_run_id() const { + return run_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Run::run_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.run_id) + return _internal_run_id(); +} +inline void Run::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + run_id_ = value; +} +inline void Run::set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_run_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.Run.run_id) +} + +// string fab_id = 2; +inline void Run::clear_fab_id() { + fab_id_.ClearToEmpty(); +} +inline const std::string& Run::fab_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.fab_id) + return _internal_fab_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Run::set_fab_id(ArgT0&& arg0, ArgT... args) { + + fab_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Run.fab_id) +} +inline std::string* Run::mutable_fab_id() { + std::string* _s = _internal_mutable_fab_id(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Run.fab_id) + return _s; +} +inline const std::string& Run::_internal_fab_id() const { + return fab_id_.Get(); +} +inline void Run::_internal_set_fab_id(const std::string& value) { + + fab_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Run::_internal_mutable_fab_id() { + + return fab_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Run::release_fab_id() { + // @@protoc_insertion_point(field_release:flwr.proto.Run.fab_id) + return fab_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Run::set_allocated_fab_id(std::string* fab_id) { + if (fab_id != nullptr) { + + } else { + + } + fab_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fab_id, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Run.fab_id) +} + +// string fab_version = 3; +inline void Run::clear_fab_version() { + fab_version_.ClearToEmpty(); +} +inline const std::string& Run::fab_version() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.fab_version) + return _internal_fab_version(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Run::set_fab_version(ArgT0&& arg0, ArgT... args) { + + fab_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Run.fab_version) +} +inline std::string* Run::mutable_fab_version() { + std::string* _s = _internal_mutable_fab_version(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Run.fab_version) + return _s; +} +inline const std::string& Run::_internal_fab_version() const { + return fab_version_.Get(); +} +inline void Run::_internal_set_fab_version(const std::string& value) { + + fab_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Run::_internal_mutable_fab_version() { + + return fab_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Run::release_fab_version() { + // @@protoc_insertion_point(field_release:flwr.proto.Run.fab_version) + return fab_version_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Run::set_allocated_fab_version(std::string* fab_version) { + if (fab_version != nullptr) { + + } else { + + } + fab_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fab_version, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Run.fab_version) +} + +// map override_config = 4; +inline int Run::_internal_override_config_size() const { + return override_config_.size(); +} +inline int Run::override_config_size() const { + return _internal_override_config_size(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +Run::_internal_override_config() const { + return override_config_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +Run::override_config() const { + // @@protoc_insertion_point(field_map:flwr.proto.Run.override_config) + return _internal_override_config(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +Run::_internal_mutable_override_config() { + return override_config_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +Run::mutable_override_config() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.Run.override_config) + return _internal_mutable_override_config(); +} + +// string fab_hash = 5; +inline void Run::clear_fab_hash() { + fab_hash_.ClearToEmpty(); +} +inline const std::string& Run::fab_hash() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.fab_hash) + return _internal_fab_hash(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Run::set_fab_hash(ArgT0&& arg0, ArgT... args) { + + fab_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Run.fab_hash) +} +inline std::string* Run::mutable_fab_hash() { + std::string* _s = _internal_mutable_fab_hash(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Run.fab_hash) + return _s; +} +inline const std::string& Run::_internal_fab_hash() const { + return fab_hash_.Get(); +} +inline void Run::_internal_set_fab_hash(const std::string& value) { + + fab_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Run::_internal_mutable_fab_hash() { + + return fab_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Run::release_fab_hash() { + // @@protoc_insertion_point(field_release:flwr.proto.Run.fab_hash) + return fab_hash_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Run::set_allocated_fab_hash(std::string* fab_hash) { + if (fab_hash != nullptr) { + + } else { + + } + fab_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fab_hash, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Run.fab_hash) +} + +// string pending_at = 6; +inline void Run::clear_pending_at() { + pending_at_.ClearToEmpty(); +} +inline const std::string& Run::pending_at() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.pending_at) + return _internal_pending_at(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Run::set_pending_at(ArgT0&& arg0, ArgT... args) { + + pending_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Run.pending_at) +} +inline std::string* Run::mutable_pending_at() { + std::string* _s = _internal_mutable_pending_at(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Run.pending_at) + return _s; +} +inline const std::string& Run::_internal_pending_at() const { + return pending_at_.Get(); +} +inline void Run::_internal_set_pending_at(const std::string& value) { + + pending_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Run::_internal_mutable_pending_at() { + + return pending_at_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Run::release_pending_at() { + // @@protoc_insertion_point(field_release:flwr.proto.Run.pending_at) + return pending_at_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Run::set_allocated_pending_at(std::string* pending_at) { + if (pending_at != nullptr) { + + } else { + + } + pending_at_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pending_at, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Run.pending_at) +} + +// string starting_at = 7; +inline void Run::clear_starting_at() { + starting_at_.ClearToEmpty(); +} +inline const std::string& Run::starting_at() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.starting_at) + return _internal_starting_at(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Run::set_starting_at(ArgT0&& arg0, ArgT... args) { + + starting_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Run.starting_at) +} +inline std::string* Run::mutable_starting_at() { + std::string* _s = _internal_mutable_starting_at(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Run.starting_at) + return _s; +} +inline const std::string& Run::_internal_starting_at() const { + return starting_at_.Get(); +} +inline void Run::_internal_set_starting_at(const std::string& value) { + + starting_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Run::_internal_mutable_starting_at() { + + return starting_at_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Run::release_starting_at() { + // @@protoc_insertion_point(field_release:flwr.proto.Run.starting_at) + return starting_at_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Run::set_allocated_starting_at(std::string* starting_at) { + if (starting_at != nullptr) { + + } else { + + } + starting_at_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), starting_at, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Run.starting_at) +} + +// string running_at = 8; +inline void Run::clear_running_at() { + running_at_.ClearToEmpty(); +} +inline const std::string& Run::running_at() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.running_at) + return _internal_running_at(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Run::set_running_at(ArgT0&& arg0, ArgT... args) { + + running_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Run.running_at) +} +inline std::string* Run::mutable_running_at() { + std::string* _s = _internal_mutable_running_at(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Run.running_at) + return _s; +} +inline const std::string& Run::_internal_running_at() const { + return running_at_.Get(); +} +inline void Run::_internal_set_running_at(const std::string& value) { + + running_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Run::_internal_mutable_running_at() { + + return running_at_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Run::release_running_at() { + // @@protoc_insertion_point(field_release:flwr.proto.Run.running_at) + return running_at_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Run::set_allocated_running_at(std::string* running_at) { + if (running_at != nullptr) { + + } else { + + } + running_at_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), running_at, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Run.running_at) +} + +// string finished_at = 9; +inline void Run::clear_finished_at() { + finished_at_.ClearToEmpty(); +} +inline const std::string& Run::finished_at() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.finished_at) + return _internal_finished_at(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Run::set_finished_at(ArgT0&& arg0, ArgT... args) { + + finished_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Run.finished_at) +} +inline std::string* Run::mutable_finished_at() { + std::string* _s = _internal_mutable_finished_at(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Run.finished_at) + return _s; +} +inline const std::string& Run::_internal_finished_at() const { + return finished_at_.Get(); +} +inline void Run::_internal_set_finished_at(const std::string& value) { + + finished_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Run::_internal_mutable_finished_at() { + + return finished_at_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Run::release_finished_at() { + // @@protoc_insertion_point(field_release:flwr.proto.Run.finished_at) + return finished_at_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Run::set_allocated_finished_at(std::string* finished_at) { + if (finished_at != nullptr) { + + } else { + + } + finished_at_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), finished_at, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Run.finished_at) +} + +// .flwr.proto.RunStatus status = 10; +inline bool Run::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline bool Run::has_status() const { + return _internal_has_status(); +} +inline void Run::clear_status() { + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +inline const ::flwr::proto::RunStatus& Run::_internal_status() const { + const ::flwr::proto::RunStatus* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_RunStatus_default_instance_); +} +inline const ::flwr::proto::RunStatus& Run::status() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.status) + return _internal_status(); +} +inline void Run::unsafe_arena_set_allocated_status( + ::flwr::proto::RunStatus* 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.Run.status) +} +inline ::flwr::proto::RunStatus* Run::release_status() { + + ::flwr::proto::RunStatus* 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::RunStatus* Run::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_release:flwr.proto.Run.status) + + ::flwr::proto::RunStatus* temp = status_; + status_ = nullptr; + return temp; +} +inline ::flwr::proto::RunStatus* Run::_internal_mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::RunStatus>(GetArenaForAllocation()); + status_ = p; + } + return status_; +} +inline ::flwr::proto::RunStatus* Run::mutable_status() { + ::flwr::proto::RunStatus* _msg = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Run.status) + return _msg; +} +inline void Run::set_allocated_status(::flwr::proto::RunStatus* 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::RunStatus>::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.Run.status) +} + +// string flwr_aid = 11; +inline void Run::clear_flwr_aid() { + flwr_aid_.ClearToEmpty(); +} +inline const std::string& Run::flwr_aid() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.flwr_aid) + return _internal_flwr_aid(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Run::set_flwr_aid(ArgT0&& arg0, ArgT... args) { + + flwr_aid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Run.flwr_aid) +} +inline std::string* Run::mutable_flwr_aid() { + std::string* _s = _internal_mutable_flwr_aid(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Run.flwr_aid) + return _s; +} +inline const std::string& Run::_internal_flwr_aid() const { + return flwr_aid_.Get(); +} +inline void Run::_internal_set_flwr_aid(const std::string& value) { + + flwr_aid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Run::_internal_mutable_flwr_aid() { + + return flwr_aid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Run::release_flwr_aid() { + // @@protoc_insertion_point(field_release:flwr.proto.Run.flwr_aid) + return flwr_aid_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Run::set_allocated_flwr_aid(std::string* flwr_aid) { + if (flwr_aid != nullptr) { + + } else { + + } + flwr_aid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), flwr_aid, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Run.flwr_aid) +} + +// string federation = 12; +inline void Run::clear_federation() { + federation_.ClearToEmpty(); +} +inline const std::string& Run::federation() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.federation) + return _internal_federation(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Run::set_federation(ArgT0&& arg0, ArgT... args) { + + federation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Run.federation) +} +inline std::string* Run::mutable_federation() { + std::string* _s = _internal_mutable_federation(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Run.federation) + return _s; +} +inline const std::string& Run::_internal_federation() const { + return federation_.Get(); +} +inline void Run::_internal_set_federation(const std::string& value) { + + federation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Run::_internal_mutable_federation() { + + return federation_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Run::release_federation() { + // @@protoc_insertion_point(field_release:flwr.proto.Run.federation) + return federation_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Run::set_allocated_federation(std::string* federation) { + if (federation != nullptr) { + + } else { + + } + federation_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), federation, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Run.federation) +} + +// uint64 bytes_sent = 13; +inline void Run::clear_bytes_sent() { + bytes_sent_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Run::_internal_bytes_sent() const { + return bytes_sent_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Run::bytes_sent() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.bytes_sent) + return _internal_bytes_sent(); +} +inline void Run::_internal_set_bytes_sent(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + bytes_sent_ = value; +} +inline void Run::set_bytes_sent(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_bytes_sent(value); + // @@protoc_insertion_point(field_set:flwr.proto.Run.bytes_sent) +} + +// uint64 bytes_recv = 14; +inline void Run::clear_bytes_recv() { + bytes_recv_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Run::_internal_bytes_recv() const { + return bytes_recv_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Run::bytes_recv() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.bytes_recv) + return _internal_bytes_recv(); +} +inline void Run::_internal_set_bytes_recv(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + bytes_recv_ = value; +} +inline void Run::set_bytes_recv(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_bytes_recv(value); + // @@protoc_insertion_point(field_set:flwr.proto.Run.bytes_recv) +} + +// double clientapp_runtime = 15; +inline void Run::clear_clientapp_runtime() { + clientapp_runtime_ = 0; +} +inline double Run::_internal_clientapp_runtime() const { + return clientapp_runtime_; +} +inline double Run::clientapp_runtime() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.clientapp_runtime) + return _internal_clientapp_runtime(); +} +inline void Run::_internal_set_clientapp_runtime(double value) { + + clientapp_runtime_ = value; +} +inline void Run::set_clientapp_runtime(double value) { + _internal_set_clientapp_runtime(value); + // @@protoc_insertion_point(field_set:flwr.proto.Run.clientapp_runtime) +} + +// string run_type = 16; +inline void Run::clear_run_type() { + run_type_.ClearToEmpty(); +} +inline const std::string& Run::run_type() const { + // @@protoc_insertion_point(field_get:flwr.proto.Run.run_type) + return _internal_run_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Run::set_run_type(ArgT0&& arg0, ArgT... args) { + + run_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Run.run_type) +} +inline std::string* Run::mutable_run_type() { + std::string* _s = _internal_mutable_run_type(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Run.run_type) + return _s; +} +inline const std::string& Run::_internal_run_type() const { + return run_type_.Get(); +} +inline void Run::_internal_set_run_type(const std::string& value) { + + run_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Run::_internal_mutable_run_type() { + + return run_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Run::release_run_type() { + // @@protoc_insertion_point(field_release:flwr.proto.Run.run_type) + return run_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Run::set_allocated_run_type(std::string* run_type) { + if (run_type != nullptr) { + + } else { + + } + run_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), run_type, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Run.run_type) +} + +// ------------------------------------------------------------------- + +// RunStatus + +// string status = 1; +inline void RunStatus::clear_status() { + status_.ClearToEmpty(); +} +inline const std::string& RunStatus::status() const { + // @@protoc_insertion_point(field_get:flwr.proto.RunStatus.status) + return _internal_status(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RunStatus::set_status(ArgT0&& arg0, ArgT... args) { + + status_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.RunStatus.status) +} +inline std::string* RunStatus::mutable_status() { + std::string* _s = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:flwr.proto.RunStatus.status) + return _s; +} +inline const std::string& RunStatus::_internal_status() const { + return status_.Get(); +} +inline void RunStatus::_internal_set_status(const std::string& value) { + + status_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* RunStatus::_internal_mutable_status() { + + return status_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* RunStatus::release_status() { + // @@protoc_insertion_point(field_release:flwr.proto.RunStatus.status) + return status_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void RunStatus::set_allocated_status(std::string* status) { + if (status != nullptr) { + + } else { + + } + status_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), status, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.RunStatus.status) +} + +// string sub_status = 2; +inline void RunStatus::clear_sub_status() { + sub_status_.ClearToEmpty(); +} +inline const std::string& RunStatus::sub_status() const { + // @@protoc_insertion_point(field_get:flwr.proto.RunStatus.sub_status) + return _internal_sub_status(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RunStatus::set_sub_status(ArgT0&& arg0, ArgT... args) { + + sub_status_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.RunStatus.sub_status) +} +inline std::string* RunStatus::mutable_sub_status() { + std::string* _s = _internal_mutable_sub_status(); + // @@protoc_insertion_point(field_mutable:flwr.proto.RunStatus.sub_status) + return _s; +} +inline const std::string& RunStatus::_internal_sub_status() const { + return sub_status_.Get(); +} +inline void RunStatus::_internal_set_sub_status(const std::string& value) { + + sub_status_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* RunStatus::_internal_mutable_sub_status() { + + return sub_status_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* RunStatus::release_sub_status() { + // @@protoc_insertion_point(field_release:flwr.proto.RunStatus.sub_status) + return sub_status_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void RunStatus::set_allocated_sub_status(std::string* sub_status) { + if (sub_status != nullptr) { + + } else { + + } + sub_status_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sub_status, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.RunStatus.sub_status) +} + +// string details = 3; +inline void RunStatus::clear_details() { + details_.ClearToEmpty(); +} +inline const std::string& RunStatus::details() const { + // @@protoc_insertion_point(field_get:flwr.proto.RunStatus.details) + return _internal_details(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RunStatus::set_details(ArgT0&& arg0, ArgT... args) { + + details_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.RunStatus.details) +} +inline std::string* RunStatus::mutable_details() { + std::string* _s = _internal_mutable_details(); + // @@protoc_insertion_point(field_mutable:flwr.proto.RunStatus.details) + return _s; +} +inline const std::string& RunStatus::_internal_details() const { + return details_.Get(); +} +inline void RunStatus::_internal_set_details(const std::string& value) { + + details_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* RunStatus::_internal_mutable_details() { + + return details_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* RunStatus::release_details() { + // @@protoc_insertion_point(field_release:flwr.proto.RunStatus.details) + return details_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void RunStatus::set_allocated_details(std::string* details) { + if (details != nullptr) { + + } else { + + } + details_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), details, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.RunStatus.details) +} + +// ------------------------------------------------------------------- + +// GetRunRequest + +// .flwr.proto.Node node = 1; +inline bool GetRunRequest::_internal_has_node() const { + return this != internal_default_instance() && node_ != nullptr; +} +inline bool GetRunRequest::has_node() const { + return _internal_has_node(); +} +inline const ::flwr::proto::Node& GetRunRequest::_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& GetRunRequest::node() const { + // @@protoc_insertion_point(field_get:flwr.proto.GetRunRequest.node) + return _internal_node(); +} +inline void GetRunRequest::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.GetRunRequest.node) +} +inline ::flwr::proto::Node* GetRunRequest::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* GetRunRequest::unsafe_arena_release_node() { + // @@protoc_insertion_point(field_release:flwr.proto.GetRunRequest.node) + + ::flwr::proto::Node* temp = node_; + node_ = nullptr; + return temp; +} +inline ::flwr::proto::Node* GetRunRequest::_internal_mutable_node() { + + if (node_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); + node_ = p; + } + return node_; +} +inline ::flwr::proto::Node* GetRunRequest::mutable_node() { + ::flwr::proto::Node* _msg = _internal_mutable_node(); + // @@protoc_insertion_point(field_mutable:flwr.proto.GetRunRequest.node) + return _msg; +} +inline void GetRunRequest::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.GetRunRequest.node) +} + +// uint64 run_id = 2; +inline void GetRunRequest::clear_run_id() { + run_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 GetRunRequest::_internal_run_id() const { + return run_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 GetRunRequest::run_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.GetRunRequest.run_id) + return _internal_run_id(); +} +inline void GetRunRequest::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + run_id_ = value; +} +inline void GetRunRequest::set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_run_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.GetRunRequest.run_id) +} + +// ------------------------------------------------------------------- + +// GetRunResponse + +// .flwr.proto.Run run = 1; +inline bool GetRunResponse::_internal_has_run() const { + return this != internal_default_instance() && run_ != nullptr; +} +inline bool GetRunResponse::has_run() const { + return _internal_has_run(); +} +inline void GetRunResponse::clear_run() { + if (GetArenaForAllocation() == nullptr && run_ != nullptr) { + delete run_; + } + run_ = nullptr; +} +inline const ::flwr::proto::Run& GetRunResponse::_internal_run() const { + const ::flwr::proto::Run* p = run_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Run_default_instance_); +} +inline const ::flwr::proto::Run& GetRunResponse::run() const { + // @@protoc_insertion_point(field_get:flwr.proto.GetRunResponse.run) + return _internal_run(); +} +inline void GetRunResponse::unsafe_arena_set_allocated_run( + ::flwr::proto::Run* run) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(run_); + } + run_ = run; + if (run) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.GetRunResponse.run) +} +inline ::flwr::proto::Run* GetRunResponse::release_run() { + + ::flwr::proto::Run* temp = run_; + run_ = 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::Run* GetRunResponse::unsafe_arena_release_run() { + // @@protoc_insertion_point(field_release:flwr.proto.GetRunResponse.run) + + ::flwr::proto::Run* temp = run_; + run_ = nullptr; + return temp; +} +inline ::flwr::proto::Run* GetRunResponse::_internal_mutable_run() { + + if (run_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Run>(GetArenaForAllocation()); + run_ = p; + } + return run_; +} +inline ::flwr::proto::Run* GetRunResponse::mutable_run() { + ::flwr::proto::Run* _msg = _internal_mutable_run(); + // @@protoc_insertion_point(field_mutable:flwr.proto.GetRunResponse.run) + return _msg; +} +inline void GetRunResponse::set_allocated_run(::flwr::proto::Run* run) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete run_; + } + if (run) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Run>::GetOwningArena(run); + if (message_arena != submessage_arena) { + run = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, run, submessage_arena); + } + + } else { + + } + run_ = run; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.GetRunResponse.run) +} + +// ------------------------------------------------------------------- + +// UpdateRunStatusRequest + +// uint64 run_id = 1; +inline void UpdateRunStatusRequest::clear_run_id() { + run_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 UpdateRunStatusRequest::_internal_run_id() const { + return run_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 UpdateRunStatusRequest::run_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.UpdateRunStatusRequest.run_id) + return _internal_run_id(); +} +inline void UpdateRunStatusRequest::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + run_id_ = value; +} +inline void UpdateRunStatusRequest::set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_run_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.UpdateRunStatusRequest.run_id) +} + +// .flwr.proto.RunStatus run_status = 2; +inline bool UpdateRunStatusRequest::_internal_has_run_status() const { + return this != internal_default_instance() && run_status_ != nullptr; +} +inline bool UpdateRunStatusRequest::has_run_status() const { + return _internal_has_run_status(); +} +inline void UpdateRunStatusRequest::clear_run_status() { + if (GetArenaForAllocation() == nullptr && run_status_ != nullptr) { + delete run_status_; + } + run_status_ = nullptr; +} +inline const ::flwr::proto::RunStatus& UpdateRunStatusRequest::_internal_run_status() const { + const ::flwr::proto::RunStatus* p = run_status_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_RunStatus_default_instance_); +} +inline const ::flwr::proto::RunStatus& UpdateRunStatusRequest::run_status() const { + // @@protoc_insertion_point(field_get:flwr.proto.UpdateRunStatusRequest.run_status) + return _internal_run_status(); +} +inline void UpdateRunStatusRequest::unsafe_arena_set_allocated_run_status( + ::flwr::proto::RunStatus* run_status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(run_status_); + } + run_status_ = run_status; + if (run_status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.UpdateRunStatusRequest.run_status) +} +inline ::flwr::proto::RunStatus* UpdateRunStatusRequest::release_run_status() { + + ::flwr::proto::RunStatus* temp = run_status_; + run_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::RunStatus* UpdateRunStatusRequest::unsafe_arena_release_run_status() { + // @@protoc_insertion_point(field_release:flwr.proto.UpdateRunStatusRequest.run_status) + + ::flwr::proto::RunStatus* temp = run_status_; + run_status_ = nullptr; + return temp; +} +inline ::flwr::proto::RunStatus* UpdateRunStatusRequest::_internal_mutable_run_status() { + + if (run_status_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::RunStatus>(GetArenaForAllocation()); + run_status_ = p; + } + return run_status_; +} +inline ::flwr::proto::RunStatus* UpdateRunStatusRequest::mutable_run_status() { + ::flwr::proto::RunStatus* _msg = _internal_mutable_run_status(); + // @@protoc_insertion_point(field_mutable:flwr.proto.UpdateRunStatusRequest.run_status) + return _msg; +} +inline void UpdateRunStatusRequest::set_allocated_run_status(::flwr::proto::RunStatus* run_status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete run_status_; + } + if (run_status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::RunStatus>::GetOwningArena(run_status); + if (message_arena != submessage_arena) { + run_status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, run_status, submessage_arena); + } + + } else { + + } + run_status_ = run_status; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.UpdateRunStatusRequest.run_status) +} + +// ------------------------------------------------------------------- + +// UpdateRunStatusResponse + +// ------------------------------------------------------------------- + +// GetFederationOptionsRequest + +// uint64 run_id = 1; +inline void GetFederationOptionsRequest::clear_run_id() { + run_id_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 GetFederationOptionsRequest::_internal_run_id() const { + return run_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 GetFederationOptionsRequest::run_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.GetFederationOptionsRequest.run_id) + return _internal_run_id(); +} +inline void GetFederationOptionsRequest::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + run_id_ = value; +} +inline void GetFederationOptionsRequest::set_run_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_run_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.GetFederationOptionsRequest.run_id) +} + +// ------------------------------------------------------------------- + +// GetFederationOptionsResponse + +// .flwr.proto.ConfigRecord federation_options = 1; +inline bool GetFederationOptionsResponse::_internal_has_federation_options() const { + return this != internal_default_instance() && federation_options_ != nullptr; +} +inline bool GetFederationOptionsResponse::has_federation_options() const { + return _internal_has_federation_options(); +} +inline const ::flwr::proto::ConfigRecord& GetFederationOptionsResponse::_internal_federation_options() const { + const ::flwr::proto::ConfigRecord* p = federation_options_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_ConfigRecord_default_instance_); +} +inline const ::flwr::proto::ConfigRecord& GetFederationOptionsResponse::federation_options() const { + // @@protoc_insertion_point(field_get:flwr.proto.GetFederationOptionsResponse.federation_options) + return _internal_federation_options(); +} +inline void GetFederationOptionsResponse::unsafe_arena_set_allocated_federation_options( + ::flwr::proto::ConfigRecord* federation_options) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(federation_options_); + } + federation_options_ = federation_options; + if (federation_options) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.GetFederationOptionsResponse.federation_options) +} +inline ::flwr::proto::ConfigRecord* GetFederationOptionsResponse::release_federation_options() { + + ::flwr::proto::ConfigRecord* temp = federation_options_; + federation_options_ = 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::ConfigRecord* GetFederationOptionsResponse::unsafe_arena_release_federation_options() { + // @@protoc_insertion_point(field_release:flwr.proto.GetFederationOptionsResponse.federation_options) + + ::flwr::proto::ConfigRecord* temp = federation_options_; + federation_options_ = nullptr; + return temp; +} +inline ::flwr::proto::ConfigRecord* GetFederationOptionsResponse::_internal_mutable_federation_options() { + + if (federation_options_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::ConfigRecord>(GetArenaForAllocation()); + federation_options_ = p; + } + return federation_options_; +} +inline ::flwr::proto::ConfigRecord* GetFederationOptionsResponse::mutable_federation_options() { + ::flwr::proto::ConfigRecord* _msg = _internal_mutable_federation_options(); + // @@protoc_insertion_point(field_mutable:flwr.proto.GetFederationOptionsResponse.federation_options) + return _msg; +} +inline void GetFederationOptionsResponse::set_allocated_federation_options(::flwr::proto::ConfigRecord* federation_options) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(federation_options_); + } + if (federation_options) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(federation_options)); + if (message_arena != submessage_arena) { + federation_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, federation_options, submessage_arena); + } + + } else { + + } + federation_options_ = federation_options; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.GetFederationOptionsResponse.federation_options) +} + +#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_2frun_2eproto diff --git a/framework/cc/flwr/include/flwr/proto/task.pb.cc b/framework/cc/flwr/include/flwr/proto/task.pb.cc deleted file mode 100644 index 04fa3e8e2625..000000000000 --- a/framework/cc/flwr/include/flwr/proto/task.pb.cc +++ /dev/null @@ -1,1362 +0,0 @@ -// 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_() - , delivered_at_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , task_type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , producer_(nullptr) - , consumer_(nullptr) - , recordset_(nullptr) - , error_(nullptr) - , created_at_(0) - , pushed_at_(0) - , ttl_(0){} -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) - , run_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) - , run_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_; -} // namespace proto -} // namespace flwr -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2ftask_2eproto[3]; -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, pushed_at_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, ttl_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, ancestry_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, task_type_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, recordset_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, error_), - ~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, run_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, run_id_), - PROTOBUF_FIELD_OFFSET(::flwr::proto::TaskRes, task_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::flwr::proto::Task)}, - { 16, -1, -1, sizeof(::flwr::proto::TaskIns)}, - { 26, -1, -1, sizeof(::flwr::proto::TaskRes)}, -}; - -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_), -}; - -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/recordset" - ".proto\032\032flwr/proto/transport.proto\032\026flwr" - "/proto/error.proto\"\211\002\n\004Task\022\"\n\010producer\030" - "\001 \001(\0132\020.flwr.proto.Node\022\"\n\010consumer\030\002 \001(" - "\0132\020.flwr.proto.Node\022\022\n\ncreated_at\030\003 \001(\001\022" - "\024\n\014delivered_at\030\004 \001(\t\022\021\n\tpushed_at\030\005 \001(\001" - "\022\013\n\003ttl\030\006 \001(\001\022\020\n\010ancestry\030\007 \003(\t\022\021\n\ttask_" - "type\030\010 \001(\t\022(\n\trecordset\030\t \001(\0132\025.flwr.pro" - "to.RecordSet\022 \n\005error\030\n \001(\0132\021.flwr.proto" - ".Error\"\\\n\007TaskIns\022\017\n\007task_id\030\001 \001(\t\022\020\n\010gr" - "oup_id\030\002 \001(\t\022\016\n\006run_id\030\003 \001(\022\022\036\n\004task\030\004 \001" - "(\0132\020.flwr.proto.Task\"\\\n\007TaskRes\022\017\n\007task_" - "id\030\001 \001(\t\022\020\n\010group_id\030\002 \001(\t\022\016\n\006run_id\030\003 \001" - "(\022\022\036\n\004task\030\004 \001(\0132\020.flwr.proto.Taskb\006prot" - "o3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_flwr_2fproto_2ftask_2eproto_deps[4] = { - &::descriptor_table_flwr_2fproto_2ferror_2eproto, - &::descriptor_table_flwr_2fproto_2fnode_2eproto, - &::descriptor_table_flwr_2fproto_2frecordset_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, 602, 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, 4, 3, - 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::RecordSet& recordset(const Task* msg); - static const ::flwr::proto::Error& error(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::RecordSet& -Task::_Internal::recordset(const Task* msg) { - return *msg->recordset_; -} -const ::flwr::proto::Error& -Task::_Internal::error(const Task* msg) { - return *msg->error_; -} -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_recordset() { - if (GetArenaForAllocation() == nullptr && recordset_ != nullptr) { - delete recordset_; - } - recordset_ = nullptr; -} -void Task::clear_error() { - if (GetArenaForAllocation() == nullptr && error_ != nullptr) { - delete error_; - } - error_ = 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_); - 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()); - } - task_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_task_type().empty()) { - task_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_task_type(), - 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_recordset()) { - recordset_ = new ::flwr::proto::RecordSet(*from.recordset_); - } else { - recordset_ = nullptr; - } - if (from._internal_has_error()) { - error_ = new ::flwr::proto::Error(*from.error_); - } else { - error_ = nullptr; - } - ::memcpy(&created_at_, &from.created_at_, - static_cast(reinterpret_cast(&ttl_) - - reinterpret_cast(&created_at_)) + sizeof(ttl_)); - // @@protoc_insertion_point(copy_constructor:flwr.proto.Task) -} - -void Task::SharedCtor() { -delivered_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -task_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&producer_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&ttl_) - - reinterpret_cast(&producer_)) + sizeof(ttl_)); -} - -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); - delivered_at_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - task_type_.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 recordset_; - if (this != internal_default_instance()) delete error_; -} - -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(); - delivered_at_.ClearToEmpty(); - task_type_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && producer_ != nullptr) { - delete producer_; - } - producer_ = nullptr; - if (GetArenaForAllocation() == nullptr && consumer_ != nullptr) { - delete consumer_; - } - consumer_ = nullptr; - if (GetArenaForAllocation() == nullptr && recordset_ != nullptr) { - delete recordset_; - } - recordset_ = nullptr; - if (GetArenaForAllocation() == nullptr && error_ != nullptr) { - delete error_; - } - error_ = nullptr; - ::memset(&created_at_, 0, static_cast( - reinterpret_cast(&ttl_) - - reinterpret_cast(&created_at_)) + sizeof(ttl_)); - _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; - // double created_at = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { - created_at_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } 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; - // double pushed_at = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 41)) { - pushed_at_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double ttl = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 49)) { - ttl_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // repeated string ancestry = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - 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<58>(ptr)); - } else - goto handle_unusual; - continue; - // string task_type = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { - auto str = _internal_mutable_task_type(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Task.task_type")); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .flwr.proto.RecordSet recordset = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { - ptr = ctx->ParseMessage(_internal_mutable_recordset(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .flwr.proto.Error error = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_error(), 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); - } - - // double created_at = 3; - if (!(this->_internal_created_at() <= 0 && this->_internal_created_at() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(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); - } - - // double pushed_at = 5; - if (!(this->_internal_pushed_at() <= 0 && this->_internal_pushed_at() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(5, this->_internal_pushed_at(), target); - } - - // double ttl = 6; - if (!(this->_internal_ttl() <= 0 && this->_internal_ttl() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->_internal_ttl(), target); - } - - // repeated string ancestry = 7; - 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(7, s, target); - } - - // string task_type = 8; - if (!this->_internal_task_type().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_task_type().data(), static_cast(this->_internal_task_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "flwr.proto.Task.task_type"); - target = stream->WriteStringMaybeAliased( - 8, this->_internal_task_type(), target); - } - - // .flwr.proto.RecordSet recordset = 9; - if (this->_internal_has_recordset()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 9, _Internal::recordset(this), target, stream); - } - - // .flwr.proto.Error error = 10; - if (this->_internal_has_error()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::error(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 = 7; - 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 delivered_at = 4; - if (!this->_internal_delivered_at().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_delivered_at()); - } - - // string task_type = 8; - if (!this->_internal_task_type().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_task_type()); - } - - // .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.RecordSet recordset = 9; - if (this->_internal_has_recordset()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *recordset_); - } - - // .flwr.proto.Error error = 10; - if (this->_internal_has_error()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *error_); - } - - // double created_at = 3; - if (!(this->_internal_created_at() <= 0 && this->_internal_created_at() >= 0)) { - total_size += 1 + 8; - } - - // double pushed_at = 5; - if (!(this->_internal_pushed_at() <= 0 && this->_internal_pushed_at() >= 0)) { - total_size += 1 + 8; - } - - // double ttl = 6; - if (!(this->_internal_ttl() <= 0 && this->_internal_ttl() >= 0)) { - total_size += 1 + 8; - } - - 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_delivered_at().empty()) { - _internal_set_delivered_at(from._internal_delivered_at()); - } - if (!from._internal_task_type().empty()) { - _internal_set_task_type(from._internal_task_type()); - } - 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_recordset()) { - _internal_mutable_recordset()->::flwr::proto::RecordSet::MergeFrom(from._internal_recordset()); - } - if (from._internal_has_error()) { - _internal_mutable_error()->::flwr::proto::Error::MergeFrom(from._internal_error()); - } - if (!(from._internal_created_at() <= 0 && from._internal_created_at() >= 0)) { - _internal_set_created_at(from._internal_created_at()); - } - if (!(from._internal_pushed_at() <= 0 && from._internal_pushed_at() >= 0)) { - _internal_set_pushed_at(from._internal_pushed_at()); - } - if (!(from._internal_ttl() <= 0 && from._internal_ttl() >= 0)) { - _internal_set_ttl(from._internal_ttl()); - } - _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(), - &delivered_at_, lhs_arena, - &other->delivered_at_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &task_type_, lhs_arena, - &other->task_type_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Task, ttl_) - + sizeof(Task::ttl_) - - 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; - } - run_id_ = from.run_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(&run_id_) - - reinterpret_cast(&task_)) + sizeof(run_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; - run_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 run_id = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - run_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 run_id = 3; - if (this->_internal_run_id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(3, this->_internal_run_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 run_id = 3; - if (this->_internal_run_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64SizePlusOne(this->_internal_run_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_run_id() != 0) { - _internal_set_run_id(from._internal_run_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, run_id_) - + sizeof(TaskIns::run_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; - } - run_id_ = from.run_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(&run_id_) - - reinterpret_cast(&task_)) + sizeof(run_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; - run_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 run_id = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - run_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 run_id = 3; - if (this->_internal_run_id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(3, this->_internal_run_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 run_id = 3; - if (this->_internal_run_id() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64SizePlusOne(this->_internal_run_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_run_id() != 0) { - _internal_set_run_id(from._internal_run_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, run_id_) - + sizeof(TaskRes::run_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]); -} - -// @@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); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/framework/cc/flwr/include/flwr/proto/task.pb.h b/framework/cc/flwr/include/flwr/proto/task.pb.h deleted file mode 100644 index 3dc421e2f8ab..000000000000 --- a/framework/cc/flwr/include/flwr/proto/task.pb.h +++ /dev/null @@ -1,1784 +0,0 @@ -// 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 -#include "flwr/proto/node.pb.h" -#include "flwr/proto/recordset.pb.h" -#include "flwr/proto/transport.pb.h" -#include "flwr/proto/error.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[3] - 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 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_; -} // namespace proto -} // namespace flwr -PROTOBUF_NAMESPACE_OPEN -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*); -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 = 7, - kDeliveredAtFieldNumber = 4, - kTaskTypeFieldNumber = 8, - kProducerFieldNumber = 1, - kConsumerFieldNumber = 2, - kRecordsetFieldNumber = 9, - kErrorFieldNumber = 10, - kCreatedAtFieldNumber = 3, - kPushedAtFieldNumber = 5, - kTtlFieldNumber = 6, - }; - // repeated string ancestry = 7; - 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 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 task_type = 8; - void clear_task_type(); - const std::string& task_type() const; - template - void set_task_type(ArgT0&& arg0, ArgT... args); - std::string* mutable_task_type(); - PROTOBUF_MUST_USE_RESULT std::string* release_task_type(); - void set_allocated_task_type(std::string* task_type); - private: - const std::string& _internal_task_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_task_type(const std::string& value); - std::string* _internal_mutable_task_type(); - 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.RecordSet recordset = 9; - bool has_recordset() const; - private: - bool _internal_has_recordset() const; - public: - void clear_recordset(); - const ::flwr::proto::RecordSet& recordset() const; - PROTOBUF_MUST_USE_RESULT ::flwr::proto::RecordSet* release_recordset(); - ::flwr::proto::RecordSet* mutable_recordset(); - void set_allocated_recordset(::flwr::proto::RecordSet* recordset); - private: - const ::flwr::proto::RecordSet& _internal_recordset() const; - ::flwr::proto::RecordSet* _internal_mutable_recordset(); - public: - void unsafe_arena_set_allocated_recordset( - ::flwr::proto::RecordSet* recordset); - ::flwr::proto::RecordSet* unsafe_arena_release_recordset(); - - // .flwr.proto.Error error = 10; - bool has_error() const; - private: - bool _internal_has_error() const; - public: - void clear_error(); - const ::flwr::proto::Error& error() const; - PROTOBUF_MUST_USE_RESULT ::flwr::proto::Error* release_error(); - ::flwr::proto::Error* mutable_error(); - void set_allocated_error(::flwr::proto::Error* error); - private: - const ::flwr::proto::Error& _internal_error() const; - ::flwr::proto::Error* _internal_mutable_error(); - public: - void unsafe_arena_set_allocated_error( - ::flwr::proto::Error* error); - ::flwr::proto::Error* unsafe_arena_release_error(); - - // double created_at = 3; - void clear_created_at(); - double created_at() const; - void set_created_at(double value); - private: - double _internal_created_at() const; - void _internal_set_created_at(double value); - public: - - // double pushed_at = 5; - void clear_pushed_at(); - double pushed_at() const; - void set_pushed_at(double value); - private: - double _internal_pushed_at() const; - void _internal_set_pushed_at(double value); - public: - - // double ttl = 6; - void clear_ttl(); - double ttl() const; - void set_ttl(double value); - private: - double _internal_ttl() const; - void _internal_set_ttl(double value); - public: - - // @@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 delivered_at_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr task_type_; - ::flwr::proto::Node* producer_; - ::flwr::proto::Node* consumer_; - ::flwr::proto::RecordSet* recordset_; - ::flwr::proto::Error* error_; - double created_at_; - double pushed_at_; - double ttl_; - 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, - kRunIdFieldNumber = 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 run_id = 3; - void clear_run_id(); - ::PROTOBUF_NAMESPACE_ID::int64 run_id() const; - void set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_run_id() const; - void _internal_set_run_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 run_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, - kRunIdFieldNumber = 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 run_id = 3; - void clear_run_id(); - ::PROTOBUF_NAMESPACE_ID::int64 run_id() const; - void set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_run_id() const; - void _internal_set_run_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 run_id_; - 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) -} - -// double created_at = 3; -inline void Task::clear_created_at() { - created_at_ = 0; -} -inline double Task::_internal_created_at() const { - return created_at_; -} -inline double Task::created_at() const { - // @@protoc_insertion_point(field_get:flwr.proto.Task.created_at) - return _internal_created_at(); -} -inline void Task::_internal_set_created_at(double value) { - - created_at_ = value; -} -inline void Task::set_created_at(double value) { - _internal_set_created_at(value); - // @@protoc_insertion_point(field_set: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) -} - -// double pushed_at = 5; -inline void Task::clear_pushed_at() { - pushed_at_ = 0; -} -inline double Task::_internal_pushed_at() const { - return pushed_at_; -} -inline double Task::pushed_at() const { - // @@protoc_insertion_point(field_get:flwr.proto.Task.pushed_at) - return _internal_pushed_at(); -} -inline void Task::_internal_set_pushed_at(double value) { - - pushed_at_ = value; -} -inline void Task::set_pushed_at(double value) { - _internal_set_pushed_at(value); - // @@protoc_insertion_point(field_set:flwr.proto.Task.pushed_at) -} - -// double ttl = 6; -inline void Task::clear_ttl() { - ttl_ = 0; -} -inline double Task::_internal_ttl() const { - return ttl_; -} -inline double Task::ttl() const { - // @@protoc_insertion_point(field_get:flwr.proto.Task.ttl) - return _internal_ttl(); -} -inline void Task::_internal_set_ttl(double value) { - - ttl_ = value; -} -inline void Task::set_ttl(double value) { - _internal_set_ttl(value); - // @@protoc_insertion_point(field_set:flwr.proto.Task.ttl) -} - -// repeated string ancestry = 7; -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_; -} - -// string task_type = 8; -inline void Task::clear_task_type() { - task_type_.ClearToEmpty(); -} -inline const std::string& Task::task_type() const { - // @@protoc_insertion_point(field_get:flwr.proto.Task.task_type) - return _internal_task_type(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Task::set_task_type(ArgT0&& arg0, ArgT... args) { - - task_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:flwr.proto.Task.task_type) -} -inline std::string* Task::mutable_task_type() { - std::string* _s = _internal_mutable_task_type(); - // @@protoc_insertion_point(field_mutable:flwr.proto.Task.task_type) - return _s; -} -inline const std::string& Task::_internal_task_type() const { - return task_type_.Get(); -} -inline void Task::_internal_set_task_type(const std::string& value) { - - task_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* Task::_internal_mutable_task_type() { - - return task_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* Task::release_task_type() { - // @@protoc_insertion_point(field_release:flwr.proto.Task.task_type) - return task_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -} -inline void Task::set_allocated_task_type(std::string* task_type) { - if (task_type != nullptr) { - - } else { - - } - task_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), task_type, - GetArenaForAllocation()); - // @@protoc_insertion_point(field_set_allocated:flwr.proto.Task.task_type) -} - -// .flwr.proto.RecordSet recordset = 9; -inline bool Task::_internal_has_recordset() const { - return this != internal_default_instance() && recordset_ != nullptr; -} -inline bool Task::has_recordset() const { - return _internal_has_recordset(); -} -inline const ::flwr::proto::RecordSet& Task::_internal_recordset() const { - const ::flwr::proto::RecordSet* p = recordset_; - return p != nullptr ? *p : reinterpret_cast( - ::flwr::proto::_RecordSet_default_instance_); -} -inline const ::flwr::proto::RecordSet& Task::recordset() const { - // @@protoc_insertion_point(field_get:flwr.proto.Task.recordset) - return _internal_recordset(); -} -inline void Task::unsafe_arena_set_allocated_recordset( - ::flwr::proto::RecordSet* recordset) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(recordset_); - } - recordset_ = recordset; - if (recordset) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Task.recordset) -} -inline ::flwr::proto::RecordSet* Task::release_recordset() { - - ::flwr::proto::RecordSet* temp = recordset_; - recordset_ = 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::RecordSet* Task::unsafe_arena_release_recordset() { - // @@protoc_insertion_point(field_release:flwr.proto.Task.recordset) - - ::flwr::proto::RecordSet* temp = recordset_; - recordset_ = nullptr; - return temp; -} -inline ::flwr::proto::RecordSet* Task::_internal_mutable_recordset() { - - if (recordset_ == nullptr) { - auto* p = CreateMaybeMessage<::flwr::proto::RecordSet>(GetArenaForAllocation()); - recordset_ = p; - } - return recordset_; -} -inline ::flwr::proto::RecordSet* Task::mutable_recordset() { - ::flwr::proto::RecordSet* _msg = _internal_mutable_recordset(); - // @@protoc_insertion_point(field_mutable:flwr.proto.Task.recordset) - return _msg; -} -inline void Task::set_allocated_recordset(::flwr::proto::RecordSet* recordset) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(recordset_); - } - if (recordset) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< - ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(recordset)); - if (message_arena != submessage_arena) { - recordset = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, recordset, submessage_arena); - } - - } else { - - } - recordset_ = recordset; - // @@protoc_insertion_point(field_set_allocated:flwr.proto.Task.recordset) -} - -// .flwr.proto.Error error = 10; -inline bool Task::_internal_has_error() const { - return this != internal_default_instance() && error_ != nullptr; -} -inline bool Task::has_error() const { - return _internal_has_error(); -} -inline const ::flwr::proto::Error& Task::_internal_error() const { - const ::flwr::proto::Error* p = error_; - return p != nullptr ? *p : reinterpret_cast( - ::flwr::proto::_Error_default_instance_); -} -inline const ::flwr::proto::Error& Task::error() const { - // @@protoc_insertion_point(field_get:flwr.proto.Task.error) - return _internal_error(); -} -inline void Task::unsafe_arena_set_allocated_error( - ::flwr::proto::Error* error) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_); - } - error_ = error; - if (error) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Task.error) -} -inline ::flwr::proto::Error* Task::release_error() { - - ::flwr::proto::Error* temp = error_; - error_ = 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::Error* Task::unsafe_arena_release_error() { - // @@protoc_insertion_point(field_release:flwr.proto.Task.error) - - ::flwr::proto::Error* temp = error_; - error_ = nullptr; - return temp; -} -inline ::flwr::proto::Error* Task::_internal_mutable_error() { - - if (error_ == nullptr) { - auto* p = CreateMaybeMessage<::flwr::proto::Error>(GetArenaForAllocation()); - error_ = p; - } - return error_; -} -inline ::flwr::proto::Error* Task::mutable_error() { - ::flwr::proto::Error* _msg = _internal_mutable_error(); - // @@protoc_insertion_point(field_mutable:flwr.proto.Task.error) - return _msg; -} -inline void Task::set_allocated_error(::flwr::proto::Error* error) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_); - } - if (error) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< - ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error)); - if (message_arena != submessage_arena) { - error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, error, submessage_arena); - } - - } else { - - } - error_ = error; - // @@protoc_insertion_point(field_set_allocated:flwr.proto.Task.error) -} - -// ------------------------------------------------------------------- - -// 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 run_id = 3; -inline void TaskIns::clear_run_id() { - run_id_ = int64_t{0}; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TaskIns::_internal_run_id() const { - return run_id_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TaskIns::run_id() const { - // @@protoc_insertion_point(field_get:flwr.proto.TaskIns.run_id) - return _internal_run_id(); -} -inline void TaskIns::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - run_id_ = value; -} -inline void TaskIns::set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_run_id(value); - // @@protoc_insertion_point(field_set:flwr.proto.TaskIns.run_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 run_id = 3; -inline void TaskRes::clear_run_id() { - run_id_ = int64_t{0}; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TaskRes::_internal_run_id() const { - return run_id_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TaskRes::run_id() const { - // @@protoc_insertion_point(field_get:flwr.proto.TaskRes.run_id) - return _internal_run_id(); -} -inline void TaskRes::_internal_set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - run_id_ = value; -} -inline void TaskRes::set_run_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_run_id(value); - // @@protoc_insertion_point(field_set:flwr.proto.TaskRes.run_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) -} - -#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/framework/cc/flwr/include/flwr/proto/transport.pb.cc b/framework/cc/flwr/include/flwr/proto/transport.pb.cc index 8b227196c87c..7d4c403e2d4d 100644 --- a/framework/cc/flwr/include/flwr/proto/transport.pb.cc +++ b/framework/cc/flwr/include/flwr/proto/transport.pb.cc @@ -497,6 +497,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2ftransport_2epro ::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) = { @@ -610,22 +611,22 @@ const char descriptor_table_protodef_flwr_2fproto_2ftransport_2eproto[] PROTOBUF "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" + "proto.Scalar:\0028\001B\005\n\003msg\"{\n\006Scalar\022\020\n\006dou" + "ble\030\001 \001(\001H\000\022\020\n\006uint64\030\006 \001(\004H\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\000B\010\n\006scalar*\215\001\n\004Code\022\006\n" + "\002OK\020\000\022\"\n\036GET_PROPERTIES_NOT_IMPLEMENTED\020" + "\001\022\"\n\036GET_PARAMETERS_NOT_IMPLEMENTED\020\002\022\027\n" + "\023FIT_NOT_IMPLEMENTED\020\003\022\034\n\030EVALUATE_NOT_I" + "MPLEMENTED\020\004*[\n\006Reason\022\013\n\007UNKNOWN\020\000\022\r\n\tR" + "ECONNECT\020\001\022\026\n\022POWER_DISCONNECTED\020\002\022\024\n\020WI" + "FI_UNAVAILABLE\020\003\022\007\n\003ACK\020\0042S\n\rFlowerServi" + "ce\022B\n\004Join\022\031.flwr.proto.ClientMessage\032\031." + "flwr.proto.ServerMessage\"\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", + false, false, 2878, 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, @@ -4717,6 +4718,10 @@ Scalar::Scalar(const Scalar& from) _internal_set_double_(from._internal_double_()); break; } + case kUint64: { + _internal_set_uint64(from._internal_uint64()); + break; + } case kSint64: { _internal_set_sint64(from._internal_sint64()); break; @@ -4775,6 +4780,10 @@ void Scalar::clear_scalar() { // No need to clear break; } + case kUint64: { + // No need to clear + break; + } case kSint64: { // No need to clear break; @@ -4823,6 +4832,14 @@ const char* Scalar::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int } else goto handle_unusual; continue; + // uint64 uint64 = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + _internal_set_uint64(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; // sint64 sint64 = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { @@ -4893,6 +4910,12 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Scalar::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_double_(), target); } + // uint64 uint64 = 6; + if (_internal_has_uint64()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_uint64(), target); + } + // sint64 sint64 = 8; if (_internal_has_sint64()) { target = stream->EnsureSpace(target); @@ -4943,6 +4966,11 @@ size_t Scalar::ByteSizeLong() const { total_size += 1 + 8; break; } + // uint64 uint64 = 6; + case kUint64: { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_uint64()); + break; + } // sint64 sint64 = 8; case kSint64: { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64SizePlusOne(this->_internal_sint64()); @@ -4998,6 +5026,10 @@ void Scalar::MergeFrom(const Scalar& from) { _internal_set_double_(from._internal_double_()); break; } + case kUint64: { + _internal_set_uint64(from._internal_uint64()); + break; + } case kSint64: { _internal_set_sint64(from._internal_sint64()); break; diff --git a/framework/cc/flwr/include/flwr/proto/transport.pb.h b/framework/cc/flwr/include/flwr/proto/transport.pb.h index 674188c221d5..2cdc2f8b9e2b 100644 --- a/framework/cc/flwr/include/flwr/proto/transport.pb.h +++ b/framework/cc/flwr/include/flwr/proto/transport.pb.h @@ -2994,6 +2994,7 @@ class Scalar final : } enum ScalarCase { kDouble = 1, + kUint64 = 6, kSint64 = 8, kBool = 13, kString = 14, @@ -3078,6 +3079,7 @@ class Scalar final : enum : int { kDoubleFieldNumber = 1, + kUint64FieldNumber = 6, kSint64FieldNumber = 8, kBoolFieldNumber = 13, kStringFieldNumber = 14, @@ -3096,6 +3098,19 @@ class Scalar final : void _internal_set_double_(double value); public: + // uint64 uint64 = 6; + bool has_uint64() const; + private: + bool _internal_has_uint64() const; + public: + void clear_uint64(); + ::PROTOBUF_NAMESPACE_ID::uint64 uint64() const; + void set_uint64(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_uint64() const; + void _internal_set_uint64(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + // sint64 sint64 = 8; bool has_sint64() const; private: @@ -3164,6 +3179,7 @@ class Scalar final : private: class _Internal; void set_has_double_(); + void set_has_uint64(); void set_has_sint64(); void set_has_bool_(); void set_has_string(); @@ -3179,6 +3195,7 @@ class Scalar final : constexpr ScalarUnion() : _constinit_{} {} ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; double double__; + ::PROTOBUF_NAMESPACE_ID::uint64 uint64_; ::PROTOBUF_NAMESPACE_ID::int64 sint64_; bool bool__; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_; @@ -5276,6 +5293,44 @@ inline void Scalar::set_double_(double value) { // @@protoc_insertion_point(field_set:flwr.proto.Scalar.double) } +// uint64 uint64 = 6; +inline bool Scalar::_internal_has_uint64() const { + return scalar_case() == kUint64; +} +inline bool Scalar::has_uint64() const { + return _internal_has_uint64(); +} +inline void Scalar::set_has_uint64() { + _oneof_case_[0] = kUint64; +} +inline void Scalar::clear_uint64() { + if (_internal_has_uint64()) { + scalar_.uint64_ = uint64_t{0u}; + clear_has_scalar(); + } +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Scalar::_internal_uint64() const { + if (_internal_has_uint64()) { + return scalar_.uint64_; + } + return uint64_t{0u}; +} +inline void Scalar::_internal_set_uint64(::PROTOBUF_NAMESPACE_ID::uint64 value) { + if (!_internal_has_uint64()) { + clear_scalar(); + set_has_uint64(); + } + scalar_.uint64_ = value; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Scalar::uint64() const { + // @@protoc_insertion_point(field_get:flwr.proto.Scalar.uint64) + return _internal_uint64(); +} +inline void Scalar::set_uint64(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_uint64(value); + // @@protoc_insertion_point(field_set:flwr.proto.Scalar.uint64) +} + // sint64 sint64 = 8; inline bool Scalar::_internal_has_sint64() const { return scalar_case() == kSint64; diff --git a/framework/cc/flwr/include/grpc_rere.h b/framework/cc/flwr/include/grpc_rere.h index 4f5a1895cbac..951722235477 100644 --- a/framework/cc/flwr/include/grpc_rere.h +++ b/framework/cc/flwr/include/grpc_rere.h @@ -17,27 +17,60 @@ #pragma once #include "communicator.h" #include "flwr/proto/fleet.grpc.pb.h" -#include "message_handler.h" #include +#include +#include class gRPCRereCommunicator : public Communicator { public: gRPCRereCommunicator(std::string server_address, int grpc_max_message_length); + ~gRPCRereCommunicator(); - bool send_create_node(flwr::proto::CreateNodeRequest request, - flwr::proto::CreateNodeResponse *response); + bool send_register_node(flwr::proto::RegisterNodeFleetRequest request, + flwr::proto::RegisterNodeFleetResponse *response); - bool send_delete_node(flwr::proto::DeleteNodeRequest request, - flwr::proto::DeleteNodeResponse *response); + bool send_activate_node(flwr::proto::ActivateNodeRequest request, + flwr::proto::ActivateNodeResponse *response); - bool send_pull_task_ins(flwr::proto::PullTaskInsRequest request, - flwr::proto::PullTaskInsResponse *response); + bool send_deactivate_node(flwr::proto::DeactivateNodeRequest request, + flwr::proto::DeactivateNodeResponse *response); - bool send_push_task_res(flwr::proto::PushTaskResRequest request, - flwr::proto::PushTaskResResponse *response); + bool send_unregister_node(flwr::proto::UnregisterNodeFleetRequest request, + flwr::proto::UnregisterNodeFleetResponse *response); + + bool send_heartbeat(flwr::proto::SendNodeHeartbeatRequest request, + flwr::proto::SendNodeHeartbeatResponse *response); + + bool send_pull_messages(flwr::proto::PullMessagesRequest request, + flwr::proto::PullMessagesResponse *response); + + bool send_push_messages(flwr::proto::PushMessagesRequest request, + flwr::proto::PushMessagesResponse *response); + + bool send_get_run(flwr::proto::GetRunRequest request, + flwr::proto::GetRunResponse *response); + + bool send_get_fab(flwr::proto::GetFabRequest request, + flwr::proto::GetFabResponse *response); + + bool send_pull_object(flwr::proto::PullObjectRequest request, + flwr::proto::PullObjectResponse *response); + + bool send_push_object(flwr::proto::PushObjectRequest request, + flwr::proto::PushObjectResponse *response); + + bool send_confirm_message_received( + flwr::proto::ConfirmMessageReceivedRequest request, + flwr::proto::ConfirmMessageReceivedResponse *response); + + const std::string &public_key_pem() const { return public_key_pem_; } private: std::unique_ptr stub; + EVP_PKEY *pkey_ = nullptr; + std::string public_key_pem_; + + void add_auth_metadata(grpc::ClientContext &ctx); }; #endif diff --git a/framework/cc/flwr/include/message_handler.h b/framework/cc/flwr/include/message_handler.h index 0c45ea485359..54a58fca65e1 100644 --- a/framework/cc/flwr/include/message_handler.h +++ b/framework/cc/flwr/include/message_handler.h @@ -16,8 +16,6 @@ #include "client.h" #include "serde.h" -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); +// Returns (reply_message, sleep_duration, keep_going) +std::tuple +handle_message(flwr_local::Client *client, const flwr_local::Message &message); diff --git a/framework/cc/flwr/include/serde.h b/framework/cc/flwr/include/serde.h index 384f2b05c011..f7cf71e9f4ad 100644 --- a/framework/cc/flwr/include/serde.h +++ b/framework/cc/flwr/include/serde.h @@ -13,89 +13,93 @@ * ********************************************************************************************************/ #pragma once -#include "flwr/proto/fleet.pb.h" +#include "flwr/proto/message.pb.h" +#include "flwr/proto/recorddict.pb.h" #include "flwr/proto/transport.pb.h" #include "typing.h" +#include +#include -/** - * Serialize client parameters to protobuf parameters message - */ +// Legacy Scalar/Parameters/Metrics serde (used by transport.proto types) flwr::proto::Parameters parameters_to_proto(flwr_local::Parameters parameters); - -/** - * Deserialize client protobuf parameters message to client parameters - */ flwr_local::Parameters parameters_from_proto(flwr::proto::Parameters msg); - -/** - * Serialize client scalar type to protobuf scalar type - */ 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(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 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); -/** - * Serialize client ParametersRes type to protobuf ParametersRes type - */ -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(flwr::proto::ServerMessage_FitIns msg); - -/** - * Serialize client FitRes type to protobuf FitRes type - */ -flwr::proto::ClientMessage_FitRes fit_res_to_proto(flwr_local::FitRes res); - -/** - * Deserialize protobuf EvaluateIns type to client EvaluateIns type - */ +// Array serde +flwr::proto::Array array_to_proto(const flwr_local::Array &array); +flwr_local::Array array_from_proto(const flwr::proto::Array &proto); + +// Record serde (items-based format) +flwr::proto::ArrayRecord +array_record_to_proto(const flwr_local::ArrayRecord &record); +flwr_local::ArrayRecord +array_record_from_proto(const flwr::proto::ArrayRecord &proto); + +flwr::proto::MetricRecord +metric_record_to_proto(const flwr_local::MetricRecord &record); +flwr_local::MetricRecord +metric_record_from_proto(const flwr::proto::MetricRecord &proto); + +flwr::proto::ConfigRecord +config_record_to_proto(const flwr_local::ConfigRecord &record); +flwr_local::ConfigRecord +config_record_from_proto(const flwr::proto::ConfigRecord &proto); + +// RecordDict serde +flwr::proto::RecordDict +recorddict_to_proto(const flwr_local::RecordDict &rd); +flwr_local::RecordDict +recorddict_from_proto(const flwr::proto::RecordDict &proto); + +// Message/Metadata serde +flwr::proto::Message message_to_proto(const flwr_local::Message &msg); +flwr_local::Message message_from_proto(const flwr::proto::Message &proto); +flwr::proto::Metadata metadata_to_proto(const flwr_local::Metadata &meta); +flwr_local::Metadata metadata_from_proto(const flwr::proto::Metadata &proto); + +// Legacy type conversion (RecordDict <-> FitIns/FitRes/EvaluateIns/EvaluateRes) +flwr_local::FitIns recorddict_to_fit_ins(const flwr_local::RecordDict &rd, + bool keep_input); flwr_local::EvaluateIns -evaluate_ins_from_proto(flwr::proto::ServerMessage_EvaluateIns msg); - -/** - * Serialize client EvaluateRes type to protobuf EvaluateRes type - */ -flwr::proto::ClientMessage_EvaluateRes -evaluate_res_to_proto(flwr_local::EvaluateRes res); - -flwr_local::RecordSet -recordset_from_proto(const flwr::proto::RecordSet &recordset); - -flwr_local::FitIns recordset_to_fit_ins(const flwr_local::RecordSet &recordset, - bool keep_input); - -flwr_local::EvaluateIns -recordset_to_evaluate_ins(const flwr_local::RecordSet &recordset, - bool keep_input); - -flwr_local::RecordSet -recordset_from_evaluate_res(const flwr_local::EvaluateRes &evaluate_res); - -flwr_local::RecordSet recordset_from_fit_res(const flwr_local::FitRes &fit_res); - -flwr_local::RecordSet recordset_from_get_parameters_res( +recorddict_to_evaluate_ins(const flwr_local::RecordDict &rd, bool keep_input); +flwr_local::RecordDict +recorddict_from_fit_res(const flwr_local::FitRes &fit_res); +flwr_local::RecordDict +recorddict_from_evaluate_res(const flwr_local::EvaluateRes &evaluate_res); +flwr_local::RecordDict recorddict_from_get_parameters_res( const flwr_local::ParametersRes ¶meters_res); -flwr::proto::RecordSet -recordset_to_proto(const flwr_local::RecordSet &recordset); +// Inflatable object utilities (Flower 1.27+ protocol) +// Compute SHA-256 hex digest of bytes +std::string compute_sha256(const std::string &data); + +// Collect all object_ids from an ObjectTree (recursive) +void collect_object_ids(const flwr::proto::ObjectTree &tree, + std::vector &out); + +// Inflate a RecordDict from pulled objects map. +// objects: map from object_id (hex SHA-256) to raw object bytes. +// recorddict_obj_id: the object_id of the RecordDict to inflate. +flwr_local::RecordDict +inflate_recorddict(const std::string &recorddict_obj_id, + const std::map &objects); + +// Result of deflating a RecordDict for sending via PushMessages. +struct DeflatedContent { + // All objects: object_id -> bytes (includes RecordDict, records, arrays, chunks, Message) + std::map objects; + // Object tree rooted at the Message + flwr::proto::ObjectTree message_tree; + // The message_id (= Message object_id, to set in metadata) + std::string message_id; +}; + +// Deflate a RecordDict reply content along with the reply metadata into +// inflatable object bytes. Returns DeflatedContent with all objects + tree. +DeflatedContent deflate_message(const flwr_local::RecordDict &rd, + const flwr_local::Metadata &reply_metadata); diff --git a/framework/cc/flwr/include/start.h b/framework/cc/flwr/include/start.h index 1a9033278df9..3c2b6a2108b0 100644 --- a/framework/cc/flwr/include/start.h +++ b/framework/cc/flwr/include/start.h @@ -18,7 +18,6 @@ #pragma once #include "client.h" #include "communicator.h" -#include "flwr/proto/transport.grpc.pb.h" #include "grpc_rere.h" #include "message_handler.h" #include diff --git a/framework/cc/flwr/include/typing.h b/framework/cc/flwr/include/typing.h index 39b78dc89ede..d85a08ebe525 100644 --- a/framework/cc/flwr/include/typing.h +++ b/framework/cc/flwr/include/typing.h @@ -13,6 +13,7 @@ * ********************************************************************************************************/ #pragma once +#include #include #include #include @@ -239,55 +240,96 @@ struct Array { std::string data; // use string to represent bytes }; -using ParametersRecord = std::map; -using MetricsRecord = - std::map, std::vector>>; +// Wrapper to distinguish bytes from string in ConfigRecord variants +struct Bytes { + std::string data; +}; + +using ArrayRecord = std::map; + +using MetricRecordValue = + std::variant, + std::vector, std::vector>; +using MetricRecord = std::map; -using ConfigsRecord = - std::map, - std::vector, std::vector, - std::vector>>; +using ConfigRecordValue = + std::variant, std::vector, + std::vector, std::vector, + std::vector, std::vector>; +using ConfigRecord = std::map; -class RecordSet { +using RecordDictValue = std::variant; + +class RecordDict { public: - RecordSet( - const std::map ¶metersRecords = {}, - const std::map &metricsRecords = {}, - const std::map &configsRecords = {}) - : _parametersRecords(parametersRecords), _metricsRecords(metricsRecords), - _configsRecords(configsRecords) {} - - const std::map &getParametersRecords() const { - return _parametersRecords; - } - const std::map &getMetricsRecords() const { - return _metricsRecords; + RecordDict() = default; + RecordDict(const std::map &items) + : _items(items) {} + + const std::map &getItems() const { + return _items; } - const std::map &getConfigsRecords() const { - return _configsRecords; + void setItems(const std::map &items) { + _items = items; } - void setParametersRecords( - const std::map ¶metersRecords) { - _parametersRecords = parametersRecords; + // Convenience accessors that filter by type + std::map getArrayRecords() const { + std::map result; + for (const auto &[key, value] : _items) { + if (std::holds_alternative(value)) { + result[key] = std::get(value); + } + } + return result; } - void setMetricsRecords( - const std::map &metricsRecords) { - _metricsRecords = metricsRecords; + std::map getMetricRecords() const { + std::map result; + for (const auto &[key, value] : _items) { + if (std::holds_alternative(value)) { + result[key] = std::get(value); + } + } + return result; } - void setConfigsRecords( - const std::map &configsRecords) { - _configsRecords = configsRecords; + std::map getConfigRecords() const { + std::map result; + for (const auto &[key, value] : _items) { + if (std::holds_alternative(value)) { + result[key] = std::get(value); + } + } + return result; } private: - std::map _parametersRecords; - std::map _metricsRecords; - std::map _configsRecords; + std::map _items; +}; + +struct Error { + int64_t code = 0; + std::string reason; +}; + +struct Metadata { + uint64_t run_id = 0; + std::string message_id; + uint64_t src_node_id = 0; + uint64_t dst_node_id = 0; + std::string reply_to_message_id; + std::string group_id; + double ttl = 0.0; + std::string message_type; + double created_at = 0.0; +}; + +struct Message { + Metadata metadata; + std::optional content; + std::optional error; }; } // namespace flwr_local diff --git a/framework/cc/flwr/src/communicator.cc b/framework/cc/flwr/src/communicator.cc index bcbea9de60ef..a6da49c2f938 100644 --- a/framework/cc/flwr/src/communicator.cc +++ b/framework/cc/flwr/src/communicator.cc @@ -1,187 +1,268 @@ #include "communicator.h" +#include "serde.h" -const std::string KEY_NODE = "node"; -const std::string KEY_TASK_INS = "current_task_ins"; +#include +#include -std::map> node_store; -std::map> state; +static std::mutex node_mutex; +static std::optional stored_node_id; +static double stored_heartbeat_interval = 30.0; +static std::optional current_message; -std::mutex node_store_mutex; -std::mutex state_mutex; +void register_node(Communicator *communicator) { + flwr::proto::RegisterNodeFleetRequest request; + flwr::proto::RegisterNodeFleetResponse response; -std::optional get_node_from_store() { - std::lock_guard lock(node_store_mutex); - auto node = node_store.find(KEY_NODE); - if (node == node_store.end() || !node->second.has_value()) { - std::cerr << "Node instance missing" << std::endl; - return std::nullopt; - } - return node->second; -} + // The server identifies nodes by the public key in the request body. + // It must match the key sent in the auth metadata header. + request.set_public_key(communicator->public_key_pem()); -bool validate_task_ins(const flwr::proto::TaskIns &task_ins, - const bool discard_reconnect_ins) { - return task_ins.has_task() && task_ins.task().has_recordset(); + if (!communicator->send_register_node(request, &response)) { + // "Public key already in use" means the node is already registered. + // Proceed to ActivateNode which will look it up by the same key. + std::cerr << "RegisterNode failed; proceeding to ActivateNode anyway." + << std::endl; + } } -bool validate_task_res(const flwr::proto::TaskRes &task_res) { - // Retrieve initialized fields in TaskRes - return true; -} +uint64_t activate_node(Communicator *communicator, double heartbeat_interval) { + flwr::proto::ActivateNodeRequest request; + flwr::proto::ActivateNodeResponse response; -flwr::proto::TaskRes -configure_task_res(const flwr::proto::TaskRes &task_res, - const flwr::proto::TaskIns &ref_task_ins, - const flwr::proto::Node &producer) { - flwr::proto::TaskRes result_task_res; + request.set_public_key(communicator->public_key_pem()); + request.set_heartbeat_interval(heartbeat_interval); - // Setting scalar fields - result_task_res.set_task_id(""); - result_task_res.set_group_id(ref_task_ins.group_id()); - result_task_res.set_run_id(ref_task_ins.run_id()); + if (!communicator->send_activate_node(request, &response)) { + std::cerr << "Failed to activate node." << std::endl; + return 0; + } - // Merge the task from the input task_res - *result_task_res.mutable_task() = task_res.task(); + uint64_t node_id = response.node_id(); + { + std::lock_guard lock(node_mutex); + stored_node_id = node_id; + stored_heartbeat_interval = heartbeat_interval; + } - // Construct and set the producer and consumer for the task - std::unique_ptr new_producer = - std::make_unique(producer); - result_task_res.mutable_task()->set_allocated_producer( - new_producer.release()); + return node_id; +} - std::unique_ptr new_consumer = - std::make_unique(ref_task_ins.task().producer()); - result_task_res.mutable_task()->set_allocated_consumer( - new_consumer.release()); +void deactivate_node(Communicator *communicator) { + std::lock_guard lock(node_mutex); + if (!stored_node_id) { + return; + } - // Set ancestry in the task - result_task_res.mutable_task()->add_ancestry(ref_task_ins.task_id()); + flwr::proto::DeactivateNodeRequest request; + flwr::proto::DeactivateNodeResponse response; - return result_task_res; -} + request.set_node_id(*stored_node_id); -void delete_node_from_store() { - std::lock_guard lock(node_store_mutex); - auto node = node_store.find(KEY_NODE); - if (node == node_store.end() || !node->second.has_value()) { - node_store.erase(node); - } + communicator->send_deactivate_node(request, &response); } -std::optional get_current_task_ins() { - std::lock_guard state_lock(state_mutex); - auto current_task_ins = state.find(KEY_TASK_INS); - if (current_task_ins == state.end() || - !current_task_ins->second.has_value()) { - std::cerr << "No current TaskIns" << std::endl; - return std::nullopt; +void unregister_node(Communicator *communicator) { + std::lock_guard lock(node_mutex); + if (!stored_node_id) { + return; } - return current_task_ins->second; -} - -void create_node(Communicator *communicator) { - flwr::proto::CreateNodeRequest create_node_request; - flwr::proto::CreateNodeResponse create_node_response; - create_node_request.set_ping_interval(300.0); + flwr::proto::UnregisterNodeFleetRequest request; + flwr::proto::UnregisterNodeFleetResponse response; - communicator->send_create_node(create_node_request, &create_node_response); + request.set_node_id(*stored_node_id); - // Validate the response - if (!create_node_response.has_node()) { - std::cerr << "Received response does not contain a node." << std::endl; - return; - } + communicator->send_unregister_node(request, &response); - { - std::lock_guard lock(node_store_mutex); - node_store[KEY_NODE] = create_node_response.node(); - } + stored_node_id.reset(); } -void delete_node(Communicator *communicator) { - auto node = get_node_from_store(); - if (!node) { - return; +bool send_heartbeat(Communicator *communicator, double heartbeat_interval) { + std::lock_guard lock(node_mutex); + if (!stored_node_id) { + return false; } - flwr::proto::DeleteNodeRequest delete_node_request; - flwr::proto::DeleteNodeResponse delete_node_response; - auto heap_node = new flwr::proto::Node(*node); - delete_node_request.set_allocated_node(heap_node); + flwr::proto::SendNodeHeartbeatRequest request; + flwr::proto::SendNodeHeartbeatResponse response; - if (!communicator->send_delete_node(delete_node_request, - &delete_node_response)) { - delete heap_node; // Make sure to delete if status is not ok - return; - } else { - delete_node_request.release_node(); // Release if status is ok - } + auto *node = new flwr::proto::Node(); + node->set_node_id(*stored_node_id); + request.set_allocated_node(node); + request.set_heartbeat_interval(heartbeat_interval); - delete_node_from_store(); + bool success = communicator->send_heartbeat(request, &response); + return success && response.success(); } -std::optional receive(Communicator *communicator) { - auto node = get_node_from_store(); - if (!node) { - return std::nullopt; +std::optional receive(Communicator *communicator) { + uint64_t node_id; + { + std::lock_guard lock(node_mutex); + if (!stored_node_id) { + return std::nullopt; + } + node_id = *stored_node_id; } - flwr::proto::PullTaskInsResponse response; - flwr::proto::PullTaskInsRequest request; - request.set_allocated_node(new flwr::proto::Node(*node)); + flwr::proto::PullMessagesRequest request; + flwr::proto::PullMessagesResponse response; - bool success = communicator->send_pull_task_ins(request, &response); + auto *node = new flwr::proto::Node(); + node->set_node_id(node_id); + request.set_allocated_node(node); - // Release ownership so that the heap_node won't be deleted when request - // goes out of scope. - request.release_node(); + if (!communicator->send_pull_messages(request, &response)) { + return std::nullopt; + } - if (!success) { + if (response.messages_list_size() == 0) { return std::nullopt; } - if (response.task_ins_list_size() > 0) { - flwr::proto::TaskIns task_ins = response.task_ins_list().at(0); - if (validate_task_ins(task_ins, true)) { - std::lock_guard state_lock(state_mutex); - state[KEY_TASK_INS] = task_ins; - return task_ins; + const auto &proto_msg = response.messages_list(0); + flwr_local::Message msg = message_from_proto(proto_msg); + + // Inflate content from object tree (Flower 1.27+ inflatable objects protocol). + // The proto message always carries an empty RecordDict as placeholder content; + // actual payload is stored as inflatable objects referenced by the object tree. + if (response.message_object_trees_size() > 0) { + const auto &msg_tree = response.message_object_trees(0); + + // Collect all object IDs from the tree + std::vector obj_ids; + collect_object_ids(msg_tree, obj_ids); + + // Pull all objects from server + std::cerr << "[DEBUG recv] obj_ids count=" << obj_ids.size() << std::endl; + std::map objects; + bool all_objects_pulled = true; + for (const auto &obj_id : obj_ids) { + flwr::proto::PullObjectRequest pull_req; + flwr::proto::PullObjectResponse pull_resp; + + auto *pull_node = new flwr::proto::Node(); + pull_node->set_node_id(node_id); + pull_req.set_allocated_node(pull_node); + pull_req.set_run_id(msg.metadata.run_id); + pull_req.set_object_id(obj_id); + + if (communicator->send_pull_object(pull_req, &pull_resp)) { + std::cerr << "[DEBUG recv] obj " << obj_id.substr(0,16) + << " found=" << pull_resp.object_found() + << " avail=" << pull_resp.object_available() + << " size=" << pull_resp.object_content().size() << std::endl; + if (pull_resp.object_found() && pull_resp.object_available()) { + objects[obj_id] = pull_resp.object_content(); + } else { + std::cerr << "[WARN recv] Object " << obj_id.substr(0,16) + << " not ready (found=" << pull_resp.object_found() + << " avail=" << pull_resp.object_available() + << "); will not confirm message" << std::endl; + all_objects_pulled = false; + } + } else { + std::cerr << "[DEBUG recv] PullObject RPC failed for " << obj_id.substr(0,16) << std::endl; + all_objects_pulled = false; + } } + std::cerr << "[DEBUG recv] pulled " << objects.size() << " objects" << std::endl; + + // If any objects are missing, do not confirm — return nullopt so the + // message remains on the server and can be retried on the next poll. + if (!all_objects_pulled) { + std::cerr << "[WARN recv] Incomplete objects; not confirming message." + << std::endl; + return std::nullopt; + } + + // The Message has one child: the RecordDict (content) + if (msg_tree.children_size() > 0) { + const std::string &rd_obj_id = msg_tree.children(0).object_id(); + try { + msg.content = inflate_recorddict(rd_obj_id, objects); + } catch (const std::exception &e) { + std::cerr << "Failed to inflate RecordDict: " << e.what() << std::endl; + // Inflation failed — don't confirm, allow retry. + return std::nullopt; + } + } + + // All objects pulled and inflated successfully — confirm receipt. + flwr::proto::ConfirmMessageReceivedRequest confirm_req; + flwr::proto::ConfirmMessageReceivedResponse confirm_resp; + auto *confirm_node = new flwr::proto::Node(); + confirm_node->set_node_id(node_id); + confirm_req.set_allocated_node(confirm_node); + confirm_req.set_run_id(msg.metadata.run_id); + confirm_req.set_message_object_id(msg.metadata.message_id); + communicator->send_confirm_message_received(confirm_req, &confirm_resp); } - std::cerr << "TaskIns list is empty." << std::endl; - return std::nullopt; + + current_message = msg; + return msg; } -void send(Communicator *communicator, flwr::proto::TaskRes task_res) { - auto node = get_node_from_store(); - if (!node) { - return; +void send(Communicator *communicator, const flwr_local::Message &message) { + uint64_t node_id; + { + std::lock_guard lock(node_mutex); + if (!stored_node_id) { + return; + } + node_id = *stored_node_id; } - auto task_ins = get_current_task_ins(); - if (!task_ins) { - return; - } + flwr::proto::PushMessagesRequest request; + flwr::proto::PushMessagesResponse response; - if (!validate_task_res(task_res)) { - std::cerr << "TaskRes is invalid" << std::endl; - std::lock_guard state_lock(state_mutex); - state[KEY_TASK_INS].reset(); - return; - } + auto *node = new flwr::proto::Node(); + node->set_node_id(node_id); + request.set_allocated_node(node); - flwr::proto::TaskRes new_task_res = - configure_task_res(task_res, *task_ins, *node); + if (message.content) { + // Deflate message content into inflatable objects (Flower 1.27+ protocol) + DeflatedContent deflated = deflate_message(*message.content, message.metadata); - flwr::proto::PushTaskResRequest request; - *request.add_task_res_list() = new_task_res; - flwr::proto::PushTaskResResponse response; + // Build proto message with empty RecordDict placeholder content (Python's + // Message constructor requires content to be set, even if empty), plus the + // computed message_id. + flwr_local::Message msg_no_content = message; + msg_no_content.content = flwr_local::RecordDict{}; + msg_no_content.metadata.message_id = deflated.message_id; - communicator->send_push_task_res(request, &response); + *request.add_messages_list() = message_to_proto(msg_no_content); + *request.add_message_object_trees() = deflated.message_tree; - { - std::lock_guard state_lock(state_mutex); - state[KEY_TASK_INS].reset(); + if (!communicator->send_push_messages(request, &response)) { + current_message.reset(); + return; + } + + // Push objects that the server requested + for (const auto &obj_id : response.objects_to_push()) { + auto it = deflated.objects.find(obj_id); + if (it == deflated.objects.end()) { + std::cerr << "Server requested unknown object: " << obj_id << std::endl; + continue; + } + + flwr::proto::PushObjectRequest push_req; + flwr::proto::PushObjectResponse push_resp; + auto *push_node = new flwr::proto::Node(); + push_node->set_node_id(node_id); + push_req.set_allocated_node(push_node); + push_req.set_run_id(message.metadata.run_id); + push_req.set_object_id(obj_id); + push_req.set_object_content(it->second); + + communicator->send_push_object(push_req, &push_resp); + } + } else { + // No content: send empty message + *request.add_messages_list() = message_to_proto(message); + communicator->send_push_messages(request, &response); } + + current_message.reset(); } diff --git a/framework/cc/flwr/src/grpc_rere.cc b/framework/cc/flwr/src/grpc_rere.cc index b8a04d9b9bf7..f4973c0876d8 100644 --- a/framework/cc/flwr/src/grpc_rere.cc +++ b/framework/cc/flwr/src/grpc_rere.cc @@ -1,6 +1,20 @@ #include "grpc_rere.h" #include "flwr/proto/fleet.grpc.pb.h" +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + gRPCRereCommunicator::gRPCRereCommunicator(std::string server_address, int grpc_max_message_length) { grpc::ChannelArguments args; @@ -13,63 +27,313 @@ gRPCRereCommunicator::gRPCRereCommunicator(std::string server_address, // Create stub stub = flwr::proto::Fleet::NewStub(channel); + + // Generate EC key pair (SECP384R1) for node authentication. + // Build key material by mixing /dev/urandom with container-unique sources + // (hostname + PID + high-res timestamp) to avoid PRNG collisions between + // containers that start simultaneously (known issue with Docker on macOS). + uint8_t key_bytes[48] = {}; + + FILE *f = fopen("/dev/urandom", "rb"); + if (f) { + if (fread(key_bytes, 1, sizeof(key_bytes), f) != sizeof(key_bytes)) + std::cerr << "Warning: short read from /dev/urandom" << std::endl; + fclose(f); + } + + char hostname[256] = {}; + gethostname(hostname, sizeof(hostname)); + size_t hlen = strnlen(hostname, sizeof(hostname)); + + pid_t pid = getpid(); + auto ts = + std::chrono::high_resolution_clock::now().time_since_epoch().count(); + + for (size_t i = 0; i < sizeof(key_bytes); i++) { + key_bytes[i] ^= static_cast(hostname[i % (hlen ? hlen : 1)]); + key_bytes[i] ^= + reinterpret_cast(&pid)[i % sizeof(pid)]; + key_bytes[i] ^= + reinterpret_cast(&ts)[i % sizeof(ts)]; + } + + // Construct the EC key from our private key scalar. + EC_GROUP *group = EC_GROUP_new_by_curve_name(NID_secp384r1); + if (!group) + throw std::runtime_error("Failed to create EC group for SECP384R1"); + + EC_KEY *ec_key = EC_KEY_new(); + if (!ec_key) + throw std::runtime_error("Failed to create EC_KEY"); + if (!EC_KEY_set_group(ec_key, group)) + throw std::runtime_error("Failed to set EC group on key"); + + BIGNUM *priv_bn = BN_bin2bn(key_bytes, sizeof(key_bytes), nullptr); + if (!priv_bn) + throw std::runtime_error("Failed to create BIGNUM from key bytes"); + + // Reduce private key modulo curve order into valid range [1, order-1]. + const BIGNUM *order = EC_GROUP_get0_order(group); + BIGNUM *one = BN_new(); + BN_one(one); + BN_CTX *bn_ctx = BN_CTX_new(); + if (!BN_mod(priv_bn, priv_bn, order, bn_ctx)) + throw std::runtime_error("Failed to reduce private key modulo order"); + if (BN_is_zero(priv_bn)) + BN_copy(priv_bn, one); // Avoid zero — use 1 instead + BN_CTX_free(bn_ctx); + BN_free(one); + + if (!EC_KEY_set_private_key(ec_key, priv_bn)) + throw std::runtime_error("Failed to set EC private key"); + + // Derive public key from private key scalar. + EC_POINT *pub_pt = EC_POINT_new(group); + if (!pub_pt || !EC_POINT_mul(group, pub_pt, priv_bn, nullptr, nullptr, nullptr)) + throw std::runtime_error("Failed to derive EC public key"); + if (!EC_KEY_set_public_key(ec_key, pub_pt)) + throw std::runtime_error("Failed to set EC public key"); + + pkey_ = EVP_PKEY_new(); + if (!pkey_ || !EVP_PKEY_assign_EC_KEY(pkey_, ec_key)) + throw std::runtime_error("Failed to assign EC key to EVP_PKEY"); + + EC_POINT_free(pub_pt); + BN_free(priv_bn); + EC_GROUP_free(group); + + // Serialize public key to PEM format + BIO *bio = BIO_new(BIO_s_mem()); + if (!bio || !PEM_write_bio_PUBKEY(bio, pkey_)) + throw std::runtime_error("Failed to serialize public key to PEM"); + BUF_MEM *bptr; + BIO_get_mem_ptr(bio, &bptr); + public_key_pem_ = std::string(bptr->data, bptr->length); + BIO_free(bio); +} + +gRPCRereCommunicator::~gRPCRereCommunicator() { + if (pkey_) { + EVP_PKEY_free(pkey_); + pkey_ = nullptr; + } +} + +void gRPCRereCommunicator::add_auth_metadata(grpc::ClientContext &ctx) { + // Generate ISO 8601 UTC timestamp with microsecond precision + auto now = std::chrono::system_clock::now(); + auto tt = std::chrono::system_clock::to_time_t(now); + auto us = std::chrono::duration_cast( + now.time_since_epoch()) % + 1000000; + + struct tm utc_tm = {}; + gmtime_r(&tt, &utc_tm); + + char date_buf[32]; + strftime(date_buf, sizeof(date_buf), "%Y-%m-%dT%H:%M:%S", &utc_tm); + + char us_buf[16]; + snprintf(us_buf, sizeof(us_buf), ".%06ld", us.count()); + + std::string timestamp = std::string(date_buf) + us_buf + "+00:00"; + + // Sign the timestamp with ECDSA/SHA256 + EVP_MD_CTX *md = EVP_MD_CTX_new(); + if (!md) { + std::cerr << "Failed to create EVP_MD_CTX for signing" << std::endl; + return; + } + if (EVP_DigestSignInit(md, nullptr, EVP_sha256(), nullptr, pkey_) != 1 || + EVP_DigestSignUpdate(md, timestamp.data(), timestamp.size()) != 1) { + std::cerr << "Failed to initialize/update digest signing" << std::endl; + EVP_MD_CTX_free(md); + return; + } + size_t sig_len = 0; + if (EVP_DigestSignFinal(md, nullptr, &sig_len) != 1) { + std::cerr << "Failed to determine signature length" << std::endl; + EVP_MD_CTX_free(md); + return; + } + std::string signature(sig_len, '\0'); + if (EVP_DigestSignFinal(md, reinterpret_cast(&signature[0]), &sig_len) != 1) { + std::cerr << "Failed to finalize signature" << std::endl; + EVP_MD_CTX_free(md); + return; + } + signature.resize(sig_len); + EVP_MD_CTX_free(md); + + // Add authentication metadata (binary headers are base64-encoded by gRPC) + ctx.AddMetadata("flwr-public-key-bin", public_key_pem_); + ctx.AddMetadata("flwr-timestamp", timestamp); + ctx.AddMetadata("flwr-signature-bin", signature); +} + +bool gRPCRereCommunicator::send_register_node( + flwr::proto::RegisterNodeFleetRequest request, + flwr::proto::RegisterNodeFleetResponse *response) { + grpc::ClientContext context; + add_auth_metadata(context); + grpc::Status status = stub->RegisterNode(&context, request, response); + if (!status.ok()) { + std::cerr << "RegisterNode RPC failed: " << status.error_message() + << std::endl; + return false; + } + return true; +} + +bool gRPCRereCommunicator::send_activate_node( + flwr::proto::ActivateNodeRequest request, + flwr::proto::ActivateNodeResponse *response) { + grpc::ClientContext context; + add_auth_metadata(context); + grpc::Status status = stub->ActivateNode(&context, request, response); + if (!status.ok()) { + std::cerr << "ActivateNode RPC failed: " << status.error_message() + << std::endl; + return false; + } + return true; } -bool gRPCRereCommunicator::send_create_node( - flwr::proto::CreateNodeRequest request, - flwr::proto::CreateNodeResponse *response) { +bool gRPCRereCommunicator::send_deactivate_node( + flwr::proto::DeactivateNodeRequest request, + flwr::proto::DeactivateNodeResponse *response) { grpc::ClientContext context; - grpc::Status status = stub->CreateNode(&context, request, response); + add_auth_metadata(context); + grpc::Status status = stub->DeactivateNode(&context, request, response); if (!status.ok()) { - std::cerr << "CreateNode RPC failed: " << status.error_message() + std::cerr << "DeactivateNode RPC failed: " << status.error_message() << std::endl; return false; } + return true; +} +bool gRPCRereCommunicator::send_unregister_node( + flwr::proto::UnregisterNodeFleetRequest request, + flwr::proto::UnregisterNodeFleetResponse *response) { + grpc::ClientContext context; + add_auth_metadata(context); + grpc::Status status = stub->UnregisterNode(&context, request, response); + if (!status.ok()) { + std::cerr << "UnregisterNode RPC failed: " << status.error_message() + << std::endl; + return false; + } return true; } -bool gRPCRereCommunicator::send_delete_node( - flwr::proto::DeleteNodeRequest request, - flwr::proto::DeleteNodeResponse *response) { +bool gRPCRereCommunicator::send_heartbeat( + flwr::proto::SendNodeHeartbeatRequest request, + flwr::proto::SendNodeHeartbeatResponse *response) { grpc::ClientContext context; - grpc::Status status = stub->DeleteNode(&context, request, response); + add_auth_metadata(context); + grpc::Status status = stub->SendNodeHeartbeat(&context, request, response); + if (!status.ok()) { + std::cerr << "SendNodeHeartbeat RPC failed: " << status.error_message() + << std::endl; + return false; + } + return true; +} +bool gRPCRereCommunicator::send_pull_messages( + flwr::proto::PullMessagesRequest request, + flwr::proto::PullMessagesResponse *response) { + grpc::ClientContext context; + add_auth_metadata(context); + grpc::Status status = stub->PullMessages(&context, request, response); if (!status.ok()) { - std::cerr << "DeleteNode RPC failed with status: " << status.error_message() + std::cerr << "PullMessages RPC failed: " << status.error_message() << std::endl; return false; } + return true; +} +bool gRPCRereCommunicator::send_push_messages( + flwr::proto::PushMessagesRequest request, + flwr::proto::PushMessagesResponse *response) { + grpc::ClientContext context; + add_auth_metadata(context); + grpc::Status status = stub->PushMessages(&context, request, response); + if (!status.ok()) { + std::cerr << "PushMessages RPC failed: " << status.error_message() + << std::endl; + return false; + } return true; } -bool gRPCRereCommunicator::send_pull_task_ins( - flwr::proto::PullTaskInsRequest request, - flwr::proto::PullTaskInsResponse *response) { +bool gRPCRereCommunicator::send_get_run( + flwr::proto::GetRunRequest request, + flwr::proto::GetRunResponse *response) { grpc::ClientContext context; - grpc::Status status = stub->PullTaskIns(&context, request, response); + add_auth_metadata(context); + grpc::Status status = stub->GetRun(&context, request, response); + if (!status.ok()) { + std::cerr << "GetRun RPC failed: " << status.error_message() << std::endl; + return false; + } + return true; +} +bool gRPCRereCommunicator::send_get_fab( + flwr::proto::GetFabRequest request, + flwr::proto::GetFabResponse *response) { + grpc::ClientContext context; + add_auth_metadata(context); + grpc::Status status = stub->GetFab(&context, request, response); if (!status.ok()) { - std::cerr << "PullTaskIns RPC failed with status: " - << status.error_message() << std::endl; + std::cerr << "GetFab RPC failed: " << status.error_message() << std::endl; return false; } + return true; +} +bool gRPCRereCommunicator::send_pull_object( + flwr::proto::PullObjectRequest request, + flwr::proto::PullObjectResponse *response) { + grpc::ClientContext context; + add_auth_metadata(context); + grpc::Status status = stub->PullObject(&context, request, response); + if (!status.ok()) { + std::cerr << "PullObject RPC failed: " << status.error_message() + << std::endl; + return false; + } return true; } -bool gRPCRereCommunicator::send_push_task_res( - flwr::proto::PushTaskResRequest request, - flwr::proto::PushTaskResResponse *response) { +bool gRPCRereCommunicator::send_push_object( + flwr::proto::PushObjectRequest request, + flwr::proto::PushObjectResponse *response) { grpc::ClientContext context; - grpc::Status status = stub->PushTaskRes(&context, request, response); + add_auth_metadata(context); + grpc::Status status = stub->PushObject(&context, request, response); + if (!status.ok()) { + std::cerr << "PushObject RPC failed: " << status.error_message() + << std::endl; + return false; + } + return true; +} +bool gRPCRereCommunicator::send_confirm_message_received( + flwr::proto::ConfirmMessageReceivedRequest request, + flwr::proto::ConfirmMessageReceivedResponse *response) { + grpc::ClientContext context; + add_auth_metadata(context); + grpc::Status status = + stub->ConfirmMessageReceived(&context, request, response); if (!status.ok()) { - std::cerr << "PushTaskRes RPC failed with status: " + std::cerr << "ConfirmMessageReceived RPC failed: " << status.error_message() << std::endl; return false; } - return true; } diff --git a/framework/cc/flwr/src/message_handler.cc b/framework/cc/flwr/src/message_handler.cc index e1ce56f2cd96..7b4ea1295e14 100644 --- a/framework/cc/flwr/src/message_handler.cc +++ b/framework/cc/flwr/src/message_handler.cc @@ -1,104 +1,67 @@ #include "message_handler.h" -#include "flwr/proto/task.pb.h" -#include +#include +#include -std::tuple -_reconnect(flwr::proto::RecordSet proto_recordset) { - - // Determine the reason for sending Disconnect message - flwr::proto::Reason reason = flwr::proto::Reason::ACK; - int sleep_duration = 0; - - // Build Disconnect message - return std::make_tuple( - flwr_local::RecordSet({}, {}, {{"config", {{"reason", reason}}}}), - sleep_duration); +flwr_local::RecordDict _get_parameters(flwr_local::Client *client) { + return recorddict_from_get_parameters_res(client->get_parameters()); } -flwr_local::RecordSet _get_parameters(flwr_local::Client *client) { - return recordset_from_get_parameters_res(client->get_parameters()); -} - -flwr_local::RecordSet _fit(flwr_local::Client *client, - flwr::proto::RecordSet proto_recordset) { - flwr_local::RecordSet recordset = recordset_from_proto(proto_recordset); - flwr_local::FitIns fit_ins = recordset_to_fit_ins(recordset, true); - // Perform fit +flwr_local::RecordDict _fit(flwr_local::Client *client, + const flwr_local::RecordDict &content) { + flwr_local::FitIns fit_ins = recorddict_to_fit_ins(content, true); flwr_local::FitRes fit_res = client->fit(fit_ins); - - flwr_local::RecordSet out_recordset = recordset_from_fit_res(fit_res); - return out_recordset; + return recorddict_from_fit_res(fit_res); } -flwr_local::RecordSet _evaluate(flwr_local::Client *client, - flwr::proto::RecordSet proto_recordset) { - flwr_local::RecordSet recordset = recordset_from_proto(proto_recordset); +flwr_local::RecordDict _evaluate(flwr_local::Client *client, + const flwr_local::RecordDict &content) { flwr_local::EvaluateIns evaluate_ins = - recordset_to_evaluate_ins(recordset, true); - // Perform evaluation + recorddict_to_evaluate_ins(content, true); flwr_local::EvaluateRes evaluate_res = client->evaluate(evaluate_ins); - - flwr_local::RecordSet out_recordset = - recordset_from_evaluate_res(evaluate_res); - return out_recordset; -} - -std::tuple handle(flwr_local::Client *client, - flwr::proto::Task task) { - if (task.task_type() == "reconnect") { - std::tuple rec = _reconnect(task.recordset()); - return std::make_tuple(std::get<0>(rec), std::get<1>(rec), false); - } - if (task.task_type() == "get_parameters") { - return std::make_tuple(_get_parameters(client), 0, true); - } - if (task.task_type() == "train") { - return std::make_tuple(_fit(client, task.recordset()), 0, true); - } - if (task.task_type() == "evaluate") { - return std::make_tuple(_evaluate(client, task.recordset()), 0, true); - } - throw "Unkown server message"; + return recorddict_from_evaluate_res(evaluate_res); } -std::tuple -handle_task(flwr_local::Client *client, const flwr::proto::TaskIns &task_ins) { - flwr::proto::Task received_task = task_ins.task(); - - std::tuple legacy_res = - handle(client, received_task); - auto conf_records = - recordset_from_proto(recordset_to_proto(std::get<0>(legacy_res))) - .getConfigsRecords(); - - flwr::proto::TaskRes task_res; - - task_res.set_task_id(""); - task_res.set_group_id(task_ins.group_id()); - task_res.set_run_id(task_ins.run_id()); - - std::unique_ptr task = - std::make_unique(); +std::tuple +handle_message(flwr_local::Client *client, + const flwr_local::Message &message) { + const std::string &msg_type = message.metadata.message_type; - std::unique_ptr proto_recordset_ptr = - std::make_unique( - recordset_to_proto(std::get<0>(legacy_res))); - - task->set_allocated_recordset(proto_recordset_ptr.release()); - task->set_task_type(received_task.task_type()); - task->set_ttl(3600); - task->set_created_at(std::chrono::duration_cast( - std::chrono::system_clock::now().time_since_epoch()) - .count()); - task->set_allocated_consumer( - std::make_unique(received_task.producer()).release()); - task->set_allocated_producer( - std::make_unique(received_task.consumer()).release()); - - task_res.set_allocated_task(task.release()); - - std::tuple tuple = std::make_tuple( - task_res, std::get<1>(legacy_res), std::get<2>(legacy_res)); + int sleep_duration = 0; + bool keep_going = true; + + // Build reply metadata (common to all message types) + flwr_local::Message reply; + reply.metadata.run_id = message.metadata.run_id; + reply.metadata.src_node_id = message.metadata.dst_node_id; + reply.metadata.dst_node_id = message.metadata.src_node_id; + reply.metadata.reply_to_message_id = message.metadata.message_id; + reply.metadata.group_id = message.metadata.group_id; + reply.metadata.message_type = msg_type; + reply.metadata.ttl = 3600.0; + reply.metadata.created_at = + static_cast(std::chrono::duration_cast( + std::chrono::system_clock::now().time_since_epoch()) + .count()); + + if (msg_type == "reconnect") { + keep_going = false; + } else if (msg_type == "get_parameters") { + reply.content = _get_parameters(client); + } else if (msg_type == "train") { + if (message.content) { + reply.content = _fit(client, *message.content); + } else { + reply.error = flwr_local::Error{0, "Train message has no content"}; + } + } else if (msg_type == "evaluate") { + if (message.content) { + reply.content = _evaluate(client, *message.content); + } else { + reply.error = flwr_local::Error{0, "Evaluate message has no content"}; + } + } else { + throw std::runtime_error("Unknown message type: " + msg_type); + } - return tuple; + return {reply, sleep_duration, keep_going}; } diff --git a/framework/cc/flwr/src/serde.cc b/framework/cc/flwr/src/serde.cc index f3ad17a3386b..7805f4846a85 100644 --- a/framework/cc/flwr/src/serde.cc +++ b/framework/cc/flwr/src/serde.cc @@ -1,7 +1,14 @@ #include "serde.h" -#include "flwr/proto/recordset.pb.h" +#include "flwr/proto/message.pb.h" +#include "flwr/proto/recorddict.pb.h" #include "typing.h" +#include +#include +#include +#include +#include + /** * Serialize client parameters to protobuf parameters message */ @@ -65,6 +72,9 @@ flwr_local::Scalar scalar_from_proto(flwr::proto::Scalar scalar_msg) { case 1: scalar.setDouble(scalar_msg.double_()); return scalar; + case 6: + scalar.setInt(static_cast(scalar_msg.uint64())); + return scalar; case 8: scalar.setInt(scalar_msg.sint64()); return scalar; @@ -85,7 +95,6 @@ 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 metrics_to_proto(flwr_local::Metrics metrics) { @@ -100,7 +109,6 @@ 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) { @@ -112,275 +120,394 @@ flwr_local::Metrics metrics_from_proto( return metrics; } -/** - * Serialize client ParametersRes type to protobuf ParametersRes type - */ -flwr::proto::ClientMessage_GetParametersRes -parameters_res_to_proto(flwr_local::ParametersRes res) { - flwr::proto::Parameters mp = parameters_to_proto(res.getParameters()); - flwr::proto::ClientMessage_GetParametersRes cpr; - *(cpr.mutable_parameters()) = mp; - return cpr; +/////////////////////////////////////////////////////////////////////////////// +// Array serde +/////////////////////////////////////////////////////////////////////////////// + +flwr::proto::Array array_to_proto(const flwr_local::Array &array) { + flwr::proto::Array proto; + proto.set_dtype(array.dtype); + for (int32_t dim : array.shape) { + proto.add_shape(dim); + } + proto.set_stype(array.stype); + proto.set_data({array.data.begin(), array.data.end()}); + return proto; } -/** - * Deserialize protobuf FitIns type to client FitIns type - */ -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); +flwr_local::Array array_from_proto(const flwr::proto::Array &proto) { + flwr_local::Array array; + array.dtype = proto.dtype(); + array.shape.assign(proto.shape().begin(), proto.shape().end()); + array.stype = proto.stype(); + const std::string &data = proto.data(); + array.data.assign(data.begin(), data.end()); + return array; } -/** - * Serialize client FitRes type to protobuf FitRes type - */ -flwr::proto::ClientMessage_FitRes fit_res_to_proto(flwr_local::FitRes res) { - flwr::proto::ClientMessage_FitRes cres; +/////////////////////////////////////////////////////////////////////////////// +// ArrayRecord serde (items-based) +/////////////////////////////////////////////////////////////////////////////// - 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()); +flwr::proto::ArrayRecord +array_record_to_proto(const flwr_local::ArrayRecord &record) { + flwr::proto::ArrayRecord proto; + for (const auto &[key, value] : record) { + auto *item = proto.add_items(); + item->set_key(key); + *item->mutable_value() = array_to_proto(value); } + return proto; +} - // Forward - compatible case - *(cres.mutable_parameters()) = parameters_proto; - cres.set_num_examples(res.getNum_example()); - if (!metrics_msg.empty()) { - *cres.mutable_metrics() = metrics_msg; +flwr_local::ArrayRecord +array_record_from_proto(const flwr::proto::ArrayRecord &proto) { + flwr_local::ArrayRecord record; + for (const auto &item : proto.items()) { + record[item.key()] = array_from_proto(item.value()); } - return cres; + return record; } -/** - * Deserialize protobuf EvaluateIns type to client EvaluateIns type - */ -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); -} +/////////////////////////////////////////////////////////////////////////////// +// MetricRecord serde (items-based) +/////////////////////////////////////////////////////////////////////////////// -/** - * Serialize client EvaluateRes type to protobuf EvaluateRes type - */ -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()); - } - // Forward - compatible case - cres.set_loss(res.getLoss()); - cres.set_num_examples(res.getNum_example()); - if (!metrics_msg.empty()) { - auto &map = *cres.mutable_metrics(); - - for (auto &[key, value] : metrics_msg) { - map[key] = value; - } +flwr::proto::MetricRecord +metric_record_to_proto(const flwr_local::MetricRecord &record) { + flwr::proto::MetricRecord proto; + + for (const auto &[key, value] : record) { + auto *item = proto.add_items(); + item->set_key(key); + + std::visit( + [&](auto &&arg) { + using T = std::decay_t; + if constexpr (std::is_same_v) { + item->mutable_value()->set_sint64(arg); + } else if constexpr (std::is_same_v) { + item->mutable_value()->set_uint64(arg); + } else if constexpr (std::is_same_v) { + item->mutable_value()->set_double_(arg); + } else if constexpr (std::is_same_v>) { + auto *list = item->mutable_value()->mutable_sint_list(); + for (auto v : arg) + list->add_vals(v); + } else if constexpr (std::is_same_v>) { + auto *list = item->mutable_value()->mutable_uint_list(); + for (auto v : arg) + list->add_vals(v); + } else if constexpr (std::is_same_v>) { + auto *list = item->mutable_value()->mutable_double_list(); + for (auto v : arg) + list->add_vals(v); + } + }, + value); } - return cres; + return proto; } -flwr::proto::Array array_to_proto(const flwr_local::Array &array) { - flwr::proto::Array protoArray; - protoArray.set_dtype(array.dtype); - for (int32_t dim : array.shape) { - protoArray.add_shape(dim); +flwr_local::MetricRecord +metric_record_from_proto(const flwr::proto::MetricRecord &proto) { + flwr_local::MetricRecord record; + + for (const auto &item : proto.items()) { + const auto &value = item.value(); + switch (value.value_case()) { + case flwr::proto::MetricRecordValue::kSint64: + record[item.key()] = value.sint64(); + break; + case flwr::proto::MetricRecordValue::kUint64: + record[item.key()] = value.uint64(); + break; + case flwr::proto::MetricRecordValue::kDouble: + record[item.key()] = value.double_(); + break; + case flwr::proto::MetricRecordValue::kSintList: { + std::vector vals; + for (const auto v : value.sint_list().vals()) + vals.push_back(v); + record[item.key()] = vals; + break; + } + case flwr::proto::MetricRecordValue::kUintList: { + std::vector vals; + for (const auto v : value.uint_list().vals()) + vals.push_back(v); + record[item.key()] = vals; + break; + } + case flwr::proto::MetricRecordValue::kDoubleList: { + std::vector vals; + for (const auto v : value.double_list().vals()) + vals.push_back(v); + record[item.key()] = vals; + break; + } + default: + break; + } } - protoArray.set_stype(array.stype); - protoArray.set_data({array.data.begin(), array.data.end()}); - return protoArray; + return record; } -flwr_local::Array array_from_proto(const flwr::proto::Array &protoArray) { - flwr_local::Array array; - array.dtype = protoArray.dtype(); - array.shape.assign(protoArray.shape().begin(), protoArray.shape().end()); - array.stype = protoArray.stype(); +/////////////////////////////////////////////////////////////////////////////// +// ConfigRecord serde (items-based) +/////////////////////////////////////////////////////////////////////////////// - const std::string &protoData = protoArray.data(); - array.data.assign(protoData.begin(), protoData.end()); +flwr::proto::ConfigRecord +config_record_to_proto(const flwr_local::ConfigRecord &record) { + flwr::proto::ConfigRecord proto; - return array; -} - -flwr::proto::ParametersRecord -parameters_record_to_proto(const flwr_local::ParametersRecord &record) { - flwr::proto::ParametersRecord protoRecord; for (const auto &[key, value] : record) { - *protoRecord.add_data_keys() = key; - *protoRecord.add_data_values() = array_to_proto(value); + auto *item = proto.add_items(); + item->set_key(key); + + std::visit( + [&](auto &&arg) { + using T = std::decay_t; + if constexpr (std::is_same_v) { + item->mutable_value()->set_sint64(arg); + } else if constexpr (std::is_same_v) { + item->mutable_value()->set_uint64(arg); + } else if constexpr (std::is_same_v) { + item->mutable_value()->set_double_(arg); + } else if constexpr (std::is_same_v) { + item->mutable_value()->set_bool_(arg); + } else if constexpr (std::is_same_v) { + item->mutable_value()->set_string(arg); + } else if constexpr (std::is_same_v) { + item->mutable_value()->set_bytes(arg.data); + } else if constexpr (std::is_same_v>) { + auto *list = item->mutable_value()->mutable_sint_list(); + for (auto v : arg) + list->add_vals(v); + } else if constexpr (std::is_same_v>) { + auto *list = item->mutable_value()->mutable_uint_list(); + for (auto v : arg) + list->add_vals(v); + } else if constexpr (std::is_same_v>) { + auto *list = item->mutable_value()->mutable_double_list(); + for (auto v : arg) + list->add_vals(v); + } else if constexpr (std::is_same_v>) { + auto *list = item->mutable_value()->mutable_bool_list(); + for (bool v : arg) + list->add_vals(v); + } else if constexpr (std::is_same_v>) { + auto *list = item->mutable_value()->mutable_string_list(); + for (const auto &v : arg) + list->add_vals(v); + } else if constexpr (std::is_same_v>) { + auto *list = item->mutable_value()->mutable_bytes_list(); + for (const auto &v : arg) + list->add_vals(v.data); + } + }, + value); } - return protoRecord; -} -flwr_local::ParametersRecord -parameters_record_from_proto(const flwr::proto::ParametersRecord &protoRecord) { - flwr_local::ParametersRecord record; + return proto; +} - auto keys = protoRecord.data_keys(); - auto values = protoRecord.data_values(); - for (size_t i = 0; i < keys.size(); ++i) { - record[keys[i]] = array_from_proto(values[i]); +flwr_local::ConfigRecord +config_record_from_proto(const flwr::proto::ConfigRecord &proto) { + flwr_local::ConfigRecord record; + + for (const auto &item : proto.items()) { + const auto &value = item.value(); + switch (value.value_case()) { + case flwr::proto::ConfigRecordValue::kSint64: + record[item.key()] = value.sint64(); + break; + case flwr::proto::ConfigRecordValue::kUint64: + record[item.key()] = value.uint64(); + break; + case flwr::proto::ConfigRecordValue::kDouble: + record[item.key()] = value.double_(); + break; + case flwr::proto::ConfigRecordValue::kBool: + record[item.key()] = value.bool_(); + break; + case flwr::proto::ConfigRecordValue::kString: + record[item.key()] = value.string(); + break; + case flwr::proto::ConfigRecordValue::kBytes: + record[item.key()] = flwr_local::Bytes{value.bytes()}; + break; + case flwr::proto::ConfigRecordValue::kSintList: { + std::vector vals; + for (const auto v : value.sint_list().vals()) + vals.push_back(v); + record[item.key()] = vals; + break; + } + case flwr::proto::ConfigRecordValue::kUintList: { + std::vector vals; + for (const auto v : value.uint_list().vals()) + vals.push_back(v); + record[item.key()] = vals; + break; + } + case flwr::proto::ConfigRecordValue::kDoubleList: { + std::vector vals; + for (const auto v : value.double_list().vals()) + vals.push_back(v); + record[item.key()] = vals; + break; + } + case flwr::proto::ConfigRecordValue::kBoolList: { + std::vector vals; + for (const auto v : value.bool_list().vals()) + vals.push_back(v); + record[item.key()] = vals; + break; + } + case flwr::proto::ConfigRecordValue::kStringList: { + std::vector vals; + for (const auto &v : value.string_list().vals()) + vals.push_back(v); + record[item.key()] = vals; + break; + } + case flwr::proto::ConfigRecordValue::kBytesList: { + std::vector vals; + for (const auto &v : value.bytes_list().vals()) + vals.push_back(flwr_local::Bytes{v}); + record[item.key()] = vals; + break; + } + default: + break; + } } return record; } -flwr::proto::MetricsRecord -metrics_record_to_proto(const flwr_local::MetricsRecord &record) { - flwr::proto::MetricsRecord protoRecord; +/////////////////////////////////////////////////////////////////////////////// +// RecordDict serde +/////////////////////////////////////////////////////////////////////////////// - for (const auto &[key, value] : record) { - auto &data = (*protoRecord.mutable_data())[key]; - - if (std::holds_alternative(value)) { - data.set_sint64(std::get(value)); - } else if (std::holds_alternative(value)) { - data.set_double_(std::get(value)); - } else if (std::holds_alternative>(value)) { - auto &int_list = std::get>(value); - auto *list = data.mutable_sint64_list(); - for (int val : int_list) { - list->add_vals(val); - } - } else if (std::holds_alternative>(value)) { - auto &double_list = std::get>(value); - auto *list = data.mutable_double_list(); - for (double val : double_list) { - list->add_vals(val); - } - } +flwr::proto::RecordDict +recorddict_to_proto(const flwr_local::RecordDict &rd) { + flwr::proto::RecordDict proto; + + for (const auto &[key, value] : rd.getItems()) { + auto *item = proto.add_items(); + item->set_key(key); + + std::visit( + [&](auto &&arg) { + using T = std::decay_t; + if constexpr (std::is_same_v) { + *item->mutable_array_record() = array_record_to_proto(arg); + } else if constexpr (std::is_same_v) { + *item->mutable_metric_record() = metric_record_to_proto(arg); + } else if constexpr (std::is_same_v) { + *item->mutable_config_record() = config_record_to_proto(arg); + } + }, + value); } - return protoRecord; + return proto; } -flwr_local::MetricsRecord -metrics_record_from_proto(const flwr::proto::MetricsRecord &protoRecord) { - flwr_local::MetricsRecord record; - - for (const auto &[key, value] : protoRecord.data()) { - if (value.has_sint64()) { - record[key] = (int)value.sint64(); - } else if (value.has_double_()) { - record[key] = (double)value.double_(); - } else if (value.has_sint64_list()) { - std::vector int_list; - for (const auto sint : value.sint64_list().vals()) { - int_list.push_back((int)sint); - } - record[key] = int_list; - } else if (value.has_double_list()) { - std::vector double_list; - for (const auto proto_double : value.double_list().vals()) { - double_list.push_back((double)proto_double); - } - record[key] = double_list; +flwr_local::RecordDict +recorddict_from_proto(const flwr::proto::RecordDict &proto) { + std::map items; + + for (const auto &item : proto.items()) { + switch (item.value_case()) { + case flwr::proto::RecordDict_Item::kArrayRecord: + items[item.key()] = array_record_from_proto(item.array_record()); + break; + case flwr::proto::RecordDict_Item::kMetricRecord: + items[item.key()] = metric_record_from_proto(item.metric_record()); + break; + case flwr::proto::RecordDict_Item::kConfigRecord: + items[item.key()] = config_record_from_proto(item.config_record()); + break; + default: + break; } } - return record; -} -flwr::proto::ConfigsRecord -configs_record_to_proto(const flwr_local::ConfigsRecord &record) { - flwr::proto::ConfigsRecord protoRecord; + return flwr_local::RecordDict(items); +} - for (const auto &[key, value] : record) { - auto &data = (*protoRecord.mutable_data())[key]; - - if (std::holds_alternative(value)) { - data.set_sint64(std::get(value)); - } else if (std::holds_alternative(value)) { - data.set_double_(std::get(value)); - } else if (std::holds_alternative(value)) { - data.set_bool_(std::get(value)); - } else if (std::holds_alternative(value)) { - data.set_string(std::get(value)); - } else if (std::holds_alternative>(value)) { - auto &list = *data.mutable_sint64_list(); - for (int val : std::get>(value)) { - list.add_vals(val); - } - } else if (std::holds_alternative>(value)) { - auto &list = *data.mutable_double_list(); - for (double val : std::get>(value)) { - list.add_vals(val); - } - } else if (std::holds_alternative>(value)) { - auto &list = *data.mutable_bool_list(); - for (bool val : std::get>(value)) { - list.add_vals(val); - } - } else if (std::holds_alternative>(value)) { - auto &list = *data.mutable_string_list(); - for (const auto &val : std::get>(value)) { - list.add_vals(val); - } - } - } +/////////////////////////////////////////////////////////////////////////////// +// Metadata serde +/////////////////////////////////////////////////////////////////////////////// + +flwr::proto::Metadata metadata_to_proto(const flwr_local::Metadata &meta) { + flwr::proto::Metadata proto; + proto.set_run_id(meta.run_id); + proto.set_message_id(meta.message_id); + proto.set_src_node_id(meta.src_node_id); + proto.set_dst_node_id(meta.dst_node_id); + proto.set_reply_to_message_id(meta.reply_to_message_id); + proto.set_group_id(meta.group_id); + proto.set_ttl(meta.ttl); + proto.set_message_type(meta.message_type); + proto.set_created_at(meta.created_at); + return proto; +} - return protoRecord; +flwr_local::Metadata metadata_from_proto(const flwr::proto::Metadata &proto) { + flwr_local::Metadata meta; + meta.run_id = proto.run_id(); + meta.message_id = proto.message_id(); + meta.src_node_id = proto.src_node_id(); + meta.dst_node_id = proto.dst_node_id(); + meta.reply_to_message_id = proto.reply_to_message_id(); + meta.group_id = proto.group_id(); + meta.ttl = proto.ttl(); + meta.message_type = proto.message_type(); + meta.created_at = proto.created_at(); + return meta; } -flwr_local::ConfigsRecord -configs_record_from_proto(const flwr::proto::ConfigsRecord &protoRecord) { - flwr_local::ConfigsRecord record; +/////////////////////////////////////////////////////////////////////////////// +// Message serde +/////////////////////////////////////////////////////////////////////////////// - for (const auto &[key, value] : protoRecord.data()) { - if (value.has_sint64_list()) { - std::vector int_list; - for (const auto sint : value.sint64_list().vals()) { - int_list.push_back((int)sint); - } - record[key] = int_list; - } else if (value.has_double_list()) { - std::vector double_list; - for (const auto proto_double : value.double_list().vals()) { - double_list.push_back((double)proto_double); - } - record[key] = double_list; - } else if (value.has_bool_list()) { - std::vector tmp_list; - for (const auto proto_val : value.bool_list().vals()) { - tmp_list.push_back((bool)proto_val); - } - record[key] = tmp_list; - } else if (value.has_bytes_list()) { - std::vector tmp_list; - for (const auto proto_val : value.bytes_list().vals()) { - tmp_list.push_back(proto_val); - } - record[key] = tmp_list; - } else if (value.has_string_list()) { - std::vector tmp_list; - for (const auto proto_val : value.bytes_list().vals()) { - tmp_list.push_back(proto_val); - } - record[key] = tmp_list; - } else if (value.has_sint64()) { - record[key] = (int)value.sint64(); - } else if (value.has_double_()) { - record[key] = (double)value.double_(); - } else if (value.has_bool_()) { - record[key] = value.bool_(); - } else if (value.has_bytes()) { - record[key] = value.bytes(); - } else if (value.has_string()) { - record[key] = value.string(); - } +flwr::proto::Message message_to_proto(const flwr_local::Message &msg) { + flwr::proto::Message proto; + *proto.mutable_metadata() = metadata_to_proto(msg.metadata); + if (msg.content) { + *proto.mutable_content() = recorddict_to_proto(*msg.content); } - return record; + if (msg.error) { + proto.mutable_error()->set_code(msg.error->code); + proto.mutable_error()->set_reason(msg.error->reason); + } + return proto; } +flwr_local::Message message_from_proto(const flwr::proto::Message &proto) { + flwr_local::Message msg; + msg.metadata = metadata_from_proto(proto.metadata()); + if (proto.has_content()) { + msg.content = recorddict_from_proto(proto.content()); + } + if (proto.has_error()) { + msg.error = + flwr_local::Error{proto.error().code(), proto.error().reason()}; + } + return msg; +} + +/////////////////////////////////////////////////////////////////////////////// +// Legacy type conversions (RecordDict <-> FitIns/FitRes/EvaluateIns/etc.) +/////////////////////////////////////////////////////////////////////////////// + flwr_local::Parameters -parametersrecord_to_parameters(const flwr_local::ParametersRecord &record, +parametersrecord_to_parameters(const flwr_local::ArrayRecord &record, bool keep_input) { std::list tensors; std::string tensor_type; @@ -396,77 +523,65 @@ parametersrecord_to_parameters(const flwr_local::ParametersRecord &record, return flwr_local::Parameters(tensors, tensor_type); } -flwr_local::EvaluateIns -recordset_to_evaluate_ins(const flwr_local::RecordSet &recordset, - bool keep_input) { - auto parameters_record = - recordset.getParametersRecords().at("evaluateins.parameters"); - - flwr_local::Parameters params = - parametersrecord_to_parameters(parameters_record, keep_input); - - auto configs_record = recordset.getConfigsRecords().at("evaluateins.config"); - flwr_local::Config config_dict; - - for (const auto &[key, value] : configs_record) { - flwr_local::Scalar scalar; - - std::visit( - [&scalar](auto &&arg) { - using T = std::decay_t; - if constexpr (std::is_same_v) { - scalar.setInt(arg); - } else if constexpr (std::is_same_v) { - scalar.setDouble(arg); - } else if constexpr (std::is_same_v) { - scalar.setString(arg); - } else if constexpr (std::is_same_v) { - scalar.setBool(arg); - } else if constexpr (std::is_same_v>) { - } else if constexpr (std::is_same_v>) { - } else if constexpr (std::is_same_v>) { - } else if constexpr (std::is_same_v>) { - } - }, - value); +flwr_local::ArrayRecord +parameters_to_parametersrecord(const flwr_local::Parameters ¶meters) { + flwr_local::ArrayRecord record; + const std::list tensors = parameters.getTensors(); + const std::string tensor_type = parameters.getTensor_type(); - config_dict[key] = scalar; + int idx = 0; + for (const auto &tensor : tensors) { + flwr_local::Array array{tensor_type, std::vector(), tensor_type, + tensor}; + record[std::to_string(idx++)] = array; } - return flwr_local::EvaluateIns(params, config_dict); + return record; } -flwr_local::ConfigsRecord +flwr_local::ConfigRecord metrics_to_config_record(const flwr_local::Metrics metrics) { - flwr_local::ConfigsRecord config_record; + flwr_local::ConfigRecord config_record; for (const auto &[key, value] : metrics) { flwr_local::Scalar scalar_value = value; if (scalar_value.getBool().has_value()) { config_record[key] = scalar_value.getBool().value(); } else if (scalar_value.getBytes().has_value()) { - config_record[key] = scalar_value.getBytes().value(); + config_record[key] = flwr_local::Bytes{scalar_value.getBytes().value()}; } else if (scalar_value.getDouble().has_value()) { config_record[key] = scalar_value.getDouble().value(); } else if (scalar_value.getInt().has_value()) { - config_record[key] = scalar_value.getInt().value(); + config_record[key] = static_cast(scalar_value.getInt().value()); } else if (scalar_value.getString().has_value()) { config_record[key] = scalar_value.getString().value(); } else { - config_record[key] = ""; + config_record[key] = std::string(""); } } return config_record; } -flwr_local::FitIns recordset_to_fit_ins(const flwr_local::RecordSet &recordset, - bool keep_input) { - auto parameters_record = - recordset.getParametersRecords().at("fitins.parameters"); - +flwr_local::FitIns recorddict_to_fit_ins(const flwr_local::RecordDict &rd, + bool keep_input) { + auto array_records = rd.getArrayRecords(); + auto config_records = rd.getConfigRecords(); + + std::cerr << "[DEBUG] recorddict_to_fit_ins: array_records keys:"; + for (const auto &[k, v] : array_records) + std::cerr << " '" << k << "'"; + std::cerr << "; config_records keys:"; + for (const auto &[k, v] : config_records) + std::cerr << " '" << k << "'"; + std::cerr << "; all items keys:"; + for (const auto &[k, v] : rd.getItems()) + std::cerr << " '" << k << "'"; + std::cerr << std::endl; + + auto parameters_record = array_records.at("fitins.parameters"); flwr_local::Parameters params = parametersrecord_to_parameters(parameters_record, keep_input); - auto configs_record = recordset.getConfigsRecords().at("fitins.config"); + auto configs_record = config_records.at("fitins.config"); flwr_local::Config config_dict; for (const auto &[key, value] : configs_record) { @@ -475,18 +590,14 @@ flwr_local::FitIns recordset_to_fit_ins(const flwr_local::RecordSet &recordset, std::visit( [&scalar](auto &&arg) { using T = std::decay_t; - if constexpr (std::is_same_v) { - scalar.setInt(arg); + if constexpr (std::is_same_v) { + scalar.setInt(static_cast(arg)); } else if constexpr (std::is_same_v) { scalar.setDouble(arg); } else if constexpr (std::is_same_v) { scalar.setString(arg); } else if constexpr (std::is_same_v) { scalar.setBool(arg); - } else if constexpr (std::is_same_v>) { - } else if constexpr (std::is_same_v>) { - } else if constexpr (std::is_same_v>) { - } else if constexpr (std::is_same_v>) { } }, value); @@ -497,131 +608,507 @@ flwr_local::FitIns recordset_to_fit_ins(const flwr_local::RecordSet &recordset, return flwr_local::FitIns(params, config_dict); } -flwr_local::ParametersRecord -parameters_to_parametersrecord(const flwr_local::Parameters ¶meters) { - flwr_local::ParametersRecord record; - const std::list tensors = parameters.getTensors(); - const std::string tensor_type = parameters.getTensor_type(); +flwr_local::EvaluateIns +recorddict_to_evaluate_ins(const flwr_local::RecordDict &rd, bool keep_input) { + auto array_records = rd.getArrayRecords(); + auto config_records = rd.getConfigRecords(); - int idx = 0; - for (const auto &tensor : tensors) { - flwr_local::Array array{tensor_type, std::vector(), tensor_type, - tensor}; - record[std::to_string(idx++)] = array; + auto parameters_record = array_records.at("evaluateins.parameters"); + flwr_local::Parameters params = + parametersrecord_to_parameters(parameters_record, keep_input); + + auto configs_record = config_records.at("evaluateins.config"); + flwr_local::Config config_dict; + + for (const auto &[key, value] : configs_record) { + flwr_local::Scalar scalar; + + std::visit( + [&scalar](auto &&arg) { + using T = std::decay_t; + if constexpr (std::is_same_v) { + scalar.setInt(static_cast(arg)); + } else if constexpr (std::is_same_v) { + scalar.setDouble(arg); + } else if constexpr (std::is_same_v) { + scalar.setString(arg); + } else if constexpr (std::is_same_v) { + scalar.setBool(arg); + } + }, + value); + + config_dict[key] = scalar; } - return record; + return flwr_local::EvaluateIns(params, config_dict); } -flwr_local::RecordSet recordset_from_get_parameters_res( +flwr_local::RecordDict recorddict_from_get_parameters_res( const flwr_local::ParametersRes &get_parameters_res) { - std::map parameters_record = { - {"getparametersres.parameters", - parameters_to_parametersrecord(get_parameters_res.getParameters())}}; + std::map items; - std::map configs_record = { - {"getparametersres.status", {{"code", 0}, {"message", "Success"}}}}; + items["getparametersres.parameters"] = flwr_local::ArrayRecord( + parameters_to_parametersrecord(get_parameters_res.getParameters())); - flwr_local::RecordSet recordset = flwr_local::RecordSet(); + flwr_local::ConfigRecord status_record; + status_record["code"] = static_cast(0); + status_record["message"] = std::string("Success"); + items["getparametersres.status"] = status_record; - recordset.setParametersRecords(parameters_record); - recordset.setConfigsRecords(configs_record); - - return recordset; + return flwr_local::RecordDict(items); } -flwr_local::RecordSet recordset_from_fit_res(const flwr_local::FitRes &fitres) { - std::map parameters_record = { - {"fitres.parameters", - parameters_to_parametersrecord(fitres.getParameters())}}; +flwr_local::RecordDict +recorddict_from_fit_res(const flwr_local::FitRes &fitres) { + std::map items; + + items["fitres.parameters"] = flwr_local::ArrayRecord( + parameters_to_parametersrecord(fitres.getParameters())); - std::map metrics_record = { - {"fitres.num_examples", {{"num_examples", fitres.getNum_example()}}}}; + flwr_local::MetricRecord num_examples_record; + num_examples_record["num_examples"] = + static_cast(fitres.getNum_example()); + items["fitres.num_examples"] = num_examples_record; - std::map configs_record = { - {"fitres.status", {{"code", 0}, {"message", "Success"}}}}; + flwr_local::ConfigRecord status_record; + status_record["code"] = static_cast(0); + status_record["message"] = std::string("Success"); + items["fitres.status"] = status_record; if (fitres.getMetrics() != std::nullopt) { - configs_record["fitres.metrics"] = + items["fitres.metrics"] = metrics_to_config_record(fitres.getMetrics().value()); } else { - configs_record["fitres.metrics"] = {}; + items["fitres.metrics"] = flwr_local::ConfigRecord{}; } - flwr_local::RecordSet recordset = flwr_local::RecordSet(); - - recordset.setParametersRecords(parameters_record); - recordset.setMetricsRecords(metrics_record); - recordset.setConfigsRecords(configs_record); - return recordset; + return flwr_local::RecordDict(items); } -flwr_local::RecordSet -recordset_from_evaluate_res(const flwr_local::EvaluateRes &evaluate_res) { - std::map metrics_record = { - {"evaluateres.loss", {{"loss", evaluate_res.getLoss()}}}, - {"evaluateres.num_examples", - {{"num_examples", evaluate_res.getNum_example()}}}}; +flwr_local::RecordDict +recorddict_from_evaluate_res(const flwr_local::EvaluateRes &evaluate_res) { + std::map items; - std::map configs_record = { - {"evaluateres.status", {{"code", 0}, {"message", "Success"}}}}; + flwr_local::MetricRecord loss_record; + loss_record["loss"] = static_cast(evaluate_res.getLoss()); + items["evaluateres.loss"] = loss_record; + + flwr_local::MetricRecord num_examples_record; + num_examples_record["num_examples"] = + static_cast(evaluate_res.getNum_example()); + items["evaluateres.num_examples"] = num_examples_record; + + flwr_local::ConfigRecord status_record; + status_record["code"] = static_cast(0); + status_record["message"] = std::string("Success"); + items["evaluateres.status"] = status_record; if (evaluate_res.getMetrics() != std::nullopt) { - configs_record["evaluateres.metrics"] = + items["evaluateres.metrics"] = metrics_to_config_record(evaluate_res.getMetrics().value()); } else { - configs_record["evaluateres.metrics"] = {}; + items["evaluateres.metrics"] = flwr_local::ConfigRecord{}; } - flwr_local::RecordSet recordset = flwr_local::RecordSet(); + return flwr_local::RecordDict(items); +} - recordset.setMetricsRecords(metrics_record); - recordset.setConfigsRecords(configs_record); +/////////////////////////////////////////////////////////////////////////////// +// Inflatable object utilities (Flower 1.27+ protocol) +/////////////////////////////////////////////////////////////////////////////// + +// SHA-256 hex digest of raw bytes +std::string compute_sha256(const std::string &data) { + uint8_t hash[SHA256_DIGEST_LENGTH]; + SHA256(reinterpret_cast(data.data()), data.size(), hash); + std::ostringstream ss; + for (int i = 0; i < SHA256_DIGEST_LENGTH; i++) { + ss << std::hex << std::setw(2) << std::setfill('0') + << static_cast(hash[i]); + } + return ss.str(); +} - return recordset; +// Build inflatable object bytes: "ClassName children_csv bodylen\x00body" +static std::string build_object_bytes(const std::string &class_name, + const std::vector &children, + const std::string &body) { + std::string children_str; + for (size_t i = 0; i < children.size(); i++) { + if (i > 0) + children_str += ","; + children_str += children[i]; + } + std::string header = + class_name + " " + children_str + " " + std::to_string(body.size()); + return header + '\x00' + body; } -flwr_local::RecordSet -recordset_from_proto(const flwr::proto::RecordSet &recordset) { +// Parse object header from bytes: splits on first \x00, returns {class, children, body} +struct ParsedObject { + std::string class_name; + std::vector children; + std::string body; +}; + +static ParsedObject parse_object_bytes(const std::string &bytes) { + auto null_pos = bytes.find('\x00'); + if (null_pos == std::string::npos) + throw std::runtime_error("Invalid object bytes: no null separator"); + std::string header = bytes.substr(0, null_pos); + std::string body = bytes.substr(null_pos + 1); + + // Header: "ClassName children_csv bodylen" + auto sp1 = header.find(' '); + auto sp2 = header.find(' ', sp1 + 1); + + ParsedObject obj; + obj.class_name = header.substr(0, sp1); + obj.body = body; + + std::string children_str = header.substr(sp1 + 1, sp2 - sp1 - 1); + if (!children_str.empty()) { + size_t pos = 0; + while (pos < children_str.size()) { + auto comma = children_str.find(',', pos); + if (comma == std::string::npos) { + obj.children.push_back(children_str.substr(pos)); + break; + } + obj.children.push_back(children_str.substr(pos, comma - pos)); + pos = comma + 1; + } + } + return obj; +} - std::map parametersRecords; - std::map metricsRecords; - std::map configsRecords; +// Collect all object IDs from an ObjectTree (recursive, depth-first) +void collect_object_ids(const flwr::proto::ObjectTree &tree, + std::vector &out) { + if (!tree.object_id().empty()) { + out.push_back(tree.object_id()); + } + for (const auto &child : tree.children()) { + collect_object_ids(child, out); + } +} - for (const auto &[key, param_record] : recordset.parameters()) { - parametersRecords[key] = parameters_record_from_proto(param_record); +// Simple JSON string-to-string map parser: {"key": "value", ...} +static std::map +parse_json_str_map(const std::string &json) { + std::map result; + size_t pos = 0; + while (pos < json.size()) { + // Find next '"' + pos = json.find('"', pos); + if (pos == std::string::npos) + break; + size_t key_start = pos + 1; + size_t key_end = json.find('"', key_start); + if (key_end == std::string::npos) + break; + std::string key = json.substr(key_start, key_end - key_start); + pos = key_end + 1; + + // Find ':' then '"' + pos = json.find('"', pos); + if (pos == std::string::npos) + break; + size_t val_start = pos + 1; + size_t val_end = json.find('"', val_start); + if (val_end == std::string::npos) + break; + std::string val = json.substr(val_start, val_end - val_start); + pos = val_end + 1; + result[key] = val; } + return result; +} - for (const auto &[key, metrics_record] : recordset.metrics()) { - metricsRecords[key] = metrics_record_from_proto(metrics_record); +// Parse "arraychunk_ids": [0, 1, ...] from Array body JSON +static std::vector parse_arraychunk_ids(const std::string &json) { + std::vector result; + auto idx = json.find("arraychunk_ids"); + if (idx == std::string::npos) + return result; + auto lb = json.find('[', idx); + auto rb = json.find(']', lb); + if (lb == std::string::npos || rb == std::string::npos) + return result; + std::string arr_str = json.substr(lb + 1, rb - lb - 1); + size_t pos = 0; + while (pos < arr_str.size()) { + while (pos < arr_str.size() && (arr_str[pos] == ' ' || arr_str[pos] == ',')) + pos++; + if (pos >= arr_str.size()) + break; + size_t num_end = pos; + while (num_end < arr_str.size() && std::isdigit(arr_str[num_end])) + num_end++; + if (num_end > pos) { + result.push_back(std::stoi(arr_str.substr(pos, num_end - pos))); + pos = num_end; + } else { + break; + } } + return result; +} - for (const auto &[key, configs_record] : recordset.configs()) { - configsRecords[key] = configs_record_from_proto(configs_record); +// Inflate a RecordDict from objects map. +// recorddict_obj_id: SHA-256 of the RecordDict object bytes +// objects: map object_id -> raw bytes +flwr_local::RecordDict +inflate_recorddict(const std::string &recorddict_obj_id, + const std::map &objects) { + // Get RecordDict object bytes + auto rd_it = objects.find(recorddict_obj_id); + if (rd_it == objects.end()) + throw std::runtime_error("RecordDict object not found: " + + recorddict_obj_id); + + auto rd_parsed = parse_object_bytes(rd_it->second); + // body is JSON: {"key": "child_object_id", ...} + std::cerr << "[DEBUG inflate] rd class_name='" << rd_parsed.class_name + << "' body_len=" << rd_parsed.body.size() + << " body_first_100='" << rd_parsed.body.substr(0, 100) << "'" << std::endl; + auto rd_refs = parse_json_str_map(rd_parsed.body); + std::cerr << "[DEBUG inflate] rd_refs size=" << rd_refs.size() << std::endl; + + std::map items; + + for (const auto &[record_name, child_id] : rd_refs) { + auto child_it = objects.find(child_id); + if (child_it == objects.end()) + throw std::runtime_error("Child object not found: " + child_id); + + auto child_parsed = parse_object_bytes(child_it->second); + + if (child_parsed.class_name == "ArrayRecord") { + // ArrayRecord body: JSON {"array_key": "array_object_id", ...} + auto array_refs = parse_json_str_map(child_parsed.body); + flwr_local::ArrayRecord array_record; + + for (const auto &[array_key, array_id] : array_refs) { + auto arr_it = objects.find(array_id); + if (arr_it == objects.end()) + throw std::runtime_error("Array object not found: " + array_id); + + auto arr_parsed = parse_object_bytes(arr_it->second); + // Array children = unique chunk object_ids (in order of unique_children) + // Array body JSON: {"dtype":..., "shape":..., "stype":..., "arraychunk_ids":[...]} + auto chunk_indices = parse_arraychunk_ids(arr_parsed.body); + + // Extract stype from JSON body: "stype": "value" + std::string stype = "numpy.ndarray"; + { + auto s_idx = arr_parsed.body.find("\"stype\""); + if (s_idx != std::string::npos) { + // Skip past "stype" key, then find the value's opening and closing quotes + auto q1 = arr_parsed.body.find('"', s_idx + 7); // opening quote of value + auto q2 = arr_parsed.body.find('"', q1 + 1); // closing quote of value + if (q1 != std::string::npos && q2 != std::string::npos) + stype = arr_parsed.body.substr(q1 + 1, q2 - q1 - 1); + } + } + + // Concatenate chunk data in order specified by arraychunk_ids + std::string raw_data; + for (int ci : chunk_indices) { + if (ci < 0 || ci >= (int)arr_parsed.children.size()) + throw std::runtime_error("Invalid chunk index"); + const std::string &chunk_id = arr_parsed.children[ci]; + auto chunk_it = objects.find(chunk_id); + if (chunk_it == objects.end()) + throw std::runtime_error("ArrayChunk not found: " + chunk_id); + auto chunk_parsed = parse_object_bytes(chunk_it->second); + raw_data += chunk_parsed.body; + } + + flwr_local::Array array; + array.dtype = ""; + array.stype = stype; + array.data = raw_data; + array_record[array_key] = array; + } + items[record_name] = array_record; + + } else if (child_parsed.class_name == "ConfigRecord") { + // ConfigRecord body: serialized flwr::proto::ConfigRecord + flwr::proto::ConfigRecord proto; + proto.ParseFromString(child_parsed.body); + items[record_name] = config_record_from_proto(proto); + + } else if (child_parsed.class_name == "MetricRecord") { + // MetricRecord body: serialized flwr::proto::MetricRecord + flwr::proto::MetricRecord proto; + proto.ParseFromString(child_parsed.body); + items[record_name] = metric_record_from_proto(proto); + + } else { + throw std::runtime_error("Unknown record class: " + child_parsed.class_name); + } } - return flwr_local::RecordSet(parametersRecords, metricsRecords, - configsRecords); + return flwr_local::RecordDict(items); } -flwr::proto::RecordSet -recordset_to_proto(const flwr_local::RecordSet &recordset) { - flwr::proto::RecordSet proto_recordset; +// Deflate a RecordDict and Message into inflatable object bytes. +// Returns DeflatedContent with objects map + ObjectTree + message_id. +DeflatedContent deflate_message(const flwr_local::RecordDict &rd, + const flwr_local::Metadata &reply_metadata) { + DeflatedContent result; + + // ---- Deflate RecordDict bottom-up ---- + std::vector rd_children; // children of RecordDict + + for (const auto &[record_name, record_val] : rd.getItems()) { + std::string child_id; + + if (std::holds_alternative(record_val)) { + const auto &ar = std::get(record_val); + std::vector ar_children; + + for (const auto &[array_key, array] : ar) { + // ArrayChunk: body = raw tensor data + std::string chunk_body(array.data.begin(), array.data.end()); + std::string chunk_bytes = + build_object_bytes("ArrayChunk", {}, chunk_body); + std::string chunk_id = compute_sha256(chunk_bytes); + result.objects[chunk_id] = chunk_bytes; + + // Array: JSON body referencing the chunk + // unique_children = [chunk_id], arraychunk_ids = [0] + std::ostringstream arr_body; + arr_body << "{\"dtype\": \"\", \"shape\": [], \"stype\": \"" + << array.stype << "\", \"arraychunk_ids\": [0]}"; + std::string array_bytes = + build_object_bytes("Array", {chunk_id}, arr_body.str()); + std::string array_id = compute_sha256(array_bytes); + result.objects[array_id] = array_bytes; + ar_children.push_back(array_id); + + // ArrayRecord JSON entry: "array_key": "array_id" + // (we build the JSON below) + (void)array_key; + // Store array_key→array_id for JSON construction + // We'll reconstruct below + (void)ar_children; // will be used + } - for (const auto &[key, param_record] : recordset.getParametersRecords()) { - (*(proto_recordset.mutable_parameters()))[key] = - parameters_record_to_proto(param_record); - } + // Build ArrayRecord JSON body: {"0": "array_id", ...} + std::string ar_body = "{"; + bool first = true; + size_t arr_idx = 0; + std::vector ar_child_ids; + for (const auto &[array_key, array] : ar) { + // re-compute array_id from the same data (same chunk was computed above) + std::string chunk_body(array.data.begin(), array.data.end()); + std::string chunk_bytes = + build_object_bytes("ArrayChunk", {}, chunk_body); + std::string chunk_id = compute_sha256(chunk_bytes); + std::ostringstream arr_body_s; + arr_body_s << "{\"dtype\": \"\", \"shape\": [], \"stype\": \"" + << array.stype << "\", \"arraychunk_ids\": [0]}"; + std::string array_bytes = + build_object_bytes("Array", {chunk_id}, arr_body_s.str()); + std::string array_id = compute_sha256(array_bytes); + ar_child_ids.push_back(array_id); + + if (!first) + ar_body += ", "; + ar_body += "\"" + array_key + "\": \"" + array_id + "\""; + first = false; + arr_idx++; + } + ar_body += "}"; + + std::string ar_bytes = + build_object_bytes("ArrayRecord", ar_child_ids, ar_body); + std::string ar_id = compute_sha256(ar_bytes); + result.objects[ar_id] = ar_bytes; + rd_children.push_back(ar_id); + child_id = ar_id; + + } else if (std::holds_alternative(record_val)) { + const auto &cr = std::get(record_val); + flwr::proto::ConfigRecord proto = config_record_to_proto(cr); + std::string cr_body; + proto.SerializeToString(&cr_body); + std::string cr_bytes = build_object_bytes("ConfigRecord", {}, cr_body); + std::string cr_id = compute_sha256(cr_bytes); + result.objects[cr_id] = cr_bytes; + rd_children.push_back(cr_id); + child_id = cr_id; + + } else if (std::holds_alternative(record_val)) { + const auto &mr = std::get(record_val); + flwr::proto::MetricRecord proto = metric_record_to_proto(mr); + std::string mr_body; + proto.SerializeToString(&mr_body); + std::string mr_bytes = build_object_bytes("MetricRecord", {}, mr_body); + std::string mr_id = compute_sha256(mr_bytes); + result.objects[mr_id] = mr_bytes; + rd_children.push_back(mr_id); + child_id = mr_id; + } - for (const auto &[key, metrics_record] : recordset.getMetricsRecords()) { - (*(proto_recordset.mutable_metrics()))[key] = - metrics_record_to_proto(metrics_record); + (void)child_id; // used indirectly via rd_children } - for (const auto &[key, configs_record] : recordset.getConfigsRecords()) { - (*(proto_recordset.mutable_configs()))[key] = - configs_record_to_proto(configs_record); + // Build RecordDict JSON body: {"record_name": "child_id", ...} + std::string rdbody = "{"; + { + bool first = true; + size_t i = 0; + for (const auto &[record_name, record_val] : rd.getItems()) { + if (!first) + rdbody += ", "; + rdbody += "\"" + record_name + "\": \"" + rd_children[i] + "\""; + first = false; + i++; + } } + rdbody += "}"; + + std::string rd_bytes = build_object_bytes("RecordDict", rd_children, rdbody); + std::string rd_id = compute_sha256(rd_bytes); + result.objects[rd_id] = rd_bytes; + + // ---- Deflate Message ---- + // Build metadata proto WITHOUT message_id (as Python does) + flwr_local::Metadata meta_no_id = reply_metadata; + meta_no_id.message_id = ""; + flwr::proto::Metadata meta_proto = metadata_to_proto(meta_no_id); + + // Build Message proto body (metadata only, no content, no error) + flwr::proto::Message msg_proto_body; + *msg_proto_body.mutable_metadata() = meta_proto; + std::string msg_body; + msg_proto_body.SerializeToString(&msg_body); + + // Message object: one child = RecordDict + std::string msg_bytes = build_object_bytes("Message", {rd_id}, msg_body); + std::string msg_id = compute_sha256(msg_bytes); + result.objects[msg_id] = msg_bytes; + result.message_id = msg_id; + + // ---- Build ObjectTree ---- + // Helper to build tree recursively from objects map + // We need to know the tree structure. Use the parsed children from the objects. + std::function build_tree; + build_tree = [&](const std::string &obj_id) -> flwr::proto::ObjectTree { + flwr::proto::ObjectTree tree; + tree.set_object_id(obj_id); + const auto &bytes = result.objects.at(obj_id); + auto parsed = parse_object_bytes(bytes); + for (const auto &child_id : parsed.children) { + *tree.add_children() = build_tree(child_id); + } + return tree; + }; + result.message_tree = build_tree(msg_id); - return proto_recordset; + return result; } diff --git a/framework/cc/flwr/src/start.cc b/framework/cc/flwr/src/start.cc index 06b520ba8a06..62de234529f0 100644 --- a/framework/cc/flwr/src/start.cc +++ b/framework/cc/flwr/src/start.cc @@ -1,4 +1,7 @@ #include "start.h" +#include +#include +#include // cppcheck-suppress unusedFunction void start::start_client(std::string server_address, flwr_local::Client *client, @@ -6,40 +9,91 @@ void start::start_client(std::string server_address, flwr_local::Client *client, gRPCRereCommunicator communicator(server_address, grpc_max_message_length); - while (true) { - int sleep_duration = 0; - - create_node(&communicator); + // 1. Register node + register_node(&communicator); - while (true) { - auto task_ins = receive(&communicator); - if (!task_ins) { - std::this_thread::sleep_for(std::chrono::seconds(3)); - continue; - } + // 2. Activate node (gets node_id) + double heartbeat_interval = 30.0; + uint64_t node_id = activate_node(&communicator, heartbeat_interval); + std::cout << "Node activated with id: " << node_id << std::endl; + if (node_id == 0) { + std::cerr << "Failed to activate node; exiting." << std::endl; + return; + } - auto [task_res, sleep_duration, keep_going] = - handle_task(client, task_ins.value()); + // 3. Start heartbeat background thread + std::atomic running{true}; + std::mutex cv_mutex; + std::condition_variable cv; - send(&communicator, task_res); - if (!keep_going) { - break; + std::thread heartbeat_thread([&]() { + while (running) { + { + std::unique_lock lock(cv_mutex); + cv.wait_for(lock, std::chrono::seconds((int)heartbeat_interval), + [&] { return !running.load(); }); } + if (!running) + break; + send_heartbeat(&communicator, heartbeat_interval); + } + }); + + // 4. Message loop + while (true) { + std::optional message; + try { + message = receive(&communicator); + } catch (const std::exception &e) { + std::cerr << "[CRASH] receive() threw: " << e.what() << std::endl; + break; } + if (!message) { + std::this_thread::sleep_for(std::chrono::seconds(3)); + continue; + } + + std::cerr << "[DEBUG] Received msg type='" << message->metadata.message_type + << "' has_content=" << (message->content ? "yes" : "no") << std::endl; - delete_node(&communicator); - if (sleep_duration == 0) { - std::cout << "Disconnect and shut down." << std::endl; + std::tuple handle_result; + try { + handle_result = handle_message(client, *message); + } catch (const std::exception &e) { + std::cerr << "[CRASH] handle_message() threw: " << e.what() << std::endl; break; } + auto [reply, sleep_duration, keep_going] = handle_result; + + std::cerr << "[DEBUG] Sending reply type='" << reply.metadata.message_type + << "' has_content=" << (reply.content ? "yes" : "no") << std::endl; - std::cout << "Disconnect, then re-establish connection after" - << sleep_duration << "second(s)" << std::endl; - std::this_thread::sleep_for(std::chrono::seconds(sleep_duration)); + try { + send(&communicator, reply); + } catch (const std::exception &e) { + std::cerr << "[CRASH] send() threw: " << e.what() << std::endl; + break; + } - if (sleep_duration == 0) { - std::cout << "Disconnect and shut down." << std::endl; + if (!keep_going) { + if (sleep_duration > 0) { + std::cout << "Reconnect requested; sleeping " << sleep_duration + << "s before shutdown." << std::endl; + std::this_thread::sleep_for(std::chrono::seconds(sleep_duration)); + } break; } } + + // 5. Cleanup + running = false; + cv.notify_all(); + if (heartbeat_thread.joinable()) { + heartbeat_thread.join(); + } + + deactivate_node(&communicator); + unregister_node(&communicator); + + std::cout << "Disconnect and shut down." << std::endl; }