From 93047744852f6daee5c15a34fa2b6e6513f933f3 Mon Sep 17 00:00:00 2001 From: Abraham Dauhajre Date: Fri, 13 Sep 2019 19:13:41 -0700 Subject: [PATCH] Release 0.35.13 --- README.md | 3 - docker/README.md | 31 + docker/docker-compose.yaml | 4 +- docker/formant.env | 4 +- docker/ros/docker-compose.yaml | 29 + docker/ros/formant.env | 2 + examples/config.toml | 29 - examples/cpp/main.cc | 2 +- examples/cpp/protos/agent/v1/agent.grpc.pb.cc | 208 +- examples/cpp/protos/agent/v1/agent.grpc.pb.h | 794 +-- examples/cpp/protos/agent/v1/agent.pb.cc | 2306 ++++---- examples/cpp/protos/agent/v1/agent.pb.h | 1043 ++-- .../cpp/protos/agent/v1/agent_mock.grpc.pb.h | 47 + examples/cpp/protos/model/v1/config.pb.cc | 5198 +++++++++++++++++ examples/cpp/protos/model/v1/config.pb.h | 2909 +++++++++ examples/cpp/protos/model/v1/datapoint.pb.cc | 685 +-- examples/cpp/protos/model/v1/datapoint.pb.h | 207 +- examples/cpp/protos/model/v1/file.pb.cc | 186 +- examples/cpp/protos/model/v1/file.pb.h | 251 +- examples/cpp/protos/model/v1/health.pb.h | 4 +- .../cpp/protos/model/v1/intervention.pb.h | 20 +- examples/cpp/protos/model/v1/math.pb.cc | 128 +- examples/cpp/protos/model/v1/math.pb.h | 98 +- examples/cpp/protos/model/v1/media.pb.cc | 519 +- examples/cpp/protos/model/v1/media.pb.h | 440 +- examples/cpp/protos/model/v1/navigation.pb.h | 12 +- examples/cpp/protos/model/v1/ros.pb.cc | 1270 +--- examples/cpp/protos/model/v1/ros.pb.h | 761 +-- examples/cpp/protos/model/v1/text.pb.h | 4 +- examples/python/README.md | 23 +- examples/python/data/cargo.png | Bin 0 -> 14081 bytes examples/python/data/factory.png | Bin 0 -> 18634 bytes examples/python/{ => data}/map.json | 0 examples/python/data/picker.png | Bin 0 -> 14124 bytes examples/python/data/planets.csv | 10 + examples/python/fruit-many.png | Bin 657801 -> 0 bytes examples/python/fruit-single.png | Bin 807491 -> 0 bytes examples/python/intervention_grpc.py | 29 + examples/python/intervention_http.py | 41 + examples/python/main.py | 358 -- examples/python/protos/agent/__init__.py | 0 examples/python/protos/agent/v1/agent_pb2.py | 336 +- .../python/protos/agent/v1/agent_pb2_grpc.py | 139 +- examples/python/protos/model/v1/config_pb2.py | 787 +++ .../python/protos/model/v1/config_pb2_grpc.py | 3 + .../python/protos/model/v1/datapoint_pb2.py | 95 +- .../protos/model/v1/datapoint_pb2_grpc.py | 3 + examples/python/protos/model/v1/file_pb2.py | 37 +- .../python/protos/model/v1/file_pb2_grpc.py | 3 + examples/python/protos/model/v1/health_pb2.py | 10 +- .../python/protos/model/v1/health_pb2_grpc.py | 3 + .../protos/model/v1/intervention_pb2.py | 108 +- .../protos/model/v1/intervention_pb2_grpc.py | 3 + examples/python/protos/model/v1/math_pb2.py | 86 +- .../python/protos/model/v1/math_pb2_grpc.py | 3 + examples/python/protos/model/v1/media_pb2.py | 80 +- .../python/protos/model/v1/media_pb2_grpc.py | 3 + .../python/protos/model/v1/navigation_pb2.py | 52 +- .../protos/model/v1/navigation_pb2_grpc.py | 3 + examples/python/protos/model/v1/ros_pb2.py | 166 +- .../python/protos/model/v1/ros_pb2_grpc.py | 3 + examples/python/protos/model/v1/text_pb2.py | 6 +- .../python/protos/model/v1/text_pb2_grpc.py | 3 + examples/python/requirements.txt | 3 +- examples/python/send_file.py | 21 + examples/python/send_geolocation.py | 17 + examples/python/send_numeric.py | 19 + examples/python/send_text_grpc.py | 18 + examples/python/send_text_http.py | 22 + protos/agent/v1/agent.proto | 116 +- protos/model/v1/config.proto | 80 + protos/model/v1/datapoint.proto | 41 +- protos/model/v1/file.proto | 24 +- protos/model/v1/math.proto | 2 +- protos/model/v1/media.proto | 15 +- protos/model/v1/navigation.proto | 2 +- protos/model/v1/ros.proto | 21 +- ros-bridge/README.md | 36 - ros-bridge/config.toml | 36 - ros-bridge/formant/CMakeLists.txt | 198 - ros-bridge/formant/launch/main.launch | 3 - ros-bridge/formant/nodes/bridge | 21 - ros-bridge/formant/package.xml | 19 - ros-bridge/formant/requirements.txt | 3 - ros-bridge/formant/setup.py | 12 - ros-bridge/formant/src/formant/__init__.py | 1 - ros-bridge/formant/src/formant/bridge_node.py | 194 - ros-bridge/formant/src/protos/__init__.py | 0 .../formant/src/protos/agent/__init__.py | 0 .../formant/src/protos/agent/v1/__init__.py | 0 .../formant/src/protos/agent/v1/agent_pb2.py | 520 -- .../src/protos/agent/v1/agent_pb2_grpc.py | 185 - .../formant/src/protos/model/__init__.py | 0 .../formant/src/protos/model/v1/__init__.py | 0 .../src/protos/model/v1/datapoint_pb2.py | 276 - .../formant/src/protos/model/v1/file_pb2.py | 124 - .../formant/src/protos/model/v1/health_pb2.py | 109 - .../src/protos/model/v1/intervention_pb2.py | 653 --- .../formant/src/protos/model/v1/math_pb2.py | 452 -- .../formant/src/protos/model/v1/media_pb2.py | 211 - .../src/protos/model/v1/navigation_pb2.py | 326 -- .../formant/src/protos/model/v1/ros_pb2.py | 232 - .../formant/src/protos/model/v1/text_pb2.py | 71 - 103 files changed, 13249 insertions(+), 10421 deletions(-) delete mode 100644 README.md create mode 100755 docker/README.md create mode 100755 docker/ros/docker-compose.yaml create mode 100755 docker/ros/formant.env delete mode 100755 examples/config.toml create mode 100755 examples/cpp/protos/agent/v1/agent_mock.grpc.pb.h create mode 100755 examples/cpp/protos/model/v1/config.pb.cc create mode 100755 examples/cpp/protos/model/v1/config.pb.h create mode 100755 examples/python/data/cargo.png create mode 100755 examples/python/data/factory.png rename examples/python/{ => data}/map.json (100%) create mode 100755 examples/python/data/picker.png create mode 100755 examples/python/data/planets.csv delete mode 100755 examples/python/fruit-many.png delete mode 100755 examples/python/fruit-single.png create mode 100755 examples/python/intervention_grpc.py create mode 100755 examples/python/intervention_http.py delete mode 100755 examples/python/main.py delete mode 100755 examples/python/protos/agent/__init__.py create mode 100755 examples/python/protos/model/v1/config_pb2.py create mode 100755 examples/python/protos/model/v1/config_pb2_grpc.py create mode 100755 examples/python/protos/model/v1/datapoint_pb2_grpc.py create mode 100755 examples/python/protos/model/v1/file_pb2_grpc.py create mode 100755 examples/python/protos/model/v1/health_pb2_grpc.py create mode 100755 examples/python/protos/model/v1/intervention_pb2_grpc.py create mode 100755 examples/python/protos/model/v1/math_pb2_grpc.py create mode 100755 examples/python/protos/model/v1/media_pb2_grpc.py create mode 100755 examples/python/protos/model/v1/navigation_pb2_grpc.py create mode 100755 examples/python/protos/model/v1/ros_pb2_grpc.py create mode 100755 examples/python/protos/model/v1/text_pb2_grpc.py create mode 100755 examples/python/send_file.py create mode 100755 examples/python/send_geolocation.py create mode 100755 examples/python/send_numeric.py create mode 100755 examples/python/send_text_grpc.py create mode 100755 examples/python/send_text_http.py create mode 100755 protos/model/v1/config.proto delete mode 100755 ros-bridge/README.md delete mode 100755 ros-bridge/config.toml delete mode 100755 ros-bridge/formant/CMakeLists.txt delete mode 100755 ros-bridge/formant/launch/main.launch delete mode 100755 ros-bridge/formant/nodes/bridge delete mode 100755 ros-bridge/formant/package.xml delete mode 100755 ros-bridge/formant/requirements.txt delete mode 100755 ros-bridge/formant/setup.py delete mode 100755 ros-bridge/formant/src/formant/__init__.py delete mode 100755 ros-bridge/formant/src/formant/bridge_node.py delete mode 100755 ros-bridge/formant/src/protos/__init__.py delete mode 100755 ros-bridge/formant/src/protos/agent/__init__.py delete mode 100755 ros-bridge/formant/src/protos/agent/v1/__init__.py delete mode 100755 ros-bridge/formant/src/protos/agent/v1/agent_pb2.py delete mode 100755 ros-bridge/formant/src/protos/agent/v1/agent_pb2_grpc.py delete mode 100755 ros-bridge/formant/src/protos/model/__init__.py delete mode 100755 ros-bridge/formant/src/protos/model/v1/__init__.py delete mode 100755 ros-bridge/formant/src/protos/model/v1/datapoint_pb2.py delete mode 100755 ros-bridge/formant/src/protos/model/v1/file_pb2.py delete mode 100755 ros-bridge/formant/src/protos/model/v1/health_pb2.py delete mode 100755 ros-bridge/formant/src/protos/model/v1/intervention_pb2.py delete mode 100755 ros-bridge/formant/src/protos/model/v1/math_pb2.py delete mode 100755 ros-bridge/formant/src/protos/model/v1/media_pb2.py delete mode 100755 ros-bridge/formant/src/protos/model/v1/navigation_pb2.py delete mode 100755 ros-bridge/formant/src/protos/model/v1/ros_pb2.py delete mode 100755 ros-bridge/formant/src/protos/model/v1/text_pb2.py diff --git a/README.md b/README.md deleted file mode 100644 index 220fab1..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Formant - -Formant example code and Agent releases. diff --git a/docker/README.md b/docker/README.md new file mode 100755 index 0000000..1315c14 --- /dev/null +++ b/docker/README.md @@ -0,0 +1,31 @@ +## Content + +This directory contains usage examples for the Formant Agent with Docker. + +## Setup + +1. Make sure you have [Docker](https://docs.docker.com/install/) and [Docker Compose](https://docs.docker.com/compose/install/) installed. + +## Usage + +1. Go to the [Create Agent](https://app.formant.io/create-agent) page and enter a agent name and tags. +2. On the Installer page, copy and paste your `FORMANT_PROVISIONING_TOKEN` from the install step into the [formant.env](formant.env) file. +3. Run `docker-compose up` to start the Formant Agent container. + +## Notes + +### Image Repository + +The full list of available images can be found on [Docker Hub](https://hub.docker.com/r/formant/agent/tags). + +Our container images have support for AMD64, ARM64, and ARM. We provide both ROS Melodic and ROS Kinetic variants as well. + +### ROS + +We have included a ROS-based [docker-compose](ros/docker-compose.yaml) as well. This will start up two containers, one running a ROS Master and our Agent. You should note the [formant.env](ros/formant.env) file contains the `ROS_MASTER_URI` pointed to the container over the `formant` docker network. + +### Container State + +The agent uses a docker volume to store state and persistent data. If the volume is deleted you will need to reprovision the agent. + +The provisioning token you use to initialize the agent is a one-time use token. You can remove it from the [formant.env](formant.env) file after the credentialing process is done. diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 9932ac5..6257709 100755 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -10,7 +10,7 @@ volumes: services: formant-agent: container_name: formant-agent - image: formant/agent:0.16.43 + image: formant/agent:latest restart: always env_file: - formant.env @@ -18,6 +18,6 @@ services: - "5501:5501" - "5502:5502" volumes: - - "formant:/home/.formant" + - "formant:/root/.formant" networks: - formant diff --git a/docker/formant.env b/docker/formant.env index d5dd96f..9ff80ae 100755 --- a/docker/formant.env +++ b/docker/formant.env @@ -1,3 +1 @@ -FORMANT_EMAIL= -FORMANT_PASSWORD= -FORMANT_TAGS=name:formant001,location:sfo,group:production \ No newline at end of file +FORMANT_PROVISIONING_TOKEN= diff --git a/docker/ros/docker-compose.yaml b/docker/ros/docker-compose.yaml new file mode 100755 index 0000000..72afcdb --- /dev/null +++ b/docker/ros/docker-compose.yaml @@ -0,0 +1,29 @@ +version: "2.2" + +networks: + formant: + driver: bridge + +volumes: + formant: + +services: + ros-master: + image: ros:melodic-ros-core + command: stdbuf -o L roscore + networks: + - formant + restart: always + formant-agent: + container_name: ros-formant-agent + image: formant/agent:ros-melodic + restart: always + env_file: + - formant.env + ports: + - "5501:5501" + - "5502:5502" + volumes: + - "formant:/root/.formant" + networks: + - formant diff --git a/docker/ros/formant.env b/docker/ros/formant.env new file mode 100755 index 0000000..e583fdd --- /dev/null +++ b/docker/ros/formant.env @@ -0,0 +1,2 @@ +FORMANT_PROVISIONING_TOKEN= +ROS_MASTER_URI=http://ros-master:11311 \ No newline at end of file diff --git a/examples/config.toml b/examples/config.toml deleted file mode 100755 index be867a5..0000000 --- a/examples/config.toml +++ /dev/null @@ -1,29 +0,0 @@ -[formant] -agent-server-port-grpc = "5501" -agent-server-port-http = "5502" -agent-server-ip = "localhost" - -[tags] -site = "san_francisco_1" -environment = "dev" -group = "engineering" - -##### Basic Streams ##### - -[[streams]] -name = "stream.001" - -##### Watch Streams ##### - -[[streams]] -name = "cognex.001" -dir = "/home/ftp/upload" -formant-type = "image" -ext = ".jpg" - -[[streams]] -name = "test.log" -filename = "/home/logs/test.log" -file-format = "json" -time-key = "timestamp" -time-format = "2006-01-02T15:04:05Z07:00" \ No newline at end of file diff --git a/examples/cpp/main.cc b/examples/cpp/main.cc index e370ebc..82e7501 100755 --- a/examples/cpp/main.cc +++ b/examples/cpp/main.cc @@ -46,7 +46,7 @@ class AgentClient { std::cout << "posting file datapoint on " << stream << std::endl; Datapoint datapoint; (*datapoint.mutable_tags())["annotation"] = "formant_exp_002"; - datapoint.mutable_file()->set_url("file://" + filePath); + datapoint.mutable_file()->set_url(filePath); datapoint.set_stream(stream); datapoint.set_timestamp(GetCurrentTimestamp()); PostDataResponse response; diff --git a/examples/cpp/protos/agent/v1/agent.grpc.pb.cc b/examples/cpp/protos/agent/v1/agent.grpc.pb.cc index 5752e85..82ceb00 100755 --- a/examples/cpp/protos/agent/v1/agent.grpc.pb.cc +++ b/examples/cpp/protos/agent/v1/agent.grpc.pb.cc @@ -22,13 +22,13 @@ namespace agent { static const char* Agent_method_names[] = { "/v1.agent.Agent/StreamData", "/v1.agent.Agent/PostData", - "/v1.agent.Agent/RegisterROSTopic", - "/v1.agent.Agent/GetROSTopics", - "/v1.agent.Agent/GetROSTopicsSubscriptionConfig", - "/v1.agent.Agent/GetROSWorldReferenceFrameID", "/v1.agent.Agent/CreateInterventionRequest", "/v1.agent.Agent/GetInterventionRequest", "/v1.agent.Agent/GetInterventionResponse", + "/v1.agent.Agent/GetStreamsConfiguration", + "/v1.agent.Agent/GetApplicationConfiguration", + "/v1.agent.Agent/GetAgentConfiguration", + "/v1.agent.Agent/Health", }; std::unique_ptr< Agent::Stub> Agent::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -40,13 +40,13 @@ std::unique_ptr< Agent::Stub> Agent::NewStub(const std::shared_ptr< ::grpc::Chan Agent::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) : channel_(channel), rpcmethod_StreamData_(Agent_method_names[0], ::grpc::internal::RpcMethod::CLIENT_STREAMING, channel) , rpcmethod_PostData_(Agent_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RegisterROSTopic_(Agent_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetROSTopics_(Agent_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetROSTopicsSubscriptionConfig_(Agent_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetROSWorldReferenceFrameID_(Agent_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateInterventionRequest_(Agent_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetInterventionRequest_(Agent_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetInterventionResponse_(Agent_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateInterventionRequest_(Agent_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetInterventionRequest_(Agent_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetInterventionResponse_(Agent_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetStreamsConfiguration_(Agent_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetApplicationConfiguration_(Agent_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetAgentConfiguration_(Agent_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Health_(Agent_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::ClientWriter< ::v1::model::Datapoint>* Agent::Stub::StreamDataRaw(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response) { @@ -73,6 +73,10 @@ void Agent::Stub::experimental_async::PostData(::grpc::ClientContext* context, c return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_PostData_, context, request, response, std::move(f)); } +void Agent::Stub::experimental_async::PostData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::PostDataResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_PostData_, context, request, response, std::move(f)); +} + ::grpc::ClientAsyncResponseReader< ::v1::agent::PostDataResponse>* Agent::Stub::AsyncPostDataRaw(::grpc::ClientContext* context, const ::v1::model::Datapoint& request, ::grpc::CompletionQueue* cq) { return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::PostDataResponse>::Create(channel_.get(), cq, rpcmethod_PostData_, context, request, true); } @@ -81,116 +85,144 @@ ::grpc::ClientAsyncResponseReader< ::v1::agent::PostDataResponse>* Agent::Stub:: return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::PostDataResponse>::Create(channel_.get(), cq, rpcmethod_PostData_, context, request, false); } -::grpc::Status Agent::Stub::RegisterROSTopic(::grpc::ClientContext* context, const ::v1::model::ROSTopic& request, ::v1::agent::RegisterROSTopicResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RegisterROSTopic_, context, request, response); +::grpc::Status Agent::Stub::CreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::v1::model::InterventionRequest* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateInterventionRequest_, context, request, response); } -void Agent::Stub::experimental_async::RegisterROSTopic(::grpc::ClientContext* context, const ::v1::model::ROSTopic* request, ::v1::agent::RegisterROSTopicResponse* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RegisterROSTopic_, context, request, response, std::move(f)); +void Agent::Stub::experimental_async::CreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateInterventionRequest_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::v1::agent::RegisterROSTopicResponse>* Agent::Stub::AsyncRegisterROSTopicRaw(::grpc::ClientContext* context, const ::v1::model::ROSTopic& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::RegisterROSTopicResponse>::Create(channel_.get(), cq, rpcmethod_RegisterROSTopic_, context, request, true); +void Agent::Stub::experimental_async::CreateInterventionRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionRequest* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateInterventionRequest_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::v1::agent::RegisterROSTopicResponse>* Agent::Stub::PrepareAsyncRegisterROSTopicRaw(::grpc::ClientContext* context, const ::v1::model::ROSTopic& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::RegisterROSTopicResponse>::Create(channel_.get(), cq, rpcmethod_RegisterROSTopic_, context, request, false); +::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>* Agent::Stub::AsyncCreateInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionRequest>::Create(channel_.get(), cq, rpcmethod_CreateInterventionRequest_, context, request, true); } -::grpc::Status Agent::Stub::GetROSTopics(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest& request, ::v1::agent::GetROSTopicsResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetROSTopics_, context, request, response); +::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>* Agent::Stub::PrepareAsyncCreateInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionRequest>::Create(channel_.get(), cq, rpcmethod_CreateInterventionRequest_, context, request, false); } -void Agent::Stub::experimental_async::GetROSTopics(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest* request, ::v1::agent::GetROSTopicsResponse* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetROSTopics_, context, request, response, std::move(f)); +::grpc::Status Agent::Stub::GetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::v1::model::InterventionRequest* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetInterventionRequest_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsResponse>* Agent::Stub::AsyncGetROSTopicsRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetROSTopicsResponse>::Create(channel_.get(), cq, rpcmethod_GetROSTopics_, context, request, true); +void Agent::Stub::experimental_async::GetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetInterventionRequest_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsResponse>* Agent::Stub::PrepareAsyncGetROSTopicsRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetROSTopicsResponse>::Create(channel_.get(), cq, rpcmethod_GetROSTopics_, context, request, false); +void Agent::Stub::experimental_async::GetInterventionRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionRequest* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetInterventionRequest_, context, request, response, std::move(f)); } -::grpc::Status Agent::Stub::GetROSTopicsSubscriptionConfig(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest& request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetROSTopicsSubscriptionConfig_, context, request, response); +::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>* Agent::Stub::AsyncGetInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionRequest>::Create(channel_.get(), cq, rpcmethod_GetInterventionRequest_, context, request, true); } -void Agent::Stub::experimental_async::GetROSTopicsSubscriptionConfig(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetROSTopicsSubscriptionConfig_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>* Agent::Stub::PrepareAsyncGetInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionRequest>::Create(channel_.get(), cq, rpcmethod_GetInterventionRequest_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>* Agent::Stub::AsyncGetROSTopicsSubscriptionConfigRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>::Create(channel_.get(), cq, rpcmethod_GetROSTopicsSubscriptionConfig_, context, request, true); +::grpc::Status Agent::Stub::GetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::v1::model::InterventionResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetInterventionResponse_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>* Agent::Stub::PrepareAsyncGetROSTopicsSubscriptionConfigRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>::Create(channel_.get(), cq, rpcmethod_GetROSTopicsSubscriptionConfig_, context, request, false); +void Agent::Stub::experimental_async::GetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetInterventionResponse_, context, request, response, std::move(f)); } -::grpc::Status Agent::Stub::GetROSWorldReferenceFrameID(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest& request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetROSWorldReferenceFrameID_, context, request, response); +void Agent::Stub::experimental_async::GetInterventionResponse(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetInterventionResponse_, context, request, response, std::move(f)); } -void Agent::Stub::experimental_async::GetROSWorldReferenceFrameID(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetROSWorldReferenceFrameID_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::v1::model::InterventionResponse>* Agent::Stub::AsyncGetInterventionResponseRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionResponse>::Create(channel_.get(), cq, rpcmethod_GetInterventionResponse_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSWorldReferenceFrameIDResponse>* Agent::Stub::AsyncGetROSWorldReferenceFrameIDRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetROSWorldReferenceFrameIDResponse>::Create(channel_.get(), cq, rpcmethod_GetROSWorldReferenceFrameID_, context, request, true); +::grpc::ClientAsyncResponseReader< ::v1::model::InterventionResponse>* Agent::Stub::PrepareAsyncGetInterventionResponseRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionResponse>::Create(channel_.get(), cq, rpcmethod_GetInterventionResponse_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSWorldReferenceFrameIDResponse>* Agent::Stub::PrepareAsyncGetROSWorldReferenceFrameIDRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetROSWorldReferenceFrameIDResponse>::Create(channel_.get(), cq, rpcmethod_GetROSWorldReferenceFrameID_, context, request, false); +::grpc::Status Agent::Stub::GetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::v1::agent::GetStreamsConfigurationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetStreamsConfiguration_, context, request, response); } -::grpc::Status Agent::Stub::CreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::v1::model::InterventionRequest* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateInterventionRequest_, context, request, response); +void Agent::Stub::experimental_async::GetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetStreamsConfiguration_, context, request, response, std::move(f)); } -void Agent::Stub::experimental_async::CreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateInterventionRequest_, context, request, response, std::move(f)); +void Agent::Stub::experimental_async::GetStreamsConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetStreamsConfigurationResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetStreamsConfiguration_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>* Agent::Stub::AsyncCreateInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionRequest>::Create(channel_.get(), cq, rpcmethod_CreateInterventionRequest_, context, request, true); +::grpc::ClientAsyncResponseReader< ::v1::agent::GetStreamsConfigurationResponse>* Agent::Stub::AsyncGetStreamsConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetStreamsConfigurationResponse>::Create(channel_.get(), cq, rpcmethod_GetStreamsConfiguration_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>* Agent::Stub::PrepareAsyncCreateInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionRequest>::Create(channel_.get(), cq, rpcmethod_CreateInterventionRequest_, context, request, false); +::grpc::ClientAsyncResponseReader< ::v1::agent::GetStreamsConfigurationResponse>* Agent::Stub::PrepareAsyncGetStreamsConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetStreamsConfigurationResponse>::Create(channel_.get(), cq, rpcmethod_GetStreamsConfiguration_, context, request, false); } -::grpc::Status Agent::Stub::GetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::v1::model::InterventionRequest* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetInterventionRequest_, context, request, response); +::grpc::Status Agent::Stub::GetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::v1::agent::GetApplicationConfigurationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetApplicationConfiguration_, context, request, response); } -void Agent::Stub::experimental_async::GetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetInterventionRequest_, context, request, response, std::move(f)); +void Agent::Stub::experimental_async::GetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetApplicationConfiguration_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>* Agent::Stub::AsyncGetInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionRequest>::Create(channel_.get(), cq, rpcmethod_GetInterventionRequest_, context, request, true); +void Agent::Stub::experimental_async::GetApplicationConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetApplicationConfigurationResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetApplicationConfiguration_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>* Agent::Stub::PrepareAsyncGetInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionRequest>::Create(channel_.get(), cq, rpcmethod_GetInterventionRequest_, context, request, false); +::grpc::ClientAsyncResponseReader< ::v1::agent::GetApplicationConfigurationResponse>* Agent::Stub::AsyncGetApplicationConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetApplicationConfigurationResponse>::Create(channel_.get(), cq, rpcmethod_GetApplicationConfiguration_, context, request, true); } -::grpc::Status Agent::Stub::GetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::v1::model::InterventionResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetInterventionResponse_, context, request, response); +::grpc::ClientAsyncResponseReader< ::v1::agent::GetApplicationConfigurationResponse>* Agent::Stub::PrepareAsyncGetApplicationConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetApplicationConfigurationResponse>::Create(channel_.get(), cq, rpcmethod_GetApplicationConfiguration_, context, request, false); } -void Agent::Stub::experimental_async::GetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetInterventionResponse_, context, request, response, std::move(f)); +::grpc::Status Agent::Stub::GetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::v1::agent::GetAgentConfigurationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetAgentConfiguration_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::v1::model::InterventionResponse>* Agent::Stub::AsyncGetInterventionResponseRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionResponse>::Create(channel_.get(), cq, rpcmethod_GetInterventionResponse_, context, request, true); +void Agent::Stub::experimental_async::GetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetAgentConfiguration_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::v1::model::InterventionResponse>* Agent::Stub::PrepareAsyncGetInterventionResponseRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionResponse>::Create(channel_.get(), cq, rpcmethod_GetInterventionResponse_, context, request, false); +void Agent::Stub::experimental_async::GetAgentConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetAgentConfigurationResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetAgentConfiguration_, context, request, response, std::move(f)); +} + +::grpc::ClientAsyncResponseReader< ::v1::agent::GetAgentConfigurationResponse>* Agent::Stub::AsyncGetAgentConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetAgentConfigurationResponse>::Create(channel_.get(), cq, rpcmethod_GetAgentConfiguration_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::v1::agent::GetAgentConfigurationResponse>* Agent::Stub::PrepareAsyncGetAgentConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetAgentConfigurationResponse>::Create(channel_.get(), cq, rpcmethod_GetAgentConfiguration_, context, request, false); +} + +::grpc::Status Agent::Stub::Health(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::v1::agent::HealthResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Health_, context, request, response); +} + +void Agent::Stub::experimental_async::Health(::grpc::ClientContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Health_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::Health(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::HealthResponse* response, std::function f) { + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Health_, context, request, response, std::move(f)); +} + +::grpc::ClientAsyncResponseReader< ::v1::agent::HealthResponse>* Agent::Stub::AsyncHealthRaw(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::HealthResponse>::Create(channel_.get(), cq, rpcmethod_Health_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::v1::agent::HealthResponse>* Agent::Stub::PrepareAsyncHealthRaw(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::v1::agent::HealthResponse>::Create(channel_.get(), cq, rpcmethod_Health_, context, request, false); } Agent::Service::Service() { @@ -207,38 +239,38 @@ Agent::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( Agent_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::model::ROSTopic, ::v1::agent::RegisterROSTopicResponse>( - std::mem_fn(&Agent::Service::RegisterROSTopic), this))); + new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::model::InterventionRequest, ::v1::model::InterventionRequest>( + std::mem_fn(&Agent::Service::CreateInterventionRequest), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Agent_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::GetROSTopicsRequest, ::v1::agent::GetROSTopicsResponse>( - std::mem_fn(&Agent::Service::GetROSTopics), this))); + new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::GetInterventionRequestRequest, ::v1::model::InterventionRequest>( + std::mem_fn(&Agent::Service::GetInterventionRequest), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Agent_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::GetROSTopicsSubscriptionConfigRequest, ::v1::agent::GetROSTopicsSubscriptionConfigResponse>( - std::mem_fn(&Agent::Service::GetROSTopicsSubscriptionConfig), this))); + new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::GetInterventionResponseRequest, ::v1::model::InterventionResponse>( + std::mem_fn(&Agent::Service::GetInterventionResponse), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Agent_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::GetROSWorldReferenceFrameIDRequest, ::v1::agent::GetROSWorldReferenceFrameIDResponse>( - std::mem_fn(&Agent::Service::GetROSWorldReferenceFrameID), this))); + new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::GetStreamsConfigurationRequest, ::v1::agent::GetStreamsConfigurationResponse>( + std::mem_fn(&Agent::Service::GetStreamsConfiguration), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Agent_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::model::InterventionRequest, ::v1::model::InterventionRequest>( - std::mem_fn(&Agent::Service::CreateInterventionRequest), this))); + new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::GetApplicationConfigurationRequest, ::v1::agent::GetApplicationConfigurationResponse>( + std::mem_fn(&Agent::Service::GetApplicationConfiguration), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Agent_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::GetInterventionRequestRequest, ::v1::model::InterventionRequest>( - std::mem_fn(&Agent::Service::GetInterventionRequest), this))); + new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::GetAgentConfigurationRequest, ::v1::agent::GetAgentConfigurationResponse>( + std::mem_fn(&Agent::Service::GetAgentConfiguration), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( Agent_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::GetInterventionResponseRequest, ::v1::model::InterventionResponse>( - std::mem_fn(&Agent::Service::GetInterventionResponse), this))); + new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::HealthRequest, ::v1::agent::HealthResponse>( + std::mem_fn(&Agent::Service::Health), this))); } Agent::Service::~Service() { @@ -258,49 +290,49 @@ ::grpc::Status Agent::Service::PostData(::grpc::ServerContext* context, const :: return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Agent::Service::RegisterROSTopic(::grpc::ServerContext* context, const ::v1::model::ROSTopic* request, ::v1::agent::RegisterROSTopicResponse* response) { +::grpc::Status Agent::Service::CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Agent::Service::GetROSTopics(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsRequest* request, ::v1::agent::GetROSTopicsResponse* response) { +::grpc::Status Agent::Service::GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Agent::Service::GetROSTopicsSubscriptionConfig(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response) { +::grpc::Status Agent::Service::GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Agent::Service::GetROSWorldReferenceFrameID(::grpc::ServerContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response) { +::grpc::Status Agent::Service::GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Agent::Service::CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) { +::grpc::Status Agent::Service::GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Agent::Service::GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) { +::grpc::Status Agent::Service::GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Agent::Service::GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) { +::grpc::Status Agent::Service::Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response) { (void) context; (void) request; (void) response; diff --git a/examples/cpp/protos/agent/v1/agent.grpc.pb.h b/examples/cpp/protos/agent/v1/agent.grpc.pb.h index f8a4865..cfaff8e 100755 --- a/examples/cpp/protos/agent/v1/agent.grpc.pb.h +++ b/examples/cpp/protos/agent/v1/agent.grpc.pb.h @@ -30,7 +30,7 @@ class ServerContext; namespace v1 { namespace agent { -// gRPC service for the Formant Agent +// Agent is the Formant Agent gRPC API. class Agent final { public: static constexpr char const* service_full_name() { @@ -39,7 +39,8 @@ class Agent final { class StubInterface { public: virtual ~StubInterface() {} - // Accepts a stream of data points. + // StreamData accepts a stream of data points. See PostData for information on + // expected error conditions and codes. std::unique_ptr< ::grpc::ClientWriterInterface< ::v1::model::Datapoint>> StreamData(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response) { return std::unique_ptr< ::grpc::ClientWriterInterface< ::v1::model::Datapoint>>(StreamDataRaw(context, response)); } @@ -49,7 +50,13 @@ class Agent final { std::unique_ptr< ::grpc::ClientAsyncWriterInterface< ::v1::model::Datapoint>> PrepareAsyncStreamData(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncWriterInterface< ::v1::model::Datapoint>>(PrepareAsyncStreamDataRaw(context, response, cq)); } - // Accepts a single data point per RPC call. Also exposed as a HTTP Endpoint. + // PostData accepts a single data point per invocation. An OK status code will + // be returned if the data point was accepted and queued for uploading to the + // Formant cloud. PostData will return an InvalidArgument status code if the + // data point is malformed or has more than 10 tags attached. A + // ResourceExhausted code will be returned if the data point was throttled. An + // Unavailable code will be returned if the Agent is in the process of + // shutting down. virtual ::grpc::Status PostData(::grpc::ClientContext* context, const ::v1::model::Datapoint& request, ::v1::agent::PostDataResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostDataResponse>> AsyncPostData(::grpc::ClientContext* context, const ::v1::model::Datapoint& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostDataResponse>>(AsyncPostDataRaw(context, request, cq)); @@ -57,39 +64,10 @@ class Agent final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostDataResponse>> PrepareAsyncPostData(::grpc::ClientContext* context, const ::v1::model::Datapoint& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostDataResponse>>(PrepareAsyncPostDataRaw(context, request, cq)); } - // Registers a ROS Topic and its msg type. - virtual ::grpc::Status RegisterROSTopic(::grpc::ClientContext* context, const ::v1::model::ROSTopic& request, ::v1::agent::RegisterROSTopicResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::RegisterROSTopicResponse>> AsyncRegisterROSTopic(::grpc::ClientContext* context, const ::v1::model::ROSTopic& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::RegisterROSTopicResponse>>(AsyncRegisterROSTopicRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::RegisterROSTopicResponse>> PrepareAsyncRegisterROSTopic(::grpc::ClientContext* context, const ::v1::model::ROSTopic& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::RegisterROSTopicResponse>>(PrepareAsyncRegisterROSTopicRaw(context, request, cq)); - } - // DEPRECATED Gets the ROS topics defined in the agent config. - virtual ::grpc::Status GetROSTopics(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest& request, ::v1::agent::GetROSTopicsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSTopicsResponse>> AsyncGetROSTopics(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSTopicsResponse>>(AsyncGetROSTopicsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSTopicsResponse>> PrepareAsyncGetROSTopics(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSTopicsResponse>>(PrepareAsyncGetROSTopicsRaw(context, request, cq)); - } - // Gets the ROS localization configuration information - virtual ::grpc::Status GetROSTopicsSubscriptionConfig(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest& request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>> AsyncGetROSTopicsSubscriptionConfig(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>>(AsyncGetROSTopicsSubscriptionConfigRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>> PrepareAsyncGetROSTopicsSubscriptionConfig(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>>(PrepareAsyncGetROSTopicsSubscriptionConfigRaw(context, request, cq)); - } - // Gets the ROS World Reference Frame ID from the configuration defined in config.toml. - virtual ::grpc::Status GetROSWorldReferenceFrameID(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest& request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSWorldReferenceFrameIDResponse>> AsyncGetROSWorldReferenceFrameID(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSWorldReferenceFrameIDResponse>>(AsyncGetROSWorldReferenceFrameIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSWorldReferenceFrameIDResponse>> PrepareAsyncGetROSWorldReferenceFrameID(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSWorldReferenceFrameIDResponse>>(PrepareAsyncGetROSWorldReferenceFrameIDRaw(context, request, cq)); - } - // Creates a InterventionRequest. Returns a InterventionRequest with a populated id. + // CreateInterventionRequest creates an intervention request. The returned + // InterventionRequest's 'id' field will be populated if the call succeeds. An + // Unavailable status code will be returned if an upstream network error + // occurs while trying to create the request. virtual ::grpc::Status CreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::v1::model::InterventionRequest* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>> AsyncCreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>>(AsyncCreateInterventionRequestRaw(context, request, cq)); @@ -97,7 +75,9 @@ class Agent final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>> PrepareAsyncCreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>>(PrepareAsyncCreateInterventionRequestRaw(context, request, cq)); } - // Returns a InterventionRequest. NOTE: the responses object will be empty if a operator has not responded. + // GetInterventionRequest returns an existing InterventionRequest. The + // InterventionRequest's 'responses' field will be empty if an operator has + // yet to respond. virtual ::grpc::Status GetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::v1::model::InterventionRequest* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>> AsyncGetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>>(AsyncGetInterventionRequestRaw(context, request, cq)); @@ -105,7 +85,9 @@ class Agent final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>> PrepareAsyncGetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>>(PrepareAsyncGetInterventionRequestRaw(context, request, cq)); } - // Blocks till the InterventionRequest with request_id has a response. + // GetInterventionResponse returns the first InterventionResponse for the + // provided intervention request. This RPC blocks until an + // InterventionResponse is available to be returned. virtual ::grpc::Status GetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::v1::model::InterventionResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionResponse>> AsyncGetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionResponse>>(AsyncGetInterventionResponseRaw(context, request, cq)); @@ -113,27 +95,85 @@ class Agent final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionResponse>> PrepareAsyncGetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionResponse>>(PrepareAsyncGetInterventionResponseRaw(context, request, cq)); } + // GetStreamsConfiguration returns the configured streams. + virtual ::grpc::Status GetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::v1::agent::GetStreamsConfigurationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetStreamsConfigurationResponse>> AsyncGetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetStreamsConfigurationResponse>>(AsyncGetStreamsConfigurationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetStreamsConfigurationResponse>> PrepareAsyncGetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetStreamsConfigurationResponse>>(PrepareAsyncGetStreamsConfigurationRaw(context, request, cq)); + } + // GetApplicationConfiguration returns application (user-defined) + // configuration data. + virtual ::grpc::Status GetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::v1::agent::GetApplicationConfigurationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetApplicationConfigurationResponse>> AsyncGetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetApplicationConfigurationResponse>>(AsyncGetApplicationConfigurationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetApplicationConfigurationResponse>> PrepareAsyncGetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetApplicationConfigurationResponse>>(PrepareAsyncGetApplicationConfigurationRaw(context, request, cq)); + } + // GetAgentConfiguration returns the Agent configuration. + virtual ::grpc::Status GetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::v1::agent::GetAgentConfigurationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetAgentConfigurationResponse>> AsyncGetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetAgentConfigurationResponse>>(AsyncGetAgentConfigurationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetAgentConfigurationResponse>> PrepareAsyncGetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetAgentConfigurationResponse>>(PrepareAsyncGetAgentConfigurationRaw(context, request, cq)); + } + // Health can be used to check if the Agent is running and its gRPC API is + // available. + virtual ::grpc::Status Health(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::v1::agent::HealthResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::HealthResponse>> AsyncHealth(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::HealthResponse>>(AsyncHealthRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::HealthResponse>> PrepareAsyncHealth(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::HealthResponse>>(PrepareAsyncHealthRaw(context, request, cq)); + } class experimental_async_interface { public: virtual ~experimental_async_interface() {} - // Accepts a stream of data points. + // StreamData accepts a stream of data points. See PostData for information on + // expected error conditions and codes. virtual void StreamData(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response, ::grpc::experimental::ClientWriteReactor< ::v1::model::Datapoint>* reactor) = 0; - // Accepts a single data point per RPC call. Also exposed as a HTTP Endpoint. + // PostData accepts a single data point per invocation. An OK status code will + // be returned if the data point was accepted and queued for uploading to the + // Formant cloud. PostData will return an InvalidArgument status code if the + // data point is malformed or has more than 10 tags attached. A + // ResourceExhausted code will be returned if the data point was throttled. An + // Unavailable code will be returned if the Agent is in the process of + // shutting down. virtual void PostData(::grpc::ClientContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response, std::function) = 0; - // Registers a ROS Topic and its msg type. - virtual void RegisterROSTopic(::grpc::ClientContext* context, const ::v1::model::ROSTopic* request, ::v1::agent::RegisterROSTopicResponse* response, std::function) = 0; - // DEPRECATED Gets the ROS topics defined in the agent config. - virtual void GetROSTopics(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest* request, ::v1::agent::GetROSTopicsResponse* response, std::function) = 0; - // Gets the ROS localization configuration information - virtual void GetROSTopicsSubscriptionConfig(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response, std::function) = 0; - // Gets the ROS World Reference Frame ID from the configuration defined in config.toml. - virtual void GetROSWorldReferenceFrameID(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response, std::function) = 0; - // Creates a InterventionRequest. Returns a InterventionRequest with a populated id. + virtual void PostData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::PostDataResponse* response, std::function) = 0; + // CreateInterventionRequest creates an intervention request. The returned + // InterventionRequest's 'id' field will be populated if the call succeeds. An + // Unavailable status code will be returned if an upstream network error + // occurs while trying to create the request. virtual void CreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response, std::function) = 0; - // Returns a InterventionRequest. NOTE: the responses object will be empty if a operator has not responded. + virtual void CreateInterventionRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionRequest* response, std::function) = 0; + // GetInterventionRequest returns an existing InterventionRequest. The + // InterventionRequest's 'responses' field will be empty if an operator has + // yet to respond. virtual void GetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response, std::function) = 0; - // Blocks till the InterventionRequest with request_id has a response. + virtual void GetInterventionRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionRequest* response, std::function) = 0; + // GetInterventionResponse returns the first InterventionResponse for the + // provided intervention request. This RPC blocks until an + // InterventionResponse is available to be returned. virtual void GetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response, std::function) = 0; + virtual void GetInterventionResponse(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionResponse* response, std::function) = 0; + // GetStreamsConfiguration returns the configured streams. + virtual void GetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response, std::function) = 0; + virtual void GetStreamsConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetStreamsConfigurationResponse* response, std::function) = 0; + // GetApplicationConfiguration returns application (user-defined) + // configuration data. + virtual void GetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response, std::function) = 0; + virtual void GetApplicationConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetApplicationConfigurationResponse* response, std::function) = 0; + // GetAgentConfiguration returns the Agent configuration. + virtual void GetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response, std::function) = 0; + virtual void GetAgentConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetAgentConfigurationResponse* response, std::function) = 0; + // Health can be used to check if the Agent is running and its gRPC API is + // available. + virtual void Health(::grpc::ClientContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response, std::function) = 0; + virtual void Health(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::HealthResponse* response, std::function) = 0; }; virtual class experimental_async_interface* experimental_async() { return nullptr; } private: @@ -142,20 +182,20 @@ class Agent final { virtual ::grpc::ClientAsyncWriterInterface< ::v1::model::Datapoint>* PrepareAsyncStreamDataRaw(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostDataResponse>* AsyncPostDataRaw(::grpc::ClientContext* context, const ::v1::model::Datapoint& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostDataResponse>* PrepareAsyncPostDataRaw(::grpc::ClientContext* context, const ::v1::model::Datapoint& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::RegisterROSTopicResponse>* AsyncRegisterROSTopicRaw(::grpc::ClientContext* context, const ::v1::model::ROSTopic& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::RegisterROSTopicResponse>* PrepareAsyncRegisterROSTopicRaw(::grpc::ClientContext* context, const ::v1::model::ROSTopic& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSTopicsResponse>* AsyncGetROSTopicsRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSTopicsResponse>* PrepareAsyncGetROSTopicsRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>* AsyncGetROSTopicsSubscriptionConfigRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>* PrepareAsyncGetROSTopicsSubscriptionConfigRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSWorldReferenceFrameIDResponse>* AsyncGetROSWorldReferenceFrameIDRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetROSWorldReferenceFrameIDResponse>* PrepareAsyncGetROSWorldReferenceFrameIDRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>* AsyncCreateInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>* PrepareAsyncCreateInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>* AsyncGetInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>* PrepareAsyncGetInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionResponse>* AsyncGetInterventionResponseRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionResponse>* PrepareAsyncGetInterventionResponseRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetStreamsConfigurationResponse>* AsyncGetStreamsConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetStreamsConfigurationResponse>* PrepareAsyncGetStreamsConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetApplicationConfigurationResponse>* AsyncGetApplicationConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetApplicationConfigurationResponse>* PrepareAsyncGetApplicationConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetAgentConfigurationResponse>* AsyncGetAgentConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetAgentConfigurationResponse>* PrepareAsyncGetAgentConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::HealthResponse>* AsyncHealthRaw(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::HealthResponse>* PrepareAsyncHealthRaw(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -176,34 +216,6 @@ class Agent final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::PostDataResponse>> PrepareAsyncPostData(::grpc::ClientContext* context, const ::v1::model::Datapoint& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::PostDataResponse>>(PrepareAsyncPostDataRaw(context, request, cq)); } - ::grpc::Status RegisterROSTopic(::grpc::ClientContext* context, const ::v1::model::ROSTopic& request, ::v1::agent::RegisterROSTopicResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::RegisterROSTopicResponse>> AsyncRegisterROSTopic(::grpc::ClientContext* context, const ::v1::model::ROSTopic& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::RegisterROSTopicResponse>>(AsyncRegisterROSTopicRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::RegisterROSTopicResponse>> PrepareAsyncRegisterROSTopic(::grpc::ClientContext* context, const ::v1::model::ROSTopic& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::RegisterROSTopicResponse>>(PrepareAsyncRegisterROSTopicRaw(context, request, cq)); - } - ::grpc::Status GetROSTopics(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest& request, ::v1::agent::GetROSTopicsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsResponse>> AsyncGetROSTopics(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsResponse>>(AsyncGetROSTopicsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsResponse>> PrepareAsyncGetROSTopics(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsResponse>>(PrepareAsyncGetROSTopicsRaw(context, request, cq)); - } - ::grpc::Status GetROSTopicsSubscriptionConfig(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest& request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>> AsyncGetROSTopicsSubscriptionConfig(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>>(AsyncGetROSTopicsSubscriptionConfigRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>> PrepareAsyncGetROSTopicsSubscriptionConfig(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>>(PrepareAsyncGetROSTopicsSubscriptionConfigRaw(context, request, cq)); - } - ::grpc::Status GetROSWorldReferenceFrameID(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest& request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSWorldReferenceFrameIDResponse>> AsyncGetROSWorldReferenceFrameID(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSWorldReferenceFrameIDResponse>>(AsyncGetROSWorldReferenceFrameIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSWorldReferenceFrameIDResponse>> PrepareAsyncGetROSWorldReferenceFrameID(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSWorldReferenceFrameIDResponse>>(PrepareAsyncGetROSWorldReferenceFrameIDRaw(context, request, cq)); - } ::grpc::Status CreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::v1::model::InterventionRequest* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>> AsyncCreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>>(AsyncCreateInterventionRequestRaw(context, request, cq)); @@ -225,18 +237,54 @@ class Agent final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::model::InterventionResponse>> PrepareAsyncGetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::model::InterventionResponse>>(PrepareAsyncGetInterventionResponseRaw(context, request, cq)); } + ::grpc::Status GetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::v1::agent::GetStreamsConfigurationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetStreamsConfigurationResponse>> AsyncGetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetStreamsConfigurationResponse>>(AsyncGetStreamsConfigurationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetStreamsConfigurationResponse>> PrepareAsyncGetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetStreamsConfigurationResponse>>(PrepareAsyncGetStreamsConfigurationRaw(context, request, cq)); + } + ::grpc::Status GetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::v1::agent::GetApplicationConfigurationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetApplicationConfigurationResponse>> AsyncGetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetApplicationConfigurationResponse>>(AsyncGetApplicationConfigurationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetApplicationConfigurationResponse>> PrepareAsyncGetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetApplicationConfigurationResponse>>(PrepareAsyncGetApplicationConfigurationRaw(context, request, cq)); + } + ::grpc::Status GetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::v1::agent::GetAgentConfigurationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetAgentConfigurationResponse>> AsyncGetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetAgentConfigurationResponse>>(AsyncGetAgentConfigurationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetAgentConfigurationResponse>> PrepareAsyncGetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetAgentConfigurationResponse>>(PrepareAsyncGetAgentConfigurationRaw(context, request, cq)); + } + ::grpc::Status Health(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::v1::agent::HealthResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::HealthResponse>> AsyncHealth(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::HealthResponse>>(AsyncHealthRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::HealthResponse>> PrepareAsyncHealth(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::HealthResponse>>(PrepareAsyncHealthRaw(context, request, cq)); + } class experimental_async final : public StubInterface::experimental_async_interface { public: void StreamData(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response, ::grpc::experimental::ClientWriteReactor< ::v1::model::Datapoint>* reactor) override; void PostData(::grpc::ClientContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response, std::function) override; - void RegisterROSTopic(::grpc::ClientContext* context, const ::v1::model::ROSTopic* request, ::v1::agent::RegisterROSTopicResponse* response, std::function) override; - void GetROSTopics(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest* request, ::v1::agent::GetROSTopicsResponse* response, std::function) override; - void GetROSTopicsSubscriptionConfig(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response, std::function) override; - void GetROSWorldReferenceFrameID(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response, std::function) override; + void PostData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::PostDataResponse* response, std::function) override; void CreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response, std::function) override; + void CreateInterventionRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionRequest* response, std::function) override; void GetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response, std::function) override; + void GetInterventionRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionRequest* response, std::function) override; void GetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response, std::function) override; + void GetInterventionResponse(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionResponse* response, std::function) override; + void GetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response, std::function) override; + void GetStreamsConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetStreamsConfigurationResponse* response, std::function) override; + void GetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response, std::function) override; + void GetApplicationConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetApplicationConfigurationResponse* response, std::function) override; + void GetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response, std::function) override; + void GetAgentConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetAgentConfigurationResponse* response, std::function) override; + void Health(::grpc::ClientContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response, std::function) override; + void Health(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::HealthResponse* response, std::function) override; private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -253,29 +301,29 @@ class Agent final { ::grpc::ClientAsyncWriter< ::v1::model::Datapoint>* PrepareAsyncStreamDataRaw(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::v1::agent::PostDataResponse>* AsyncPostDataRaw(::grpc::ClientContext* context, const ::v1::model::Datapoint& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::v1::agent::PostDataResponse>* PrepareAsyncPostDataRaw(::grpc::ClientContext* context, const ::v1::model::Datapoint& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::v1::agent::RegisterROSTopicResponse>* AsyncRegisterROSTopicRaw(::grpc::ClientContext* context, const ::v1::model::ROSTopic& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::v1::agent::RegisterROSTopicResponse>* PrepareAsyncRegisterROSTopicRaw(::grpc::ClientContext* context, const ::v1::model::ROSTopic& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsResponse>* AsyncGetROSTopicsRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsResponse>* PrepareAsyncGetROSTopicsRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>* AsyncGetROSTopicsSubscriptionConfigRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>* PrepareAsyncGetROSTopicsSubscriptionConfigRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSWorldReferenceFrameIDResponse>* AsyncGetROSWorldReferenceFrameIDRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::v1::agent::GetROSWorldReferenceFrameIDResponse>* PrepareAsyncGetROSWorldReferenceFrameIDRaw(::grpc::ClientContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>* AsyncCreateInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>* PrepareAsyncCreateInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>* AsyncGetInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::v1::model::InterventionRequest>* PrepareAsyncGetInterventionRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::v1::model::InterventionResponse>* AsyncGetInterventionResponseRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::v1::model::InterventionResponse>* PrepareAsyncGetInterventionResponseRaw(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::GetStreamsConfigurationResponse>* AsyncGetStreamsConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::GetStreamsConfigurationResponse>* PrepareAsyncGetStreamsConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::GetApplicationConfigurationResponse>* AsyncGetApplicationConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::GetApplicationConfigurationResponse>* PrepareAsyncGetApplicationConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::GetAgentConfigurationResponse>* AsyncGetAgentConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::GetAgentConfigurationResponse>* PrepareAsyncGetAgentConfigurationRaw(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::HealthResponse>* AsyncHealthRaw(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::HealthResponse>* PrepareAsyncHealthRaw(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_StreamData_; const ::grpc::internal::RpcMethod rpcmethod_PostData_; - const ::grpc::internal::RpcMethod rpcmethod_RegisterROSTopic_; - const ::grpc::internal::RpcMethod rpcmethod_GetROSTopics_; - const ::grpc::internal::RpcMethod rpcmethod_GetROSTopicsSubscriptionConfig_; - const ::grpc::internal::RpcMethod rpcmethod_GetROSWorldReferenceFrameID_; const ::grpc::internal::RpcMethod rpcmethod_CreateInterventionRequest_; const ::grpc::internal::RpcMethod rpcmethod_GetInterventionRequest_; const ::grpc::internal::RpcMethod rpcmethod_GetInterventionResponse_; + const ::grpc::internal::RpcMethod rpcmethod_GetStreamsConfiguration_; + const ::grpc::internal::RpcMethod rpcmethod_GetApplicationConfiguration_; + const ::grpc::internal::RpcMethod rpcmethod_GetAgentConfiguration_; + const ::grpc::internal::RpcMethod rpcmethod_Health_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -283,24 +331,40 @@ class Agent final { public: Service(); virtual ~Service(); - // Accepts a stream of data points. + // StreamData accepts a stream of data points. See PostData for information on + // expected error conditions and codes. virtual ::grpc::Status StreamData(::grpc::ServerContext* context, ::grpc::ServerReader< ::v1::model::Datapoint>* reader, ::v1::agent::StreamDataResponse* response); - // Accepts a single data point per RPC call. Also exposed as a HTTP Endpoint. + // PostData accepts a single data point per invocation. An OK status code will + // be returned if the data point was accepted and queued for uploading to the + // Formant cloud. PostData will return an InvalidArgument status code if the + // data point is malformed or has more than 10 tags attached. A + // ResourceExhausted code will be returned if the data point was throttled. An + // Unavailable code will be returned if the Agent is in the process of + // shutting down. virtual ::grpc::Status PostData(::grpc::ServerContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response); - // Registers a ROS Topic and its msg type. - virtual ::grpc::Status RegisterROSTopic(::grpc::ServerContext* context, const ::v1::model::ROSTopic* request, ::v1::agent::RegisterROSTopicResponse* response); - // DEPRECATED Gets the ROS topics defined in the agent config. - virtual ::grpc::Status GetROSTopics(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsRequest* request, ::v1::agent::GetROSTopicsResponse* response); - // Gets the ROS localization configuration information - virtual ::grpc::Status GetROSTopicsSubscriptionConfig(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response); - // Gets the ROS World Reference Frame ID from the configuration defined in config.toml. - virtual ::grpc::Status GetROSWorldReferenceFrameID(::grpc::ServerContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response); - // Creates a InterventionRequest. Returns a InterventionRequest with a populated id. + // CreateInterventionRequest creates an intervention request. The returned + // InterventionRequest's 'id' field will be populated if the call succeeds. An + // Unavailable status code will be returned if an upstream network error + // occurs while trying to create the request. virtual ::grpc::Status CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response); - // Returns a InterventionRequest. NOTE: the responses object will be empty if a operator has not responded. + // GetInterventionRequest returns an existing InterventionRequest. The + // InterventionRequest's 'responses' field will be empty if an operator has + // yet to respond. virtual ::grpc::Status GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response); - // Blocks till the InterventionRequest with request_id has a response. + // GetInterventionResponse returns the first InterventionResponse for the + // provided intervention request. This RPC blocks until an + // InterventionResponse is available to be returned. virtual ::grpc::Status GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response); + // GetStreamsConfiguration returns the configured streams. + virtual ::grpc::Status GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response); + // GetApplicationConfiguration returns application (user-defined) + // configuration data. + virtual ::grpc::Status GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response); + // GetAgentConfiguration returns the Agent configuration. + virtual ::grpc::Status GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response); + // Health can be used to check if the Agent is running and its gRPC API is + // available. + virtual ::grpc::Status Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response); }; template class WithAsyncMethod_StreamData : public BaseClass { @@ -343,146 +407,146 @@ class Agent final { } }; template - class WithAsyncMethod_RegisterROSTopic : public BaseClass { + class WithAsyncMethod_CreateInterventionRequest : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_RegisterROSTopic() { + WithAsyncMethod_CreateInterventionRequest() { ::grpc::Service::MarkMethodAsync(2); } - ~WithAsyncMethod_RegisterROSTopic() override { + ~WithAsyncMethod_CreateInterventionRequest() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status RegisterROSTopic(::grpc::ServerContext* context, const ::v1::model::ROSTopic* request, ::v1::agent::RegisterROSTopicResponse* response) override { + ::grpc::Status CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestRegisterROSTopic(::grpc::ServerContext* context, ::v1::model::ROSTopic* request, ::grpc::ServerAsyncResponseWriter< ::v1::agent::RegisterROSTopicResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestCreateInterventionRequest(::grpc::ServerContext* context, ::v1::model::InterventionRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::model::InterventionRequest>* 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_GetROSTopics : public BaseClass { + class WithAsyncMethod_GetInterventionRequest : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_GetROSTopics() { + WithAsyncMethod_GetInterventionRequest() { ::grpc::Service::MarkMethodAsync(3); } - ~WithAsyncMethod_GetROSTopics() override { + ~WithAsyncMethod_GetInterventionRequest() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSTopics(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsRequest* request, ::v1::agent::GetROSTopicsResponse* response) override { + ::grpc::Status GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetROSTopics(::grpc::ServerContext* context, ::v1::agent::GetROSTopicsRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::agent::GetROSTopicsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetInterventionRequest(::grpc::ServerContext* context, ::v1::agent::GetInterventionRequestRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::model::InterventionRequest>* 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_GetROSTopicsSubscriptionConfig : public BaseClass { + class WithAsyncMethod_GetInterventionResponse : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_GetROSTopicsSubscriptionConfig() { + WithAsyncMethod_GetInterventionResponse() { ::grpc::Service::MarkMethodAsync(4); } - ~WithAsyncMethod_GetROSTopicsSubscriptionConfig() override { + ~WithAsyncMethod_GetInterventionResponse() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSTopicsSubscriptionConfig(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response) override { + ::grpc::Status GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetROSTopicsSubscriptionConfig(::grpc::ServerContext* context, ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::agent::GetROSTopicsSubscriptionConfigResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetInterventionResponse(::grpc::ServerContext* context, ::v1::agent::GetInterventionResponseRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::model::InterventionResponse>* 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_GetROSWorldReferenceFrameID : public BaseClass { + class WithAsyncMethod_GetStreamsConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_GetROSWorldReferenceFrameID() { + WithAsyncMethod_GetStreamsConfiguration() { ::grpc::Service::MarkMethodAsync(5); } - ~WithAsyncMethod_GetROSWorldReferenceFrameID() override { + ~WithAsyncMethod_GetStreamsConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSWorldReferenceFrameID(::grpc::ServerContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response) override { + ::grpc::Status GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetROSWorldReferenceFrameID(::grpc::ServerContext* context, ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::agent::GetROSWorldReferenceFrameIDResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetStreamsConfiguration(::grpc::ServerContext* context, ::v1::agent::GetStreamsConfigurationRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::agent::GetStreamsConfigurationResponse>* 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_CreateInterventionRequest : public BaseClass { + class WithAsyncMethod_GetApplicationConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_CreateInterventionRequest() { + WithAsyncMethod_GetApplicationConfiguration() { ::grpc::Service::MarkMethodAsync(6); } - ~WithAsyncMethod_CreateInterventionRequest() override { + ~WithAsyncMethod_GetApplicationConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) override { + ::grpc::Status GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestCreateInterventionRequest(::grpc::ServerContext* context, ::v1::model::InterventionRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::model::InterventionRequest>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetApplicationConfiguration(::grpc::ServerContext* context, ::v1::agent::GetApplicationConfigurationRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::agent::GetApplicationConfigurationResponse>* 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_GetInterventionRequest : public BaseClass { + class WithAsyncMethod_GetAgentConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_GetInterventionRequest() { + WithAsyncMethod_GetAgentConfiguration() { ::grpc::Service::MarkMethodAsync(7); } - ~WithAsyncMethod_GetInterventionRequest() override { + ~WithAsyncMethod_GetAgentConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) override { + ::grpc::Status GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetInterventionRequest(::grpc::ServerContext* context, ::v1::agent::GetInterventionRequestRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::model::InterventionRequest>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetAgentConfiguration(::grpc::ServerContext* context, ::v1::agent::GetAgentConfigurationRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::agent::GetAgentConfigurationResponse>* 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 WithAsyncMethod_GetInterventionResponse : public BaseClass { + class WithAsyncMethod_Health : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_GetInterventionResponse() { + WithAsyncMethod_Health() { ::grpc::Service::MarkMethodAsync(8); } - ~WithAsyncMethod_GetInterventionResponse() override { + ~WithAsyncMethod_Health() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) override { + ::grpc::Status Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetInterventionResponse(::grpc::ServerContext* context, ::v1::agent::GetInterventionResponseRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::model::InterventionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestHealth(::grpc::ServerContext* context, ::v1::agent::HealthRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::agent::HealthResponse>* 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); } }; - typedef WithAsyncMethod_StreamData > > > > > > > > AsyncService; + typedef WithAsyncMethod_StreamData > > > > > > > > AsyncService; template class ExperimentalWithCallbackMethod_StreamData : public BaseClass { private: @@ -531,181 +595,181 @@ class Agent final { virtual void PostData(::grpc::ServerContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_RegisterROSTopic : public BaseClass { + class ExperimentalWithCallbackMethod_CreateInterventionRequest : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_RegisterROSTopic() { + ExperimentalWithCallbackMethod_CreateInterventionRequest() { ::grpc::Service::experimental().MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::v1::model::ROSTopic, ::v1::agent::RegisterROSTopicResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::v1::model::InterventionRequest, ::v1::model::InterventionRequest>( [this](::grpc::ServerContext* context, - const ::v1::model::ROSTopic* request, - ::v1::agent::RegisterROSTopicResponse* response, + const ::v1::model::InterventionRequest* request, + ::v1::model::InterventionRequest* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->RegisterROSTopic(context, request, response, controller); + return this->CreateInterventionRequest(context, request, response, controller); })); } - ~ExperimentalWithCallbackMethod_RegisterROSTopic() override { + ~ExperimentalWithCallbackMethod_CreateInterventionRequest() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status RegisterROSTopic(::grpc::ServerContext* context, const ::v1::model::ROSTopic* request, ::v1::agent::RegisterROSTopicResponse* response) override { + ::grpc::Status CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void RegisterROSTopic(::grpc::ServerContext* context, const ::v1::model::ROSTopic* request, ::v1::agent::RegisterROSTopicResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_GetROSTopics : public BaseClass { + class ExperimentalWithCallbackMethod_GetInterventionRequest : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_GetROSTopics() { + ExperimentalWithCallbackMethod_GetInterventionRequest() { ::grpc::Service::experimental().MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetROSTopicsRequest, ::v1::agent::GetROSTopicsResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetInterventionRequestRequest, ::v1::model::InterventionRequest>( [this](::grpc::ServerContext* context, - const ::v1::agent::GetROSTopicsRequest* request, - ::v1::agent::GetROSTopicsResponse* response, + const ::v1::agent::GetInterventionRequestRequest* request, + ::v1::model::InterventionRequest* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetROSTopics(context, request, response, controller); + return this->GetInterventionRequest(context, request, response, controller); })); } - ~ExperimentalWithCallbackMethod_GetROSTopics() override { + ~ExperimentalWithCallbackMethod_GetInterventionRequest() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSTopics(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsRequest* request, ::v1::agent::GetROSTopicsResponse* response) override { + ::grpc::Status GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void GetROSTopics(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsRequest* request, ::v1::agent::GetROSTopicsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_GetROSTopicsSubscriptionConfig : public BaseClass { + class ExperimentalWithCallbackMethod_GetInterventionResponse : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_GetROSTopicsSubscriptionConfig() { + ExperimentalWithCallbackMethod_GetInterventionResponse() { ::grpc::Service::experimental().MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetROSTopicsSubscriptionConfigRequest, ::v1::agent::GetROSTopicsSubscriptionConfigResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetInterventionResponseRequest, ::v1::model::InterventionResponse>( [this](::grpc::ServerContext* context, - const ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, - ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response, + const ::v1::agent::GetInterventionResponseRequest* request, + ::v1::model::InterventionResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetROSTopicsSubscriptionConfig(context, request, response, controller); + return this->GetInterventionResponse(context, request, response, controller); })); } - ~ExperimentalWithCallbackMethod_GetROSTopicsSubscriptionConfig() override { + ~ExperimentalWithCallbackMethod_GetInterventionResponse() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSTopicsSubscriptionConfig(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response) override { + ::grpc::Status GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void GetROSTopicsSubscriptionConfig(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_GetROSWorldReferenceFrameID : public BaseClass { + class ExperimentalWithCallbackMethod_GetStreamsConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_GetROSWorldReferenceFrameID() { + ExperimentalWithCallbackMethod_GetStreamsConfiguration() { ::grpc::Service::experimental().MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetROSWorldReferenceFrameIDRequest, ::v1::agent::GetROSWorldReferenceFrameIDResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetStreamsConfigurationRequest, ::v1::agent::GetStreamsConfigurationResponse>( [this](::grpc::ServerContext* context, - const ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, - ::v1::agent::GetROSWorldReferenceFrameIDResponse* response, + const ::v1::agent::GetStreamsConfigurationRequest* request, + ::v1::agent::GetStreamsConfigurationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetROSWorldReferenceFrameID(context, request, response, controller); + return this->GetStreamsConfiguration(context, request, response, controller); })); } - ~ExperimentalWithCallbackMethod_GetROSWorldReferenceFrameID() override { + ~ExperimentalWithCallbackMethod_GetStreamsConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSWorldReferenceFrameID(::grpc::ServerContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response) override { + ::grpc::Status GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void GetROSWorldReferenceFrameID(::grpc::ServerContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_CreateInterventionRequest : public BaseClass { + class ExperimentalWithCallbackMethod_GetApplicationConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_CreateInterventionRequest() { + ExperimentalWithCallbackMethod_GetApplicationConfiguration() { ::grpc::Service::experimental().MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::v1::model::InterventionRequest, ::v1::model::InterventionRequest>( + new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetApplicationConfigurationRequest, ::v1::agent::GetApplicationConfigurationResponse>( [this](::grpc::ServerContext* context, - const ::v1::model::InterventionRequest* request, - ::v1::model::InterventionRequest* response, + const ::v1::agent::GetApplicationConfigurationRequest* request, + ::v1::agent::GetApplicationConfigurationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateInterventionRequest(context, request, response, controller); + return this->GetApplicationConfiguration(context, request, response, controller); })); } - ~ExperimentalWithCallbackMethod_CreateInterventionRequest() override { + ~ExperimentalWithCallbackMethod_GetApplicationConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) override { + ::grpc::Status GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_GetInterventionRequest : public BaseClass { + class ExperimentalWithCallbackMethod_GetAgentConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_GetInterventionRequest() { + ExperimentalWithCallbackMethod_GetAgentConfiguration() { ::grpc::Service::experimental().MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetInterventionRequestRequest, ::v1::model::InterventionRequest>( + new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetAgentConfigurationRequest, ::v1::agent::GetAgentConfigurationResponse>( [this](::grpc::ServerContext* context, - const ::v1::agent::GetInterventionRequestRequest* request, - ::v1::model::InterventionRequest* response, + const ::v1::agent::GetAgentConfigurationRequest* request, + ::v1::agent::GetAgentConfigurationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetInterventionRequest(context, request, response, controller); + return this->GetAgentConfiguration(context, request, response, controller); })); } - ~ExperimentalWithCallbackMethod_GetInterventionRequest() override { + ~ExperimentalWithCallbackMethod_GetAgentConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) override { + ::grpc::Status GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_GetInterventionResponse : public BaseClass { + class ExperimentalWithCallbackMethod_Health : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_GetInterventionResponse() { + ExperimentalWithCallbackMethod_Health() { ::grpc::Service::experimental().MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetInterventionResponseRequest, ::v1::model::InterventionResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::HealthRequest, ::v1::agent::HealthResponse>( [this](::grpc::ServerContext* context, - const ::v1::agent::GetInterventionResponseRequest* request, - ::v1::model::InterventionResponse* response, + const ::v1::agent::HealthRequest* request, + ::v1::agent::HealthResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetInterventionResponse(context, request, response, controller); + return this->Health(context, request, response, controller); })); } - ~ExperimentalWithCallbackMethod_GetInterventionResponse() override { + ~ExperimentalWithCallbackMethod_Health() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) override { + ::grpc::Status Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; - typedef ExperimentalWithCallbackMethod_StreamData > > > > > > > > ExperimentalCallbackService; + typedef ExperimentalWithCallbackMethod_StreamData > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_StreamData : public BaseClass { private: @@ -741,120 +805,120 @@ class Agent final { } }; template - class WithGenericMethod_RegisterROSTopic : public BaseClass { + class WithGenericMethod_CreateInterventionRequest : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_RegisterROSTopic() { + WithGenericMethod_CreateInterventionRequest() { ::grpc::Service::MarkMethodGeneric(2); } - ~WithGenericMethod_RegisterROSTopic() override { + ~WithGenericMethod_CreateInterventionRequest() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status RegisterROSTopic(::grpc::ServerContext* context, const ::v1::model::ROSTopic* request, ::v1::agent::RegisterROSTopicResponse* response) override { + ::grpc::Status CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_GetROSTopics : public BaseClass { + class WithGenericMethod_GetInterventionRequest : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_GetROSTopics() { + WithGenericMethod_GetInterventionRequest() { ::grpc::Service::MarkMethodGeneric(3); } - ~WithGenericMethod_GetROSTopics() override { + ~WithGenericMethod_GetInterventionRequest() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSTopics(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsRequest* request, ::v1::agent::GetROSTopicsResponse* response) override { + ::grpc::Status GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_GetROSTopicsSubscriptionConfig : public BaseClass { + class WithGenericMethod_GetInterventionResponse : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_GetROSTopicsSubscriptionConfig() { + WithGenericMethod_GetInterventionResponse() { ::grpc::Service::MarkMethodGeneric(4); } - ~WithGenericMethod_GetROSTopicsSubscriptionConfig() override { + ~WithGenericMethod_GetInterventionResponse() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSTopicsSubscriptionConfig(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response) override { + ::grpc::Status GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_GetROSWorldReferenceFrameID : public BaseClass { + class WithGenericMethod_GetStreamsConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_GetROSWorldReferenceFrameID() { + WithGenericMethod_GetStreamsConfiguration() { ::grpc::Service::MarkMethodGeneric(5); } - ~WithGenericMethod_GetROSWorldReferenceFrameID() override { + ~WithGenericMethod_GetStreamsConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSWorldReferenceFrameID(::grpc::ServerContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response) override { + ::grpc::Status GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_CreateInterventionRequest : public BaseClass { + class WithGenericMethod_GetApplicationConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_CreateInterventionRequest() { + WithGenericMethod_GetApplicationConfiguration() { ::grpc::Service::MarkMethodGeneric(6); } - ~WithGenericMethod_CreateInterventionRequest() override { + ~WithGenericMethod_GetApplicationConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) override { + ::grpc::Status GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_GetInterventionRequest : public BaseClass { + class WithGenericMethod_GetAgentConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_GetInterventionRequest() { + WithGenericMethod_GetAgentConfiguration() { ::grpc::Service::MarkMethodGeneric(7); } - ~WithGenericMethod_GetInterventionRequest() override { + ~WithGenericMethod_GetAgentConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) override { + ::grpc::Status GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_GetInterventionResponse : public BaseClass { + class WithGenericMethod_Health : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_GetInterventionResponse() { + WithGenericMethod_Health() { ::grpc::Service::MarkMethodGeneric(8); } - ~WithGenericMethod_GetInterventionResponse() override { + ~WithGenericMethod_Health() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) override { + ::grpc::Status Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -900,142 +964,142 @@ class Agent final { } }; template - class WithRawMethod_RegisterROSTopic : public BaseClass { + class WithRawMethod_CreateInterventionRequest : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_RegisterROSTopic() { + WithRawMethod_CreateInterventionRequest() { ::grpc::Service::MarkMethodRaw(2); } - ~WithRawMethod_RegisterROSTopic() override { + ~WithRawMethod_CreateInterventionRequest() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status RegisterROSTopic(::grpc::ServerContext* context, const ::v1::model::ROSTopic* request, ::v1::agent::RegisterROSTopicResponse* response) override { + ::grpc::Status CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestRegisterROSTopic(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestCreateInterventionRequest(::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_GetROSTopics : public BaseClass { + class WithRawMethod_GetInterventionRequest : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_GetROSTopics() { + WithRawMethod_GetInterventionRequest() { ::grpc::Service::MarkMethodRaw(3); } - ~WithRawMethod_GetROSTopics() override { + ~WithRawMethod_GetInterventionRequest() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSTopics(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsRequest* request, ::v1::agent::GetROSTopicsResponse* response) override { + ::grpc::Status GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetROSTopics(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetInterventionRequest(::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_GetROSTopicsSubscriptionConfig : public BaseClass { + class WithRawMethod_GetInterventionResponse : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_GetROSTopicsSubscriptionConfig() { + WithRawMethod_GetInterventionResponse() { ::grpc::Service::MarkMethodRaw(4); } - ~WithRawMethod_GetROSTopicsSubscriptionConfig() override { + ~WithRawMethod_GetInterventionResponse() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSTopicsSubscriptionConfig(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response) override { + ::grpc::Status GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetROSTopicsSubscriptionConfig(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetInterventionResponse(::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_GetROSWorldReferenceFrameID : public BaseClass { + class WithRawMethod_GetStreamsConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_GetROSWorldReferenceFrameID() { + WithRawMethod_GetStreamsConfiguration() { ::grpc::Service::MarkMethodRaw(5); } - ~WithRawMethod_GetROSWorldReferenceFrameID() override { + ~WithRawMethod_GetStreamsConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSWorldReferenceFrameID(::grpc::ServerContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response) override { + ::grpc::Status GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetROSWorldReferenceFrameID(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetStreamsConfiguration(::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_CreateInterventionRequest : public BaseClass { + class WithRawMethod_GetApplicationConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_CreateInterventionRequest() { + WithRawMethod_GetApplicationConfiguration() { ::grpc::Service::MarkMethodRaw(6); } - ~WithRawMethod_CreateInterventionRequest() override { + ~WithRawMethod_GetApplicationConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) override { + ::grpc::Status GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestCreateInterventionRequest(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetApplicationConfiguration(::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_GetInterventionRequest : public BaseClass { + class WithRawMethod_GetAgentConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_GetInterventionRequest() { + WithRawMethod_GetAgentConfiguration() { ::grpc::Service::MarkMethodRaw(7); } - ~WithRawMethod_GetInterventionRequest() override { + ~WithRawMethod_GetAgentConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) override { + ::grpc::Status GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetInterventionRequest(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetAgentConfiguration(::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_GetInterventionResponse : public BaseClass { + class WithRawMethod_Health : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_GetInterventionResponse() { + WithRawMethod_Health() { ::grpc::Service::MarkMethodRaw(8); } - ~WithRawMethod_GetInterventionResponse() override { + ~WithRawMethod_Health() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) override { + ::grpc::Status Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetInterventionResponse(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestHealth(::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); } }; @@ -1087,179 +1151,179 @@ class Agent final { virtual void PostData(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_RegisterROSTopic : public BaseClass { + class ExperimentalWithRawCallbackMethod_CreateInterventionRequest : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_RegisterROSTopic() { + ExperimentalWithRawCallbackMethod_CreateInterventionRequest() { ::grpc::Service::experimental().MarkMethodRawCallback(2, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - this->RegisterROSTopic(context, request, response, controller); + this->CreateInterventionRequest(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_RegisterROSTopic() override { + ~ExperimentalWithRawCallbackMethod_CreateInterventionRequest() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status RegisterROSTopic(::grpc::ServerContext* context, const ::v1::model::ROSTopic* request, ::v1::agent::RegisterROSTopicResponse* response) override { + ::grpc::Status CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void RegisterROSTopic(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void CreateInterventionRequest(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_GetROSTopics : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetInterventionRequest : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_GetROSTopics() { + ExperimentalWithRawCallbackMethod_GetInterventionRequest() { ::grpc::Service::experimental().MarkMethodRawCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetROSTopics(context, request, response, controller); + this->GetInterventionRequest(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_GetROSTopics() override { + ~ExperimentalWithRawCallbackMethod_GetInterventionRequest() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSTopics(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsRequest* request, ::v1::agent::GetROSTopicsResponse* response) override { + ::grpc::Status GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void GetROSTopics(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void GetInterventionRequest(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_GetROSTopicsSubscriptionConfig : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetInterventionResponse : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_GetROSTopicsSubscriptionConfig() { + ExperimentalWithRawCallbackMethod_GetInterventionResponse() { ::grpc::Service::experimental().MarkMethodRawCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetROSTopicsSubscriptionConfig(context, request, response, controller); + this->GetInterventionResponse(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_GetROSTopicsSubscriptionConfig() override { + ~ExperimentalWithRawCallbackMethod_GetInterventionResponse() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSTopicsSubscriptionConfig(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response) override { + ::grpc::Status GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void GetROSTopicsSubscriptionConfig(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void GetInterventionResponse(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_GetROSWorldReferenceFrameID : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetStreamsConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_GetROSWorldReferenceFrameID() { + ExperimentalWithRawCallbackMethod_GetStreamsConfiguration() { ::grpc::Service::experimental().MarkMethodRawCallback(5, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetROSWorldReferenceFrameID(context, request, response, controller); + this->GetStreamsConfiguration(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_GetROSWorldReferenceFrameID() override { + ~ExperimentalWithRawCallbackMethod_GetStreamsConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetROSWorldReferenceFrameID(::grpc::ServerContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response) override { + ::grpc::Status GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void GetROSWorldReferenceFrameID(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void GetStreamsConfiguration(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_CreateInterventionRequest : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetApplicationConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_CreateInterventionRequest() { + ExperimentalWithRawCallbackMethod_GetApplicationConfiguration() { ::grpc::Service::experimental().MarkMethodRawCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateInterventionRequest(context, request, response, controller); + this->GetApplicationConfiguration(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_CreateInterventionRequest() override { + ~ExperimentalWithRawCallbackMethod_GetApplicationConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) override { + ::grpc::Status GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void CreateInterventionRequest(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void GetApplicationConfiguration(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_GetInterventionRequest : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetAgentConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_GetInterventionRequest() { + ExperimentalWithRawCallbackMethod_GetAgentConfiguration() { ::grpc::Service::experimental().MarkMethodRawCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetInterventionRequest(context, request, response, controller); + this->GetAgentConfiguration(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_GetInterventionRequest() override { + ~ExperimentalWithRawCallbackMethod_GetAgentConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) override { + ::grpc::Status GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void GetInterventionRequest(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void GetAgentConfiguration(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_GetInterventionResponse : public BaseClass { + class ExperimentalWithRawCallbackMethod_Health : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_GetInterventionResponse() { + ExperimentalWithRawCallbackMethod_Health() { ::grpc::Service::experimental().MarkMethodRawCallback(8, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetInterventionResponse(context, request, response, controller); + this->Health(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_GetInterventionResponse() override { + ~ExperimentalWithRawCallbackMethod_Health() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) override { + ::grpc::Status Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void GetInterventionResponse(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void Health(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template class WithStreamedUnaryMethod_PostData : public BaseClass { @@ -1282,148 +1346,148 @@ class Agent final { virtual ::grpc::Status StreamedPostData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::model::Datapoint,::v1::agent::PostDataResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_RegisterROSTopic : public BaseClass { + class WithStreamedUnaryMethod_CreateInterventionRequest : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_RegisterROSTopic() { + WithStreamedUnaryMethod_CreateInterventionRequest() { ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< ::v1::model::ROSTopic, ::v1::agent::RegisterROSTopicResponse>(std::bind(&WithStreamedUnaryMethod_RegisterROSTopic::StreamedRegisterROSTopic, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::v1::model::InterventionRequest, ::v1::model::InterventionRequest>(std::bind(&WithStreamedUnaryMethod_CreateInterventionRequest::StreamedCreateInterventionRequest, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_RegisterROSTopic() override { + ~WithStreamedUnaryMethod_CreateInterventionRequest() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status RegisterROSTopic(::grpc::ServerContext* context, const ::v1::model::ROSTopic* request, ::v1::agent::RegisterROSTopicResponse* response) override { + ::grpc::Status CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedRegisterROSTopic(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::model::ROSTopic,::v1::agent::RegisterROSTopicResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedCreateInterventionRequest(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::model::InterventionRequest,::v1::model::InterventionRequest>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GetROSTopics : public BaseClass { + class WithStreamedUnaryMethod_GetInterventionRequest : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_GetROSTopics() { + WithStreamedUnaryMethod_GetInterventionRequest() { ::grpc::Service::MarkMethodStreamed(3, - new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::GetROSTopicsRequest, ::v1::agent::GetROSTopicsResponse>(std::bind(&WithStreamedUnaryMethod_GetROSTopics::StreamedGetROSTopics, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::GetInterventionRequestRequest, ::v1::model::InterventionRequest>(std::bind(&WithStreamedUnaryMethod_GetInterventionRequest::StreamedGetInterventionRequest, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_GetROSTopics() override { + ~WithStreamedUnaryMethod_GetInterventionRequest() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetROSTopics(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsRequest* request, ::v1::agent::GetROSTopicsResponse* response) override { + ::grpc::Status GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetROSTopics(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::GetROSTopicsRequest,::v1::agent::GetROSTopicsResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedGetInterventionRequest(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::GetInterventionRequestRequest,::v1::model::InterventionRequest>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GetROSTopicsSubscriptionConfig : public BaseClass { + class WithStreamedUnaryMethod_GetInterventionResponse : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_GetROSTopicsSubscriptionConfig() { + WithStreamedUnaryMethod_GetInterventionResponse() { ::grpc::Service::MarkMethodStreamed(4, - new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::GetROSTopicsSubscriptionConfigRequest, ::v1::agent::GetROSTopicsSubscriptionConfigResponse>(std::bind(&WithStreamedUnaryMethod_GetROSTopicsSubscriptionConfig::StreamedGetROSTopicsSubscriptionConfig, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::GetInterventionResponseRequest, ::v1::model::InterventionResponse>(std::bind(&WithStreamedUnaryMethod_GetInterventionResponse::StreamedGetInterventionResponse, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_GetROSTopicsSubscriptionConfig() override { + ~WithStreamedUnaryMethod_GetInterventionResponse() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetROSTopicsSubscriptionConfig(::grpc::ServerContext* context, const ::v1::agent::GetROSTopicsSubscriptionConfigRequest* request, ::v1::agent::GetROSTopicsSubscriptionConfigResponse* response) override { + ::grpc::Status GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetROSTopicsSubscriptionConfig(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::GetROSTopicsSubscriptionConfigRequest,::v1::agent::GetROSTopicsSubscriptionConfigResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedGetInterventionResponse(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::GetInterventionResponseRequest,::v1::model::InterventionResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GetROSWorldReferenceFrameID : public BaseClass { + class WithStreamedUnaryMethod_GetStreamsConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_GetROSWorldReferenceFrameID() { + WithStreamedUnaryMethod_GetStreamsConfiguration() { ::grpc::Service::MarkMethodStreamed(5, - new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::GetROSWorldReferenceFrameIDRequest, ::v1::agent::GetROSWorldReferenceFrameIDResponse>(std::bind(&WithStreamedUnaryMethod_GetROSWorldReferenceFrameID::StreamedGetROSWorldReferenceFrameID, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::GetStreamsConfigurationRequest, ::v1::agent::GetStreamsConfigurationResponse>(std::bind(&WithStreamedUnaryMethod_GetStreamsConfiguration::StreamedGetStreamsConfiguration, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_GetROSWorldReferenceFrameID() override { + ~WithStreamedUnaryMethod_GetStreamsConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetROSWorldReferenceFrameID(::grpc::ServerContext* context, const ::v1::agent::GetROSWorldReferenceFrameIDRequest* request, ::v1::agent::GetROSWorldReferenceFrameIDResponse* response) override { + ::grpc::Status GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetROSWorldReferenceFrameID(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::GetROSWorldReferenceFrameIDRequest,::v1::agent::GetROSWorldReferenceFrameIDResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedGetStreamsConfiguration(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::GetStreamsConfigurationRequest,::v1::agent::GetStreamsConfigurationResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_CreateInterventionRequest : public BaseClass { + class WithStreamedUnaryMethod_GetApplicationConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_CreateInterventionRequest() { + WithStreamedUnaryMethod_GetApplicationConfiguration() { ::grpc::Service::MarkMethodStreamed(6, - new ::grpc::internal::StreamedUnaryHandler< ::v1::model::InterventionRequest, ::v1::model::InterventionRequest>(std::bind(&WithStreamedUnaryMethod_CreateInterventionRequest::StreamedCreateInterventionRequest, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::GetApplicationConfigurationRequest, ::v1::agent::GetApplicationConfigurationResponse>(std::bind(&WithStreamedUnaryMethod_GetApplicationConfiguration::StreamedGetApplicationConfiguration, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_CreateInterventionRequest() override { + ~WithStreamedUnaryMethod_GetApplicationConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status CreateInterventionRequest(::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response) override { + ::grpc::Status GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateInterventionRequest(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::model::InterventionRequest,::v1::model::InterventionRequest>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedGetApplicationConfiguration(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::GetApplicationConfigurationRequest,::v1::agent::GetApplicationConfigurationResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GetInterventionRequest : public BaseClass { + class WithStreamedUnaryMethod_GetAgentConfiguration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_GetInterventionRequest() { + WithStreamedUnaryMethod_GetAgentConfiguration() { ::grpc::Service::MarkMethodStreamed(7, - new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::GetInterventionRequestRequest, ::v1::model::InterventionRequest>(std::bind(&WithStreamedUnaryMethod_GetInterventionRequest::StreamedGetInterventionRequest, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::GetAgentConfigurationRequest, ::v1::agent::GetAgentConfigurationResponse>(std::bind(&WithStreamedUnaryMethod_GetAgentConfiguration::StreamedGetAgentConfiguration, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_GetInterventionRequest() override { + ~WithStreamedUnaryMethod_GetAgentConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetInterventionRequest(::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response) override { + ::grpc::Status GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetInterventionRequest(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::GetInterventionRequestRequest,::v1::model::InterventionRequest>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedGetAgentConfiguration(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::GetAgentConfigurationRequest,::v1::agent::GetAgentConfigurationResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GetInterventionResponse : public BaseClass { + class WithStreamedUnaryMethod_Health : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_GetInterventionResponse() { + WithStreamedUnaryMethod_Health() { ::grpc::Service::MarkMethodStreamed(8, - new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::GetInterventionResponseRequest, ::v1::model::InterventionResponse>(std::bind(&WithStreamedUnaryMethod_GetInterventionResponse::StreamedGetInterventionResponse, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::HealthRequest, ::v1::agent::HealthResponse>(std::bind(&WithStreamedUnaryMethod_Health::StreamedHealth, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_GetInterventionResponse() override { + ~WithStreamedUnaryMethod_Health() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetInterventionResponse(::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response) override { + ::grpc::Status Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetInterventionResponse(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::GetInterventionResponseRequest,::v1::model::InterventionResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedHealth(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::HealthRequest,::v1::agent::HealthResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_PostData > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_PostData > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_PostData > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_PostData > > > > > > > StreamedService; }; } // namespace agent diff --git a/examples/cpp/protos/agent/v1/agent.pb.cc b/examples/cpp/protos/agent/v1/agent.pb.cc index 42ef6b6..1d294eb 100755 --- a/examples/cpp/protos/agent/v1/agent.pb.cc +++ b/examples/cpp/protos/agent/v1/agent.pb.cc @@ -16,7 +16,9 @@ // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fros_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ROSTopicSubscriptionConfig_protos_2fmodel_2fv1_2fros_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; namespace v1 { namespace agent { class StreamDataResponseDefaultTypeInternal { @@ -27,42 +29,46 @@ class PostDataResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _PostDataResponse_default_instance_; -class RegisterROSTopicResponseDefaultTypeInternal { +class GetInterventionRequestRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RegisterROSTopicResponse_default_instance_; -class GetROSTopicsRequestDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetInterventionRequestRequest_default_instance_; +class GetInterventionResponseRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetROSTopicsRequest_default_instance_; -class GetROSTopicsResponseDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetInterventionResponseRequest_default_instance_; +class GetStreamsConfigurationRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetROSTopicsResponse_default_instance_; -class GetROSTopicsSubscriptionConfigRequestDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetStreamsConfigurationRequest_default_instance_; +class GetStreamsConfigurationResponseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetROSTopicsSubscriptionConfigRequest_default_instance_; -class GetROSTopicsSubscriptionConfigResponseDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetStreamsConfigurationResponse_default_instance_; +class GetApplicationConfigurationRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetROSTopicsSubscriptionConfigResponse_default_instance_; -class GetROSWorldReferenceFrameIDRequestDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetApplicationConfigurationRequest_default_instance_; +class GetApplicationConfigurationResponseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetROSWorldReferenceFrameIDRequest_default_instance_; -class GetROSWorldReferenceFrameIDResponseDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetApplicationConfigurationResponse_default_instance_; +class GetAgentConfigurationRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetROSWorldReferenceFrameIDResponse_default_instance_; -class GetInterventionRequestRequestDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetAgentConfigurationRequest_default_instance_; +class GetAgentConfigurationResponseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetInterventionRequestRequest_default_instance_; -class GetInterventionResponseRequestDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetAgentConfigurationResponse_default_instance_; +class HealthRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetInterventionResponseRequest_default_instance_; + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HealthRequest_default_instance_; +class HealthResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HealthResponse_default_instance_; } // namespace agent } // namespace v1 static void InitDefaultsStreamDataResponse_protos_2fagent_2fv1_2fagent_2eproto() { @@ -93,148 +99,165 @@ static void InitDefaultsPostDataResponse_protos_2fagent_2fv1_2fagent_2eproto() { ::google::protobuf::internal::SCCInfo<0> scc_info_PostDataResponse_protos_2fagent_2fv1_2fagent_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPostDataResponse_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsRegisterROSTopicResponse_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsGetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_RegisterROSTopicResponse_default_instance_; - new (ptr) ::v1::agent::RegisterROSTopicResponse(); + void* ptr = &::v1::agent::_GetInterventionRequestRequest_default_instance_; + new (ptr) ::v1::agent::GetInterventionRequestRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::RegisterROSTopicResponse::InitAsDefaultInstance(); + ::v1::agent::GetInterventionRequestRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_RegisterROSTopicResponse_protos_2fagent_2fv1_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRegisterROSTopicResponse_protos_2fagent_2fv1_2fagent_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsGetROSTopicsRequest_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsGetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_GetROSTopicsRequest_default_instance_; - new (ptr) ::v1::agent::GetROSTopicsRequest(); + void* ptr = &::v1::agent::_GetInterventionResponseRequest_default_instance_; + new (ptr) ::v1::agent::GetInterventionResponseRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::GetROSTopicsRequest::InitAsDefaultInstance(); + ::v1::agent::GetInterventionResponseRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_GetROSTopicsRequest_protos_2fagent_2fv1_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetROSTopicsRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsGetROSTopicsResponse_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsGetStreamsConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_GetROSTopicsResponse_default_instance_; - new (ptr) ::v1::agent::GetROSTopicsResponse(); + void* ptr = &::v1::agent::_GetStreamsConfigurationRequest_default_instance_; + new (ptr) ::v1::agent::GetStreamsConfigurationRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::GetROSTopicsResponse::InitAsDefaultInstance(); + ::v1::agent::GetStreamsConfigurationRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_GetROSTopicsResponse_protos_2fagent_2fv1_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetROSTopicsResponse_protos_2fagent_2fv1_2fagent_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_GetStreamsConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetStreamsConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsGetROSTopicsSubscriptionConfigRequest_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsGetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_GetROSTopicsSubscriptionConfigRequest_default_instance_; - new (ptr) ::v1::agent::GetROSTopicsSubscriptionConfigRequest(); + void* ptr = &::v1::agent::_GetStreamsConfigurationResponse_default_instance_; + new (ptr) ::v1::agent::GetStreamsConfigurationResponse(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::GetROSTopicsSubscriptionConfigRequest::InitAsDefaultInstance(); + ::v1::agent::GetStreamsConfigurationResponse::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_GetROSTopicsSubscriptionConfigRequest_protos_2fagent_2fv1_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetROSTopicsSubscriptionConfigRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<1> scc_info_GetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto}, { + &scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; -static void InitDefaultsGetROSTopicsSubscriptionConfigResponse_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsGetApplicationConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_GetROSTopicsSubscriptionConfigResponse_default_instance_; - new (ptr) ::v1::agent::GetROSTopicsSubscriptionConfigResponse(); + void* ptr = &::v1::agent::_GetApplicationConfigurationRequest_default_instance_; + new (ptr) ::v1::agent::GetApplicationConfigurationRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::GetROSTopicsSubscriptionConfigResponse::InitAsDefaultInstance(); + ::v1::agent::GetApplicationConfigurationRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_GetROSTopicsSubscriptionConfigResponse_protos_2fagent_2fv1_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetROSTopicsSubscriptionConfigResponse_protos_2fagent_2fv1_2fagent_2eproto}, { - &scc_info_ROSTopicSubscriptionConfig_protos_2fmodel_2fv1_2fros_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<0> scc_info_GetApplicationConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetApplicationConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsGetROSWorldReferenceFrameIDRequest_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsGetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_GetROSWorldReferenceFrameIDRequest_default_instance_; - new (ptr) ::v1::agent::GetROSWorldReferenceFrameIDRequest(); + void* ptr = &::v1::agent::_GetApplicationConfigurationResponse_default_instance_; + new (ptr) ::v1::agent::GetApplicationConfigurationResponse(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::GetROSWorldReferenceFrameIDRequest::InitAsDefaultInstance(); + ::v1::agent::GetApplicationConfigurationResponse::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_GetROSWorldReferenceFrameIDRequest_protos_2fagent_2fv1_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetROSWorldReferenceFrameIDRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<1> scc_info_GetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto}, { + &scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; -static void InitDefaultsGetROSWorldReferenceFrameIDResponse_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsGetAgentConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_GetROSWorldReferenceFrameIDResponse_default_instance_; - new (ptr) ::v1::agent::GetROSWorldReferenceFrameIDResponse(); + void* ptr = &::v1::agent::_GetAgentConfigurationRequest_default_instance_; + new (ptr) ::v1::agent::GetAgentConfigurationRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::GetROSWorldReferenceFrameIDResponse::InitAsDefaultInstance(); + ::v1::agent::GetAgentConfigurationRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_GetROSWorldReferenceFrameIDResponse_protos_2fagent_2fv1_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetROSWorldReferenceFrameIDResponse_protos_2fagent_2fv1_2fagent_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_GetAgentConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetAgentConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsGetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsGetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_GetInterventionRequestRequest_default_instance_; - new (ptr) ::v1::agent::GetInterventionRequestRequest(); + void* ptr = &::v1::agent::_GetAgentConfigurationResponse_default_instance_; + new (ptr) ::v1::agent::GetAgentConfigurationResponse(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::GetInterventionRequestRequest::InitAsDefaultInstance(); + ::v1::agent::GetAgentConfigurationResponse::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<1> scc_info_GetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto}, { + &scc_info_AgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; -static void InitDefaultsGetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsHealthRequest_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_GetInterventionResponseRequest_default_instance_; - new (ptr) ::v1::agent::GetInterventionResponseRequest(); + void* ptr = &::v1::agent::_HealthRequest_default_instance_; + new (ptr) ::v1::agent::HealthRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::GetInterventionResponseRequest::InitAsDefaultInstance(); + ::v1::agent::HealthRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_HealthRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHealthRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; + +static void InitDefaultsHealthResponse_protos_2fagent_2fv1_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::agent::_HealthResponse_default_instance_; + new (ptr) ::v1::agent::HealthResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::agent::HealthResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_HealthResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHealthResponse_protos_2fagent_2fv1_2fagent_2eproto}, {}}; void InitDefaults_protos_2fagent_2fv1_2fagent_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_StreamDataResponse_protos_2fagent_2fv1_2fagent_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_PostDataResponse_protos_2fagent_2fv1_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_RegisterROSTopicResponse_protos_2fagent_2fv1_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetROSTopicsRequest_protos_2fagent_2fv1_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetROSTopicsResponse_protos_2fagent_2fv1_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetROSTopicsSubscriptionConfigRequest_protos_2fagent_2fv1_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetROSTopicsSubscriptionConfigResponse_protos_2fagent_2fv1_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetROSWorldReferenceFrameIDRequest_protos_2fagent_2fv1_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetROSWorldReferenceFrameIDResponse_protos_2fagent_2fv1_2fagent_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetStreamsConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetApplicationConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetAgentConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HealthRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HealthResponse_protos_2fagent_2fv1_2fagent_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[11]; +::google::protobuf::Metadata file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[12]; constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_protos_2fagent_2fv1_2fagent_2eproto = nullptr; constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_protos_2fagent_2fv1_2fagent_2eproto = nullptr; @@ -250,135 +273,143 @@ const ::google::protobuf::uint32 TableStruct_protos_2fagent_2fv1_2fagent_2eproto ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::v1::agent::RegisterROSTopicResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::v1::agent::GetInterventionRequestRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::agent::GetInterventionRequestRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::agent::GetInterventionResponseRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::agent::GetInterventionResponseRequest, request_id_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::v1::agent::GetROSTopicsRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::v1::agent::GetStreamsConfigurationRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::v1::agent::GetROSTopicsResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::v1::agent::GetStreamsConfigurationResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::v1::agent::GetROSTopicsResponse, topics_), + PROTOBUF_FIELD_OFFSET(::v1::agent::GetStreamsConfigurationResponse, streams_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::v1::agent::GetROSTopicsSubscriptionConfigRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::v1::agent::GetApplicationConfigurationRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::v1::agent::GetROSTopicsSubscriptionConfigResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::v1::agent::GetApplicationConfigurationResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::v1::agent::GetROSTopicsSubscriptionConfigResponse, topics_), + PROTOBUF_FIELD_OFFSET(::v1::agent::GetApplicationConfigurationResponse, configuration_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::v1::agent::GetROSWorldReferenceFrameIDRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::v1::agent::GetAgentConfigurationRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::v1::agent::GetROSWorldReferenceFrameIDResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::v1::agent::GetAgentConfigurationResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::v1::agent::GetROSWorldReferenceFrameIDResponse, world_reference_frame_id_), + PROTOBUF_FIELD_OFFSET(::v1::agent::GetAgentConfigurationResponse, configuration_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::v1::agent::GetInterventionRequestRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::v1::agent::HealthRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::v1::agent::GetInterventionRequestRequest, id_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::v1::agent::GetInterventionResponseRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::v1::agent::HealthResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::v1::agent::GetInterventionResponseRequest, request_id_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::v1::agent::StreamDataResponse)}, { 5, -1, sizeof(::v1::agent::PostDataResponse)}, - { 10, -1, sizeof(::v1::agent::RegisterROSTopicResponse)}, - { 15, -1, sizeof(::v1::agent::GetROSTopicsRequest)}, - { 20, -1, sizeof(::v1::agent::GetROSTopicsResponse)}, - { 26, -1, sizeof(::v1::agent::GetROSTopicsSubscriptionConfigRequest)}, - { 31, -1, sizeof(::v1::agent::GetROSTopicsSubscriptionConfigResponse)}, - { 37, -1, sizeof(::v1::agent::GetROSWorldReferenceFrameIDRequest)}, - { 42, -1, sizeof(::v1::agent::GetROSWorldReferenceFrameIDResponse)}, - { 48, -1, sizeof(::v1::agent::GetInterventionRequestRequest)}, - { 54, -1, sizeof(::v1::agent::GetInterventionResponseRequest)}, + { 10, -1, sizeof(::v1::agent::GetInterventionRequestRequest)}, + { 16, -1, sizeof(::v1::agent::GetInterventionResponseRequest)}, + { 22, -1, sizeof(::v1::agent::GetStreamsConfigurationRequest)}, + { 27, -1, sizeof(::v1::agent::GetStreamsConfigurationResponse)}, + { 33, -1, sizeof(::v1::agent::GetApplicationConfigurationRequest)}, + { 38, -1, sizeof(::v1::agent::GetApplicationConfigurationResponse)}, + { 44, -1, sizeof(::v1::agent::GetAgentConfigurationRequest)}, + { 49, -1, sizeof(::v1::agent::GetAgentConfigurationResponse)}, + { 55, -1, sizeof(::v1::agent::HealthRequest)}, + { 60, -1, sizeof(::v1::agent::HealthResponse)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::v1::agent::_StreamDataResponse_default_instance_), reinterpret_cast(&::v1::agent::_PostDataResponse_default_instance_), - reinterpret_cast(&::v1::agent::_RegisterROSTopicResponse_default_instance_), - reinterpret_cast(&::v1::agent::_GetROSTopicsRequest_default_instance_), - reinterpret_cast(&::v1::agent::_GetROSTopicsResponse_default_instance_), - reinterpret_cast(&::v1::agent::_GetROSTopicsSubscriptionConfigRequest_default_instance_), - reinterpret_cast(&::v1::agent::_GetROSTopicsSubscriptionConfigResponse_default_instance_), - reinterpret_cast(&::v1::agent::_GetROSWorldReferenceFrameIDRequest_default_instance_), - reinterpret_cast(&::v1::agent::_GetROSWorldReferenceFrameIDResponse_default_instance_), reinterpret_cast(&::v1::agent::_GetInterventionRequestRequest_default_instance_), reinterpret_cast(&::v1::agent::_GetInterventionResponseRequest_default_instance_), + reinterpret_cast(&::v1::agent::_GetStreamsConfigurationRequest_default_instance_), + reinterpret_cast(&::v1::agent::_GetStreamsConfigurationResponse_default_instance_), + reinterpret_cast(&::v1::agent::_GetApplicationConfigurationRequest_default_instance_), + reinterpret_cast(&::v1::agent::_GetApplicationConfigurationResponse_default_instance_), + reinterpret_cast(&::v1::agent::_GetAgentConfigurationRequest_default_instance_), + reinterpret_cast(&::v1::agent::_GetAgentConfigurationResponse_default_instance_), + reinterpret_cast(&::v1::agent::_HealthRequest_default_instance_), + reinterpret_cast(&::v1::agent::_HealthResponse_default_instance_), }; ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto = { {}, AddDescriptors_protos_2fagent_2fv1_2fagent_2eproto, "protos/agent/v1/agent.proto", schemas, file_default_instances, TableStruct_protos_2fagent_2fv1_2fagent_2eproto::offsets, - file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto, 11, file_level_enum_descriptors_protos_2fagent_2fv1_2fagent_2eproto, file_level_service_descriptors_protos_2fagent_2fv1_2fagent_2eproto, + file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto, 12, file_level_enum_descriptors_protos_2fagent_2fv1_2fagent_2eproto, file_level_service_descriptors_protos_2fagent_2fv1_2fagent_2eproto, }; const char descriptor_table_protodef_protos_2fagent_2fv1_2fagent_2eproto[] = "\n\033protos/agent/v1/agent.proto\022\010v1.agent\032" "\037protos/model/v1/datapoint.proto\032\"protos" - "/model/v1/intervention.proto\032\031protos/mod" - "el/v1/ros.proto\"\024\n\022StreamDataResponse\"\022\n" - "\020PostDataResponse\"\032\n\030RegisterROSTopicRes" - "ponse\"\025\n\023GetROSTopicsRequest\"&\n\024GetROSTo" - "picsResponse\022\016\n\006topics\030\001 \003(\t\"\'\n%GetROSTo" - "picsSubscriptionConfigRequest\"^\n&GetROST" - "opicsSubscriptionConfigResponse\0224\n\006topic" - "s\030\001 \003(\0132$.v1.model.ROSTopicSubscriptionC" - "onfig\"$\n\"GetROSWorldReferenceFrameIDRequ" - "est\"G\n#GetROSWorldReferenceFrameIDRespon" - "se\022 \n\030world_reference_frame_id\030\001 \001(\t\"+\n\035" - "GetInterventionRequestRequest\022\n\n\002id\030\001 \001(" - "\t\"4\n\036GetInterventionResponseRequest\022\022\n\nr" - "equest_id\030\001 \001(\t2\330\006\n\005Agent\022C\n\nStreamData\022" - "\023.v1.model.Datapoint\032\034.v1.agent.StreamDa" - "taResponse\"\000(\001\022=\n\010PostData\022\023.v1.model.Da" - "tapoint\032\032.v1.agent.PostDataResponse\"\000\022L\n" - "\020RegisterROSTopic\022\022.v1.model.ROSTopic\032\"." - "v1.agent.RegisterROSTopicResponse\"\000\022O\n\014G" - "etROSTopics\022\035.v1.agent.GetROSTopicsReque" - "st\032\036.v1.agent.GetROSTopicsResponse\"\000\022\205\001\n" - "\036GetROSTopicsSubscriptionConfig\022/.v1.age" - "nt.GetROSTopicsSubscriptionConfigRequest" - "\0320.v1.agent.GetROSTopicsSubscriptionConf" - "igResponse\"\000\022|\n\033GetROSWorldReferenceFram" - "eID\022,.v1.agent.GetROSWorldReferenceFrame" - "IDRequest\032-.v1.agent.GetROSWorldReferenc" - "eFrameIDResponse\"\000\022[\n\031CreateIntervention" - "Request\022\035.v1.model.InterventionRequest\032\035" - ".v1.model.InterventionRequest\"\000\022b\n\026GetIn" - "terventionRequest\022\'.v1.agent.GetInterven" - "tionRequestRequest\032\035.v1.model.Interventi" - "onRequest\"\000\022e\n\027GetInterventionResponse\022(" - ".v1.agent.GetInterventionResponseRequest" - "\032\036.v1.model.InterventionResponse\"\000B+Z)gi" - "thub.com/FormantIO/genproto/go/v1/agentb" - "\006proto3" + "/model/v1/intervention.proto\032\034protos/mod" + "el/v1/config.proto\"\024\n\022StreamDataResponse" + "\"\022\n\020PostDataResponse\"+\n\035GetInterventionR" + "equestRequest\022\n\n\002id\030\001 \001(\t\"4\n\036GetInterven" + "tionResponseRequest\022\022\n\nrequest_id\030\001 \001(\t\"" + " \n\036GetStreamsConfigurationRequest\"Q\n\037Get" + "StreamsConfigurationResponse\022.\n\007streams\030" + "\001 \003(\0132\035.v1.model.StreamConfiguration\"$\n\"" + "GetApplicationConfigurationRequest\"`\n#Ge" + "tApplicationConfigurationResponse\0229\n\rcon" + "figuration\030\001 \001(\0132\".v1.model.ApplicationC" + "onfiguration\"\036\n\034GetAgentConfigurationReq" + "uest\"T\n\035GetAgentConfigurationResponse\0223\n" + "\rconfiguration\030\001 \001(\0132\034.v1.model.AgentCon" + "figuration\"\017\n\rHealthRequest\"\020\n\016HealthRes" + "ponse2\316\006\n\005Agent\022C\n\nStreamData\022\023.v1.model" + ".Datapoint\032\034.v1.agent.StreamDataResponse" + "\"\000(\001\022=\n\010PostData\022\023.v1.model.Datapoint\032\032." + "v1.agent.PostDataResponse\"\000\022[\n\031CreateInt" + "erventionRequest\022\035.v1.model.Intervention" + "Request\032\035.v1.model.InterventionRequest\"\000" + "\022b\n\026GetInterventionRequest\022\'.v1.agent.Ge" + "tInterventionRequestRequest\032\035.v1.model.I" + "nterventionRequest\"\000\022e\n\027GetInterventionR" + "esponse\022(.v1.agent.GetInterventionRespon" + "seRequest\032\036.v1.model.InterventionRespons" + "e\"\000\022p\n\027GetStreamsConfiguration\022(.v1.agen" + "t.GetStreamsConfigurationRequest\032).v1.ag" + "ent.GetStreamsConfigurationResponse\"\000\022|\n" + "\033GetApplicationConfiguration\022,.v1.agent." + "GetApplicationConfigurationRequest\032-.v1." + "agent.GetApplicationConfigurationRespons" + "e\"\000\022j\n\025GetAgentConfiguration\022&.v1.agent." + "GetAgentConfigurationRequest\032\'.v1.agent." + "GetAgentConfigurationResponse\"\000\022=\n\006Healt" + "h\022\027.v1.agent.HealthRequest\032\030.v1.agent.He" + "althResponse\"\000B+Z)github.com/FormantIO/g" + "enproto/go/v1/agentb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_protos_2fagent_2fv1_2fagent_2eproto = { false, InitDefaults_protos_2fagent_2fv1_2fagent_2eproto, descriptor_table_protodef_protos_2fagent_2fv1_2fagent_2eproto, - "protos/agent/v1/agent.proto", &assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto, 1527, + "protos/agent/v1/agent.proto", &assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto, 1587, }; void AddDescriptors_protos_2fagent_2fv1_2fagent_2eproto() { @@ -386,7 +417,7 @@ void AddDescriptors_protos_2fagent_2fv1_2fagent_2eproto() { { ::AddDescriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto, ::AddDescriptors_protos_2fmodel_2fv1_2fintervention_2eproto, - ::AddDescriptors_protos_2fmodel_2fv1_2fros_2eproto, + ::AddDescriptors_protos_2fmodel_2fv1_2fconfig_2eproto, }; ::google::protobuf::internal::AddDescriptors(&descriptor_table_protos_2fagent_2fv1_2fagent_2eproto, deps, 3); } @@ -816,60 +847,70 @@ ::google::protobuf::Metadata PostDataResponse::GetMetadata() const { // =================================================================== -void RegisterROSTopicResponse::InitAsDefaultInstance() { +void GetInterventionRequestRequest::InitAsDefaultInstance() { } -class RegisterROSTopicResponse::HasBitSetters { +class GetInterventionRequestRequest::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetInterventionRequestRequest::kIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -RegisterROSTopicResponse::RegisterROSTopicResponse() +GetInterventionRequestRequest::GetInterventionRequestRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:v1.agent.RegisterROSTopicResponse) + // @@protoc_insertion_point(constructor:v1.agent.GetInterventionRequestRequest) } -RegisterROSTopicResponse::RegisterROSTopicResponse(const RegisterROSTopicResponse& from) +GetInterventionRequestRequest::GetInterventionRequestRequest(const GetInterventionRequestRequest& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:v1.agent.RegisterROSTopicResponse) + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.id().size() > 0) { + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + // @@protoc_insertion_point(copy_constructor:v1.agent.GetInterventionRequestRequest) } -void RegisterROSTopicResponse::SharedCtor() { +void GetInterventionRequestRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -RegisterROSTopicResponse::~RegisterROSTopicResponse() { - // @@protoc_insertion_point(destructor:v1.agent.RegisterROSTopicResponse) +GetInterventionRequestRequest::~GetInterventionRequestRequest() { + // @@protoc_insertion_point(destructor:v1.agent.GetInterventionRequestRequest) SharedDtor(); } -void RegisterROSTopicResponse::SharedDtor() { +void GetInterventionRequestRequest::SharedDtor() { + id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -void RegisterROSTopicResponse::SetCachedSize(int size) const { +void GetInterventionRequestRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const RegisterROSTopicResponse& RegisterROSTopicResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RegisterROSTopicResponse_protos_2fagent_2fv1_2fagent_2eproto.base); +const GetInterventionRequestRequest& GetInterventionRequestRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } -void RegisterROSTopicResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:v1.agent.RegisterROSTopicResponse) +void GetInterventionRequestRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.GetInterventionRequestRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RegisterROSTopicResponse::_InternalParse(const char* begin, const char* end, void* object, +const char* GetInterventionRequestRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -879,7 +920,24 @@ const char* RegisterROSTopicResponse::_InternalParse(const char* begin, const ch ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { + // string id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("v1.agent.GetInterventionRequestRequest.id"); + object = msg->mutable_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } default: { + handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; @@ -893,63 +951,111 @@ const char* RegisterROSTopicResponse::_InternalParse(const char* begin, const ch } // switch } // while return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool RegisterROSTopicResponse::MergePartialFromCodedStream( +bool GetInterventionRequestRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:v1.agent.RegisterROSTopicResponse) + // @@protoc_insertion_point(parse_start:v1.agent.GetInterventionRequestRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.agent.GetInterventionRequestRequest.id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); } success: - // @@protoc_insertion_point(parse_success:v1.agent.RegisterROSTopicResponse) + // @@protoc_insertion_point(parse_success:v1.agent.GetInterventionRequestRequest) return true; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.RegisterROSTopicResponse) + // @@protoc_insertion_point(parse_failure:v1.agent.GetInterventionRequestRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void RegisterROSTopicResponse::SerializeWithCachedSizes( +void GetInterventionRequestRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.RegisterROSTopicResponse) + // @@protoc_insertion_point(serialize_start:v1.agent.GetInterventionRequestRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.agent.GetInterventionRequestRequest.id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->id(), output); + } + if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:v1.agent.RegisterROSTopicResponse) + // @@protoc_insertion_point(serialize_end:v1.agent.GetInterventionRequestRequest) } -::google::protobuf::uint8* RegisterROSTopicResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* GetInterventionRequestRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:v1.agent.RegisterROSTopicResponse) + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetInterventionRequestRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.agent.GetInterventionRequestRequest.id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->id(), target); + } + if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:v1.agent.RegisterROSTopicResponse) + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetInterventionRequestRequest) return target; } -size_t RegisterROSTopicResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:v1.agent.RegisterROSTopicResponse) +size_t GetInterventionRequestRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetInterventionRequestRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -961,63 +1067,76 @@ size_t RegisterROSTopicResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // string id = 1; + if (this->id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->id()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void RegisterROSTopicResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.RegisterROSTopicResponse) +void GetInterventionRequestRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetInterventionRequestRequest) GOOGLE_DCHECK_NE(&from, this); - const RegisterROSTopicResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const GetInterventionRequestRequest* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.RegisterROSTopicResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetInterventionRequestRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.RegisterROSTopicResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetInterventionRequestRequest) MergeFrom(*source); } } -void RegisterROSTopicResponse::MergeFrom(const RegisterROSTopicResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.RegisterROSTopicResponse) +void GetInterventionRequestRequest::MergeFrom(const GetInterventionRequestRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetInterventionRequestRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; + if (from.id().size() > 0) { + + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } } -void RegisterROSTopicResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.RegisterROSTopicResponse) +void GetInterventionRequestRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetInterventionRequestRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void RegisterROSTopicResponse::CopyFrom(const RegisterROSTopicResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.RegisterROSTopicResponse) +void GetInterventionRequestRequest::CopyFrom(const GetInterventionRequestRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetInterventionRequestRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool RegisterROSTopicResponse::IsInitialized() const { +bool GetInterventionRequestRequest::IsInitialized() const { return true; } -void RegisterROSTopicResponse::Swap(RegisterROSTopicResponse* other) { +void GetInterventionRequestRequest::Swap(GetInterventionRequestRequest* other) { if (other == this) return; InternalSwap(other); } -void RegisterROSTopicResponse::InternalSwap(RegisterROSTopicResponse* other) { +void GetInterventionRequestRequest::InternalSwap(GetInterventionRequestRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); + id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); } -::google::protobuf::Metadata RegisterROSTopicResponse::GetMetadata() const { +::google::protobuf::Metadata GetInterventionRequestRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto); return ::file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[kIndexInFileMessages]; } @@ -1025,60 +1144,70 @@ ::google::protobuf::Metadata RegisterROSTopicResponse::GetMetadata() const { // =================================================================== -void GetROSTopicsRequest::InitAsDefaultInstance() { +void GetInterventionResponseRequest::InitAsDefaultInstance() { } -class GetROSTopicsRequest::HasBitSetters { +class GetInterventionResponseRequest::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetInterventionResponseRequest::kRequestIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -GetROSTopicsRequest::GetROSTopicsRequest() +GetInterventionResponseRequest::GetInterventionResponseRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:v1.agent.GetROSTopicsRequest) + // @@protoc_insertion_point(constructor:v1.agent.GetInterventionResponseRequest) } -GetROSTopicsRequest::GetROSTopicsRequest(const GetROSTopicsRequest& from) +GetInterventionResponseRequest::GetInterventionResponseRequest(const GetInterventionResponseRequest& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:v1.agent.GetROSTopicsRequest) + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.request_id().size() > 0) { + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + // @@protoc_insertion_point(copy_constructor:v1.agent.GetInterventionResponseRequest) } -void GetROSTopicsRequest::SharedCtor() { +void GetInterventionResponseRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -GetROSTopicsRequest::~GetROSTopicsRequest() { - // @@protoc_insertion_point(destructor:v1.agent.GetROSTopicsRequest) +GetInterventionResponseRequest::~GetInterventionResponseRequest() { + // @@protoc_insertion_point(destructor:v1.agent.GetInterventionResponseRequest) SharedDtor(); } -void GetROSTopicsRequest::SharedDtor() { +void GetInterventionResponseRequest::SharedDtor() { + request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -void GetROSTopicsRequest::SetCachedSize(int size) const { +void GetInterventionResponseRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const GetROSTopicsRequest& GetROSTopicsRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetROSTopicsRequest_protos_2fagent_2fv1_2fagent_2eproto.base); +const GetInterventionResponseRequest& GetInterventionResponseRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } -void GetROSTopicsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:v1.agent.GetROSTopicsRequest) +void GetInterventionResponseRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.GetInterventionResponseRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetROSTopicsRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* GetInterventionResponseRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -1088,7 +1217,24 @@ const char* GetROSTopicsRequest::_InternalParse(const char* begin, const char* e ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { + // string request_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("v1.agent.GetInterventionResponseRequest.request_id"); + object = msg->mutable_request_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } default: { + handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; @@ -1102,269 +1248,34 @@ const char* GetROSTopicsRequest::_InternalParse(const char* begin, const char* e } // switch } // while return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetROSTopicsRequest::MergePartialFromCodedStream( +bool GetInterventionResponseRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:v1.agent.GetROSTopicsRequest) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:v1.agent.GetROSTopicsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetROSTopicsRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetROSTopicsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetROSTopicsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:v1.agent.GetROSTopicsRequest) -} - -::google::protobuf::uint8* GetROSTopicsRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetROSTopicsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetROSTopicsRequest) - return target; -} - -size_t GetROSTopicsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetROSTopicsRequest) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetROSTopicsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetROSTopicsRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetROSTopicsRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetROSTopicsRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetROSTopicsRequest) - MergeFrom(*source); - } -} - -void GetROSTopicsRequest::MergeFrom(const GetROSTopicsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetROSTopicsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void GetROSTopicsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetROSTopicsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetROSTopicsRequest::CopyFrom(const GetROSTopicsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetROSTopicsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetROSTopicsRequest::IsInitialized() const { - return true; -} - -void GetROSTopicsRequest::Swap(GetROSTopicsRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void GetROSTopicsRequest::InternalSwap(GetROSTopicsRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata GetROSTopicsRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto); - return ::file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetROSTopicsResponse::InitAsDefaultInstance() { -} -class GetROSTopicsResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetROSTopicsResponse::kTopicsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetROSTopicsResponse::GetROSTopicsResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:v1.agent.GetROSTopicsResponse) -} -GetROSTopicsResponse::GetROSTopicsResponse(const GetROSTopicsResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - topics_(from.topics_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:v1.agent.GetROSTopicsResponse) -} - -void GetROSTopicsResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetROSTopicsResponse_protos_2fagent_2fv1_2fagent_2eproto.base); -} - -GetROSTopicsResponse::~GetROSTopicsResponse() { - // @@protoc_insertion_point(destructor:v1.agent.GetROSTopicsResponse) - SharedDtor(); -} - -void GetROSTopicsResponse::SharedDtor() { -} - -void GetROSTopicsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetROSTopicsResponse& GetROSTopicsResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetROSTopicsResponse_protos_2fagent_2fv1_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void GetROSTopicsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:v1.agent.GetROSTopicsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - topics_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetROSTopicsResponse::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // repeated string topics = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("v1.agent.GetROSTopicsResponse.topics"); - object = msg->add_topics(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetROSTopicsResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:v1.agent.GetROSTopicsResponse) + // @@protoc_insertion_point(parse_start:v1.agent.GetInterventionResponseRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated string topics = 1; + // string request_id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_topics())); + input, this->mutable_request_id())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topics(this->topics_size() - 1).data(), - static_cast(this->topics(this->topics_size() - 1).length()), + this->request_id().data(), static_cast(this->request_id().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "v1.agent.GetROSTopicsResponse.topics")); + "v1.agent.GetInterventionResponseRequest.request_id")); } else { goto handle_unusual; } @@ -1383,64 +1294,65 @@ bool GetROSTopicsResponse::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:v1.agent.GetROSTopicsResponse) + // @@protoc_insertion_point(parse_success:v1.agent.GetInterventionResponseRequest) return true; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetROSTopicsResponse) + // @@protoc_insertion_point(parse_failure:v1.agent.GetInterventionResponseRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GetROSTopicsResponse::SerializeWithCachedSizes( +void GetInterventionResponseRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetROSTopicsResponse) + // @@protoc_insertion_point(serialize_start:v1.agent.GetInterventionResponseRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated string topics = 1; - for (int i = 0, n = this->topics_size(); i < n; i++) { + // string request_id = 1; + if (this->request_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topics(i).data(), static_cast(this->topics(i).length()), + this->request_id().data(), static_cast(this->request_id().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "v1.agent.GetROSTopicsResponse.topics"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->topics(i), output); + "v1.agent.GetInterventionResponseRequest.request_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->request_id(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:v1.agent.GetROSTopicsResponse) + // @@protoc_insertion_point(serialize_end:v1.agent.GetInterventionResponseRequest) } -::google::protobuf::uint8* GetROSTopicsResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* GetInterventionResponseRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetROSTopicsResponse) + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetInterventionResponseRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated string topics = 1; - for (int i = 0, n = this->topics_size(); i < n; i++) { + // string request_id = 1; + if (this->request_id().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->topics(i).data(), static_cast(this->topics(i).length()), + this->request_id().data(), static_cast(this->request_id().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "v1.agent.GetROSTopicsResponse.topics"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->topics(i), target); + "v1.agent.GetInterventionResponseRequest.request_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->request_id(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetROSTopicsResponse) + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetInterventionResponseRequest) return target; } -size_t GetROSTopicsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetROSTopicsResponse) +size_t GetInterventionResponseRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetInterventionResponseRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -1452,12 +1364,11 @@ size_t GetROSTopicsResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated string topics = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->topics_size()); - for (int i = 0, n = this->topics_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->topics(i)); + // string request_id = 1; + if (this->request_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->request_id()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -1465,60 +1376,64 @@ size_t GetROSTopicsResponse::ByteSizeLong() const { return total_size; } -void GetROSTopicsResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetROSTopicsResponse) +void GetInterventionResponseRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetInterventionResponseRequest) GOOGLE_DCHECK_NE(&from, this); - const GetROSTopicsResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const GetInterventionResponseRequest* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetROSTopicsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetInterventionResponseRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetROSTopicsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetInterventionResponseRequest) MergeFrom(*source); } } -void GetROSTopicsResponse::MergeFrom(const GetROSTopicsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetROSTopicsResponse) +void GetInterventionResponseRequest::MergeFrom(const GetInterventionResponseRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetInterventionResponseRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - topics_.MergeFrom(from.topics_); + if (from.request_id().size() > 0) { + + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } } -void GetROSTopicsResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetROSTopicsResponse) +void GetInterventionResponseRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetInterventionResponseRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void GetROSTopicsResponse::CopyFrom(const GetROSTopicsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetROSTopicsResponse) +void GetInterventionResponseRequest::CopyFrom(const GetInterventionResponseRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetInterventionResponseRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool GetROSTopicsResponse::IsInitialized() const { +bool GetInterventionResponseRequest::IsInitialized() const { return true; } -void GetROSTopicsResponse::Swap(GetROSTopicsResponse* other) { +void GetInterventionResponseRequest::Swap(GetInterventionResponseRequest* other) { if (other == this) return; InternalSwap(other); } -void GetROSTopicsResponse::InternalSwap(GetROSTopicsResponse* other) { +void GetInterventionResponseRequest::InternalSwap(GetInterventionResponseRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - topics_.InternalSwap(CastToBase(&other->topics_)); + request_id_.Swap(&other->request_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); } -::google::protobuf::Metadata GetROSTopicsResponse::GetMetadata() const { +::google::protobuf::Metadata GetInterventionResponseRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto); return ::file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[kIndexInFileMessages]; } @@ -1526,49 +1441,49 @@ ::google::protobuf::Metadata GetROSTopicsResponse::GetMetadata() const { // =================================================================== -void GetROSTopicsSubscriptionConfigRequest::InitAsDefaultInstance() { +void GetStreamsConfigurationRequest::InitAsDefaultInstance() { } -class GetROSTopicsSubscriptionConfigRequest::HasBitSetters { +class GetStreamsConfigurationRequest::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -GetROSTopicsSubscriptionConfigRequest::GetROSTopicsSubscriptionConfigRequest() +GetStreamsConfigurationRequest::GetStreamsConfigurationRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:v1.agent.GetROSTopicsSubscriptionConfigRequest) + // @@protoc_insertion_point(constructor:v1.agent.GetStreamsConfigurationRequest) } -GetROSTopicsSubscriptionConfigRequest::GetROSTopicsSubscriptionConfigRequest(const GetROSTopicsSubscriptionConfigRequest& from) +GetStreamsConfigurationRequest::GetStreamsConfigurationRequest(const GetStreamsConfigurationRequest& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:v1.agent.GetROSTopicsSubscriptionConfigRequest) + // @@protoc_insertion_point(copy_constructor:v1.agent.GetStreamsConfigurationRequest) } -void GetROSTopicsSubscriptionConfigRequest::SharedCtor() { +void GetStreamsConfigurationRequest::SharedCtor() { } -GetROSTopicsSubscriptionConfigRequest::~GetROSTopicsSubscriptionConfigRequest() { - // @@protoc_insertion_point(destructor:v1.agent.GetROSTopicsSubscriptionConfigRequest) +GetStreamsConfigurationRequest::~GetStreamsConfigurationRequest() { + // @@protoc_insertion_point(destructor:v1.agent.GetStreamsConfigurationRequest) SharedDtor(); } -void GetROSTopicsSubscriptionConfigRequest::SharedDtor() { +void GetStreamsConfigurationRequest::SharedDtor() { } -void GetROSTopicsSubscriptionConfigRequest::SetCachedSize(int size) const { +void GetStreamsConfigurationRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const GetROSTopicsSubscriptionConfigRequest& GetROSTopicsSubscriptionConfigRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetROSTopicsSubscriptionConfigRequest_protos_2fagent_2fv1_2fagent_2eproto.base); +const GetStreamsConfigurationRequest& GetStreamsConfigurationRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetStreamsConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } -void GetROSTopicsSubscriptionConfigRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:v1.agent.GetROSTopicsSubscriptionConfigRequest) +void GetStreamsConfigurationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.GetStreamsConfigurationRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1577,9 +1492,9 @@ void GetROSTopicsSubscriptionConfigRequest::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetROSTopicsSubscriptionConfigRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* GetStreamsConfigurationRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -1605,11 +1520,11 @@ const char* GetROSTopicsSubscriptionConfigRequest::_InternalParse(const char* be return ptr; } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetROSTopicsSubscriptionConfigRequest::MergePartialFromCodedStream( +bool GetStreamsConfigurationRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:v1.agent.GetROSTopicsSubscriptionConfigRequest) + // @@protoc_insertion_point(parse_start:v1.agent.GetStreamsConfigurationRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -1622,18 +1537,18 @@ bool GetROSTopicsSubscriptionConfigRequest::MergePartialFromCodedStream( input, tag, _internal_metadata_.mutable_unknown_fields())); } success: - // @@protoc_insertion_point(parse_success:v1.agent.GetROSTopicsSubscriptionConfigRequest) + // @@protoc_insertion_point(parse_success:v1.agent.GetStreamsConfigurationRequest) return true; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetROSTopicsSubscriptionConfigRequest) + // @@protoc_insertion_point(parse_failure:v1.agent.GetStreamsConfigurationRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GetROSTopicsSubscriptionConfigRequest::SerializeWithCachedSizes( +void GetStreamsConfigurationRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetROSTopicsSubscriptionConfigRequest) + // @@protoc_insertion_point(serialize_start:v1.agent.GetStreamsConfigurationRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1641,12 +1556,12 @@ void GetROSTopicsSubscriptionConfigRequest::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:v1.agent.GetROSTopicsSubscriptionConfigRequest) + // @@protoc_insertion_point(serialize_end:v1.agent.GetStreamsConfigurationRequest) } -::google::protobuf::uint8* GetROSTopicsSubscriptionConfigRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* GetStreamsConfigurationRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetROSTopicsSubscriptionConfigRequest) + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetStreamsConfigurationRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1654,12 +1569,12 @@ ::google::protobuf::uint8* GetROSTopicsSubscriptionConfigRequest::InternalSerial target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetROSTopicsSubscriptionConfigRequest) + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetStreamsConfigurationRequest) return target; } -size_t GetROSTopicsSubscriptionConfigRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetROSTopicsSubscriptionConfigRequest) +size_t GetStreamsConfigurationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetStreamsConfigurationRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -1676,23 +1591,23 @@ size_t GetROSTopicsSubscriptionConfigRequest::ByteSizeLong() const { return total_size; } -void GetROSTopicsSubscriptionConfigRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetROSTopicsSubscriptionConfigRequest) +void GetStreamsConfigurationRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetStreamsConfigurationRequest) GOOGLE_DCHECK_NE(&from, this); - const GetROSTopicsSubscriptionConfigRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const GetStreamsConfigurationRequest* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetROSTopicsSubscriptionConfigRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetStreamsConfigurationRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetROSTopicsSubscriptionConfigRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetStreamsConfigurationRequest) MergeFrom(*source); } } -void GetROSTopicsSubscriptionConfigRequest::MergeFrom(const GetROSTopicsSubscriptionConfigRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetROSTopicsSubscriptionConfigRequest) +void GetStreamsConfigurationRequest::MergeFrom(const GetStreamsConfigurationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetStreamsConfigurationRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -1700,34 +1615,34 @@ void GetROSTopicsSubscriptionConfigRequest::MergeFrom(const GetROSTopicsSubscrip } -void GetROSTopicsSubscriptionConfigRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetROSTopicsSubscriptionConfigRequest) +void GetStreamsConfigurationRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetStreamsConfigurationRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void GetROSTopicsSubscriptionConfigRequest::CopyFrom(const GetROSTopicsSubscriptionConfigRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetROSTopicsSubscriptionConfigRequest) +void GetStreamsConfigurationRequest::CopyFrom(const GetStreamsConfigurationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetStreamsConfigurationRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool GetROSTopicsSubscriptionConfigRequest::IsInitialized() const { +bool GetStreamsConfigurationRequest::IsInitialized() const { return true; } -void GetROSTopicsSubscriptionConfigRequest::Swap(GetROSTopicsSubscriptionConfigRequest* other) { +void GetStreamsConfigurationRequest::Swap(GetStreamsConfigurationRequest* other) { if (other == this) return; InternalSwap(other); } -void GetROSTopicsSubscriptionConfigRequest::InternalSwap(GetROSTopicsSubscriptionConfigRequest* other) { +void GetStreamsConfigurationRequest::InternalSwap(GetStreamsConfigurationRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); } -::google::protobuf::Metadata GetROSTopicsSubscriptionConfigRequest::GetMetadata() const { +::google::protobuf::Metadata GetStreamsConfigurationRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto); return ::file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[kIndexInFileMessages]; } @@ -1735,68 +1650,68 @@ ::google::protobuf::Metadata GetROSTopicsSubscriptionConfigRequest::GetMetadata( // =================================================================== -void GetROSTopicsSubscriptionConfigResponse::InitAsDefaultInstance() { +void GetStreamsConfigurationResponse::InitAsDefaultInstance() { } -class GetROSTopicsSubscriptionConfigResponse::HasBitSetters { +class GetStreamsConfigurationResponse::HasBitSetters { public: }; -void GetROSTopicsSubscriptionConfigResponse::clear_topics() { - topics_.Clear(); +void GetStreamsConfigurationResponse::clear_streams() { + streams_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetROSTopicsSubscriptionConfigResponse::kTopicsFieldNumber; +const int GetStreamsConfigurationResponse::kStreamsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -GetROSTopicsSubscriptionConfigResponse::GetROSTopicsSubscriptionConfigResponse() +GetStreamsConfigurationResponse::GetStreamsConfigurationResponse() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:v1.agent.GetROSTopicsSubscriptionConfigResponse) + // @@protoc_insertion_point(constructor:v1.agent.GetStreamsConfigurationResponse) } -GetROSTopicsSubscriptionConfigResponse::GetROSTopicsSubscriptionConfigResponse(const GetROSTopicsSubscriptionConfigResponse& from) +GetStreamsConfigurationResponse::GetStreamsConfigurationResponse(const GetStreamsConfigurationResponse& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr), - topics_(from.topics_) { + streams_(from.streams_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:v1.agent.GetROSTopicsSubscriptionConfigResponse) + // @@protoc_insertion_point(copy_constructor:v1.agent.GetStreamsConfigurationResponse) } -void GetROSTopicsSubscriptionConfigResponse::SharedCtor() { +void GetStreamsConfigurationResponse::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_GetROSTopicsSubscriptionConfigResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + &scc_info_GetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); } -GetROSTopicsSubscriptionConfigResponse::~GetROSTopicsSubscriptionConfigResponse() { - // @@protoc_insertion_point(destructor:v1.agent.GetROSTopicsSubscriptionConfigResponse) +GetStreamsConfigurationResponse::~GetStreamsConfigurationResponse() { + // @@protoc_insertion_point(destructor:v1.agent.GetStreamsConfigurationResponse) SharedDtor(); } -void GetROSTopicsSubscriptionConfigResponse::SharedDtor() { +void GetStreamsConfigurationResponse::SharedDtor() { } -void GetROSTopicsSubscriptionConfigResponse::SetCachedSize(int size) const { +void GetStreamsConfigurationResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const GetROSTopicsSubscriptionConfigResponse& GetROSTopicsSubscriptionConfigResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetROSTopicsSubscriptionConfigResponse_protos_2fagent_2fv1_2fagent_2eproto.base); +const GetStreamsConfigurationResponse& GetStreamsConfigurationResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } -void GetROSTopicsSubscriptionConfigResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:v1.agent.GetROSTopicsSubscriptionConfigResponse) +void GetStreamsConfigurationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.GetStreamsConfigurationResponse) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - topics_.Clear(); + streams_.Clear(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetROSTopicsSubscriptionConfigResponse::_InternalParse(const char* begin, const char* end, void* object, +const char* GetStreamsConfigurationResponse::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -1806,14 +1721,14 @@ const char* GetROSTopicsSubscriptionConfigResponse::_InternalParse(const char* b ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // repeated .v1.model.ROSTopicSubscriptionConfig topics = 1; + // repeated .v1.model.StreamConfiguration streams = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; do { ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::v1::model::ROSTopicSubscriptionConfig::_InternalParse; - object = msg->add_topics(); + parser_till_end = ::v1::model::StreamConfiguration::_InternalParse; + object = msg->add_streams(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( @@ -1842,21 +1757,21 @@ const char* GetROSTopicsSubscriptionConfigResponse::_InternalParse(const char* b {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetROSTopicsSubscriptionConfigResponse::MergePartialFromCodedStream( +bool GetStreamsConfigurationResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:v1.agent.GetROSTopicsSubscriptionConfigResponse) + // @@protoc_insertion_point(parse_start:v1.agent.GetStreamsConfigurationResponse) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .v1.model.ROSTopicSubscriptionConfig topics = 1; + // repeated .v1.model.StreamConfiguration streams = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_topics())); + input, add_streams())); } else { goto handle_unusual; } @@ -1875,27 +1790,27 @@ bool GetROSTopicsSubscriptionConfigResponse::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:v1.agent.GetROSTopicsSubscriptionConfigResponse) + // @@protoc_insertion_point(parse_success:v1.agent.GetStreamsConfigurationResponse) return true; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetROSTopicsSubscriptionConfigResponse) + // @@protoc_insertion_point(parse_failure:v1.agent.GetStreamsConfigurationResponse) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GetROSTopicsSubscriptionConfigResponse::SerializeWithCachedSizes( +void GetStreamsConfigurationResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetROSTopicsSubscriptionConfigResponse) + // @@protoc_insertion_point(serialize_start:v1.agent.GetStreamsConfigurationResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .v1.model.ROSTopicSubscriptionConfig topics = 1; + // repeated .v1.model.StreamConfiguration streams = 1; for (unsigned int i = 0, - n = static_cast(this->topics_size()); i < n; i++) { + n = static_cast(this->streams_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, - this->topics(static_cast(i)), + this->streams(static_cast(i)), output); } @@ -1903,33 +1818,33 @@ void GetROSTopicsSubscriptionConfigResponse::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:v1.agent.GetROSTopicsSubscriptionConfigResponse) + // @@protoc_insertion_point(serialize_end:v1.agent.GetStreamsConfigurationResponse) } -::google::protobuf::uint8* GetROSTopicsSubscriptionConfigResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* GetStreamsConfigurationResponse::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetROSTopicsSubscriptionConfigResponse) + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetStreamsConfigurationResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .v1.model.ROSTopicSubscriptionConfig topics = 1; + // repeated .v1.model.StreamConfiguration streams = 1; for (unsigned int i = 0, - n = static_cast(this->topics_size()); i < n; i++) { + n = static_cast(this->streams_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, this->topics(static_cast(i)), target); + 1, this->streams(static_cast(i)), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetROSTopicsSubscriptionConfigResponse) + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetStreamsConfigurationResponse) return target; } -size_t GetROSTopicsSubscriptionConfigResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetROSTopicsSubscriptionConfigResponse) +size_t GetStreamsConfigurationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetStreamsConfigurationResponse) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -1941,14 +1856,14 @@ size_t GetROSTopicsSubscriptionConfigResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .v1.model.ROSTopicSubscriptionConfig topics = 1; + // repeated .v1.model.StreamConfiguration streams = 1; { - unsigned int count = static_cast(this->topics_size()); + unsigned int count = static_cast(this->streams_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( - this->topics(static_cast(i))); + this->streams(static_cast(i))); } } @@ -1957,60 +1872,60 @@ size_t GetROSTopicsSubscriptionConfigResponse::ByteSizeLong() const { return total_size; } -void GetROSTopicsSubscriptionConfigResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetROSTopicsSubscriptionConfigResponse) +void GetStreamsConfigurationResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetStreamsConfigurationResponse) GOOGLE_DCHECK_NE(&from, this); - const GetROSTopicsSubscriptionConfigResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const GetStreamsConfigurationResponse* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetROSTopicsSubscriptionConfigResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetStreamsConfigurationResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetROSTopicsSubscriptionConfigResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetStreamsConfigurationResponse) MergeFrom(*source); } } -void GetROSTopicsSubscriptionConfigResponse::MergeFrom(const GetROSTopicsSubscriptionConfigResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetROSTopicsSubscriptionConfigResponse) +void GetStreamsConfigurationResponse::MergeFrom(const GetStreamsConfigurationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetStreamsConfigurationResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - topics_.MergeFrom(from.topics_); + streams_.MergeFrom(from.streams_); } -void GetROSTopicsSubscriptionConfigResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetROSTopicsSubscriptionConfigResponse) +void GetStreamsConfigurationResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetStreamsConfigurationResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void GetROSTopicsSubscriptionConfigResponse::CopyFrom(const GetROSTopicsSubscriptionConfigResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetROSTopicsSubscriptionConfigResponse) +void GetStreamsConfigurationResponse::CopyFrom(const GetStreamsConfigurationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetStreamsConfigurationResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool GetROSTopicsSubscriptionConfigResponse::IsInitialized() const { +bool GetStreamsConfigurationResponse::IsInitialized() const { return true; } -void GetROSTopicsSubscriptionConfigResponse::Swap(GetROSTopicsSubscriptionConfigResponse* other) { +void GetStreamsConfigurationResponse::Swap(GetStreamsConfigurationResponse* other) { if (other == this) return; InternalSwap(other); } -void GetROSTopicsSubscriptionConfigResponse::InternalSwap(GetROSTopicsSubscriptionConfigResponse* other) { +void GetStreamsConfigurationResponse::InternalSwap(GetStreamsConfigurationResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&topics_)->InternalSwap(CastToBase(&other->topics_)); + CastToBase(&streams_)->InternalSwap(CastToBase(&other->streams_)); } -::google::protobuf::Metadata GetROSTopicsSubscriptionConfigResponse::GetMetadata() const { +::google::protobuf::Metadata GetStreamsConfigurationResponse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto); return ::file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[kIndexInFileMessages]; } @@ -2018,49 +1933,49 @@ ::google::protobuf::Metadata GetROSTopicsSubscriptionConfigResponse::GetMetadata // =================================================================== -void GetROSWorldReferenceFrameIDRequest::InitAsDefaultInstance() { +void GetApplicationConfigurationRequest::InitAsDefaultInstance() { } -class GetROSWorldReferenceFrameIDRequest::HasBitSetters { +class GetApplicationConfigurationRequest::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -GetROSWorldReferenceFrameIDRequest::GetROSWorldReferenceFrameIDRequest() +GetApplicationConfigurationRequest::GetApplicationConfigurationRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:v1.agent.GetROSWorldReferenceFrameIDRequest) + // @@protoc_insertion_point(constructor:v1.agent.GetApplicationConfigurationRequest) } -GetROSWorldReferenceFrameIDRequest::GetROSWorldReferenceFrameIDRequest(const GetROSWorldReferenceFrameIDRequest& from) +GetApplicationConfigurationRequest::GetApplicationConfigurationRequest(const GetApplicationConfigurationRequest& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:v1.agent.GetROSWorldReferenceFrameIDRequest) + // @@protoc_insertion_point(copy_constructor:v1.agent.GetApplicationConfigurationRequest) } -void GetROSWorldReferenceFrameIDRequest::SharedCtor() { +void GetApplicationConfigurationRequest::SharedCtor() { } -GetROSWorldReferenceFrameIDRequest::~GetROSWorldReferenceFrameIDRequest() { - // @@protoc_insertion_point(destructor:v1.agent.GetROSWorldReferenceFrameIDRequest) +GetApplicationConfigurationRequest::~GetApplicationConfigurationRequest() { + // @@protoc_insertion_point(destructor:v1.agent.GetApplicationConfigurationRequest) SharedDtor(); } -void GetROSWorldReferenceFrameIDRequest::SharedDtor() { +void GetApplicationConfigurationRequest::SharedDtor() { } -void GetROSWorldReferenceFrameIDRequest::SetCachedSize(int size) const { +void GetApplicationConfigurationRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const GetROSWorldReferenceFrameIDRequest& GetROSWorldReferenceFrameIDRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetROSWorldReferenceFrameIDRequest_protos_2fagent_2fv1_2fagent_2eproto.base); +const GetApplicationConfigurationRequest& GetApplicationConfigurationRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetApplicationConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } -void GetROSWorldReferenceFrameIDRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:v1.agent.GetROSWorldReferenceFrameIDRequest) +void GetApplicationConfigurationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.GetApplicationConfigurationRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2069,9 +1984,9 @@ void GetROSWorldReferenceFrameIDRequest::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetROSWorldReferenceFrameIDRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* GetApplicationConfigurationRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -2097,11 +2012,11 @@ const char* GetROSWorldReferenceFrameIDRequest::_InternalParse(const char* begin return ptr; } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetROSWorldReferenceFrameIDRequest::MergePartialFromCodedStream( +bool GetApplicationConfigurationRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:v1.agent.GetROSWorldReferenceFrameIDRequest) + // @@protoc_insertion_point(parse_start:v1.agent.GetApplicationConfigurationRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -2114,18 +2029,18 @@ bool GetROSWorldReferenceFrameIDRequest::MergePartialFromCodedStream( input, tag, _internal_metadata_.mutable_unknown_fields())); } success: - // @@protoc_insertion_point(parse_success:v1.agent.GetROSWorldReferenceFrameIDRequest) + // @@protoc_insertion_point(parse_success:v1.agent.GetApplicationConfigurationRequest) return true; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetROSWorldReferenceFrameIDRequest) + // @@protoc_insertion_point(parse_failure:v1.agent.GetApplicationConfigurationRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GetROSWorldReferenceFrameIDRequest::SerializeWithCachedSizes( +void GetApplicationConfigurationRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetROSWorldReferenceFrameIDRequest) + // @@protoc_insertion_point(serialize_start:v1.agent.GetApplicationConfigurationRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2133,12 +2048,12 @@ void GetROSWorldReferenceFrameIDRequest::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:v1.agent.GetROSWorldReferenceFrameIDRequest) + // @@protoc_insertion_point(serialize_end:v1.agent.GetApplicationConfigurationRequest) } -::google::protobuf::uint8* GetROSWorldReferenceFrameIDRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* GetApplicationConfigurationRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetROSWorldReferenceFrameIDRequest) + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetApplicationConfigurationRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2146,12 +2061,12 @@ ::google::protobuf::uint8* GetROSWorldReferenceFrameIDRequest::InternalSerialize target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetROSWorldReferenceFrameIDRequest) + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetApplicationConfigurationRequest) return target; } -size_t GetROSWorldReferenceFrameIDRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetROSWorldReferenceFrameIDRequest) +size_t GetApplicationConfigurationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetApplicationConfigurationRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2168,23 +2083,23 @@ size_t GetROSWorldReferenceFrameIDRequest::ByteSizeLong() const { return total_size; } -void GetROSWorldReferenceFrameIDRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetROSWorldReferenceFrameIDRequest) +void GetApplicationConfigurationRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetApplicationConfigurationRequest) GOOGLE_DCHECK_NE(&from, this); - const GetROSWorldReferenceFrameIDRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const GetApplicationConfigurationRequest* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetROSWorldReferenceFrameIDRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetApplicationConfigurationRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetROSWorldReferenceFrameIDRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetApplicationConfigurationRequest) MergeFrom(*source); } } -void GetROSWorldReferenceFrameIDRequest::MergeFrom(const GetROSWorldReferenceFrameIDRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetROSWorldReferenceFrameIDRequest) +void GetApplicationConfigurationRequest::MergeFrom(const GetApplicationConfigurationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetApplicationConfigurationRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -2192,34 +2107,34 @@ void GetROSWorldReferenceFrameIDRequest::MergeFrom(const GetROSWorldReferenceFra } -void GetROSWorldReferenceFrameIDRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetROSWorldReferenceFrameIDRequest) +void GetApplicationConfigurationRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetApplicationConfigurationRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void GetROSWorldReferenceFrameIDRequest::CopyFrom(const GetROSWorldReferenceFrameIDRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetROSWorldReferenceFrameIDRequest) +void GetApplicationConfigurationRequest::CopyFrom(const GetApplicationConfigurationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetApplicationConfigurationRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool GetROSWorldReferenceFrameIDRequest::IsInitialized() const { +bool GetApplicationConfigurationRequest::IsInitialized() const { return true; } -void GetROSWorldReferenceFrameIDRequest::Swap(GetROSWorldReferenceFrameIDRequest* other) { +void GetApplicationConfigurationRequest::Swap(GetApplicationConfigurationRequest* other) { if (other == this) return; InternalSwap(other); } -void GetROSWorldReferenceFrameIDRequest::InternalSwap(GetROSWorldReferenceFrameIDRequest* other) { +void GetApplicationConfigurationRequest::InternalSwap(GetApplicationConfigurationRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); } -::google::protobuf::Metadata GetROSWorldReferenceFrameIDRequest::GetMetadata() const { +::google::protobuf::Metadata GetApplicationConfigurationRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto); return ::file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[kIndexInFileMessages]; } @@ -2227,70 +2142,87 @@ ::google::protobuf::Metadata GetROSWorldReferenceFrameIDRequest::GetMetadata() c // =================================================================== -void GetROSWorldReferenceFrameIDResponse::InitAsDefaultInstance() { +void GetApplicationConfigurationResponse::InitAsDefaultInstance() { + ::v1::agent::_GetApplicationConfigurationResponse_default_instance_._instance.get_mutable()->configuration_ = const_cast< ::v1::model::ApplicationConfiguration*>( + ::v1::model::ApplicationConfiguration::internal_default_instance()); } -class GetROSWorldReferenceFrameIDResponse::HasBitSetters { +class GetApplicationConfigurationResponse::HasBitSetters { public: + static const ::v1::model::ApplicationConfiguration& configuration(const GetApplicationConfigurationResponse* msg); }; +const ::v1::model::ApplicationConfiguration& +GetApplicationConfigurationResponse::HasBitSetters::configuration(const GetApplicationConfigurationResponse* msg) { + return *msg->configuration_; +} +void GetApplicationConfigurationResponse::clear_configuration() { + if (GetArenaNoVirtual() == nullptr && configuration_ != nullptr) { + delete configuration_; + } + configuration_ = nullptr; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetROSWorldReferenceFrameIDResponse::kWorldReferenceFrameIdFieldNumber; +const int GetApplicationConfigurationResponse::kConfigurationFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -GetROSWorldReferenceFrameIDResponse::GetROSWorldReferenceFrameIDResponse() +GetApplicationConfigurationResponse::GetApplicationConfigurationResponse() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:v1.agent.GetROSWorldReferenceFrameIDResponse) + // @@protoc_insertion_point(constructor:v1.agent.GetApplicationConfigurationResponse) } -GetROSWorldReferenceFrameIDResponse::GetROSWorldReferenceFrameIDResponse(const GetROSWorldReferenceFrameIDResponse& from) +GetApplicationConfigurationResponse::GetApplicationConfigurationResponse(const GetApplicationConfigurationResponse& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - world_reference_frame_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.world_reference_frame_id().size() > 0) { - world_reference_frame_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.world_reference_frame_id_); + if (from.has_configuration()) { + configuration_ = new ::v1::model::ApplicationConfiguration(*from.configuration_); + } else { + configuration_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:v1.agent.GetROSWorldReferenceFrameIDResponse) + // @@protoc_insertion_point(copy_constructor:v1.agent.GetApplicationConfigurationResponse) } -void GetROSWorldReferenceFrameIDResponse::SharedCtor() { +void GetApplicationConfigurationResponse::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_GetROSWorldReferenceFrameIDResponse_protos_2fagent_2fv1_2fagent_2eproto.base); - world_reference_frame_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + &scc_info_GetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + configuration_ = nullptr; } -GetROSWorldReferenceFrameIDResponse::~GetROSWorldReferenceFrameIDResponse() { - // @@protoc_insertion_point(destructor:v1.agent.GetROSWorldReferenceFrameIDResponse) +GetApplicationConfigurationResponse::~GetApplicationConfigurationResponse() { + // @@protoc_insertion_point(destructor:v1.agent.GetApplicationConfigurationResponse) SharedDtor(); } -void GetROSWorldReferenceFrameIDResponse::SharedDtor() { - world_reference_frame_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void GetApplicationConfigurationResponse::SharedDtor() { + if (this != internal_default_instance()) delete configuration_; } -void GetROSWorldReferenceFrameIDResponse::SetCachedSize(int size) const { +void GetApplicationConfigurationResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const GetROSWorldReferenceFrameIDResponse& GetROSWorldReferenceFrameIDResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetROSWorldReferenceFrameIDResponse_protos_2fagent_2fv1_2fagent_2eproto.base); +const GetApplicationConfigurationResponse& GetApplicationConfigurationResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } -void GetROSWorldReferenceFrameIDResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:v1.agent.GetROSWorldReferenceFrameIDResponse) +void GetApplicationConfigurationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.GetApplicationConfigurationResponse) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - world_reference_frame_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && configuration_ != nullptr) { + delete configuration_; + } + configuration_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetROSWorldReferenceFrameIDResponse::_InternalParse(const char* begin, const char* end, void* object, +const char* GetApplicationConfigurationResponse::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -2300,20 +2232,17 @@ const char* GetROSWorldReferenceFrameIDResponse::_InternalParse(const char* begi ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string world_reference_frame_id = 1; + // .v1.model.ApplicationConfiguration configuration = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("v1.agent.GetROSWorldReferenceFrameIDResponse.world_reference_frame_id"); - object = msg->mutable_world_reference_frame_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + parser_till_end = ::v1::model::ApplicationConfiguration::_InternalParse; + object = msg->mutable_configuration(); + if (size > end - ptr) goto len_delim_till_end; ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); break; } default: { @@ -2331,34 +2260,26 @@ const char* GetROSWorldReferenceFrameIDResponse::_InternalParse(const char* begi } // switch } // while return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetROSWorldReferenceFrameIDResponse::MergePartialFromCodedStream( +bool GetApplicationConfigurationResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:v1.agent.GetROSWorldReferenceFrameIDResponse) + // @@protoc_insertion_point(parse_start:v1.agent.GetApplicationConfigurationResponse) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string world_reference_frame_id = 1; + // .v1.model.ApplicationConfiguration configuration = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_world_reference_frame_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->world_reference_frame_id().data(), static_cast(this->world_reference_frame_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "v1.agent.GetROSWorldReferenceFrameIDResponse.world_reference_frame_id")); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_configuration())); } else { goto handle_unusual; } @@ -2377,65 +2298,57 @@ bool GetROSWorldReferenceFrameIDResponse::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:v1.agent.GetROSWorldReferenceFrameIDResponse) + // @@protoc_insertion_point(parse_success:v1.agent.GetApplicationConfigurationResponse) return true; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetROSWorldReferenceFrameIDResponse) + // @@protoc_insertion_point(parse_failure:v1.agent.GetApplicationConfigurationResponse) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GetROSWorldReferenceFrameIDResponse::SerializeWithCachedSizes( +void GetApplicationConfigurationResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetROSWorldReferenceFrameIDResponse) + // @@protoc_insertion_point(serialize_start:v1.agent.GetApplicationConfigurationResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string world_reference_frame_id = 1; - if (this->world_reference_frame_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->world_reference_frame_id().data(), static_cast(this->world_reference_frame_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "v1.agent.GetROSWorldReferenceFrameIDResponse.world_reference_frame_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->world_reference_frame_id(), output); + // .v1.model.ApplicationConfiguration configuration = 1; + if (this->has_configuration()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::configuration(this), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:v1.agent.GetROSWorldReferenceFrameIDResponse) + // @@protoc_insertion_point(serialize_end:v1.agent.GetApplicationConfigurationResponse) } -::google::protobuf::uint8* GetROSWorldReferenceFrameIDResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* GetApplicationConfigurationResponse::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetROSWorldReferenceFrameIDResponse) + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetApplicationConfigurationResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string world_reference_frame_id = 1; - if (this->world_reference_frame_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->world_reference_frame_id().data(), static_cast(this->world_reference_frame_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "v1.agent.GetROSWorldReferenceFrameIDResponse.world_reference_frame_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->world_reference_frame_id(), target); + // .v1.model.ApplicationConfiguration configuration = 1; + if (this->has_configuration()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::configuration(this), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetROSWorldReferenceFrameIDResponse) + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetApplicationConfigurationResponse) return target; } -size_t GetROSWorldReferenceFrameIDResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetROSWorldReferenceFrameIDResponse) +size_t GetApplicationConfigurationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetApplicationConfigurationResponse) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2447,11 +2360,11 @@ size_t GetROSWorldReferenceFrameIDResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string world_reference_frame_id = 1; - if (this->world_reference_frame_id().size() > 0) { + // .v1.model.ApplicationConfiguration configuration = 1; + if (this->has_configuration()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->world_reference_frame_id()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *configuration_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -2459,64 +2372,62 @@ size_t GetROSWorldReferenceFrameIDResponse::ByteSizeLong() const { return total_size; } -void GetROSWorldReferenceFrameIDResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetROSWorldReferenceFrameIDResponse) +void GetApplicationConfigurationResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetApplicationConfigurationResponse) GOOGLE_DCHECK_NE(&from, this); - const GetROSWorldReferenceFrameIDResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const GetApplicationConfigurationResponse* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetROSWorldReferenceFrameIDResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetApplicationConfigurationResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetROSWorldReferenceFrameIDResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetApplicationConfigurationResponse) MergeFrom(*source); } } -void GetROSWorldReferenceFrameIDResponse::MergeFrom(const GetROSWorldReferenceFrameIDResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetROSWorldReferenceFrameIDResponse) +void GetApplicationConfigurationResponse::MergeFrom(const GetApplicationConfigurationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetApplicationConfigurationResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.world_reference_frame_id().size() > 0) { - - world_reference_frame_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.world_reference_frame_id_); + if (from.has_configuration()) { + mutable_configuration()->::v1::model::ApplicationConfiguration::MergeFrom(from.configuration()); } } -void GetROSWorldReferenceFrameIDResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetROSWorldReferenceFrameIDResponse) +void GetApplicationConfigurationResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetApplicationConfigurationResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void GetROSWorldReferenceFrameIDResponse::CopyFrom(const GetROSWorldReferenceFrameIDResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetROSWorldReferenceFrameIDResponse) +void GetApplicationConfigurationResponse::CopyFrom(const GetApplicationConfigurationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetApplicationConfigurationResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool GetROSWorldReferenceFrameIDResponse::IsInitialized() const { +bool GetApplicationConfigurationResponse::IsInitialized() const { return true; } -void GetROSWorldReferenceFrameIDResponse::Swap(GetROSWorldReferenceFrameIDResponse* other) { +void GetApplicationConfigurationResponse::Swap(GetApplicationConfigurationResponse* other) { if (other == this) return; InternalSwap(other); } -void GetROSWorldReferenceFrameIDResponse::InternalSwap(GetROSWorldReferenceFrameIDResponse* other) { +void GetApplicationConfigurationResponse::InternalSwap(GetApplicationConfigurationResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - world_reference_frame_id_.Swap(&other->world_reference_frame_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + swap(configuration_, other->configuration_); } -::google::protobuf::Metadata GetROSWorldReferenceFrameIDResponse::GetMetadata() const { +::google::protobuf::Metadata GetApplicationConfigurationResponse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto); return ::file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[kIndexInFileMessages]; } @@ -2524,70 +2435,60 @@ ::google::protobuf::Metadata GetROSWorldReferenceFrameIDResponse::GetMetadata() // =================================================================== -void GetInterventionRequestRequest::InitAsDefaultInstance() { +void GetAgentConfigurationRequest::InitAsDefaultInstance() { } -class GetInterventionRequestRequest::HasBitSetters { +class GetAgentConfigurationRequest::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetInterventionRequestRequest::kIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -GetInterventionRequestRequest::GetInterventionRequestRequest() +GetAgentConfigurationRequest::GetAgentConfigurationRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:v1.agent.GetInterventionRequestRequest) + // @@protoc_insertion_point(constructor:v1.agent.GetAgentConfigurationRequest) } -GetInterventionRequestRequest::GetInterventionRequestRequest(const GetInterventionRequestRequest& from) +GetAgentConfigurationRequest::GetAgentConfigurationRequest(const GetAgentConfigurationRequest& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.id().size() > 0) { - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - // @@protoc_insertion_point(copy_constructor:v1.agent.GetInterventionRequestRequest) + // @@protoc_insertion_point(copy_constructor:v1.agent.GetAgentConfigurationRequest) } -void GetInterventionRequestRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto.base); - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void GetAgentConfigurationRequest::SharedCtor() { } -GetInterventionRequestRequest::~GetInterventionRequestRequest() { - // @@protoc_insertion_point(destructor:v1.agent.GetInterventionRequestRequest) +GetAgentConfigurationRequest::~GetAgentConfigurationRequest() { + // @@protoc_insertion_point(destructor:v1.agent.GetAgentConfigurationRequest) SharedDtor(); } -void GetInterventionRequestRequest::SharedDtor() { - id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void GetAgentConfigurationRequest::SharedDtor() { } -void GetInterventionRequestRequest::SetCachedSize(int size) const { +void GetAgentConfigurationRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const GetInterventionRequestRequest& GetInterventionRequestRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto.base); +const GetAgentConfigurationRequest& GetAgentConfigurationRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetAgentConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } -void GetInterventionRequestRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:v1.agent.GetInterventionRequestRequest) +void GetAgentConfigurationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.GetAgentConfigurationRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetInterventionRequestRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* GetAgentConfigurationRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -2597,24 +2498,7 @@ const char* GetInterventionRequestRequest::_InternalParse(const char* begin, con ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string id = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("v1.agent.GetInterventionRequestRequest.id"); - object = msg->mutable_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } default: { - handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; @@ -2628,111 +2512,63 @@ const char* GetInterventionRequestRequest::_InternalParse(const char* begin, con } // switch } // while return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetInterventionRequestRequest::MergePartialFromCodedStream( +bool GetAgentConfigurationRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:v1.agent.GetInterventionRequestRequest) + // @@protoc_insertion_point(parse_start:v1.agent.GetAgentConfigurationRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "v1.agent.GetInterventionRequestRequest.id")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } + handle_unusual: + if (tag == 0) { + goto success; } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); } success: - // @@protoc_insertion_point(parse_success:v1.agent.GetInterventionRequestRequest) + // @@protoc_insertion_point(parse_success:v1.agent.GetAgentConfigurationRequest) return true; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetInterventionRequestRequest) + // @@protoc_insertion_point(parse_failure:v1.agent.GetAgentConfigurationRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GetInterventionRequestRequest::SerializeWithCachedSizes( +void GetAgentConfigurationRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetInterventionRequestRequest) + // @@protoc_insertion_point(serialize_start:v1.agent.GetAgentConfigurationRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "v1.agent.GetInterventionRequestRequest.id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->id(), output); - } - if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:v1.agent.GetInterventionRequestRequest) + // @@protoc_insertion_point(serialize_end:v1.agent.GetAgentConfigurationRequest) } -::google::protobuf::uint8* GetInterventionRequestRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* GetAgentConfigurationRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetInterventionRequestRequest) + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetAgentConfigurationRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "v1.agent.GetInterventionRequestRequest.id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->id(), target); - } - if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetInterventionRequestRequest) + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetAgentConfigurationRequest) return target; } -size_t GetInterventionRequestRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetInterventionRequestRequest) +size_t GetAgentConfigurationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetAgentConfigurationRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2744,76 +2580,63 @@ size_t GetInterventionRequestRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1; - if (this->id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->id()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void GetInterventionRequestRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetInterventionRequestRequest) +void GetAgentConfigurationRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetAgentConfigurationRequest) GOOGLE_DCHECK_NE(&from, this); - const GetInterventionRequestRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const GetAgentConfigurationRequest* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetInterventionRequestRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetAgentConfigurationRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetInterventionRequestRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetAgentConfigurationRequest) MergeFrom(*source); } } -void GetInterventionRequestRequest::MergeFrom(const GetInterventionRequestRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetInterventionRequestRequest) +void GetAgentConfigurationRequest::MergeFrom(const GetAgentConfigurationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetAgentConfigurationRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.id().size() > 0) { - - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } } -void GetInterventionRequestRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetInterventionRequestRequest) +void GetAgentConfigurationRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetAgentConfigurationRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void GetInterventionRequestRequest::CopyFrom(const GetInterventionRequestRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetInterventionRequestRequest) +void GetAgentConfigurationRequest::CopyFrom(const GetAgentConfigurationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetAgentConfigurationRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool GetInterventionRequestRequest::IsInitialized() const { +bool GetAgentConfigurationRequest::IsInitialized() const { return true; } -void GetInterventionRequestRequest::Swap(GetInterventionRequestRequest* other) { +void GetAgentConfigurationRequest::Swap(GetAgentConfigurationRequest* other) { if (other == this) return; InternalSwap(other); } -void GetInterventionRequestRequest::InternalSwap(GetInterventionRequestRequest* other) { +void GetAgentConfigurationRequest::InternalSwap(GetAgentConfigurationRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); } -::google::protobuf::Metadata GetInterventionRequestRequest::GetMetadata() const { +::google::protobuf::Metadata GetAgentConfigurationRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto); return ::file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[kIndexInFileMessages]; } @@ -2821,70 +2644,87 @@ ::google::protobuf::Metadata GetInterventionRequestRequest::GetMetadata() const // =================================================================== -void GetInterventionResponseRequest::InitAsDefaultInstance() { +void GetAgentConfigurationResponse::InitAsDefaultInstance() { + ::v1::agent::_GetAgentConfigurationResponse_default_instance_._instance.get_mutable()->configuration_ = const_cast< ::v1::model::AgentConfiguration*>( + ::v1::model::AgentConfiguration::internal_default_instance()); } -class GetInterventionResponseRequest::HasBitSetters { +class GetAgentConfigurationResponse::HasBitSetters { public: + static const ::v1::model::AgentConfiguration& configuration(const GetAgentConfigurationResponse* msg); }; +const ::v1::model::AgentConfiguration& +GetAgentConfigurationResponse::HasBitSetters::configuration(const GetAgentConfigurationResponse* msg) { + return *msg->configuration_; +} +void GetAgentConfigurationResponse::clear_configuration() { + if (GetArenaNoVirtual() == nullptr && configuration_ != nullptr) { + delete configuration_; + } + configuration_ = nullptr; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetInterventionResponseRequest::kRequestIdFieldNumber; +const int GetAgentConfigurationResponse::kConfigurationFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -GetInterventionResponseRequest::GetInterventionResponseRequest() +GetAgentConfigurationResponse::GetAgentConfigurationResponse() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:v1.agent.GetInterventionResponseRequest) + // @@protoc_insertion_point(constructor:v1.agent.GetAgentConfigurationResponse) } -GetInterventionResponseRequest::GetInterventionResponseRequest(const GetInterventionResponseRequest& from) +GetAgentConfigurationResponse::GetAgentConfigurationResponse(const GetAgentConfigurationResponse& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.request_id().size() > 0) { - request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + if (from.has_configuration()) { + configuration_ = new ::v1::model::AgentConfiguration(*from.configuration_); + } else { + configuration_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:v1.agent.GetInterventionResponseRequest) + // @@protoc_insertion_point(copy_constructor:v1.agent.GetAgentConfigurationResponse) } -void GetInterventionResponseRequest::SharedCtor() { +void GetAgentConfigurationResponse::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto.base); - request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + &scc_info_GetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + configuration_ = nullptr; } -GetInterventionResponseRequest::~GetInterventionResponseRequest() { - // @@protoc_insertion_point(destructor:v1.agent.GetInterventionResponseRequest) +GetAgentConfigurationResponse::~GetAgentConfigurationResponse() { + // @@protoc_insertion_point(destructor:v1.agent.GetAgentConfigurationResponse) SharedDtor(); } -void GetInterventionResponseRequest::SharedDtor() { - request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +void GetAgentConfigurationResponse::SharedDtor() { + if (this != internal_default_instance()) delete configuration_; } -void GetInterventionResponseRequest::SetCachedSize(int size) const { +void GetAgentConfigurationResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const GetInterventionResponseRequest& GetInterventionResponseRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto.base); +const GetAgentConfigurationResponse& GetAgentConfigurationResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } -void GetInterventionResponseRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:v1.agent.GetInterventionResponseRequest) +void GetAgentConfigurationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.GetAgentConfigurationResponse) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && configuration_ != nullptr) { + delete configuration_; + } + configuration_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetInterventionResponseRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* GetAgentConfigurationResponse::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -2894,20 +2734,17 @@ const char* GetInterventionResponseRequest::_InternalParse(const char* begin, co ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // string request_id = 1; + // .v1.model.AgentConfiguration configuration = 1; case 1: { if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("v1.agent.GetInterventionResponseRequest.request_id"); - object = msg->mutable_request_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + parser_till_end = ::v1::model::AgentConfiguration::_InternalParse; + object = msg->mutable_configuration(); + if (size > end - ptr) goto len_delim_till_end; ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); break; } default: { @@ -2925,34 +2762,26 @@ const char* GetInterventionResponseRequest::_InternalParse(const char* begin, co } // switch } // while return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetInterventionResponseRequest::MergePartialFromCodedStream( +bool GetAgentConfigurationResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:v1.agent.GetInterventionResponseRequest) + // @@protoc_insertion_point(parse_start:v1.agent.GetAgentConfigurationResponse) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string request_id = 1; + // .v1.model.AgentConfiguration configuration = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_request_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->request_id().data(), static_cast(this->request_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "v1.agent.GetInterventionResponseRequest.request_id")); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_configuration())); } else { goto handle_unusual; } @@ -2971,65 +2800,57 @@ bool GetInterventionResponseRequest::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:v1.agent.GetInterventionResponseRequest) + // @@protoc_insertion_point(parse_success:v1.agent.GetAgentConfigurationResponse) return true; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetInterventionResponseRequest) + // @@protoc_insertion_point(parse_failure:v1.agent.GetAgentConfigurationResponse) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GetInterventionResponseRequest::SerializeWithCachedSizes( +void GetAgentConfigurationResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetInterventionResponseRequest) + // @@protoc_insertion_point(serialize_start:v1.agent.GetAgentConfigurationResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string request_id = 1; - if (this->request_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->request_id().data(), static_cast(this->request_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "v1.agent.GetInterventionResponseRequest.request_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->request_id(), output); + // .v1.model.AgentConfiguration configuration = 1; + if (this->has_configuration()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::configuration(this), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:v1.agent.GetInterventionResponseRequest) + // @@protoc_insertion_point(serialize_end:v1.agent.GetAgentConfigurationResponse) } -::google::protobuf::uint8* GetInterventionResponseRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* GetAgentConfigurationResponse::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetInterventionResponseRequest) + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetAgentConfigurationResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string request_id = 1; - if (this->request_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->request_id().data(), static_cast(this->request_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "v1.agent.GetInterventionResponseRequest.request_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->request_id(), target); + // .v1.model.AgentConfiguration configuration = 1; + if (this->has_configuration()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::configuration(this), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetInterventionResponseRequest) + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetAgentConfigurationResponse) return target; } -size_t GetInterventionResponseRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetInterventionResponseRequest) +size_t GetAgentConfigurationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetAgentConfigurationResponse) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -3041,11 +2862,11 @@ size_t GetInterventionResponseRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string request_id = 1; - if (this->request_id().size() > 0) { + // .v1.model.AgentConfiguration configuration = 1; + if (this->has_configuration()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->request_id()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *configuration_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -3053,64 +2874,480 @@ size_t GetInterventionResponseRequest::ByteSizeLong() const { return total_size; } -void GetInterventionResponseRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetInterventionResponseRequest) +void GetAgentConfigurationResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetAgentConfigurationResponse) GOOGLE_DCHECK_NE(&from, this); - const GetInterventionResponseRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const GetAgentConfigurationResponse* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetInterventionResponseRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetAgentConfigurationResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetInterventionResponseRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetAgentConfigurationResponse) MergeFrom(*source); } } -void GetInterventionResponseRequest::MergeFrom(const GetInterventionResponseRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetInterventionResponseRequest) +void GetAgentConfigurationResponse::MergeFrom(const GetAgentConfigurationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetAgentConfigurationResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.request_id().size() > 0) { - - request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + if (from.has_configuration()) { + mutable_configuration()->::v1::model::AgentConfiguration::MergeFrom(from.configuration()); } } -void GetInterventionResponseRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetInterventionResponseRequest) +void GetAgentConfigurationResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetAgentConfigurationResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void GetInterventionResponseRequest::CopyFrom(const GetInterventionResponseRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetInterventionResponseRequest) +void GetAgentConfigurationResponse::CopyFrom(const GetAgentConfigurationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetAgentConfigurationResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool GetInterventionResponseRequest::IsInitialized() const { +bool GetAgentConfigurationResponse::IsInitialized() const { return true; } -void GetInterventionResponseRequest::Swap(GetInterventionResponseRequest* other) { +void GetAgentConfigurationResponse::Swap(GetAgentConfigurationResponse* other) { if (other == this) return; InternalSwap(other); } -void GetInterventionResponseRequest::InternalSwap(GetInterventionResponseRequest* other) { +void GetAgentConfigurationResponse::InternalSwap(GetAgentConfigurationResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - request_id_.Swap(&other->request_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + swap(configuration_, other->configuration_); } -::google::protobuf::Metadata GetInterventionResponseRequest::GetMetadata() const { +::google::protobuf::Metadata GetAgentConfigurationResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void HealthRequest::InitAsDefaultInstance() { +} +class HealthRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HealthRequest::HealthRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.agent.HealthRequest) +} +HealthRequest::HealthRequest(const HealthRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:v1.agent.HealthRequest) +} + +void HealthRequest::SharedCtor() { +} + +HealthRequest::~HealthRequest() { + // @@protoc_insertion_point(destructor:v1.agent.HealthRequest) + SharedDtor(); +} + +void HealthRequest::SharedDtor() { +} + +void HealthRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HealthRequest& HealthRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HealthRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void HealthRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.HealthRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HealthRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HealthRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:v1.agent.HealthRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:v1.agent.HealthRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:v1.agent.HealthRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HealthRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:v1.agent.HealthRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:v1.agent.HealthRequest) +} + +::google::protobuf::uint8* HealthRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.HealthRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.HealthRequest) + return target; +} + +size_t HealthRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.HealthRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HealthRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.HealthRequest) + GOOGLE_DCHECK_NE(&from, this); + const HealthRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.HealthRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.HealthRequest) + MergeFrom(*source); + } +} + +void HealthRequest::MergeFrom(const HealthRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.HealthRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void HealthRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.HealthRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HealthRequest::CopyFrom(const HealthRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.HealthRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HealthRequest::IsInitialized() const { + return true; +} + +void HealthRequest::Swap(HealthRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void HealthRequest::InternalSwap(HealthRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata HealthRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void HealthResponse::InitAsDefaultInstance() { +} +class HealthResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HealthResponse::HealthResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.agent.HealthResponse) +} +HealthResponse::HealthResponse(const HealthResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:v1.agent.HealthResponse) +} + +void HealthResponse::SharedCtor() { +} + +HealthResponse::~HealthResponse() { + // @@protoc_insertion_point(destructor:v1.agent.HealthResponse) + SharedDtor(); +} + +void HealthResponse::SharedDtor() { +} + +void HealthResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HealthResponse& HealthResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HealthResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void HealthResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.HealthResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HealthResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HealthResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:v1.agent.HealthResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:v1.agent.HealthResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:v1.agent.HealthResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HealthResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:v1.agent.HealthResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:v1.agent.HealthResponse) +} + +::google::protobuf::uint8* HealthResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.HealthResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.HealthResponse) + return target; +} + +size_t HealthResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.HealthResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HealthResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.HealthResponse) + GOOGLE_DCHECK_NE(&from, this); + const HealthResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.HealthResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.HealthResponse) + MergeFrom(*source); + } +} + +void HealthResponse::MergeFrom(const HealthResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.HealthResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void HealthResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.HealthResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HealthResponse::CopyFrom(const HealthResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.HealthResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HealthResponse::IsInitialized() const { + return true; +} + +void HealthResponse::Swap(HealthResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void HealthResponse::InternalSwap(HealthResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata HealthResponse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto); return ::file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[kIndexInFileMessages]; } @@ -3127,32 +3364,35 @@ template<> PROTOBUF_NOINLINE ::v1::agent::StreamDataResponse* Arena::CreateMaybe template<> PROTOBUF_NOINLINE ::v1::agent::PostDataResponse* Arena::CreateMaybeMessage< ::v1::agent::PostDataResponse >(Arena* arena) { return Arena::CreateInternal< ::v1::agent::PostDataResponse >(arena); } -template<> PROTOBUF_NOINLINE ::v1::agent::RegisterROSTopicResponse* Arena::CreateMaybeMessage< ::v1::agent::RegisterROSTopicResponse >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::RegisterROSTopicResponse >(arena); +template<> PROTOBUF_NOINLINE ::v1::agent::GetInterventionRequestRequest* Arena::CreateMaybeMessage< ::v1::agent::GetInterventionRequestRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetInterventionRequestRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::agent::GetInterventionResponseRequest* Arena::CreateMaybeMessage< ::v1::agent::GetInterventionResponseRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetInterventionResponseRequest >(arena); } -template<> PROTOBUF_NOINLINE ::v1::agent::GetROSTopicsRequest* Arena::CreateMaybeMessage< ::v1::agent::GetROSTopicsRequest >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetROSTopicsRequest >(arena); +template<> PROTOBUF_NOINLINE ::v1::agent::GetStreamsConfigurationRequest* Arena::CreateMaybeMessage< ::v1::agent::GetStreamsConfigurationRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetStreamsConfigurationRequest >(arena); } -template<> PROTOBUF_NOINLINE ::v1::agent::GetROSTopicsResponse* Arena::CreateMaybeMessage< ::v1::agent::GetROSTopicsResponse >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetROSTopicsResponse >(arena); +template<> PROTOBUF_NOINLINE ::v1::agent::GetStreamsConfigurationResponse* Arena::CreateMaybeMessage< ::v1::agent::GetStreamsConfigurationResponse >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetStreamsConfigurationResponse >(arena); } -template<> PROTOBUF_NOINLINE ::v1::agent::GetROSTopicsSubscriptionConfigRequest* Arena::CreateMaybeMessage< ::v1::agent::GetROSTopicsSubscriptionConfigRequest >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetROSTopicsSubscriptionConfigRequest >(arena); +template<> PROTOBUF_NOINLINE ::v1::agent::GetApplicationConfigurationRequest* Arena::CreateMaybeMessage< ::v1::agent::GetApplicationConfigurationRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetApplicationConfigurationRequest >(arena); } -template<> PROTOBUF_NOINLINE ::v1::agent::GetROSTopicsSubscriptionConfigResponse* Arena::CreateMaybeMessage< ::v1::agent::GetROSTopicsSubscriptionConfigResponse >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetROSTopicsSubscriptionConfigResponse >(arena); +template<> PROTOBUF_NOINLINE ::v1::agent::GetApplicationConfigurationResponse* Arena::CreateMaybeMessage< ::v1::agent::GetApplicationConfigurationResponse >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetApplicationConfigurationResponse >(arena); } -template<> PROTOBUF_NOINLINE ::v1::agent::GetROSWorldReferenceFrameIDRequest* Arena::CreateMaybeMessage< ::v1::agent::GetROSWorldReferenceFrameIDRequest >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetROSWorldReferenceFrameIDRequest >(arena); +template<> PROTOBUF_NOINLINE ::v1::agent::GetAgentConfigurationRequest* Arena::CreateMaybeMessage< ::v1::agent::GetAgentConfigurationRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetAgentConfigurationRequest >(arena); } -template<> PROTOBUF_NOINLINE ::v1::agent::GetROSWorldReferenceFrameIDResponse* Arena::CreateMaybeMessage< ::v1::agent::GetROSWorldReferenceFrameIDResponse >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetROSWorldReferenceFrameIDResponse >(arena); +template<> PROTOBUF_NOINLINE ::v1::agent::GetAgentConfigurationResponse* Arena::CreateMaybeMessage< ::v1::agent::GetAgentConfigurationResponse >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetAgentConfigurationResponse >(arena); } -template<> PROTOBUF_NOINLINE ::v1::agent::GetInterventionRequestRequest* Arena::CreateMaybeMessage< ::v1::agent::GetInterventionRequestRequest >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetInterventionRequestRequest >(arena); +template<> PROTOBUF_NOINLINE ::v1::agent::HealthRequest* Arena::CreateMaybeMessage< ::v1::agent::HealthRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::HealthRequest >(arena); } -template<> PROTOBUF_NOINLINE ::v1::agent::GetInterventionResponseRequest* Arena::CreateMaybeMessage< ::v1::agent::GetInterventionResponseRequest >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetInterventionResponseRequest >(arena); +template<> PROTOBUF_NOINLINE ::v1::agent::HealthResponse* Arena::CreateMaybeMessage< ::v1::agent::HealthResponse >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::HealthResponse >(arena); } } // namespace protobuf } // namespace google diff --git a/examples/cpp/protos/agent/v1/agent.pb.h b/examples/cpp/protos/agent/v1/agent.pb.h index 721bdde..684b674 100755 --- a/examples/cpp/protos/agent/v1/agent.pb.h +++ b/examples/cpp/protos/agent/v1/agent.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#if 3007001 < 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. @@ -33,7 +33,7 @@ #include #include "protos/model/v1/datapoint.pb.h" #include "protos/model/v1/intervention.pb.h" -#include "protos/model/v1/ros.pb.h" +#include "protos/model/v1/config.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_protos_2fagent_2fv1_2fagent_2eproto @@ -44,7 +44,7 @@ struct TableStruct_protos_2fagent_2fv1_2fagent_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[11] + static const ::google::protobuf::internal::ParseTable schema[12] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; @@ -53,36 +53,39 @@ struct TableStruct_protos_2fagent_2fv1_2fagent_2eproto { void AddDescriptors_protos_2fagent_2fv1_2fagent_2eproto(); namespace v1 { namespace agent { +class GetAgentConfigurationRequest; +class GetAgentConfigurationRequestDefaultTypeInternal; +extern GetAgentConfigurationRequestDefaultTypeInternal _GetAgentConfigurationRequest_default_instance_; +class GetAgentConfigurationResponse; +class GetAgentConfigurationResponseDefaultTypeInternal; +extern GetAgentConfigurationResponseDefaultTypeInternal _GetAgentConfigurationResponse_default_instance_; +class GetApplicationConfigurationRequest; +class GetApplicationConfigurationRequestDefaultTypeInternal; +extern GetApplicationConfigurationRequestDefaultTypeInternal _GetApplicationConfigurationRequest_default_instance_; +class GetApplicationConfigurationResponse; +class GetApplicationConfigurationResponseDefaultTypeInternal; +extern GetApplicationConfigurationResponseDefaultTypeInternal _GetApplicationConfigurationResponse_default_instance_; class GetInterventionRequestRequest; class GetInterventionRequestRequestDefaultTypeInternal; extern GetInterventionRequestRequestDefaultTypeInternal _GetInterventionRequestRequest_default_instance_; class GetInterventionResponseRequest; class GetInterventionResponseRequestDefaultTypeInternal; extern GetInterventionResponseRequestDefaultTypeInternal _GetInterventionResponseRequest_default_instance_; -class GetROSTopicsRequest; -class GetROSTopicsRequestDefaultTypeInternal; -extern GetROSTopicsRequestDefaultTypeInternal _GetROSTopicsRequest_default_instance_; -class GetROSTopicsResponse; -class GetROSTopicsResponseDefaultTypeInternal; -extern GetROSTopicsResponseDefaultTypeInternal _GetROSTopicsResponse_default_instance_; -class GetROSTopicsSubscriptionConfigRequest; -class GetROSTopicsSubscriptionConfigRequestDefaultTypeInternal; -extern GetROSTopicsSubscriptionConfigRequestDefaultTypeInternal _GetROSTopicsSubscriptionConfigRequest_default_instance_; -class GetROSTopicsSubscriptionConfigResponse; -class GetROSTopicsSubscriptionConfigResponseDefaultTypeInternal; -extern GetROSTopicsSubscriptionConfigResponseDefaultTypeInternal _GetROSTopicsSubscriptionConfigResponse_default_instance_; -class GetROSWorldReferenceFrameIDRequest; -class GetROSWorldReferenceFrameIDRequestDefaultTypeInternal; -extern GetROSWorldReferenceFrameIDRequestDefaultTypeInternal _GetROSWorldReferenceFrameIDRequest_default_instance_; -class GetROSWorldReferenceFrameIDResponse; -class GetROSWorldReferenceFrameIDResponseDefaultTypeInternal; -extern GetROSWorldReferenceFrameIDResponseDefaultTypeInternal _GetROSWorldReferenceFrameIDResponse_default_instance_; +class GetStreamsConfigurationRequest; +class GetStreamsConfigurationRequestDefaultTypeInternal; +extern GetStreamsConfigurationRequestDefaultTypeInternal _GetStreamsConfigurationRequest_default_instance_; +class GetStreamsConfigurationResponse; +class GetStreamsConfigurationResponseDefaultTypeInternal; +extern GetStreamsConfigurationResponseDefaultTypeInternal _GetStreamsConfigurationResponse_default_instance_; +class HealthRequest; +class HealthRequestDefaultTypeInternal; +extern HealthRequestDefaultTypeInternal _HealthRequest_default_instance_; +class HealthResponse; +class HealthResponseDefaultTypeInternal; +extern HealthResponseDefaultTypeInternal _HealthResponse_default_instance_; class PostDataResponse; class PostDataResponseDefaultTypeInternal; extern PostDataResponseDefaultTypeInternal _PostDataResponse_default_instance_; -class RegisterROSTopicResponse; -class RegisterROSTopicResponseDefaultTypeInternal; -extern RegisterROSTopicResponseDefaultTypeInternal _RegisterROSTopicResponse_default_instance_; class StreamDataResponse; class StreamDataResponseDefaultTypeInternal; extern StreamDataResponseDefaultTypeInternal _StreamDataResponse_default_instance_; @@ -90,16 +93,17 @@ extern StreamDataResponseDefaultTypeInternal _StreamDataResponse_default_instanc } // namespace v1 namespace google { namespace protobuf { +template<> ::v1::agent::GetAgentConfigurationRequest* Arena::CreateMaybeMessage<::v1::agent::GetAgentConfigurationRequest>(Arena*); +template<> ::v1::agent::GetAgentConfigurationResponse* Arena::CreateMaybeMessage<::v1::agent::GetAgentConfigurationResponse>(Arena*); +template<> ::v1::agent::GetApplicationConfigurationRequest* Arena::CreateMaybeMessage<::v1::agent::GetApplicationConfigurationRequest>(Arena*); +template<> ::v1::agent::GetApplicationConfigurationResponse* Arena::CreateMaybeMessage<::v1::agent::GetApplicationConfigurationResponse>(Arena*); template<> ::v1::agent::GetInterventionRequestRequest* Arena::CreateMaybeMessage<::v1::agent::GetInterventionRequestRequest>(Arena*); template<> ::v1::agent::GetInterventionResponseRequest* Arena::CreateMaybeMessage<::v1::agent::GetInterventionResponseRequest>(Arena*); -template<> ::v1::agent::GetROSTopicsRequest* Arena::CreateMaybeMessage<::v1::agent::GetROSTopicsRequest>(Arena*); -template<> ::v1::agent::GetROSTopicsResponse* Arena::CreateMaybeMessage<::v1::agent::GetROSTopicsResponse>(Arena*); -template<> ::v1::agent::GetROSTopicsSubscriptionConfigRequest* Arena::CreateMaybeMessage<::v1::agent::GetROSTopicsSubscriptionConfigRequest>(Arena*); -template<> ::v1::agent::GetROSTopicsSubscriptionConfigResponse* Arena::CreateMaybeMessage<::v1::agent::GetROSTopicsSubscriptionConfigResponse>(Arena*); -template<> ::v1::agent::GetROSWorldReferenceFrameIDRequest* Arena::CreateMaybeMessage<::v1::agent::GetROSWorldReferenceFrameIDRequest>(Arena*); -template<> ::v1::agent::GetROSWorldReferenceFrameIDResponse* Arena::CreateMaybeMessage<::v1::agent::GetROSWorldReferenceFrameIDResponse>(Arena*); +template<> ::v1::agent::GetStreamsConfigurationRequest* Arena::CreateMaybeMessage<::v1::agent::GetStreamsConfigurationRequest>(Arena*); +template<> ::v1::agent::GetStreamsConfigurationResponse* Arena::CreateMaybeMessage<::v1::agent::GetStreamsConfigurationResponse>(Arena*); +template<> ::v1::agent::HealthRequest* Arena::CreateMaybeMessage<::v1::agent::HealthRequest>(Arena*); +template<> ::v1::agent::HealthResponse* Arena::CreateMaybeMessage<::v1::agent::HealthResponse>(Arena*); template<> ::v1::agent::PostDataResponse* Arena::CreateMaybeMessage<::v1::agent::PostDataResponse>(Arena*); -template<> ::v1::agent::RegisterROSTopicResponse* Arena::CreateMaybeMessage<::v1::agent::RegisterROSTopicResponse>(Arena*); template<> ::v1::agent::StreamDataResponse* Arena::CreateMaybeMessage<::v1::agent::StreamDataResponse>(Arena*); } // namespace protobuf } // namespace google @@ -108,7 +112,7 @@ namespace agent { // =================================================================== -class StreamDataResponse final : +class StreamDataResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.StreamDataResponse) */ { public: StreamDataResponse(); @@ -213,7 +217,7 @@ class StreamDataResponse final : }; // ------------------------------------------------------------------- -class PostDataResponse final : +class PostDataResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.PostDataResponse) */ { public: PostDataResponse(); @@ -318,25 +322,25 @@ class PostDataResponse final : }; // ------------------------------------------------------------------- -class RegisterROSTopicResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.RegisterROSTopicResponse) */ { +class GetInterventionRequestRequest : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetInterventionRequestRequest) */ { public: - RegisterROSTopicResponse(); - virtual ~RegisterROSTopicResponse(); + GetInterventionRequestRequest(); + virtual ~GetInterventionRequestRequest(); - RegisterROSTopicResponse(const RegisterROSTopicResponse& from); + GetInterventionRequestRequest(const GetInterventionRequestRequest& from); - inline RegisterROSTopicResponse& operator=(const RegisterROSTopicResponse& from) { + inline GetInterventionRequestRequest& operator=(const GetInterventionRequestRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - RegisterROSTopicResponse(RegisterROSTopicResponse&& from) noexcept - : RegisterROSTopicResponse() { + GetInterventionRequestRequest(GetInterventionRequestRequest&& from) noexcept + : GetInterventionRequestRequest() { *this = ::std::move(from); } - inline RegisterROSTopicResponse& operator=(RegisterROSTopicResponse&& from) noexcept { + inline GetInterventionRequestRequest& operator=(GetInterventionRequestRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -348,34 +352,34 @@ class RegisterROSTopicResponse final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const RegisterROSTopicResponse& default_instance(); + static const GetInterventionRequestRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RegisterROSTopicResponse* internal_default_instance() { - return reinterpret_cast( - &_RegisterROSTopicResponse_default_instance_); + static inline const GetInterventionRequestRequest* internal_default_instance() { + return reinterpret_cast( + &_GetInterventionRequestRequest_default_instance_); } static constexpr int kIndexInFileMessages = 2; - void Swap(RegisterROSTopicResponse* other); - friend void swap(RegisterROSTopicResponse& a, RegisterROSTopicResponse& b) { + void Swap(GetInterventionRequestRequest* other); + friend void swap(GetInterventionRequestRequest& a, GetInterventionRequestRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline RegisterROSTopicResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline GetInterventionRequestRequest* New() const final { + return CreateMaybeMessage(nullptr); } - RegisterROSTopicResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetInterventionRequestRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const RegisterROSTopicResponse& from); - void MergeFrom(const RegisterROSTopicResponse& from); + void CopyFrom(const GetInterventionRequestRequest& from); + void MergeFrom(const GetInterventionRequestRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -397,7 +401,7 @@ class RegisterROSTopicResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(RegisterROSTopicResponse* other); + void InternalSwap(GetInterventionRequestRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -413,35 +417,50 @@ class RegisterROSTopicResponse final : // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:v1.agent.RegisterROSTopicResponse) + // string id = 1; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::std::string& id() const; + void set_id(const ::std::string& value); + #if LANG_CXX11 + void set_id(::std::string&& value); + #endif + void set_id(const char* value); + void set_id(const char* value, size_t size); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); + + // @@protoc_insertion_point(class_scope:v1.agent.GetInterventionRequestRequest) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- -class GetROSTopicsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetROSTopicsRequest) */ { +class GetInterventionResponseRequest : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetInterventionResponseRequest) */ { public: - GetROSTopicsRequest(); - virtual ~GetROSTopicsRequest(); + GetInterventionResponseRequest(); + virtual ~GetInterventionResponseRequest(); - GetROSTopicsRequest(const GetROSTopicsRequest& from); + GetInterventionResponseRequest(const GetInterventionResponseRequest& from); - inline GetROSTopicsRequest& operator=(const GetROSTopicsRequest& from) { + inline GetInterventionResponseRequest& operator=(const GetInterventionResponseRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - GetROSTopicsRequest(GetROSTopicsRequest&& from) noexcept - : GetROSTopicsRequest() { + GetInterventionResponseRequest(GetInterventionResponseRequest&& from) noexcept + : GetInterventionResponseRequest() { *this = ::std::move(from); } - inline GetROSTopicsRequest& operator=(GetROSTopicsRequest&& from) noexcept { + inline GetInterventionResponseRequest& operator=(GetInterventionResponseRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -453,34 +472,34 @@ class GetROSTopicsRequest final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const GetROSTopicsRequest& default_instance(); + static const GetInterventionResponseRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetROSTopicsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetROSTopicsRequest_default_instance_); + static inline const GetInterventionResponseRequest* internal_default_instance() { + return reinterpret_cast( + &_GetInterventionResponseRequest_default_instance_); } static constexpr int kIndexInFileMessages = 3; - void Swap(GetROSTopicsRequest* other); - friend void swap(GetROSTopicsRequest& a, GetROSTopicsRequest& b) { + void Swap(GetInterventionResponseRequest* other); + friend void swap(GetInterventionResponseRequest& a, GetInterventionResponseRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline GetROSTopicsRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline GetInterventionResponseRequest* New() const final { + return CreateMaybeMessage(nullptr); } - GetROSTopicsRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetInterventionResponseRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetROSTopicsRequest& from); - void MergeFrom(const GetROSTopicsRequest& from); + void CopyFrom(const GetInterventionResponseRequest& from); + void MergeFrom(const GetInterventionResponseRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -502,7 +521,7 @@ class GetROSTopicsRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetROSTopicsRequest* other); + void InternalSwap(GetInterventionResponseRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -518,35 +537,50 @@ class GetROSTopicsRequest final : // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:v1.agent.GetROSTopicsRequest) + // string request_id = 1; + void clear_request_id(); + static const int kRequestIdFieldNumber = 1; + const ::std::string& request_id() const; + void set_request_id(const ::std::string& value); + #if LANG_CXX11 + void set_request_id(::std::string&& value); + #endif + void set_request_id(const char* value); + void set_request_id(const char* value, size_t size); + ::std::string* mutable_request_id(); + ::std::string* release_request_id(); + void set_allocated_request_id(::std::string* request_id); + + // @@protoc_insertion_point(class_scope:v1.agent.GetInterventionResponseRequest) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr request_id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- -class GetROSTopicsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetROSTopicsResponse) */ { +class GetStreamsConfigurationRequest : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetStreamsConfigurationRequest) */ { public: - GetROSTopicsResponse(); - virtual ~GetROSTopicsResponse(); + GetStreamsConfigurationRequest(); + virtual ~GetStreamsConfigurationRequest(); - GetROSTopicsResponse(const GetROSTopicsResponse& from); + GetStreamsConfigurationRequest(const GetStreamsConfigurationRequest& from); - inline GetROSTopicsResponse& operator=(const GetROSTopicsResponse& from) { + inline GetStreamsConfigurationRequest& operator=(const GetStreamsConfigurationRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - GetROSTopicsResponse(GetROSTopicsResponse&& from) noexcept - : GetROSTopicsResponse() { + GetStreamsConfigurationRequest(GetStreamsConfigurationRequest&& from) noexcept + : GetStreamsConfigurationRequest() { *this = ::std::move(from); } - inline GetROSTopicsResponse& operator=(GetROSTopicsResponse&& from) noexcept { + inline GetStreamsConfigurationRequest& operator=(GetStreamsConfigurationRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -558,34 +592,34 @@ class GetROSTopicsResponse final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const GetROSTopicsResponse& default_instance(); + static const GetStreamsConfigurationRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetROSTopicsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetROSTopicsResponse_default_instance_); + static inline const GetStreamsConfigurationRequest* internal_default_instance() { + return reinterpret_cast( + &_GetStreamsConfigurationRequest_default_instance_); } static constexpr int kIndexInFileMessages = 4; - void Swap(GetROSTopicsResponse* other); - friend void swap(GetROSTopicsResponse& a, GetROSTopicsResponse& b) { + void Swap(GetStreamsConfigurationRequest* other); + friend void swap(GetStreamsConfigurationRequest& a, GetStreamsConfigurationRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline GetROSTopicsResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline GetStreamsConfigurationRequest* New() const final { + return CreateMaybeMessage(nullptr); } - GetROSTopicsResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetStreamsConfigurationRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetROSTopicsResponse& from); - void MergeFrom(const GetROSTopicsResponse& from); + void CopyFrom(const GetStreamsConfigurationRequest& from); + void MergeFrom(const GetStreamsConfigurationRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -607,7 +641,7 @@ class GetROSTopicsResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetROSTopicsResponse* other); + void InternalSwap(GetStreamsConfigurationRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -623,58 +657,35 @@ class GetROSTopicsResponse final : // accessors ------------------------------------------------------- - // repeated string topics = 1; - int topics_size() const; - void clear_topics(); - static const int kTopicsFieldNumber = 1; - const ::std::string& topics(int index) const; - ::std::string* mutable_topics(int index); - void set_topics(int index, const ::std::string& value); - #if LANG_CXX11 - void set_topics(int index, ::std::string&& value); - #endif - void set_topics(int index, const char* value); - void set_topics(int index, const char* value, size_t size); - ::std::string* add_topics(); - void add_topics(const ::std::string& value); - #if LANG_CXX11 - void add_topics(::std::string&& value); - #endif - void add_topics(const char* value); - void add_topics(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& topics() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_topics(); - - // @@protoc_insertion_point(class_scope:v1.agent.GetROSTopicsResponse) + // @@protoc_insertion_point(class_scope:v1.agent.GetStreamsConfigurationRequest) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> topics_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- -class GetROSTopicsSubscriptionConfigRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetROSTopicsSubscriptionConfigRequest) */ { +class GetStreamsConfigurationResponse : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetStreamsConfigurationResponse) */ { public: - GetROSTopicsSubscriptionConfigRequest(); - virtual ~GetROSTopicsSubscriptionConfigRequest(); + GetStreamsConfigurationResponse(); + virtual ~GetStreamsConfigurationResponse(); - GetROSTopicsSubscriptionConfigRequest(const GetROSTopicsSubscriptionConfigRequest& from); + GetStreamsConfigurationResponse(const GetStreamsConfigurationResponse& from); - inline GetROSTopicsSubscriptionConfigRequest& operator=(const GetROSTopicsSubscriptionConfigRequest& from) { + inline GetStreamsConfigurationResponse& operator=(const GetStreamsConfigurationResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - GetROSTopicsSubscriptionConfigRequest(GetROSTopicsSubscriptionConfigRequest&& from) noexcept - : GetROSTopicsSubscriptionConfigRequest() { + GetStreamsConfigurationResponse(GetStreamsConfigurationResponse&& from) noexcept + : GetStreamsConfigurationResponse() { *this = ::std::move(from); } - inline GetROSTopicsSubscriptionConfigRequest& operator=(GetROSTopicsSubscriptionConfigRequest&& from) noexcept { + inline GetStreamsConfigurationResponse& operator=(GetStreamsConfigurationResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -686,34 +697,34 @@ class GetROSTopicsSubscriptionConfigRequest final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const GetROSTopicsSubscriptionConfigRequest& default_instance(); + static const GetStreamsConfigurationResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetROSTopicsSubscriptionConfigRequest* internal_default_instance() { - return reinterpret_cast( - &_GetROSTopicsSubscriptionConfigRequest_default_instance_); + static inline const GetStreamsConfigurationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetStreamsConfigurationResponse_default_instance_); } static constexpr int kIndexInFileMessages = 5; - void Swap(GetROSTopicsSubscriptionConfigRequest* other); - friend void swap(GetROSTopicsSubscriptionConfigRequest& a, GetROSTopicsSubscriptionConfigRequest& b) { + void Swap(GetStreamsConfigurationResponse* other); + friend void swap(GetStreamsConfigurationResponse& a, GetStreamsConfigurationResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline GetROSTopicsSubscriptionConfigRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline GetStreamsConfigurationResponse* New() const final { + return CreateMaybeMessage(nullptr); } - GetROSTopicsSubscriptionConfigRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetStreamsConfigurationResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetROSTopicsSubscriptionConfigRequest& from); - void MergeFrom(const GetROSTopicsSubscriptionConfigRequest& from); + void CopyFrom(const GetStreamsConfigurationResponse& from); + void MergeFrom(const GetStreamsConfigurationResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -735,7 +746,7 @@ class GetROSTopicsSubscriptionConfigRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetROSTopicsSubscriptionConfigRequest* other); + void InternalSwap(GetStreamsConfigurationResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -751,35 +762,48 @@ class GetROSTopicsSubscriptionConfigRequest final : // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:v1.agent.GetROSTopicsSubscriptionConfigRequest) + // repeated .v1.model.StreamConfiguration streams = 1; + int streams_size() const; + void clear_streams(); + static const int kStreamsFieldNumber = 1; + ::v1::model::StreamConfiguration* mutable_streams(int index); + ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >* + mutable_streams(); + const ::v1::model::StreamConfiguration& streams(int index) const; + ::v1::model::StreamConfiguration* add_streams(); + const ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >& + streams() const; + + // @@protoc_insertion_point(class_scope:v1.agent.GetStreamsConfigurationResponse) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration > streams_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- -class GetROSTopicsSubscriptionConfigResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetROSTopicsSubscriptionConfigResponse) */ { +class GetApplicationConfigurationRequest : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetApplicationConfigurationRequest) */ { public: - GetROSTopicsSubscriptionConfigResponse(); - virtual ~GetROSTopicsSubscriptionConfigResponse(); + GetApplicationConfigurationRequest(); + virtual ~GetApplicationConfigurationRequest(); - GetROSTopicsSubscriptionConfigResponse(const GetROSTopicsSubscriptionConfigResponse& from); + GetApplicationConfigurationRequest(const GetApplicationConfigurationRequest& from); - inline GetROSTopicsSubscriptionConfigResponse& operator=(const GetROSTopicsSubscriptionConfigResponse& from) { + inline GetApplicationConfigurationRequest& operator=(const GetApplicationConfigurationRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - GetROSTopicsSubscriptionConfigResponse(GetROSTopicsSubscriptionConfigResponse&& from) noexcept - : GetROSTopicsSubscriptionConfigResponse() { + GetApplicationConfigurationRequest(GetApplicationConfigurationRequest&& from) noexcept + : GetApplicationConfigurationRequest() { *this = ::std::move(from); } - inline GetROSTopicsSubscriptionConfigResponse& operator=(GetROSTopicsSubscriptionConfigResponse&& from) noexcept { + inline GetApplicationConfigurationRequest& operator=(GetApplicationConfigurationRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -791,34 +815,34 @@ class GetROSTopicsSubscriptionConfigResponse final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const GetROSTopicsSubscriptionConfigResponse& default_instance(); + static const GetApplicationConfigurationRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetROSTopicsSubscriptionConfigResponse* internal_default_instance() { - return reinterpret_cast( - &_GetROSTopicsSubscriptionConfigResponse_default_instance_); + static inline const GetApplicationConfigurationRequest* internal_default_instance() { + return reinterpret_cast( + &_GetApplicationConfigurationRequest_default_instance_); } static constexpr int kIndexInFileMessages = 6; - void Swap(GetROSTopicsSubscriptionConfigResponse* other); - friend void swap(GetROSTopicsSubscriptionConfigResponse& a, GetROSTopicsSubscriptionConfigResponse& b) { + void Swap(GetApplicationConfigurationRequest* other); + friend void swap(GetApplicationConfigurationRequest& a, GetApplicationConfigurationRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline GetROSTopicsSubscriptionConfigResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline GetApplicationConfigurationRequest* New() const final { + return CreateMaybeMessage(nullptr); } - GetROSTopicsSubscriptionConfigResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetApplicationConfigurationRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetROSTopicsSubscriptionConfigResponse& from); - void MergeFrom(const GetROSTopicsSubscriptionConfigResponse& from); + void CopyFrom(const GetApplicationConfigurationRequest& from); + void MergeFrom(const GetApplicationConfigurationRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -840,7 +864,7 @@ class GetROSTopicsSubscriptionConfigResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetROSTopicsSubscriptionConfigResponse* other); + void InternalSwap(GetApplicationConfigurationRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -856,48 +880,35 @@ class GetROSTopicsSubscriptionConfigResponse final : // accessors ------------------------------------------------------- - // repeated .v1.model.ROSTopicSubscriptionConfig topics = 1; - int topics_size() const; - void clear_topics(); - static const int kTopicsFieldNumber = 1; - ::v1::model::ROSTopicSubscriptionConfig* mutable_topics(int index); - ::google::protobuf::RepeatedPtrField< ::v1::model::ROSTopicSubscriptionConfig >* - mutable_topics(); - const ::v1::model::ROSTopicSubscriptionConfig& topics(int index) const; - ::v1::model::ROSTopicSubscriptionConfig* add_topics(); - const ::google::protobuf::RepeatedPtrField< ::v1::model::ROSTopicSubscriptionConfig >& - topics() const; - - // @@protoc_insertion_point(class_scope:v1.agent.GetROSTopicsSubscriptionConfigResponse) + // @@protoc_insertion_point(class_scope:v1.agent.GetApplicationConfigurationRequest) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::v1::model::ROSTopicSubscriptionConfig > topics_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- -class GetROSWorldReferenceFrameIDRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetROSWorldReferenceFrameIDRequest) */ { +class GetApplicationConfigurationResponse : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetApplicationConfigurationResponse) */ { public: - GetROSWorldReferenceFrameIDRequest(); - virtual ~GetROSWorldReferenceFrameIDRequest(); + GetApplicationConfigurationResponse(); + virtual ~GetApplicationConfigurationResponse(); - GetROSWorldReferenceFrameIDRequest(const GetROSWorldReferenceFrameIDRequest& from); + GetApplicationConfigurationResponse(const GetApplicationConfigurationResponse& from); - inline GetROSWorldReferenceFrameIDRequest& operator=(const GetROSWorldReferenceFrameIDRequest& from) { + inline GetApplicationConfigurationResponse& operator=(const GetApplicationConfigurationResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - GetROSWorldReferenceFrameIDRequest(GetROSWorldReferenceFrameIDRequest&& from) noexcept - : GetROSWorldReferenceFrameIDRequest() { + GetApplicationConfigurationResponse(GetApplicationConfigurationResponse&& from) noexcept + : GetApplicationConfigurationResponse() { *this = ::std::move(from); } - inline GetROSWorldReferenceFrameIDRequest& operator=(GetROSWorldReferenceFrameIDRequest&& from) noexcept { + inline GetApplicationConfigurationResponse& operator=(GetApplicationConfigurationResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -909,34 +920,34 @@ class GetROSWorldReferenceFrameIDRequest final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const GetROSWorldReferenceFrameIDRequest& default_instance(); + static const GetApplicationConfigurationResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetROSWorldReferenceFrameIDRequest* internal_default_instance() { - return reinterpret_cast( - &_GetROSWorldReferenceFrameIDRequest_default_instance_); + static inline const GetApplicationConfigurationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetApplicationConfigurationResponse_default_instance_); } static constexpr int kIndexInFileMessages = 7; - void Swap(GetROSWorldReferenceFrameIDRequest* other); - friend void swap(GetROSWorldReferenceFrameIDRequest& a, GetROSWorldReferenceFrameIDRequest& b) { + void Swap(GetApplicationConfigurationResponse* other); + friend void swap(GetApplicationConfigurationResponse& a, GetApplicationConfigurationResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline GetROSWorldReferenceFrameIDRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline GetApplicationConfigurationResponse* New() const final { + return CreateMaybeMessage(nullptr); } - GetROSWorldReferenceFrameIDRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetApplicationConfigurationResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetROSWorldReferenceFrameIDRequest& from); - void MergeFrom(const GetROSWorldReferenceFrameIDRequest& from); + void CopyFrom(const GetApplicationConfigurationResponse& from); + void MergeFrom(const GetApplicationConfigurationResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -958,7 +969,7 @@ class GetROSWorldReferenceFrameIDRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetROSWorldReferenceFrameIDRequest* other); + void InternalSwap(GetApplicationConfigurationResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -974,35 +985,45 @@ class GetROSWorldReferenceFrameIDRequest final : // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:v1.agent.GetROSWorldReferenceFrameIDRequest) + // .v1.model.ApplicationConfiguration configuration = 1; + bool has_configuration() const; + void clear_configuration(); + static const int kConfigurationFieldNumber = 1; + const ::v1::model::ApplicationConfiguration& configuration() const; + ::v1::model::ApplicationConfiguration* release_configuration(); + ::v1::model::ApplicationConfiguration* mutable_configuration(); + void set_allocated_configuration(::v1::model::ApplicationConfiguration* configuration); + + // @@protoc_insertion_point(class_scope:v1.agent.GetApplicationConfigurationResponse) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::v1::model::ApplicationConfiguration* configuration_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- -class GetROSWorldReferenceFrameIDResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetROSWorldReferenceFrameIDResponse) */ { +class GetAgentConfigurationRequest : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetAgentConfigurationRequest) */ { public: - GetROSWorldReferenceFrameIDResponse(); - virtual ~GetROSWorldReferenceFrameIDResponse(); + GetAgentConfigurationRequest(); + virtual ~GetAgentConfigurationRequest(); - GetROSWorldReferenceFrameIDResponse(const GetROSWorldReferenceFrameIDResponse& from); + GetAgentConfigurationRequest(const GetAgentConfigurationRequest& from); - inline GetROSWorldReferenceFrameIDResponse& operator=(const GetROSWorldReferenceFrameIDResponse& from) { + inline GetAgentConfigurationRequest& operator=(const GetAgentConfigurationRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - GetROSWorldReferenceFrameIDResponse(GetROSWorldReferenceFrameIDResponse&& from) noexcept - : GetROSWorldReferenceFrameIDResponse() { + GetAgentConfigurationRequest(GetAgentConfigurationRequest&& from) noexcept + : GetAgentConfigurationRequest() { *this = ::std::move(from); } - inline GetROSWorldReferenceFrameIDResponse& operator=(GetROSWorldReferenceFrameIDResponse&& from) noexcept { + inline GetAgentConfigurationRequest& operator=(GetAgentConfigurationRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1014,34 +1035,34 @@ class GetROSWorldReferenceFrameIDResponse final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const GetROSWorldReferenceFrameIDResponse& default_instance(); + static const GetAgentConfigurationRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetROSWorldReferenceFrameIDResponse* internal_default_instance() { - return reinterpret_cast( - &_GetROSWorldReferenceFrameIDResponse_default_instance_); + static inline const GetAgentConfigurationRequest* internal_default_instance() { + return reinterpret_cast( + &_GetAgentConfigurationRequest_default_instance_); } static constexpr int kIndexInFileMessages = 8; - void Swap(GetROSWorldReferenceFrameIDResponse* other); - friend void swap(GetROSWorldReferenceFrameIDResponse& a, GetROSWorldReferenceFrameIDResponse& b) { + void Swap(GetAgentConfigurationRequest* other); + friend void swap(GetAgentConfigurationRequest& a, GetAgentConfigurationRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline GetROSWorldReferenceFrameIDResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline GetAgentConfigurationRequest* New() const final { + return CreateMaybeMessage(nullptr); } - GetROSWorldReferenceFrameIDResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetAgentConfigurationRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetROSWorldReferenceFrameIDResponse& from); - void MergeFrom(const GetROSWorldReferenceFrameIDResponse& from); + void CopyFrom(const GetAgentConfigurationRequest& from); + void MergeFrom(const GetAgentConfigurationRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1063,7 +1084,7 @@ class GetROSWorldReferenceFrameIDResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetROSWorldReferenceFrameIDResponse* other); + void InternalSwap(GetAgentConfigurationRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1079,50 +1100,35 @@ class GetROSWorldReferenceFrameIDResponse final : // accessors ------------------------------------------------------- - // string world_reference_frame_id = 1; - void clear_world_reference_frame_id(); - static const int kWorldReferenceFrameIdFieldNumber = 1; - const ::std::string& world_reference_frame_id() const; - void set_world_reference_frame_id(const ::std::string& value); - #if LANG_CXX11 - void set_world_reference_frame_id(::std::string&& value); - #endif - void set_world_reference_frame_id(const char* value); - void set_world_reference_frame_id(const char* value, size_t size); - ::std::string* mutable_world_reference_frame_id(); - ::std::string* release_world_reference_frame_id(); - void set_allocated_world_reference_frame_id(::std::string* world_reference_frame_id); - - // @@protoc_insertion_point(class_scope:v1.agent.GetROSWorldReferenceFrameIDResponse) + // @@protoc_insertion_point(class_scope:v1.agent.GetAgentConfigurationRequest) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr world_reference_frame_id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- -class GetInterventionRequestRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetInterventionRequestRequest) */ { +class GetAgentConfigurationResponse : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetAgentConfigurationResponse) */ { public: - GetInterventionRequestRequest(); - virtual ~GetInterventionRequestRequest(); + GetAgentConfigurationResponse(); + virtual ~GetAgentConfigurationResponse(); - GetInterventionRequestRequest(const GetInterventionRequestRequest& from); + GetAgentConfigurationResponse(const GetAgentConfigurationResponse& from); - inline GetInterventionRequestRequest& operator=(const GetInterventionRequestRequest& from) { + inline GetAgentConfigurationResponse& operator=(const GetAgentConfigurationResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - GetInterventionRequestRequest(GetInterventionRequestRequest&& from) noexcept - : GetInterventionRequestRequest() { + GetAgentConfigurationResponse(GetAgentConfigurationResponse&& from) noexcept + : GetAgentConfigurationResponse() { *this = ::std::move(from); } - inline GetInterventionRequestRequest& operator=(GetInterventionRequestRequest&& from) noexcept { + inline GetAgentConfigurationResponse& operator=(GetAgentConfigurationResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1134,34 +1140,34 @@ class GetInterventionRequestRequest final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const GetInterventionRequestRequest& default_instance(); + static const GetAgentConfigurationResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetInterventionRequestRequest* internal_default_instance() { - return reinterpret_cast( - &_GetInterventionRequestRequest_default_instance_); + static inline const GetAgentConfigurationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetAgentConfigurationResponse_default_instance_); } static constexpr int kIndexInFileMessages = 9; - void Swap(GetInterventionRequestRequest* other); - friend void swap(GetInterventionRequestRequest& a, GetInterventionRequestRequest& b) { + void Swap(GetAgentConfigurationResponse* other); + friend void swap(GetAgentConfigurationResponse& a, GetAgentConfigurationResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline GetInterventionRequestRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline GetAgentConfigurationResponse* New() const final { + return CreateMaybeMessage(nullptr); } - GetInterventionRequestRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + GetAgentConfigurationResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetInterventionRequestRequest& from); - void MergeFrom(const GetInterventionRequestRequest& from); + void CopyFrom(const GetAgentConfigurationResponse& from); + void MergeFrom(const GetAgentConfigurationResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1183,7 +1189,7 @@ class GetInterventionRequestRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetInterventionRequestRequest* other); + void InternalSwap(GetAgentConfigurationResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1199,50 +1205,45 @@ class GetInterventionRequestRequest final : // accessors ------------------------------------------------------- - // string id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::std::string& id() const; - void set_id(const ::std::string& value); - #if LANG_CXX11 - void set_id(::std::string&& value); - #endif - void set_id(const char* value); - void set_id(const char* value, size_t size); - ::std::string* mutable_id(); - ::std::string* release_id(); - void set_allocated_id(::std::string* id); + // .v1.model.AgentConfiguration configuration = 1; + bool has_configuration() const; + void clear_configuration(); + static const int kConfigurationFieldNumber = 1; + const ::v1::model::AgentConfiguration& configuration() const; + ::v1::model::AgentConfiguration* release_configuration(); + ::v1::model::AgentConfiguration* mutable_configuration(); + void set_allocated_configuration(::v1::model::AgentConfiguration* configuration); - // @@protoc_insertion_point(class_scope:v1.agent.GetInterventionRequestRequest) + // @@protoc_insertion_point(class_scope:v1.agent.GetAgentConfigurationResponse) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr id_; + ::v1::model::AgentConfiguration* configuration_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- -class GetInterventionResponseRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetInterventionResponseRequest) */ { +class HealthRequest : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.HealthRequest) */ { public: - GetInterventionResponseRequest(); - virtual ~GetInterventionResponseRequest(); + HealthRequest(); + virtual ~HealthRequest(); - GetInterventionResponseRequest(const GetInterventionResponseRequest& from); + HealthRequest(const HealthRequest& from); - inline GetInterventionResponseRequest& operator=(const GetInterventionResponseRequest& from) { + inline HealthRequest& operator=(const HealthRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - GetInterventionResponseRequest(GetInterventionResponseRequest&& from) noexcept - : GetInterventionResponseRequest() { + HealthRequest(HealthRequest&& from) noexcept + : HealthRequest() { *this = ::std::move(from); } - inline GetInterventionResponseRequest& operator=(GetInterventionResponseRequest&& from) noexcept { + inline HealthRequest& operator=(HealthRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1254,34 +1255,34 @@ class GetInterventionResponseRequest final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const GetInterventionResponseRequest& default_instance(); + static const HealthRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetInterventionResponseRequest* internal_default_instance() { - return reinterpret_cast( - &_GetInterventionResponseRequest_default_instance_); + static inline const HealthRequest* internal_default_instance() { + return reinterpret_cast( + &_HealthRequest_default_instance_); } static constexpr int kIndexInFileMessages = 10; - void Swap(GetInterventionResponseRequest* other); - friend void swap(GetInterventionResponseRequest& a, GetInterventionResponseRequest& b) { + void Swap(HealthRequest* other); + friend void swap(HealthRequest& a, HealthRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline GetInterventionResponseRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline HealthRequest* New() const final { + return CreateMaybeMessage(nullptr); } - GetInterventionResponseRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + HealthRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetInterventionResponseRequest& from); - void MergeFrom(const GetInterventionResponseRequest& from); + void CopyFrom(const HealthRequest& from); + void MergeFrom(const HealthRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1303,7 +1304,7 @@ class GetInterventionResponseRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetInterventionResponseRequest* other); + void InternalSwap(HealthRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1319,220 +1320,133 @@ class GetInterventionResponseRequest final : // accessors ------------------------------------------------------- - // string request_id = 1; - void clear_request_id(); - static const int kRequestIdFieldNumber = 1; - const ::std::string& request_id() const; - void set_request_id(const ::std::string& value); - #if LANG_CXX11 - void set_request_id(::std::string&& value); - #endif - void set_request_id(const char* value); - void set_request_id(const char* value, size_t size); - ::std::string* mutable_request_id(); - ::std::string* release_request_id(); - void set_allocated_request_id(::std::string* request_id); - - // @@protoc_insertion_point(class_scope:v1.agent.GetInterventionResponseRequest) + // @@protoc_insertion_point(class_scope:v1.agent.HealthRequest) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr request_id_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; -// =================================================================== +// ------------------------------------------------------------------- +class HealthResponse : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.HealthResponse) */ { + public: + HealthResponse(); + virtual ~HealthResponse(); -// =================================================================== + HealthResponse(const HealthResponse& from); -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// StreamDataResponse + inline HealthResponse& operator=(const HealthResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HealthResponse(HealthResponse&& from) noexcept + : HealthResponse() { + *this = ::std::move(from); + } -// ------------------------------------------------------------------- + inline HealthResponse& operator=(HealthResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HealthResponse& default_instance(); -// PostDataResponse + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HealthResponse* internal_default_instance() { + return reinterpret_cast( + &_HealthResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; -// ------------------------------------------------------------------- + void Swap(HealthResponse* other); + friend void swap(HealthResponse& a, HealthResponse& b) { + a.Swap(&b); + } -// RegisterROSTopicResponse + // implements Message ---------------------------------------------- -// ------------------------------------------------------------------- + inline HealthResponse* New() const final { + return CreateMaybeMessage(nullptr); + } -// GetROSTopicsRequest + HealthResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HealthResponse& from); + void MergeFrom(const HealthResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; -// ------------------------------------------------------------------- + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } -// GetROSTopicsResponse + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HealthResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: -// repeated string topics = 1; -inline int GetROSTopicsResponse::topics_size() const { - return topics_.size(); -} -inline void GetROSTopicsResponse::clear_topics() { - topics_.Clear(); -} -inline const ::std::string& GetROSTopicsResponse::topics(int index) const { - // @@protoc_insertion_point(field_get:v1.agent.GetROSTopicsResponse.topics) - return topics_.Get(index); -} -inline ::std::string* GetROSTopicsResponse::mutable_topics(int index) { - // @@protoc_insertion_point(field_mutable:v1.agent.GetROSTopicsResponse.topics) - return topics_.Mutable(index); -} -inline void GetROSTopicsResponse::set_topics(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:v1.agent.GetROSTopicsResponse.topics) - topics_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void GetROSTopicsResponse::set_topics(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:v1.agent.GetROSTopicsResponse.topics) - topics_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void GetROSTopicsResponse::set_topics(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - topics_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:v1.agent.GetROSTopicsResponse.topics) -} -inline void GetROSTopicsResponse::set_topics(int index, const char* value, size_t size) { - topics_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:v1.agent.GetROSTopicsResponse.topics) -} -inline ::std::string* GetROSTopicsResponse::add_topics() { - // @@protoc_insertion_point(field_add_mutable:v1.agent.GetROSTopicsResponse.topics) - return topics_.Add(); -} -inline void GetROSTopicsResponse::add_topics(const ::std::string& value) { - topics_.Add()->assign(value); - // @@protoc_insertion_point(field_add:v1.agent.GetROSTopicsResponse.topics) -} -#if LANG_CXX11 -inline void GetROSTopicsResponse::add_topics(::std::string&& value) { - topics_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:v1.agent.GetROSTopicsResponse.topics) -} -#endif -inline void GetROSTopicsResponse::add_topics(const char* value) { - GOOGLE_DCHECK(value != nullptr); - topics_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:v1.agent.GetROSTopicsResponse.topics) -} -inline void GetROSTopicsResponse::add_topics(const char* value, size_t size) { - topics_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:v1.agent.GetROSTopicsResponse.topics) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -GetROSTopicsResponse::topics() const { - // @@protoc_insertion_point(field_list:v1.agent.GetROSTopicsResponse.topics) - return topics_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -GetROSTopicsResponse::mutable_topics() { - // @@protoc_insertion_point(field_mutable_list:v1.agent.GetROSTopicsResponse.topics) - return &topics_; -} + ::google::protobuf::Metadata GetMetadata() const final; -// ------------------------------------------------------------------- + // nested types ---------------------------------------------------- -// GetROSTopicsSubscriptionConfigRequest + // accessors ------------------------------------------------------- -// ------------------------------------------------------------------- + // @@protoc_insertion_point(class_scope:v1.agent.HealthResponse) + private: + class HasBitSetters; -// GetROSTopicsSubscriptionConfigResponse + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; +}; +// =================================================================== -// repeated .v1.model.ROSTopicSubscriptionConfig topics = 1; -inline int GetROSTopicsSubscriptionConfigResponse::topics_size() const { - return topics_.size(); -} -inline ::v1::model::ROSTopicSubscriptionConfig* GetROSTopicsSubscriptionConfigResponse::mutable_topics(int index) { - // @@protoc_insertion_point(field_mutable:v1.agent.GetROSTopicsSubscriptionConfigResponse.topics) - return topics_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::v1::model::ROSTopicSubscriptionConfig >* -GetROSTopicsSubscriptionConfigResponse::mutable_topics() { - // @@protoc_insertion_point(field_mutable_list:v1.agent.GetROSTopicsSubscriptionConfigResponse.topics) - return &topics_; -} -inline const ::v1::model::ROSTopicSubscriptionConfig& GetROSTopicsSubscriptionConfigResponse::topics(int index) const { - // @@protoc_insertion_point(field_get:v1.agent.GetROSTopicsSubscriptionConfigResponse.topics) - return topics_.Get(index); -} -inline ::v1::model::ROSTopicSubscriptionConfig* GetROSTopicsSubscriptionConfigResponse::add_topics() { - // @@protoc_insertion_point(field_add:v1.agent.GetROSTopicsSubscriptionConfigResponse.topics) - return topics_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::v1::model::ROSTopicSubscriptionConfig >& -GetROSTopicsSubscriptionConfigResponse::topics() const { - // @@protoc_insertion_point(field_list:v1.agent.GetROSTopicsSubscriptionConfigResponse.topics) - return topics_; -} -// ------------------------------------------------------------------- +// =================================================================== -// GetROSWorldReferenceFrameIDRequest +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StreamDataResponse // ------------------------------------------------------------------- -// GetROSWorldReferenceFrameIDResponse - -// string world_reference_frame_id = 1; -inline void GetROSWorldReferenceFrameIDResponse::clear_world_reference_frame_id() { - world_reference_frame_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetROSWorldReferenceFrameIDResponse::world_reference_frame_id() const { - // @@protoc_insertion_point(field_get:v1.agent.GetROSWorldReferenceFrameIDResponse.world_reference_frame_id) - return world_reference_frame_id_.GetNoArena(); -} -inline void GetROSWorldReferenceFrameIDResponse::set_world_reference_frame_id(const ::std::string& value) { - - world_reference_frame_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.agent.GetROSWorldReferenceFrameIDResponse.world_reference_frame_id) -} -#if LANG_CXX11 -inline void GetROSWorldReferenceFrameIDResponse::set_world_reference_frame_id(::std::string&& value) { - - world_reference_frame_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:v1.agent.GetROSWorldReferenceFrameIDResponse.world_reference_frame_id) -} -#endif -inline void GetROSWorldReferenceFrameIDResponse::set_world_reference_frame_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - world_reference_frame_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:v1.agent.GetROSWorldReferenceFrameIDResponse.world_reference_frame_id) -} -inline void GetROSWorldReferenceFrameIDResponse::set_world_reference_frame_id(const char* value, size_t size) { - - world_reference_frame_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:v1.agent.GetROSWorldReferenceFrameIDResponse.world_reference_frame_id) -} -inline ::std::string* GetROSWorldReferenceFrameIDResponse::mutable_world_reference_frame_id() { - - // @@protoc_insertion_point(field_mutable:v1.agent.GetROSWorldReferenceFrameIDResponse.world_reference_frame_id) - return world_reference_frame_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetROSWorldReferenceFrameIDResponse::release_world_reference_frame_id() { - // @@protoc_insertion_point(field_release:v1.agent.GetROSWorldReferenceFrameIDResponse.world_reference_frame_id) - - return world_reference_frame_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetROSWorldReferenceFrameIDResponse::set_allocated_world_reference_frame_id(::std::string* world_reference_frame_id) { - if (world_reference_frame_id != nullptr) { - - } else { - - } - world_reference_frame_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), world_reference_frame_id); - // @@protoc_insertion_point(field_set_allocated:v1.agent.GetROSWorldReferenceFrameIDResponse.world_reference_frame_id) -} +// PostDataResponse // ------------------------------------------------------------------- @@ -1648,6 +1562,155 @@ inline void GetInterventionResponseRequest::set_allocated_request_id(::std::stri // @@protoc_insertion_point(field_set_allocated:v1.agent.GetInterventionResponseRequest.request_id) } +// ------------------------------------------------------------------- + +// GetStreamsConfigurationRequest + +// ------------------------------------------------------------------- + +// GetStreamsConfigurationResponse + +// repeated .v1.model.StreamConfiguration streams = 1; +inline int GetStreamsConfigurationResponse::streams_size() const { + return streams_.size(); +} +inline ::v1::model::StreamConfiguration* GetStreamsConfigurationResponse::mutable_streams(int index) { + // @@protoc_insertion_point(field_mutable:v1.agent.GetStreamsConfigurationResponse.streams) + return streams_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >* +GetStreamsConfigurationResponse::mutable_streams() { + // @@protoc_insertion_point(field_mutable_list:v1.agent.GetStreamsConfigurationResponse.streams) + return &streams_; +} +inline const ::v1::model::StreamConfiguration& GetStreamsConfigurationResponse::streams(int index) const { + // @@protoc_insertion_point(field_get:v1.agent.GetStreamsConfigurationResponse.streams) + return streams_.Get(index); +} +inline ::v1::model::StreamConfiguration* GetStreamsConfigurationResponse::add_streams() { + // @@protoc_insertion_point(field_add:v1.agent.GetStreamsConfigurationResponse.streams) + return streams_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >& +GetStreamsConfigurationResponse::streams() const { + // @@protoc_insertion_point(field_list:v1.agent.GetStreamsConfigurationResponse.streams) + return streams_; +} + +// ------------------------------------------------------------------- + +// GetApplicationConfigurationRequest + +// ------------------------------------------------------------------- + +// GetApplicationConfigurationResponse + +// .v1.model.ApplicationConfiguration configuration = 1; +inline bool GetApplicationConfigurationResponse::has_configuration() const { + return this != internal_default_instance() && configuration_ != nullptr; +} +inline const ::v1::model::ApplicationConfiguration& GetApplicationConfigurationResponse::configuration() const { + const ::v1::model::ApplicationConfiguration* p = configuration_; + // @@protoc_insertion_point(field_get:v1.agent.GetApplicationConfigurationResponse.configuration) + return p != nullptr ? *p : *reinterpret_cast( + &::v1::model::_ApplicationConfiguration_default_instance_); +} +inline ::v1::model::ApplicationConfiguration* GetApplicationConfigurationResponse::release_configuration() { + // @@protoc_insertion_point(field_release:v1.agent.GetApplicationConfigurationResponse.configuration) + + ::v1::model::ApplicationConfiguration* temp = configuration_; + configuration_ = nullptr; + return temp; +} +inline ::v1::model::ApplicationConfiguration* GetApplicationConfigurationResponse::mutable_configuration() { + + if (configuration_ == nullptr) { + auto* p = CreateMaybeMessage<::v1::model::ApplicationConfiguration>(GetArenaNoVirtual()); + configuration_ = p; + } + // @@protoc_insertion_point(field_mutable:v1.agent.GetApplicationConfigurationResponse.configuration) + return configuration_; +} +inline void GetApplicationConfigurationResponse::set_allocated_configuration(::v1::model::ApplicationConfiguration* configuration) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(configuration_); + } + if (configuration) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + configuration = ::google::protobuf::internal::GetOwnedMessage( + message_arena, configuration, submessage_arena); + } + + } else { + + } + configuration_ = configuration; + // @@protoc_insertion_point(field_set_allocated:v1.agent.GetApplicationConfigurationResponse.configuration) +} + +// ------------------------------------------------------------------- + +// GetAgentConfigurationRequest + +// ------------------------------------------------------------------- + +// GetAgentConfigurationResponse + +// .v1.model.AgentConfiguration configuration = 1; +inline bool GetAgentConfigurationResponse::has_configuration() const { + return this != internal_default_instance() && configuration_ != nullptr; +} +inline const ::v1::model::AgentConfiguration& GetAgentConfigurationResponse::configuration() const { + const ::v1::model::AgentConfiguration* p = configuration_; + // @@protoc_insertion_point(field_get:v1.agent.GetAgentConfigurationResponse.configuration) + return p != nullptr ? *p : *reinterpret_cast( + &::v1::model::_AgentConfiguration_default_instance_); +} +inline ::v1::model::AgentConfiguration* GetAgentConfigurationResponse::release_configuration() { + // @@protoc_insertion_point(field_release:v1.agent.GetAgentConfigurationResponse.configuration) + + ::v1::model::AgentConfiguration* temp = configuration_; + configuration_ = nullptr; + return temp; +} +inline ::v1::model::AgentConfiguration* GetAgentConfigurationResponse::mutable_configuration() { + + if (configuration_ == nullptr) { + auto* p = CreateMaybeMessage<::v1::model::AgentConfiguration>(GetArenaNoVirtual()); + configuration_ = p; + } + // @@protoc_insertion_point(field_mutable:v1.agent.GetAgentConfigurationResponse.configuration) + return configuration_; +} +inline void GetAgentConfigurationResponse::set_allocated_configuration(::v1::model::AgentConfiguration* configuration) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(configuration_); + } + if (configuration) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + configuration = ::google::protobuf::internal::GetOwnedMessage( + message_arena, configuration, submessage_arena); + } + + } else { + + } + configuration_ = configuration; + // @@protoc_insertion_point(field_set_allocated:v1.agent.GetAgentConfigurationResponse.configuration) +} + +// ------------------------------------------------------------------- + +// HealthRequest + +// ------------------------------------------------------------------- + +// HealthResponse + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -1671,6 +1734,8 @@ inline void GetInterventionResponseRequest::set_allocated_request_id(::std::stri // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/examples/cpp/protos/agent/v1/agent_mock.grpc.pb.h b/examples/cpp/protos/agent/v1/agent_mock.grpc.pb.h new file mode 100755 index 0000000..eb5c923 --- /dev/null +++ b/examples/cpp/protos/agent/v1/agent_mock.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/agent/v1/agent.proto + +#include "protos/agent/v1/agent.pb.h" +#include "protos/agent/v1/agent.grpc.pb.h" + +#include +#include +#include +namespace v1 { +namespace agent { + +class MockAgentStub : public Agent::StubInterface { + public: + MOCK_METHOD2(StreamDataRaw, ::grpc::ClientWriterInterface< ::v1::model::Datapoint>*(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response)); + MOCK_METHOD4(AsyncStreamDataRaw, ::grpc::ClientAsyncWriterInterface< ::v1::model::Datapoint>*(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response, ::grpc::CompletionQueue* cq, void* tag)); + MOCK_METHOD3(PrepareAsyncStreamDataRaw, ::grpc::ClientAsyncWriterInterface< ::v1::model::Datapoint>*(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PostData, ::grpc::Status(::grpc::ClientContext* context, const ::v1::model::Datapoint& request, ::v1::agent::PostDataResponse* response)); + MOCK_METHOD3(AsyncPostDataRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostDataResponse>*(::grpc::ClientContext* context, const ::v1::model::Datapoint& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncPostDataRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostDataResponse>*(::grpc::ClientContext* context, const ::v1::model::Datapoint& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(CreateInterventionRequest, ::grpc::Status(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::v1::model::InterventionRequest* response)); + MOCK_METHOD3(AsyncCreateInterventionRequestRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>*(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncCreateInterventionRequestRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>*(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(GetInterventionRequest, ::grpc::Status(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::v1::model::InterventionRequest* response)); + MOCK_METHOD3(AsyncGetInterventionRequestRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>*(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetInterventionRequestRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionRequest>*(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(GetInterventionResponse, ::grpc::Status(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::v1::model::InterventionResponse* response)); + MOCK_METHOD3(AsyncGetInterventionResponseRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionResponse>*(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetInterventionResponseRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::model::InterventionResponse>*(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(GetStreamsConfiguration, ::grpc::Status(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::v1::agent::GetStreamsConfigurationResponse* response)); + MOCK_METHOD3(AsyncGetStreamsConfigurationRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetStreamsConfigurationResponse>*(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetStreamsConfigurationRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetStreamsConfigurationResponse>*(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(GetApplicationConfiguration, ::grpc::Status(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::v1::agent::GetApplicationConfigurationResponse* response)); + MOCK_METHOD3(AsyncGetApplicationConfigurationRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetApplicationConfigurationResponse>*(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetApplicationConfigurationRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetApplicationConfigurationResponse>*(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(GetAgentConfiguration, ::grpc::Status(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::v1::agent::GetAgentConfigurationResponse* response)); + MOCK_METHOD3(AsyncGetAgentConfigurationRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetAgentConfigurationResponse>*(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetAgentConfigurationRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetAgentConfigurationResponse>*(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(Health, ::grpc::Status(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::v1::agent::HealthResponse* response)); + MOCK_METHOD3(AsyncHealthRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::HealthResponse>*(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncHealthRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::HealthResponse>*(::grpc::ClientContext* context, const ::v1::agent::HealthRequest& request, ::grpc::CompletionQueue* cq)); +}; + +} // namespace v1 +} // namespace agent + diff --git a/examples/cpp/protos/model/v1/config.pb.cc b/examples/cpp/protos/model/v1/config.pb.cc new file mode 100755 index 0000000..d6f7abb --- /dev/null +++ b/examples/cpp/protos/model/v1/config.pb.cc @@ -0,0 +1,5198 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: protos/model/v1/config.proto + +#include "protos/model/v1/config.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AgentConfigurationDocument_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DirectoryWatch_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DiskConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_FileTail_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StreamConfiguration_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_AgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fros_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ROSLocalization_protos_2fmodel_2fv1_2fros_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fros_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ROSTopic_protos_2fmodel_2fv1_2fros_2eproto; +namespace v1 { +namespace model { +class AgentConfigurationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AgentConfiguration_default_instance_; +class AgentConfigurationDocument_TagsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AgentConfigurationDocument_TagsEntry_DoNotUse_default_instance_; +class AgentConfigurationDocumentDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AgentConfigurationDocument_default_instance_; +class TelemetryConfigurationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TelemetryConfiguration_default_instance_; +class ApplicationConfiguration_ConfigurationMapEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_default_instance_; +class ApplicationConfigurationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ApplicationConfiguration_default_instance_; +class ResourcesConfigurationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ResourcesConfiguration_default_instance_; +class DiskConfigurationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DiskConfiguration_default_instance_; +class ROSConfigurationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ROSConfiguration_default_instance_; +class StreamConfiguration_TagsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _StreamConfiguration_TagsEntry_DoNotUse_default_instance_; +class StreamConfigurationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::v1::model::ROSTopic* ros_topic_; + const ::v1::model::ROSLocalization* ros_localization_; + const ::v1::model::DirectoryWatch* directory_watch_; + const ::v1::model::FileTail* file_tail_; +} _StreamConfiguration_default_instance_; +class DirectoryWatchDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DirectoryWatch_default_instance_; +class FileTailDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _FileTail_default_instance_; +} // namespace model +} // namespace v1 +static void InitDefaultsAgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_AgentConfiguration_default_instance_; + new (ptr) ::v1::model::AgentConfiguration(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::AgentConfiguration::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_AgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, { + &scc_info_AgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; + +static void InitDefaultsAgentConfigurationDocument_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_AgentConfigurationDocument_TagsEntry_DoNotUse_default_instance_; + new (ptr) ::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse(); + } + ::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_AgentConfigurationDocument_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAgentConfigurationDocument_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; + +static void InitDefaultsAgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_AgentConfigurationDocument_default_instance_; + new (ptr) ::v1::model::AgentConfigurationDocument(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::AgentConfigurationDocument::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_AgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsAgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto}, { + &scc_info_AgentConfigurationDocument_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_TelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_ResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; + +static void InitDefaultsTelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_TelemetryConfiguration_default_instance_; + new (ptr) ::v1::model::TelemetryConfiguration(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::TelemetryConfiguration::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, { + &scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_ROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; + +static void InitDefaultsApplicationConfiguration_ConfigurationMapEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_default_instance_; + new (ptr) ::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse(); + } + ::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsApplicationConfiguration_ConfigurationMapEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; + +static void InitDefaultsApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_ApplicationConfiguration_default_instance_; + new (ptr) ::v1::model::ApplicationConfiguration(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::ApplicationConfiguration::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, { + &scc_info_ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; + +static void InitDefaultsResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_ResourcesConfiguration_default_instance_; + new (ptr) ::v1::model::ResourcesConfiguration(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::ResourcesConfiguration::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, { + &scc_info_DiskConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; + +static void InitDefaultsDiskConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_DiskConfiguration_default_instance_; + new (ptr) ::v1::model::DiskConfiguration(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::DiskConfiguration::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DiskConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDiskConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; + +static void InitDefaultsROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_ROSConfiguration_default_instance_; + new (ptr) ::v1::model::ROSConfiguration(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::ROSConfiguration::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; + +static void InitDefaultsStreamConfiguration_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_StreamConfiguration_TagsEntry_DoNotUse_default_instance_; + new (ptr) ::v1::model::StreamConfiguration_TagsEntry_DoNotUse(); + } + ::v1::model::StreamConfiguration_TagsEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StreamConfiguration_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStreamConfiguration_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; + +static void InitDefaultsStreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_StreamConfiguration_default_instance_; + new (ptr) ::v1::model::StreamConfiguration(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::StreamConfiguration::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<5> scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsStreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, { + &scc_info_StreamConfiguration_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_ROSTopic_protos_2fmodel_2fv1_2fros_2eproto.base, + &scc_info_ROSLocalization_protos_2fmodel_2fv1_2fros_2eproto.base, + &scc_info_DirectoryWatch_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_FileTail_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; + +static void InitDefaultsDirectoryWatch_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_DirectoryWatch_default_instance_; + new (ptr) ::v1::model::DirectoryWatch(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::DirectoryWatch::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DirectoryWatch_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDirectoryWatch_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; + +static void InitDefaultsFileTail_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_FileTail_default_instance_; + new (ptr) ::v1::model::FileTail(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::FileTail::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_FileTail_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFileTail_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; + +void InitDefaults_protos_2fmodel_2fv1_2fconfig_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_AgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AgentConfigurationDocument_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DiskConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_StreamConfiguration_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DirectoryWatch_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_FileTail_protos_2fmodel_2fv1_2fconfig_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[13]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_protos_2fmodel_2fv1_2fconfig_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_protos_2fmodel_2fv1_2fconfig_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfiguration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfiguration, id_), + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfiguration, name_), + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfiguration, document_), + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument, version_), + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument, tags_), + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument, telemetry_), + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument, resources_), + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument, application_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::TelemetryConfiguration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::TelemetryConfiguration, streams_), + PROTOBUF_FIELD_OFFSET(::v1::model::TelemetryConfiguration, ros_), + PROTOBUF_FIELD_OFFSET(::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::ApplicationConfiguration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::ApplicationConfiguration, configuration_map_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::ResourcesConfiguration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::ResourcesConfiguration, disk_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::DiskConfiguration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::DiskConfiguration, buffer_size_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::ROSConfiguration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::ROSConfiguration, world_reference_frame_id_), + PROTOBUF_FIELD_OFFSET(::v1::model::StreamConfiguration_TagsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::v1::model::StreamConfiguration_TagsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::StreamConfiguration_TagsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::v1::model::StreamConfiguration_TagsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::StreamConfiguration, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::v1::model::StreamConfiguration, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::StreamConfiguration, name_), + PROTOBUF_FIELD_OFFSET(::v1::model::StreamConfiguration, tags_), + offsetof(::v1::model::StreamConfigurationDefaultTypeInternal, ros_topic_), + offsetof(::v1::model::StreamConfigurationDefaultTypeInternal, ros_localization_), + offsetof(::v1::model::StreamConfigurationDefaultTypeInternal, directory_watch_), + offsetof(::v1::model::StreamConfigurationDefaultTypeInternal, file_tail_), + PROTOBUF_FIELD_OFFSET(::v1::model::StreamConfiguration, configuration_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::DirectoryWatch, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::DirectoryWatch, directory_), + PROTOBUF_FIELD_OFFSET(::v1::model::DirectoryWatch, extension_), + PROTOBUF_FIELD_OFFSET(::v1::model::DirectoryWatch, file_type_), + PROTOBUF_FIELD_OFFSET(::v1::model::DirectoryWatch, remote_agent_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::FileTail, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::FileTail, filename_), + PROTOBUF_FIELD_OFFSET(::v1::model::FileTail, file_format_), + PROTOBUF_FIELD_OFFSET(::v1::model::FileTail, time_key_), + PROTOBUF_FIELD_OFFSET(::v1::model::FileTail, time_format_), + PROTOBUF_FIELD_OFFSET(::v1::model::FileTail, regex_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::v1::model::AgentConfiguration)}, + { 8, 15, sizeof(::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse)}, + { 17, -1, sizeof(::v1::model::AgentConfigurationDocument)}, + { 27, -1, sizeof(::v1::model::TelemetryConfiguration)}, + { 34, 41, sizeof(::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse)}, + { 43, -1, sizeof(::v1::model::ApplicationConfiguration)}, + { 49, -1, sizeof(::v1::model::ResourcesConfiguration)}, + { 55, -1, sizeof(::v1::model::DiskConfiguration)}, + { 61, -1, sizeof(::v1::model::ROSConfiguration)}, + { 67, 74, sizeof(::v1::model::StreamConfiguration_TagsEntry_DoNotUse)}, + { 76, -1, sizeof(::v1::model::StreamConfiguration)}, + { 88, -1, sizeof(::v1::model::DirectoryWatch)}, + { 97, -1, sizeof(::v1::model::FileTail)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::v1::model::_AgentConfiguration_default_instance_), + reinterpret_cast(&::v1::model::_AgentConfigurationDocument_TagsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::v1::model::_AgentConfigurationDocument_default_instance_), + reinterpret_cast(&::v1::model::_TelemetryConfiguration_default_instance_), + reinterpret_cast(&::v1::model::_ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_default_instance_), + reinterpret_cast(&::v1::model::_ApplicationConfiguration_default_instance_), + reinterpret_cast(&::v1::model::_ResourcesConfiguration_default_instance_), + reinterpret_cast(&::v1::model::_DiskConfiguration_default_instance_), + reinterpret_cast(&::v1::model::_ROSConfiguration_default_instance_), + reinterpret_cast(&::v1::model::_StreamConfiguration_TagsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::v1::model::_StreamConfiguration_default_instance_), + reinterpret_cast(&::v1::model::_DirectoryWatch_default_instance_), + reinterpret_cast(&::v1::model::_FileTail_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto = { + {}, AddDescriptors_protos_2fmodel_2fv1_2fconfig_2eproto, "protos/model/v1/config.proto", schemas, + file_default_instances, TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto::offsets, + file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto, 13, file_level_enum_descriptors_protos_2fmodel_2fv1_2fconfig_2eproto, file_level_service_descriptors_protos_2fmodel_2fv1_2fconfig_2eproto, +}; + +const char descriptor_table_protodef_protos_2fmodel_2fv1_2fconfig_2eproto[] = + "\n\034protos/model/v1/config.proto\022\010v1.model" + "\032\031protos/model/v1/ros.proto\"f\n\022AgentConf" + "iguration\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\0226\n\010d" + "ocument\030\003 \001(\0132$.v1.model.AgentConfigurat" + "ionDocument\"\273\002\n\032AgentConfigurationDocume" + "nt\022\017\n\007version\030\001 \001(\005\022<\n\004tags\030\002 \003(\0132..v1.m" + "odel.AgentConfigurationDocument.TagsEntr" + "y\0223\n\ttelemetry\030\003 \001(\0132 .v1.model.Telemetr" + "yConfiguration\0223\n\tresources\030\004 \001(\0132 .v1.m" + "odel.ResourcesConfiguration\0227\n\013applicati" + "on\030\005 \001(\0132\".v1.model.ApplicationConfigura" + "tion\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\t:\0028\001\"q\n\026TelemetryConfiguration\022.\n\007s" + "treams\030\001 \003(\0132\035.v1.model.StreamConfigurat" + "ion\022\'\n\003ros\030\002 \001(\0132\032.v1.model.ROSConfigura" + "tion\"\250\001\n\030ApplicationConfiguration\022S\n\021con" + "figuration_map\030\001 \003(\01328.v1.model.Applicat" + "ionConfiguration.ConfigurationMapEntry\0327" + "\n\025ConfigurationMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + "value\030\002 \001(\t:\0028\001\"C\n\026ResourcesConfiguratio" + "n\022)\n\004disk\030\001 \001(\0132\033.v1.model.DiskConfigura" + "tion\"(\n\021DiskConfiguration\022\023\n\013buffer_size" + "\030\001 \001(\003\"4\n\020ROSConfiguration\022 \n\030world_refe" + "rence_frame_id\030\001 \001(\t\"\326\002\n\023StreamConfigura" + "tion\022\014\n\004name\030\001 \001(\t\0225\n\004tags\030\002 \003(\0132\'.v1.mo" + "del.StreamConfiguration.TagsEntry\022\'\n\tros" + "_topic\030\003 \001(\0132\022.v1.model.ROSTopicH\000\0225\n\020ro" + "s_localization\030\004 \001(\0132\031.v1.model.ROSLocal" + "izationH\000\0223\n\017directory_watch\030\005 \001(\0132\030.v1." + "model.DirectoryWatchH\000\022\'\n\tfile_tail\030\006 \001(" + "\0132\022.v1.model.FileTailH\000\032+\n\tTagsEntry\022\013\n\003" + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\017\n\rconfigur" + "ation\"s\n\016DirectoryWatch\022\021\n\tdirectory\030\001 \001" + "(\t\022\021\n\textension\030\002 \001(\t\022%\n\tfile_type\030\003 \001(\016" + "2\022.v1.model.FileType\022\024\n\014remote_agent\030\004 \001" + "(\010\"}\n\010FileTail\022\020\n\010filename\030\001 \001(\t\022)\n\013file" + "_format\030\002 \001(\0162\024.v1.model.FileFormat\022\020\n\010t" + "ime_key\030\003 \001(\t\022\023\n\013time_format\030\004 \001(\t\022\r\n\005re" + "gex\030\005 \001(\t*&\n\nFileFormat\022\016\n\nPLAIN_TEXT\020\000\022" + "\010\n\004JSON\020\001*0\n\010FileType\022\010\n\004FILE\020\000\022\t\n\005IMAGE" + "\020\001\022\017\n\013POINT_CLOUD\020\004B+Z)github.com/Forman" + "tIO/genproto/go/v1/modelb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto = { + false, InitDefaults_protos_2fmodel_2fv1_2fconfig_2eproto, + descriptor_table_protodef_protos_2fmodel_2fv1_2fconfig_2eproto, + "protos/model/v1/config.proto", &assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto, 1672, +}; + +void AddDescriptors_protos_2fmodel_2fv1_2fconfig_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_protos_2fmodel_2fv1_2fros_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_protos_2fmodel_2fv1_2fconfig_2eproto = []() { AddDescriptors_protos_2fmodel_2fv1_2fconfig_2eproto(); return true; }(); +namespace v1 { +namespace model { +const ::google::protobuf::EnumDescriptor* FileFormat_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return file_level_enum_descriptors_protos_2fmodel_2fv1_2fconfig_2eproto[0]; +} +bool FileFormat_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* FileType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return file_level_enum_descriptors_protos_2fmodel_2fv1_2fconfig_2eproto[1]; +} +bool FileType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 4: + return true; + default: + return false; + } +} + + +// =================================================================== + +void AgentConfiguration::InitAsDefaultInstance() { + ::v1::model::_AgentConfiguration_default_instance_._instance.get_mutable()->document_ = const_cast< ::v1::model::AgentConfigurationDocument*>( + ::v1::model::AgentConfigurationDocument::internal_default_instance()); +} +class AgentConfiguration::HasBitSetters { + public: + static const ::v1::model::AgentConfigurationDocument& document(const AgentConfiguration* msg); +}; + +const ::v1::model::AgentConfigurationDocument& +AgentConfiguration::HasBitSetters::document(const AgentConfiguration* msg) { + return *msg->document_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AgentConfiguration::kIdFieldNumber; +const int AgentConfiguration::kNameFieldNumber; +const int AgentConfiguration::kDocumentFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AgentConfiguration::AgentConfiguration() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.AgentConfiguration) +} +AgentConfiguration::AgentConfiguration(const AgentConfiguration& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.id().size() > 0) { + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_document()) { + document_ = new ::v1::model::AgentConfigurationDocument(*from.document_); + } else { + document_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:v1.model.AgentConfiguration) +} + +void AgentConfiguration::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_AgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + document_ = nullptr; +} + +AgentConfiguration::~AgentConfiguration() { + // @@protoc_insertion_point(destructor:v1.model.AgentConfiguration) + SharedDtor(); +} + +void AgentConfiguration::SharedDtor() { + id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete document_; +} + +void AgentConfiguration::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AgentConfiguration& AgentConfiguration::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + return *internal_default_instance(); +} + + +void AgentConfiguration::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.AgentConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && document_ != nullptr) { + delete document_; + } + document_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AgentConfiguration::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("v1.model.AgentConfiguration.id"); + object = msg->mutable_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("v1.model.AgentConfiguration.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .v1.model.AgentConfigurationDocument document = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::v1::model::AgentConfigurationDocument::_InternalParse; + object = msg->mutable_document(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AgentConfiguration::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:v1.model.AgentConfiguration) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.AgentConfiguration.id")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.AgentConfiguration.name")); + } else { + goto handle_unusual; + } + break; + } + + // .v1.model.AgentConfigurationDocument document = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_document())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:v1.model.AgentConfiguration) + return true; +failure: + // @@protoc_insertion_point(parse_failure:v1.model.AgentConfiguration) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AgentConfiguration::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:v1.model.AgentConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.AgentConfiguration.id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->id(), output); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.AgentConfiguration.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + // .v1.model.AgentConfigurationDocument document = 3; + if (this->has_document()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::document(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:v1.model.AgentConfiguration) +} + +::google::protobuf::uint8* AgentConfiguration::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.AgentConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.AgentConfiguration.id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->id(), target); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.AgentConfiguration.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + // .v1.model.AgentConfigurationDocument document = 3; + if (this->has_document()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::document(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.AgentConfiguration) + return target; +} + +size_t AgentConfiguration::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.AgentConfiguration) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->id()); + } + + // string name = 2; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .v1.model.AgentConfigurationDocument document = 3; + if (this->has_document()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *document_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AgentConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.AgentConfiguration) + GOOGLE_DCHECK_NE(&from, this); + const AgentConfiguration* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.AgentConfiguration) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.AgentConfiguration) + MergeFrom(*source); + } +} + +void AgentConfiguration::MergeFrom(const AgentConfiguration& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.AgentConfiguration) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.id().size() > 0) { + + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_document()) { + mutable_document()->::v1::model::AgentConfigurationDocument::MergeFrom(from.document()); + } +} + +void AgentConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.AgentConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AgentConfiguration::CopyFrom(const AgentConfiguration& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.AgentConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AgentConfiguration::IsInitialized() const { + return true; +} + +void AgentConfiguration::Swap(AgentConfiguration* other) { + if (other == this) return; + InternalSwap(other); +} +void AgentConfiguration::InternalSwap(AgentConfiguration* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(document_, other->document_); +} + +::google::protobuf::Metadata AgentConfiguration::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +AgentConfigurationDocument_TagsEntry_DoNotUse::AgentConfigurationDocument_TagsEntry_DoNotUse() {} +AgentConfigurationDocument_TagsEntry_DoNotUse::AgentConfigurationDocument_TagsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void AgentConfigurationDocument_TagsEntry_DoNotUse::MergeFrom(const AgentConfigurationDocument_TagsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata AgentConfigurationDocument_TagsEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[1]; +} +void AgentConfigurationDocument_TagsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AgentConfigurationDocument_TagsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + AgentConfigurationDocument_TagsEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.AgentConfigurationDocument.TagsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.AgentConfigurationDocument.TagsEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void AgentConfigurationDocument::InitAsDefaultInstance() { + ::v1::model::_AgentConfigurationDocument_default_instance_._instance.get_mutable()->telemetry_ = const_cast< ::v1::model::TelemetryConfiguration*>( + ::v1::model::TelemetryConfiguration::internal_default_instance()); + ::v1::model::_AgentConfigurationDocument_default_instance_._instance.get_mutable()->resources_ = const_cast< ::v1::model::ResourcesConfiguration*>( + ::v1::model::ResourcesConfiguration::internal_default_instance()); + ::v1::model::_AgentConfigurationDocument_default_instance_._instance.get_mutable()->application_ = const_cast< ::v1::model::ApplicationConfiguration*>( + ::v1::model::ApplicationConfiguration::internal_default_instance()); +} +class AgentConfigurationDocument::HasBitSetters { + public: + static const ::v1::model::TelemetryConfiguration& telemetry(const AgentConfigurationDocument* msg); + static const ::v1::model::ResourcesConfiguration& resources(const AgentConfigurationDocument* msg); + static const ::v1::model::ApplicationConfiguration& application(const AgentConfigurationDocument* msg); +}; + +const ::v1::model::TelemetryConfiguration& +AgentConfigurationDocument::HasBitSetters::telemetry(const AgentConfigurationDocument* msg) { + return *msg->telemetry_; +} +const ::v1::model::ResourcesConfiguration& +AgentConfigurationDocument::HasBitSetters::resources(const AgentConfigurationDocument* msg) { + return *msg->resources_; +} +const ::v1::model::ApplicationConfiguration& +AgentConfigurationDocument::HasBitSetters::application(const AgentConfigurationDocument* msg) { + return *msg->application_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AgentConfigurationDocument::kVersionFieldNumber; +const int AgentConfigurationDocument::kTagsFieldNumber; +const int AgentConfigurationDocument::kTelemetryFieldNumber; +const int AgentConfigurationDocument::kResourcesFieldNumber; +const int AgentConfigurationDocument::kApplicationFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AgentConfigurationDocument::AgentConfigurationDocument() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.AgentConfigurationDocument) +} +AgentConfigurationDocument::AgentConfigurationDocument(const AgentConfigurationDocument& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tags_.MergeFrom(from.tags_); + if (from.has_telemetry()) { + telemetry_ = new ::v1::model::TelemetryConfiguration(*from.telemetry_); + } else { + telemetry_ = nullptr; + } + if (from.has_resources()) { + resources_ = new ::v1::model::ResourcesConfiguration(*from.resources_); + } else { + resources_ = nullptr; + } + if (from.has_application()) { + application_ = new ::v1::model::ApplicationConfiguration(*from.application_); + } else { + application_ = nullptr; + } + version_ = from.version_; + // @@protoc_insertion_point(copy_constructor:v1.model.AgentConfigurationDocument) +} + +void AgentConfigurationDocument::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_AgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::memset(&telemetry_, 0, static_cast( + reinterpret_cast(&version_) - + reinterpret_cast(&telemetry_)) + sizeof(version_)); +} + +AgentConfigurationDocument::~AgentConfigurationDocument() { + // @@protoc_insertion_point(destructor:v1.model.AgentConfigurationDocument) + SharedDtor(); +} + +void AgentConfigurationDocument::SharedDtor() { + if (this != internal_default_instance()) delete telemetry_; + if (this != internal_default_instance()) delete resources_; + if (this != internal_default_instance()) delete application_; +} + +void AgentConfigurationDocument::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AgentConfigurationDocument& AgentConfigurationDocument::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto.base); + return *internal_default_instance(); +} + + +void AgentConfigurationDocument::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.AgentConfigurationDocument) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tags_.Clear(); + if (GetArenaNoVirtual() == nullptr && telemetry_ != nullptr) { + delete telemetry_; + } + telemetry_ = nullptr; + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; + if (GetArenaNoVirtual() == nullptr && application_ != nullptr) { + delete application_; + } + application_ = nullptr; + version_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AgentConfigurationDocument::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int32 version = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_version(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // map tags = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->tags_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + // .v1.model.TelemetryConfiguration telemetry = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::v1::model::TelemetryConfiguration::_InternalParse; + object = msg->mutable_telemetry(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .v1.model.ResourcesConfiguration resources = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::v1::model::ResourcesConfiguration::_InternalParse; + object = msg->mutable_resources(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .v1.model.ApplicationConfiguration application = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::v1::model::ApplicationConfiguration::_InternalParse; + object = msg->mutable_application(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AgentConfigurationDocument::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:v1.model.AgentConfigurationDocument) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int32 version = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &version_))); + } else { + goto handle_unusual; + } + break; + } + + // map tags = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + AgentConfigurationDocument_TagsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + AgentConfigurationDocument_TagsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&tags_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.AgentConfigurationDocument.TagsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.AgentConfigurationDocument.TagsEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + // .v1.model.TelemetryConfiguration telemetry = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_telemetry())); + } else { + goto handle_unusual; + } + break; + } + + // .v1.model.ResourcesConfiguration resources = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_resources())); + } else { + goto handle_unusual; + } + break; + } + + // .v1.model.ApplicationConfiguration application = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_application())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:v1.model.AgentConfigurationDocument) + return true; +failure: + // @@protoc_insertion_point(parse_failure:v1.model.AgentConfigurationDocument) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AgentConfigurationDocument::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:v1.model.AgentConfigurationDocument) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 version = 1; + if (this->version() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->version(), output); + } + + // map tags = 2; + if (!this->tags().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.AgentConfigurationDocument.TagsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.AgentConfigurationDocument.TagsEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->tags().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->tags().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(2, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it) { + entry.reset(tags_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(2, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + // .v1.model.TelemetryConfiguration telemetry = 3; + if (this->has_telemetry()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::telemetry(this), output); + } + + // .v1.model.ResourcesConfiguration resources = 4; + if (this->has_resources()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::resources(this), output); + } + + // .v1.model.ApplicationConfiguration application = 5; + if (this->has_application()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::application(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:v1.model.AgentConfigurationDocument) +} + +::google::protobuf::uint8* AgentConfigurationDocument::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.AgentConfigurationDocument) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 version = 1; + if (this->version() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->version(), target); + } + + // map tags = 2; + if (!this->tags().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.AgentConfigurationDocument.TagsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.AgentConfigurationDocument.TagsEntry.value"); + } + }; + + if (false && + this->tags().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->tags().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(2, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it) { + entry.reset(tags_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(2, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + // .v1.model.TelemetryConfiguration telemetry = 3; + if (this->has_telemetry()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::telemetry(this), target); + } + + // .v1.model.ResourcesConfiguration resources = 4; + if (this->has_resources()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::resources(this), target); + } + + // .v1.model.ApplicationConfiguration application = 5; + if (this->has_application()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::application(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.AgentConfigurationDocument) + return target; +} + +size_t AgentConfigurationDocument::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.AgentConfigurationDocument) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map tags = 2; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->tags_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it) { + entry.reset(tags_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // .v1.model.TelemetryConfiguration telemetry = 3; + if (this->has_telemetry()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *telemetry_); + } + + // .v1.model.ResourcesConfiguration resources = 4; + if (this->has_resources()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *resources_); + } + + // .v1.model.ApplicationConfiguration application = 5; + if (this->has_application()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *application_); + } + + // int32 version = 1; + if (this->version() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->version()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AgentConfigurationDocument::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.AgentConfigurationDocument) + GOOGLE_DCHECK_NE(&from, this); + const AgentConfigurationDocument* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.AgentConfigurationDocument) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.AgentConfigurationDocument) + MergeFrom(*source); + } +} + +void AgentConfigurationDocument::MergeFrom(const AgentConfigurationDocument& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.AgentConfigurationDocument) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tags_.MergeFrom(from.tags_); + if (from.has_telemetry()) { + mutable_telemetry()->::v1::model::TelemetryConfiguration::MergeFrom(from.telemetry()); + } + if (from.has_resources()) { + mutable_resources()->::v1::model::ResourcesConfiguration::MergeFrom(from.resources()); + } + if (from.has_application()) { + mutable_application()->::v1::model::ApplicationConfiguration::MergeFrom(from.application()); + } + if (from.version() != 0) { + set_version(from.version()); + } +} + +void AgentConfigurationDocument::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.AgentConfigurationDocument) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AgentConfigurationDocument::CopyFrom(const AgentConfigurationDocument& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.AgentConfigurationDocument) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AgentConfigurationDocument::IsInitialized() const { + return true; +} + +void AgentConfigurationDocument::Swap(AgentConfigurationDocument* other) { + if (other == this) return; + InternalSwap(other); +} +void AgentConfigurationDocument::InternalSwap(AgentConfigurationDocument* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + tags_.Swap(&other->tags_); + swap(telemetry_, other->telemetry_); + swap(resources_, other->resources_); + swap(application_, other->application_); + swap(version_, other->version_); +} + +::google::protobuf::Metadata AgentConfigurationDocument::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TelemetryConfiguration::InitAsDefaultInstance() { + ::v1::model::_TelemetryConfiguration_default_instance_._instance.get_mutable()->ros_ = const_cast< ::v1::model::ROSConfiguration*>( + ::v1::model::ROSConfiguration::internal_default_instance()); +} +class TelemetryConfiguration::HasBitSetters { + public: + static const ::v1::model::ROSConfiguration& ros(const TelemetryConfiguration* msg); +}; + +const ::v1::model::ROSConfiguration& +TelemetryConfiguration::HasBitSetters::ros(const TelemetryConfiguration* msg) { + return *msg->ros_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TelemetryConfiguration::kStreamsFieldNumber; +const int TelemetryConfiguration::kRosFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TelemetryConfiguration::TelemetryConfiguration() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.TelemetryConfiguration) +} +TelemetryConfiguration::TelemetryConfiguration(const TelemetryConfiguration& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + streams_(from.streams_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_ros()) { + ros_ = new ::v1::model::ROSConfiguration(*from.ros_); + } else { + ros_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:v1.model.TelemetryConfiguration) +} + +void TelemetryConfiguration::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ros_ = nullptr; +} + +TelemetryConfiguration::~TelemetryConfiguration() { + // @@protoc_insertion_point(destructor:v1.model.TelemetryConfiguration) + SharedDtor(); +} + +void TelemetryConfiguration::SharedDtor() { + if (this != internal_default_instance()) delete ros_; +} + +void TelemetryConfiguration::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TelemetryConfiguration& TelemetryConfiguration::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + return *internal_default_instance(); +} + + +void TelemetryConfiguration::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.TelemetryConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + streams_.Clear(); + if (GetArenaNoVirtual() == nullptr && ros_ != nullptr) { + delete ros_; + } + ros_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TelemetryConfiguration::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .v1.model.StreamConfiguration streams = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::v1::model::StreamConfiguration::_InternalParse; + object = msg->add_streams(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // .v1.model.ROSConfiguration ros = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::v1::model::ROSConfiguration::_InternalParse; + object = msg->mutable_ros(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TelemetryConfiguration::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:v1.model.TelemetryConfiguration) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .v1.model.StreamConfiguration streams = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_streams())); + } else { + goto handle_unusual; + } + break; + } + + // .v1.model.ROSConfiguration ros = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_ros())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:v1.model.TelemetryConfiguration) + return true; +failure: + // @@protoc_insertion_point(parse_failure:v1.model.TelemetryConfiguration) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TelemetryConfiguration::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:v1.model.TelemetryConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .v1.model.StreamConfiguration streams = 1; + for (unsigned int i = 0, + n = static_cast(this->streams_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->streams(static_cast(i)), + output); + } + + // .v1.model.ROSConfiguration ros = 2; + if (this->has_ros()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::ros(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:v1.model.TelemetryConfiguration) +} + +::google::protobuf::uint8* TelemetryConfiguration::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.TelemetryConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .v1.model.StreamConfiguration streams = 1; + for (unsigned int i = 0, + n = static_cast(this->streams_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->streams(static_cast(i)), target); + } + + // .v1.model.ROSConfiguration ros = 2; + if (this->has_ros()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::ros(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.TelemetryConfiguration) + return target; +} + +size_t TelemetryConfiguration::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.TelemetryConfiguration) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .v1.model.StreamConfiguration streams = 1; + { + unsigned int count = static_cast(this->streams_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->streams(static_cast(i))); + } + } + + // .v1.model.ROSConfiguration ros = 2; + if (this->has_ros()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *ros_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TelemetryConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.TelemetryConfiguration) + GOOGLE_DCHECK_NE(&from, this); + const TelemetryConfiguration* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.TelemetryConfiguration) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.TelemetryConfiguration) + MergeFrom(*source); + } +} + +void TelemetryConfiguration::MergeFrom(const TelemetryConfiguration& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.TelemetryConfiguration) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + streams_.MergeFrom(from.streams_); + if (from.has_ros()) { + mutable_ros()->::v1::model::ROSConfiguration::MergeFrom(from.ros()); + } +} + +void TelemetryConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.TelemetryConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TelemetryConfiguration::CopyFrom(const TelemetryConfiguration& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.TelemetryConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TelemetryConfiguration::IsInitialized() const { + return true; +} + +void TelemetryConfiguration::Swap(TelemetryConfiguration* other) { + if (other == this) return; + InternalSwap(other); +} +void TelemetryConfiguration::InternalSwap(TelemetryConfiguration* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&streams_)->InternalSwap(CastToBase(&other->streams_)); + swap(ros_, other->ros_); +} + +::google::protobuf::Metadata TelemetryConfiguration::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse() {} +ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::MergeFrom(const ApplicationConfiguration_ConfigurationMapEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[4]; +} +void ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + ApplicationConfiguration_ConfigurationMapEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.ApplicationConfiguration.ConfigurationMapEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.ApplicationConfiguration.ConfigurationMapEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void ApplicationConfiguration::InitAsDefaultInstance() { +} +class ApplicationConfiguration::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ApplicationConfiguration::kConfigurationMapFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ApplicationConfiguration::ApplicationConfiguration() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.ApplicationConfiguration) +} +ApplicationConfiguration::ApplicationConfiguration(const ApplicationConfiguration& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + configuration_map_.MergeFrom(from.configuration_map_); + // @@protoc_insertion_point(copy_constructor:v1.model.ApplicationConfiguration) +} + +void ApplicationConfiguration::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); +} + +ApplicationConfiguration::~ApplicationConfiguration() { + // @@protoc_insertion_point(destructor:v1.model.ApplicationConfiguration) + SharedDtor(); +} + +void ApplicationConfiguration::SharedDtor() { +} + +void ApplicationConfiguration::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ApplicationConfiguration& ApplicationConfiguration::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + return *internal_default_instance(); +} + + +void ApplicationConfiguration::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.ApplicationConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + configuration_map_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ApplicationConfiguration::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map configuration_map = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->configuration_map_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ApplicationConfiguration::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:v1.model.ApplicationConfiguration) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map configuration_map = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + ApplicationConfiguration_ConfigurationMapEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&configuration_map_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.ApplicationConfiguration.ConfigurationMapEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.ApplicationConfiguration.ConfigurationMapEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:v1.model.ApplicationConfiguration) + return true; +failure: + // @@protoc_insertion_point(parse_failure:v1.model.ApplicationConfiguration) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ApplicationConfiguration::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:v1.model.ApplicationConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map configuration_map = 1; + if (!this->configuration_map().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.ApplicationConfiguration.ConfigurationMapEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.ApplicationConfiguration.ConfigurationMapEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->configuration_map().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->configuration_map().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->configuration_map().begin(); + it != this->configuration_map().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(configuration_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->configuration_map().begin(); + it != this->configuration_map().end(); ++it) { + entry.reset(configuration_map_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:v1.model.ApplicationConfiguration) +} + +::google::protobuf::uint8* ApplicationConfiguration::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.ApplicationConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map configuration_map = 1; + if (!this->configuration_map().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.ApplicationConfiguration.ConfigurationMapEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.ApplicationConfiguration.ConfigurationMapEntry.value"); + } + }; + + if (false && + this->configuration_map().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->configuration_map().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->configuration_map().begin(); + it != this->configuration_map().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(configuration_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->configuration_map().begin(); + it != this->configuration_map().end(); ++it) { + entry.reset(configuration_map_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.ApplicationConfiguration) + return target; +} + +size_t ApplicationConfiguration::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.ApplicationConfiguration) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map configuration_map = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->configuration_map_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->configuration_map().begin(); + it != this->configuration_map().end(); ++it) { + entry.reset(configuration_map_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ApplicationConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.ApplicationConfiguration) + GOOGLE_DCHECK_NE(&from, this); + const ApplicationConfiguration* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.ApplicationConfiguration) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.ApplicationConfiguration) + MergeFrom(*source); + } +} + +void ApplicationConfiguration::MergeFrom(const ApplicationConfiguration& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.ApplicationConfiguration) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + configuration_map_.MergeFrom(from.configuration_map_); +} + +void ApplicationConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.ApplicationConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ApplicationConfiguration::CopyFrom(const ApplicationConfiguration& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.ApplicationConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ApplicationConfiguration::IsInitialized() const { + return true; +} + +void ApplicationConfiguration::Swap(ApplicationConfiguration* other) { + if (other == this) return; + InternalSwap(other); +} +void ApplicationConfiguration::InternalSwap(ApplicationConfiguration* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + configuration_map_.Swap(&other->configuration_map_); +} + +::google::protobuf::Metadata ApplicationConfiguration::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ResourcesConfiguration::InitAsDefaultInstance() { + ::v1::model::_ResourcesConfiguration_default_instance_._instance.get_mutable()->disk_ = const_cast< ::v1::model::DiskConfiguration*>( + ::v1::model::DiskConfiguration::internal_default_instance()); +} +class ResourcesConfiguration::HasBitSetters { + public: + static const ::v1::model::DiskConfiguration& disk(const ResourcesConfiguration* msg); +}; + +const ::v1::model::DiskConfiguration& +ResourcesConfiguration::HasBitSetters::disk(const ResourcesConfiguration* msg) { + return *msg->disk_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ResourcesConfiguration::kDiskFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ResourcesConfiguration::ResourcesConfiguration() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.ResourcesConfiguration) +} +ResourcesConfiguration::ResourcesConfiguration(const ResourcesConfiguration& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_disk()) { + disk_ = new ::v1::model::DiskConfiguration(*from.disk_); + } else { + disk_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:v1.model.ResourcesConfiguration) +} + +void ResourcesConfiguration::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + disk_ = nullptr; +} + +ResourcesConfiguration::~ResourcesConfiguration() { + // @@protoc_insertion_point(destructor:v1.model.ResourcesConfiguration) + SharedDtor(); +} + +void ResourcesConfiguration::SharedDtor() { + if (this != internal_default_instance()) delete disk_; +} + +void ResourcesConfiguration::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ResourcesConfiguration& ResourcesConfiguration::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + return *internal_default_instance(); +} + + +void ResourcesConfiguration::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.ResourcesConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && disk_ != nullptr) { + delete disk_; + } + disk_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ResourcesConfiguration::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .v1.model.DiskConfiguration disk = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::v1::model::DiskConfiguration::_InternalParse; + object = msg->mutable_disk(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ResourcesConfiguration::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:v1.model.ResourcesConfiguration) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .v1.model.DiskConfiguration disk = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_disk())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:v1.model.ResourcesConfiguration) + return true; +failure: + // @@protoc_insertion_point(parse_failure:v1.model.ResourcesConfiguration) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ResourcesConfiguration::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:v1.model.ResourcesConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .v1.model.DiskConfiguration disk = 1; + if (this->has_disk()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::disk(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:v1.model.ResourcesConfiguration) +} + +::google::protobuf::uint8* ResourcesConfiguration::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.ResourcesConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .v1.model.DiskConfiguration disk = 1; + if (this->has_disk()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::disk(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.ResourcesConfiguration) + return target; +} + +size_t ResourcesConfiguration::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.ResourcesConfiguration) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .v1.model.DiskConfiguration disk = 1; + if (this->has_disk()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *disk_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ResourcesConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.ResourcesConfiguration) + GOOGLE_DCHECK_NE(&from, this); + const ResourcesConfiguration* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.ResourcesConfiguration) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.ResourcesConfiguration) + MergeFrom(*source); + } +} + +void ResourcesConfiguration::MergeFrom(const ResourcesConfiguration& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.ResourcesConfiguration) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_disk()) { + mutable_disk()->::v1::model::DiskConfiguration::MergeFrom(from.disk()); + } +} + +void ResourcesConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.ResourcesConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ResourcesConfiguration::CopyFrom(const ResourcesConfiguration& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.ResourcesConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourcesConfiguration::IsInitialized() const { + return true; +} + +void ResourcesConfiguration::Swap(ResourcesConfiguration* other) { + if (other == this) return; + InternalSwap(other); +} +void ResourcesConfiguration::InternalSwap(ResourcesConfiguration* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(disk_, other->disk_); +} + +::google::protobuf::Metadata ResourcesConfiguration::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DiskConfiguration::InitAsDefaultInstance() { +} +class DiskConfiguration::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DiskConfiguration::kBufferSizeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DiskConfiguration::DiskConfiguration() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.DiskConfiguration) +} +DiskConfiguration::DiskConfiguration(const DiskConfiguration& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + buffer_size_ = from.buffer_size_; + // @@protoc_insertion_point(copy_constructor:v1.model.DiskConfiguration) +} + +void DiskConfiguration::SharedCtor() { + buffer_size_ = PROTOBUF_LONGLONG(0); +} + +DiskConfiguration::~DiskConfiguration() { + // @@protoc_insertion_point(destructor:v1.model.DiskConfiguration) + SharedDtor(); +} + +void DiskConfiguration::SharedDtor() { +} + +void DiskConfiguration::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DiskConfiguration& DiskConfiguration::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DiskConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + return *internal_default_instance(); +} + + +void DiskConfiguration::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.DiskConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + buffer_size_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DiskConfiguration::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int64 buffer_size = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_buffer_size(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DiskConfiguration::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:v1.model.DiskConfiguration) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 buffer_size = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &buffer_size_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:v1.model.DiskConfiguration) + return true; +failure: + // @@protoc_insertion_point(parse_failure:v1.model.DiskConfiguration) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DiskConfiguration::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:v1.model.DiskConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 buffer_size = 1; + if (this->buffer_size() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->buffer_size(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:v1.model.DiskConfiguration) +} + +::google::protobuf::uint8* DiskConfiguration::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.DiskConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 buffer_size = 1; + if (this->buffer_size() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->buffer_size(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.DiskConfiguration) + return target; +} + +size_t DiskConfiguration::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.DiskConfiguration) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 buffer_size = 1; + if (this->buffer_size() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->buffer_size()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DiskConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.DiskConfiguration) + GOOGLE_DCHECK_NE(&from, this); + const DiskConfiguration* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.DiskConfiguration) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.DiskConfiguration) + MergeFrom(*source); + } +} + +void DiskConfiguration::MergeFrom(const DiskConfiguration& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.DiskConfiguration) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.buffer_size() != 0) { + set_buffer_size(from.buffer_size()); + } +} + +void DiskConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.DiskConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DiskConfiguration::CopyFrom(const DiskConfiguration& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.DiskConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DiskConfiguration::IsInitialized() const { + return true; +} + +void DiskConfiguration::Swap(DiskConfiguration* other) { + if (other == this) return; + InternalSwap(other); +} +void DiskConfiguration::InternalSwap(DiskConfiguration* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(buffer_size_, other->buffer_size_); +} + +::google::protobuf::Metadata DiskConfiguration::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ROSConfiguration::InitAsDefaultInstance() { +} +class ROSConfiguration::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ROSConfiguration::kWorldReferenceFrameIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ROSConfiguration::ROSConfiguration() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.ROSConfiguration) +} +ROSConfiguration::ROSConfiguration(const ROSConfiguration& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + world_reference_frame_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.world_reference_frame_id().size() > 0) { + world_reference_frame_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.world_reference_frame_id_); + } + // @@protoc_insertion_point(copy_constructor:v1.model.ROSConfiguration) +} + +void ROSConfiguration::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + world_reference_frame_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ROSConfiguration::~ROSConfiguration() { + // @@protoc_insertion_point(destructor:v1.model.ROSConfiguration) + SharedDtor(); +} + +void ROSConfiguration::SharedDtor() { + world_reference_frame_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ROSConfiguration::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ROSConfiguration& ROSConfiguration::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + return *internal_default_instance(); +} + + +void ROSConfiguration::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.ROSConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + world_reference_frame_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ROSConfiguration::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string world_reference_frame_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("v1.model.ROSConfiguration.world_reference_frame_id"); + object = msg->mutable_world_reference_frame_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ROSConfiguration::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:v1.model.ROSConfiguration) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string world_reference_frame_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_world_reference_frame_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->world_reference_frame_id().data(), static_cast(this->world_reference_frame_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.ROSConfiguration.world_reference_frame_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:v1.model.ROSConfiguration) + return true; +failure: + // @@protoc_insertion_point(parse_failure:v1.model.ROSConfiguration) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ROSConfiguration::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:v1.model.ROSConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string world_reference_frame_id = 1; + if (this->world_reference_frame_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->world_reference_frame_id().data(), static_cast(this->world_reference_frame_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.ROSConfiguration.world_reference_frame_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->world_reference_frame_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:v1.model.ROSConfiguration) +} + +::google::protobuf::uint8* ROSConfiguration::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.ROSConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string world_reference_frame_id = 1; + if (this->world_reference_frame_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->world_reference_frame_id().data(), static_cast(this->world_reference_frame_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.ROSConfiguration.world_reference_frame_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->world_reference_frame_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.ROSConfiguration) + return target; +} + +size_t ROSConfiguration::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.ROSConfiguration) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string world_reference_frame_id = 1; + if (this->world_reference_frame_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->world_reference_frame_id()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ROSConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.ROSConfiguration) + GOOGLE_DCHECK_NE(&from, this); + const ROSConfiguration* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.ROSConfiguration) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.ROSConfiguration) + MergeFrom(*source); + } +} + +void ROSConfiguration::MergeFrom(const ROSConfiguration& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.ROSConfiguration) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.world_reference_frame_id().size() > 0) { + + world_reference_frame_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.world_reference_frame_id_); + } +} + +void ROSConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.ROSConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ROSConfiguration::CopyFrom(const ROSConfiguration& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.ROSConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ROSConfiguration::IsInitialized() const { + return true; +} + +void ROSConfiguration::Swap(ROSConfiguration* other) { + if (other == this) return; + InternalSwap(other); +} +void ROSConfiguration::InternalSwap(ROSConfiguration* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + world_reference_frame_id_.Swap(&other->world_reference_frame_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata ROSConfiguration::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +StreamConfiguration_TagsEntry_DoNotUse::StreamConfiguration_TagsEntry_DoNotUse() {} +StreamConfiguration_TagsEntry_DoNotUse::StreamConfiguration_TagsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void StreamConfiguration_TagsEntry_DoNotUse::MergeFrom(const StreamConfiguration_TagsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata StreamConfiguration_TagsEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[9]; +} +void StreamConfiguration_TagsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool StreamConfiguration_TagsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + StreamConfiguration_TagsEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.StreamConfiguration.TagsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.StreamConfiguration.TagsEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void StreamConfiguration::InitAsDefaultInstance() { + ::v1::model::_StreamConfiguration_default_instance_.ros_topic_ = const_cast< ::v1::model::ROSTopic*>( + ::v1::model::ROSTopic::internal_default_instance()); + ::v1::model::_StreamConfiguration_default_instance_.ros_localization_ = const_cast< ::v1::model::ROSLocalization*>( + ::v1::model::ROSLocalization::internal_default_instance()); + ::v1::model::_StreamConfiguration_default_instance_.directory_watch_ = const_cast< ::v1::model::DirectoryWatch*>( + ::v1::model::DirectoryWatch::internal_default_instance()); + ::v1::model::_StreamConfiguration_default_instance_.file_tail_ = const_cast< ::v1::model::FileTail*>( + ::v1::model::FileTail::internal_default_instance()); +} +class StreamConfiguration::HasBitSetters { + public: + static const ::v1::model::ROSTopic& ros_topic(const StreamConfiguration* msg); + static const ::v1::model::ROSLocalization& ros_localization(const StreamConfiguration* msg); + static const ::v1::model::DirectoryWatch& directory_watch(const StreamConfiguration* msg); + static const ::v1::model::FileTail& file_tail(const StreamConfiguration* msg); +}; + +const ::v1::model::ROSTopic& +StreamConfiguration::HasBitSetters::ros_topic(const StreamConfiguration* msg) { + return *msg->configuration_.ros_topic_; +} +const ::v1::model::ROSLocalization& +StreamConfiguration::HasBitSetters::ros_localization(const StreamConfiguration* msg) { + return *msg->configuration_.ros_localization_; +} +const ::v1::model::DirectoryWatch& +StreamConfiguration::HasBitSetters::directory_watch(const StreamConfiguration* msg) { + return *msg->configuration_.directory_watch_; +} +const ::v1::model::FileTail& +StreamConfiguration::HasBitSetters::file_tail(const StreamConfiguration* msg) { + return *msg->configuration_.file_tail_; +} +void StreamConfiguration::set_allocated_ros_topic(::v1::model::ROSTopic* ros_topic) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_configuration(); + if (ros_topic) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + ros_topic = ::google::protobuf::internal::GetOwnedMessage( + message_arena, ros_topic, submessage_arena); + } + set_has_ros_topic(); + configuration_.ros_topic_ = ros_topic; + } + // @@protoc_insertion_point(field_set_allocated:v1.model.StreamConfiguration.ros_topic) +} +void StreamConfiguration::clear_ros_topic() { + if (has_ros_topic()) { + delete configuration_.ros_topic_; + clear_has_configuration(); + } +} +void StreamConfiguration::set_allocated_ros_localization(::v1::model::ROSLocalization* ros_localization) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_configuration(); + if (ros_localization) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + ros_localization = ::google::protobuf::internal::GetOwnedMessage( + message_arena, ros_localization, submessage_arena); + } + set_has_ros_localization(); + configuration_.ros_localization_ = ros_localization; + } + // @@protoc_insertion_point(field_set_allocated:v1.model.StreamConfiguration.ros_localization) +} +void StreamConfiguration::clear_ros_localization() { + if (has_ros_localization()) { + delete configuration_.ros_localization_; + clear_has_configuration(); + } +} +void StreamConfiguration::set_allocated_directory_watch(::v1::model::DirectoryWatch* directory_watch) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_configuration(); + if (directory_watch) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + directory_watch = ::google::protobuf::internal::GetOwnedMessage( + message_arena, directory_watch, submessage_arena); + } + set_has_directory_watch(); + configuration_.directory_watch_ = directory_watch; + } + // @@protoc_insertion_point(field_set_allocated:v1.model.StreamConfiguration.directory_watch) +} +void StreamConfiguration::set_allocated_file_tail(::v1::model::FileTail* file_tail) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_configuration(); + if (file_tail) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + file_tail = ::google::protobuf::internal::GetOwnedMessage( + message_arena, file_tail, submessage_arena); + } + set_has_file_tail(); + configuration_.file_tail_ = file_tail; + } + // @@protoc_insertion_point(field_set_allocated:v1.model.StreamConfiguration.file_tail) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StreamConfiguration::kNameFieldNumber; +const int StreamConfiguration::kTagsFieldNumber; +const int StreamConfiguration::kRosTopicFieldNumber; +const int StreamConfiguration::kRosLocalizationFieldNumber; +const int StreamConfiguration::kDirectoryWatchFieldNumber; +const int StreamConfiguration::kFileTailFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StreamConfiguration::StreamConfiguration() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.StreamConfiguration) +} +StreamConfiguration::StreamConfiguration(const StreamConfiguration& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tags_.MergeFrom(from.tags_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + clear_has_configuration(); + switch (from.configuration_case()) { + case kRosTopic: { + mutable_ros_topic()->::v1::model::ROSTopic::MergeFrom(from.ros_topic()); + break; + } + case kRosLocalization: { + mutable_ros_localization()->::v1::model::ROSLocalization::MergeFrom(from.ros_localization()); + break; + } + case kDirectoryWatch: { + mutable_directory_watch()->::v1::model::DirectoryWatch::MergeFrom(from.directory_watch()); + break; + } + case kFileTail: { + mutable_file_tail()->::v1::model::FileTail::MergeFrom(from.file_tail()); + break; + } + case CONFIGURATION_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:v1.model.StreamConfiguration) +} + +void StreamConfiguration::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_configuration(); +} + +StreamConfiguration::~StreamConfiguration() { + // @@protoc_insertion_point(destructor:v1.model.StreamConfiguration) + SharedDtor(); +} + +void StreamConfiguration::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (has_configuration()) { + clear_configuration(); + } +} + +void StreamConfiguration::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StreamConfiguration& StreamConfiguration::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + return *internal_default_instance(); +} + + +void StreamConfiguration::clear_configuration() { +// @@protoc_insertion_point(one_of_clear_start:v1.model.StreamConfiguration) + switch (configuration_case()) { + case kRosTopic: { + delete configuration_.ros_topic_; + break; + } + case kRosLocalization: { + delete configuration_.ros_localization_; + break; + } + case kDirectoryWatch: { + delete configuration_.directory_watch_; + break; + } + case kFileTail: { + delete configuration_.file_tail_; + break; + } + case CONFIGURATION_NOT_SET: { + break; + } + } + _oneof_case_[0] = CONFIGURATION_NOT_SET; +} + + +void StreamConfiguration::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.StreamConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tags_.Clear(); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_configuration(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* StreamConfiguration::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("v1.model.StreamConfiguration.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // map tags = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::v1::model::StreamConfiguration_TagsEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->tags_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + // .v1.model.ROSTopic ros_topic = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::v1::model::ROSTopic::_InternalParse; + object = msg->mutable_ros_topic(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .v1.model.ROSLocalization ros_localization = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::v1::model::ROSLocalization::_InternalParse; + object = msg->mutable_ros_localization(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .v1.model.DirectoryWatch directory_watch = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::v1::model::DirectoryWatch::_InternalParse; + object = msg->mutable_directory_watch(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .v1.model.FileTail file_tail = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::v1::model::FileTail::_InternalParse; + object = msg->mutable_file_tail(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool StreamConfiguration::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:v1.model.StreamConfiguration) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.StreamConfiguration.name")); + } else { + goto handle_unusual; + } + break; + } + + // map tags = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + StreamConfiguration_TagsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + StreamConfiguration_TagsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&tags_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.StreamConfiguration.TagsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.StreamConfiguration.TagsEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + // .v1.model.ROSTopic ros_topic = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_ros_topic())); + } else { + goto handle_unusual; + } + break; + } + + // .v1.model.ROSLocalization ros_localization = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_ros_localization())); + } else { + goto handle_unusual; + } + break; + } + + // .v1.model.DirectoryWatch directory_watch = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_directory_watch())); + } else { + goto handle_unusual; + } + break; + } + + // .v1.model.FileTail file_tail = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_file_tail())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:v1.model.StreamConfiguration) + return true; +failure: + // @@protoc_insertion_point(parse_failure:v1.model.StreamConfiguration) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void StreamConfiguration::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:v1.model.StreamConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.StreamConfiguration.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // map tags = 2; + if (!this->tags().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.StreamConfiguration.TagsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.StreamConfiguration.TagsEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->tags().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->tags().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(2, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it) { + entry.reset(tags_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(2, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + // .v1.model.ROSTopic ros_topic = 3; + if (has_ros_topic()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::ros_topic(this), output); + } + + // .v1.model.ROSLocalization ros_localization = 4; + if (has_ros_localization()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::ros_localization(this), output); + } + + // .v1.model.DirectoryWatch directory_watch = 5; + if (has_directory_watch()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::directory_watch(this), output); + } + + // .v1.model.FileTail file_tail = 6; + if (has_file_tail()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::file_tail(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:v1.model.StreamConfiguration) +} + +::google::protobuf::uint8* StreamConfiguration::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.StreamConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.StreamConfiguration.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // map tags = 2; + if (!this->tags().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.StreamConfiguration.TagsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.StreamConfiguration.TagsEntry.value"); + } + }; + + if (false && + this->tags().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->tags().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(2, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it) { + entry.reset(tags_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(2, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + // .v1.model.ROSTopic ros_topic = 3; + if (has_ros_topic()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::ros_topic(this), target); + } + + // .v1.model.ROSLocalization ros_localization = 4; + if (has_ros_localization()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::ros_localization(this), target); + } + + // .v1.model.DirectoryWatch directory_watch = 5; + if (has_directory_watch()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::directory_watch(this), target); + } + + // .v1.model.FileTail file_tail = 6; + if (has_file_tail()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::file_tail(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.StreamConfiguration) + return target; +} + +size_t StreamConfiguration::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.StreamConfiguration) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map tags = 2; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->tags_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it) { + entry.reset(tags_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + switch (configuration_case()) { + // .v1.model.ROSTopic ros_topic = 3; + case kRosTopic: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *configuration_.ros_topic_); + break; + } + // .v1.model.ROSLocalization ros_localization = 4; + case kRosLocalization: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *configuration_.ros_localization_); + break; + } + // .v1.model.DirectoryWatch directory_watch = 5; + case kDirectoryWatch: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *configuration_.directory_watch_); + break; + } + // .v1.model.FileTail file_tail = 6; + case kFileTail: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *configuration_.file_tail_); + break; + } + case CONFIGURATION_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StreamConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.StreamConfiguration) + GOOGLE_DCHECK_NE(&from, this); + const StreamConfiguration* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.StreamConfiguration) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.StreamConfiguration) + MergeFrom(*source); + } +} + +void StreamConfiguration::MergeFrom(const StreamConfiguration& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.StreamConfiguration) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tags_.MergeFrom(from.tags_); + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + switch (from.configuration_case()) { + case kRosTopic: { + mutable_ros_topic()->::v1::model::ROSTopic::MergeFrom(from.ros_topic()); + break; + } + case kRosLocalization: { + mutable_ros_localization()->::v1::model::ROSLocalization::MergeFrom(from.ros_localization()); + break; + } + case kDirectoryWatch: { + mutable_directory_watch()->::v1::model::DirectoryWatch::MergeFrom(from.directory_watch()); + break; + } + case kFileTail: { + mutable_file_tail()->::v1::model::FileTail::MergeFrom(from.file_tail()); + break; + } + case CONFIGURATION_NOT_SET: { + break; + } + } +} + +void StreamConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.StreamConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StreamConfiguration::CopyFrom(const StreamConfiguration& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.StreamConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StreamConfiguration::IsInitialized() const { + return true; +} + +void StreamConfiguration::Swap(StreamConfiguration* other) { + if (other == this) return; + InternalSwap(other); +} +void StreamConfiguration::InternalSwap(StreamConfiguration* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + tags_.Swap(&other->tags_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(configuration_, other->configuration_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata StreamConfiguration::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DirectoryWatch::InitAsDefaultInstance() { +} +class DirectoryWatch::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DirectoryWatch::kDirectoryFieldNumber; +const int DirectoryWatch::kExtensionFieldNumber; +const int DirectoryWatch::kFileTypeFieldNumber; +const int DirectoryWatch::kRemoteAgentFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DirectoryWatch::DirectoryWatch() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.DirectoryWatch) +} +DirectoryWatch::DirectoryWatch(const DirectoryWatch& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + directory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.directory().size() > 0) { + directory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.directory_); + } + extension_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.extension().size() > 0) { + extension_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extension_); + } + ::memcpy(&file_type_, &from.file_type_, + static_cast(reinterpret_cast(&remote_agent_) - + reinterpret_cast(&file_type_)) + sizeof(remote_agent_)); + // @@protoc_insertion_point(copy_constructor:v1.model.DirectoryWatch) +} + +void DirectoryWatch::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DirectoryWatch_protos_2fmodel_2fv1_2fconfig_2eproto.base); + directory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + extension_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&file_type_, 0, static_cast( + reinterpret_cast(&remote_agent_) - + reinterpret_cast(&file_type_)) + sizeof(remote_agent_)); +} + +DirectoryWatch::~DirectoryWatch() { + // @@protoc_insertion_point(destructor:v1.model.DirectoryWatch) + SharedDtor(); +} + +void DirectoryWatch::SharedDtor() { + directory_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + extension_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void DirectoryWatch::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DirectoryWatch& DirectoryWatch::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DirectoryWatch_protos_2fmodel_2fv1_2fconfig_2eproto.base); + return *internal_default_instance(); +} + + +void DirectoryWatch::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.DirectoryWatch) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + directory_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + extension_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&file_type_, 0, static_cast( + reinterpret_cast(&remote_agent_) - + reinterpret_cast(&file_type_)) + sizeof(remote_agent_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DirectoryWatch::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string directory = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("v1.model.DirectoryWatch.directory"); + object = msg->mutable_directory(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string extension = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("v1.model.DirectoryWatch.extension"); + object = msg->mutable_extension(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .v1.model.FileType file_type = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_file_type(static_cast<::v1::model::FileType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // bool remote_agent = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_remote_agent(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DirectoryWatch::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:v1.model.DirectoryWatch) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string directory = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_directory())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->directory().data(), static_cast(this->directory().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.DirectoryWatch.directory")); + } else { + goto handle_unusual; + } + break; + } + + // string extension = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_extension())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->extension().data(), static_cast(this->extension().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.DirectoryWatch.extension")); + } else { + goto handle_unusual; + } + break; + } + + // .v1.model.FileType file_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_file_type(static_cast< ::v1::model::FileType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // bool remote_agent = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &remote_agent_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:v1.model.DirectoryWatch) + return true; +failure: + // @@protoc_insertion_point(parse_failure:v1.model.DirectoryWatch) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DirectoryWatch::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:v1.model.DirectoryWatch) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string directory = 1; + if (this->directory().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->directory().data(), static_cast(this->directory().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.DirectoryWatch.directory"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->directory(), output); + } + + // string extension = 2; + if (this->extension().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->extension().data(), static_cast(this->extension().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.DirectoryWatch.extension"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->extension(), output); + } + + // .v1.model.FileType file_type = 3; + if (this->file_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->file_type(), output); + } + + // bool remote_agent = 4; + if (this->remote_agent() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->remote_agent(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:v1.model.DirectoryWatch) +} + +::google::protobuf::uint8* DirectoryWatch::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.DirectoryWatch) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string directory = 1; + if (this->directory().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->directory().data(), static_cast(this->directory().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.DirectoryWatch.directory"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->directory(), target); + } + + // string extension = 2; + if (this->extension().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->extension().data(), static_cast(this->extension().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.DirectoryWatch.extension"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->extension(), target); + } + + // .v1.model.FileType file_type = 3; + if (this->file_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->file_type(), target); + } + + // bool remote_agent = 4; + if (this->remote_agent() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->remote_agent(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.DirectoryWatch) + return target; +} + +size_t DirectoryWatch::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.DirectoryWatch) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string directory = 1; + if (this->directory().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->directory()); + } + + // string extension = 2; + if (this->extension().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->extension()); + } + + // .v1.model.FileType file_type = 3; + if (this->file_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->file_type()); + } + + // bool remote_agent = 4; + if (this->remote_agent() != 0) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DirectoryWatch::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.DirectoryWatch) + GOOGLE_DCHECK_NE(&from, this); + const DirectoryWatch* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.DirectoryWatch) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.DirectoryWatch) + MergeFrom(*source); + } +} + +void DirectoryWatch::MergeFrom(const DirectoryWatch& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.DirectoryWatch) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.directory().size() > 0) { + + directory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.directory_); + } + if (from.extension().size() > 0) { + + extension_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extension_); + } + if (from.file_type() != 0) { + set_file_type(from.file_type()); + } + if (from.remote_agent() != 0) { + set_remote_agent(from.remote_agent()); + } +} + +void DirectoryWatch::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.DirectoryWatch) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DirectoryWatch::CopyFrom(const DirectoryWatch& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.DirectoryWatch) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DirectoryWatch::IsInitialized() const { + return true; +} + +void DirectoryWatch::Swap(DirectoryWatch* other) { + if (other == this) return; + InternalSwap(other); +} +void DirectoryWatch::InternalSwap(DirectoryWatch* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + directory_.Swap(&other->directory_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + extension_.Swap(&other->extension_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(file_type_, other->file_type_); + swap(remote_agent_, other->remote_agent_); +} + +::google::protobuf::Metadata DirectoryWatch::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void FileTail::InitAsDefaultInstance() { +} +class FileTail::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int FileTail::kFilenameFieldNumber; +const int FileTail::kFileFormatFieldNumber; +const int FileTail::kTimeKeyFieldNumber; +const int FileTail::kTimeFormatFieldNumber; +const int FileTail::kRegexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +FileTail::FileTail() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.FileTail) +} +FileTail::FileTail(const FileTail& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filename().size() > 0) { + filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); + } + time_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.time_key().size() > 0) { + time_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_key_); + } + time_format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.time_format().size() > 0) { + time_format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_format_); + } + regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.regex().size() > 0) { + regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); + } + file_format_ = from.file_format_; + // @@protoc_insertion_point(copy_constructor:v1.model.FileTail) +} + +void FileTail::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_FileTail_protos_2fmodel_2fv1_2fconfig_2eproto.base); + filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + time_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + time_format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + file_format_ = 0; +} + +FileTail::~FileTail() { + // @@protoc_insertion_point(destructor:v1.model.FileTail) + SharedDtor(); +} + +void FileTail::SharedDtor() { + filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + time_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + time_format_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void FileTail::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const FileTail& FileTail::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_FileTail_protos_2fmodel_2fv1_2fconfig_2eproto.base); + return *internal_default_instance(); +} + + +void FileTail::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.FileTail) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + time_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + time_format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + file_format_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FileTail::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string filename = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("v1.model.FileTail.filename"); + object = msg->mutable_filename(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .v1.model.FileFormat file_format = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_file_format(static_cast<::v1::model::FileFormat>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string time_key = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("v1.model.FileTail.time_key"); + object = msg->mutable_time_key(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string time_format = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("v1.model.FileTail.time_format"); + object = msg->mutable_time_format(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string regex = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("v1.model.FileTail.regex"); + object = msg->mutable_regex(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool FileTail::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:v1.model.FileTail) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string filename = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filename())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filename().data(), static_cast(this->filename().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.FileTail.filename")); + } else { + goto handle_unusual; + } + break; + } + + // .v1.model.FileFormat file_format = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_file_format(static_cast< ::v1::model::FileFormat >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string time_key = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_time_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->time_key().data(), static_cast(this->time_key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.FileTail.time_key")); + } else { + goto handle_unusual; + } + break; + } + + // string time_format = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_time_format())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->time_format().data(), static_cast(this->time_format().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.FileTail.time_format")); + } else { + goto handle_unusual; + } + break; + } + + // string regex = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_regex())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.FileTail.regex")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:v1.model.FileTail) + return true; +failure: + // @@protoc_insertion_point(parse_failure:v1.model.FileTail) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void FileTail::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:v1.model.FileTail) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string filename = 1; + if (this->filename().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filename().data(), static_cast(this->filename().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.FileTail.filename"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->filename(), output); + } + + // .v1.model.FileFormat file_format = 2; + if (this->file_format() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->file_format(), output); + } + + // string time_key = 3; + if (this->time_key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->time_key().data(), static_cast(this->time_key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.FileTail.time_key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->time_key(), output); + } + + // string time_format = 4; + if (this->time_format().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->time_format().data(), static_cast(this->time_format().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.FileTail.time_format"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->time_format(), output); + } + + // string regex = 5; + if (this->regex().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.FileTail.regex"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->regex(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:v1.model.FileTail) +} + +::google::protobuf::uint8* FileTail::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.FileTail) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string filename = 1; + if (this->filename().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filename().data(), static_cast(this->filename().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.FileTail.filename"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->filename(), target); + } + + // .v1.model.FileFormat file_format = 2; + if (this->file_format() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->file_format(), target); + } + + // string time_key = 3; + if (this->time_key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->time_key().data(), static_cast(this->time_key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.FileTail.time_key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->time_key(), target); + } + + // string time_format = 4; + if (this->time_format().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->time_format().data(), static_cast(this->time_format().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.FileTail.time_format"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->time_format(), target); + } + + // string regex = 5; + if (this->regex().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "v1.model.FileTail.regex"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->regex(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.FileTail) + return target; +} + +size_t FileTail::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.FileTail) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string filename = 1; + if (this->filename().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filename()); + } + + // string time_key = 3; + if (this->time_key().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->time_key()); + } + + // string time_format = 4; + if (this->time_format().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->time_format()); + } + + // string regex = 5; + if (this->regex().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->regex()); + } + + // .v1.model.FileFormat file_format = 2; + if (this->file_format() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->file_format()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FileTail::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.FileTail) + GOOGLE_DCHECK_NE(&from, this); + const FileTail* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.FileTail) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.FileTail) + MergeFrom(*source); + } +} + +void FileTail::MergeFrom(const FileTail& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.FileTail) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.filename().size() > 0) { + + filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); + } + if (from.time_key().size() > 0) { + + time_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_key_); + } + if (from.time_format().size() > 0) { + + time_format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_format_); + } + if (from.regex().size() > 0) { + + regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); + } + if (from.file_format() != 0) { + set_file_format(from.file_format()); + } +} + +void FileTail::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.FileTail) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FileTail::CopyFrom(const FileTail& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.FileTail) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FileTail::IsInitialized() const { + return true; +} + +void FileTail::Swap(FileTail* other) { + if (other == this) return; + InternalSwap(other); +} +void FileTail::InternalSwap(FileTail* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + filename_.Swap(&other->filename_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + time_key_.Swap(&other->time_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + time_format_.Swap(&other->time_format_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + regex_.Swap(&other->regex_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(file_format_, other->file_format_); +} + +::google::protobuf::Metadata FileTail::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace model +} // namespace v1 +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::v1::model::AgentConfiguration* Arena::CreateMaybeMessage< ::v1::model::AgentConfiguration >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::AgentConfiguration >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse* Arena::CreateMaybeMessage< ::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::AgentConfigurationDocument* Arena::CreateMaybeMessage< ::v1::model::AgentConfigurationDocument >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::AgentConfigurationDocument >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::TelemetryConfiguration* Arena::CreateMaybeMessage< ::v1::model::TelemetryConfiguration >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::TelemetryConfiguration >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse* Arena::CreateMaybeMessage< ::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::ApplicationConfiguration* Arena::CreateMaybeMessage< ::v1::model::ApplicationConfiguration >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::ApplicationConfiguration >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::ResourcesConfiguration* Arena::CreateMaybeMessage< ::v1::model::ResourcesConfiguration >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::ResourcesConfiguration >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::DiskConfiguration* Arena::CreateMaybeMessage< ::v1::model::DiskConfiguration >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::DiskConfiguration >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::ROSConfiguration* Arena::CreateMaybeMessage< ::v1::model::ROSConfiguration >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::ROSConfiguration >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::StreamConfiguration_TagsEntry_DoNotUse* Arena::CreateMaybeMessage< ::v1::model::StreamConfiguration_TagsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::StreamConfiguration_TagsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::StreamConfiguration* Arena::CreateMaybeMessage< ::v1::model::StreamConfiguration >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::StreamConfiguration >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::DirectoryWatch* Arena::CreateMaybeMessage< ::v1::model::DirectoryWatch >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::DirectoryWatch >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::FileTail* Arena::CreateMaybeMessage< ::v1::model::FileTail >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::FileTail >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/examples/cpp/protos/model/v1/config.pb.h b/examples/cpp/protos/model/v1/config.pb.h new file mode 100755 index 0000000..7702d15 --- /dev/null +++ b/examples/cpp/protos/model/v1/config.pb.h @@ -0,0 +1,2909 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: protos/model/v1/config.proto + +#ifndef PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fconfig_2eproto +#define PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fconfig_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#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 3007001 < 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 +#include "protos/model/v1/ros.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[13] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_protos_2fmodel_2fv1_2fconfig_2eproto(); +namespace v1 { +namespace model { +class AgentConfiguration; +class AgentConfigurationDefaultTypeInternal; +extern AgentConfigurationDefaultTypeInternal _AgentConfiguration_default_instance_; +class AgentConfigurationDocument; +class AgentConfigurationDocumentDefaultTypeInternal; +extern AgentConfigurationDocumentDefaultTypeInternal _AgentConfigurationDocument_default_instance_; +class AgentConfigurationDocument_TagsEntry_DoNotUse; +class AgentConfigurationDocument_TagsEntry_DoNotUseDefaultTypeInternal; +extern AgentConfigurationDocument_TagsEntry_DoNotUseDefaultTypeInternal _AgentConfigurationDocument_TagsEntry_DoNotUse_default_instance_; +class ApplicationConfiguration; +class ApplicationConfigurationDefaultTypeInternal; +extern ApplicationConfigurationDefaultTypeInternal _ApplicationConfiguration_default_instance_; +class ApplicationConfiguration_ConfigurationMapEntry_DoNotUse; +class ApplicationConfiguration_ConfigurationMapEntry_DoNotUseDefaultTypeInternal; +extern ApplicationConfiguration_ConfigurationMapEntry_DoNotUseDefaultTypeInternal _ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_default_instance_; +class DirectoryWatch; +class DirectoryWatchDefaultTypeInternal; +extern DirectoryWatchDefaultTypeInternal _DirectoryWatch_default_instance_; +class DiskConfiguration; +class DiskConfigurationDefaultTypeInternal; +extern DiskConfigurationDefaultTypeInternal _DiskConfiguration_default_instance_; +class FileTail; +class FileTailDefaultTypeInternal; +extern FileTailDefaultTypeInternal _FileTail_default_instance_; +class ROSConfiguration; +class ROSConfigurationDefaultTypeInternal; +extern ROSConfigurationDefaultTypeInternal _ROSConfiguration_default_instance_; +class ResourcesConfiguration; +class ResourcesConfigurationDefaultTypeInternal; +extern ResourcesConfigurationDefaultTypeInternal _ResourcesConfiguration_default_instance_; +class StreamConfiguration; +class StreamConfigurationDefaultTypeInternal; +extern StreamConfigurationDefaultTypeInternal _StreamConfiguration_default_instance_; +class StreamConfiguration_TagsEntry_DoNotUse; +class StreamConfiguration_TagsEntry_DoNotUseDefaultTypeInternal; +extern StreamConfiguration_TagsEntry_DoNotUseDefaultTypeInternal _StreamConfiguration_TagsEntry_DoNotUse_default_instance_; +class TelemetryConfiguration; +class TelemetryConfigurationDefaultTypeInternal; +extern TelemetryConfigurationDefaultTypeInternal _TelemetryConfiguration_default_instance_; +} // namespace model +} // namespace v1 +namespace google { +namespace protobuf { +template<> ::v1::model::AgentConfiguration* Arena::CreateMaybeMessage<::v1::model::AgentConfiguration>(Arena*); +template<> ::v1::model::AgentConfigurationDocument* Arena::CreateMaybeMessage<::v1::model::AgentConfigurationDocument>(Arena*); +template<> ::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse* Arena::CreateMaybeMessage<::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse>(Arena*); +template<> ::v1::model::ApplicationConfiguration* Arena::CreateMaybeMessage<::v1::model::ApplicationConfiguration>(Arena*); +template<> ::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse* Arena::CreateMaybeMessage<::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse>(Arena*); +template<> ::v1::model::DirectoryWatch* Arena::CreateMaybeMessage<::v1::model::DirectoryWatch>(Arena*); +template<> ::v1::model::DiskConfiguration* Arena::CreateMaybeMessage<::v1::model::DiskConfiguration>(Arena*); +template<> ::v1::model::FileTail* Arena::CreateMaybeMessage<::v1::model::FileTail>(Arena*); +template<> ::v1::model::ROSConfiguration* Arena::CreateMaybeMessage<::v1::model::ROSConfiguration>(Arena*); +template<> ::v1::model::ResourcesConfiguration* Arena::CreateMaybeMessage<::v1::model::ResourcesConfiguration>(Arena*); +template<> ::v1::model::StreamConfiguration* Arena::CreateMaybeMessage<::v1::model::StreamConfiguration>(Arena*); +template<> ::v1::model::StreamConfiguration_TagsEntry_DoNotUse* Arena::CreateMaybeMessage<::v1::model::StreamConfiguration_TagsEntry_DoNotUse>(Arena*); +template<> ::v1::model::TelemetryConfiguration* Arena::CreateMaybeMessage<::v1::model::TelemetryConfiguration>(Arena*); +} // namespace protobuf +} // namespace google +namespace v1 { +namespace model { + +enum FileFormat { + PLAIN_TEXT = 0, + JSON = 1, + FileFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + FileFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool FileFormat_IsValid(int value); +const FileFormat FileFormat_MIN = PLAIN_TEXT; +const FileFormat FileFormat_MAX = JSON; +const int FileFormat_ARRAYSIZE = FileFormat_MAX + 1; + +const ::google::protobuf::EnumDescriptor* FileFormat_descriptor(); +inline const ::std::string& FileFormat_Name(FileFormat value) { + return ::google::protobuf::internal::NameOfEnum( + FileFormat_descriptor(), value); +} +inline bool FileFormat_Parse( + const ::std::string& name, FileFormat* value) { + return ::google::protobuf::internal::ParseNamedEnum( + FileFormat_descriptor(), name, value); +} +enum FileType { + FILE = 0, + IMAGE = 1, + POINT_CLOUD = 4, + FileType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + FileType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool FileType_IsValid(int value); +const FileType FileType_MIN = FILE; +const FileType FileType_MAX = POINT_CLOUD; +const int FileType_ARRAYSIZE = FileType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* FileType_descriptor(); +inline const ::std::string& FileType_Name(FileType value) { + return ::google::protobuf::internal::NameOfEnum( + FileType_descriptor(), value); +} +inline bool FileType_Parse( + const ::std::string& name, FileType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + FileType_descriptor(), name, value); +} +// =================================================================== + +class AgentConfiguration : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.AgentConfiguration) */ { + public: + AgentConfiguration(); + virtual ~AgentConfiguration(); + + AgentConfiguration(const AgentConfiguration& from); + + inline AgentConfiguration& operator=(const AgentConfiguration& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AgentConfiguration(AgentConfiguration&& from) noexcept + : AgentConfiguration() { + *this = ::std::move(from); + } + + inline AgentConfiguration& operator=(AgentConfiguration&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AgentConfiguration& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AgentConfiguration* internal_default_instance() { + return reinterpret_cast( + &_AgentConfiguration_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(AgentConfiguration* other); + friend void swap(AgentConfiguration& a, AgentConfiguration& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AgentConfiguration* New() const final { + return CreateMaybeMessage(nullptr); + } + + AgentConfiguration* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AgentConfiguration& from); + void MergeFrom(const AgentConfiguration& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AgentConfiguration* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string id = 1; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::std::string& id() const; + void set_id(const ::std::string& value); + #if LANG_CXX11 + void set_id(::std::string&& value); + #endif + void set_id(const char* value); + void set_id(const char* value, size_t size); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); + + // string name = 2; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .v1.model.AgentConfigurationDocument document = 3; + bool has_document() const; + void clear_document(); + static const int kDocumentFieldNumber = 3; + const ::v1::model::AgentConfigurationDocument& document() const; + ::v1::model::AgentConfigurationDocument* release_document(); + ::v1::model::AgentConfigurationDocument* mutable_document(); + void set_allocated_document(::v1::model::AgentConfigurationDocument* document); + + // @@protoc_insertion_point(class_scope:v1.model.AgentConfiguration) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr id_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::v1::model::AgentConfigurationDocument* document_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto; +}; +// ------------------------------------------------------------------- + +class AgentConfigurationDocument_TagsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + AgentConfigurationDocument_TagsEntry_DoNotUse(); + AgentConfigurationDocument_TagsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const AgentConfigurationDocument_TagsEntry_DoNotUse& other); + static const AgentConfigurationDocument_TagsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AgentConfigurationDocument_TagsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class AgentConfigurationDocument : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.AgentConfigurationDocument) */ { + public: + AgentConfigurationDocument(); + virtual ~AgentConfigurationDocument(); + + AgentConfigurationDocument(const AgentConfigurationDocument& from); + + inline AgentConfigurationDocument& operator=(const AgentConfigurationDocument& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AgentConfigurationDocument(AgentConfigurationDocument&& from) noexcept + : AgentConfigurationDocument() { + *this = ::std::move(from); + } + + inline AgentConfigurationDocument& operator=(AgentConfigurationDocument&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AgentConfigurationDocument& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AgentConfigurationDocument* internal_default_instance() { + return reinterpret_cast( + &_AgentConfigurationDocument_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(AgentConfigurationDocument* other); + friend void swap(AgentConfigurationDocument& a, AgentConfigurationDocument& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AgentConfigurationDocument* New() const final { + return CreateMaybeMessage(nullptr); + } + + AgentConfigurationDocument* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AgentConfigurationDocument& from); + void MergeFrom(const AgentConfigurationDocument& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AgentConfigurationDocument* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map tags = 2; + int tags_size() const; + void clear_tags(); + static const int kTagsFieldNumber = 2; + const ::google::protobuf::Map< ::std::string, ::std::string >& + tags() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_tags(); + + // .v1.model.TelemetryConfiguration telemetry = 3; + bool has_telemetry() const; + void clear_telemetry(); + static const int kTelemetryFieldNumber = 3; + const ::v1::model::TelemetryConfiguration& telemetry() const; + ::v1::model::TelemetryConfiguration* release_telemetry(); + ::v1::model::TelemetryConfiguration* mutable_telemetry(); + void set_allocated_telemetry(::v1::model::TelemetryConfiguration* telemetry); + + // .v1.model.ResourcesConfiguration resources = 4; + bool has_resources() const; + void clear_resources(); + static const int kResourcesFieldNumber = 4; + const ::v1::model::ResourcesConfiguration& resources() const; + ::v1::model::ResourcesConfiguration* release_resources(); + ::v1::model::ResourcesConfiguration* mutable_resources(); + void set_allocated_resources(::v1::model::ResourcesConfiguration* resources); + + // .v1.model.ApplicationConfiguration application = 5; + bool has_application() const; + void clear_application(); + static const int kApplicationFieldNumber = 5; + const ::v1::model::ApplicationConfiguration& application() const; + ::v1::model::ApplicationConfiguration* release_application(); + ::v1::model::ApplicationConfiguration* mutable_application(); + void set_allocated_application(::v1::model::ApplicationConfiguration* application); + + // int32 version = 1; + void clear_version(); + static const int kVersionFieldNumber = 1; + ::google::protobuf::int32 version() const; + void set_version(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:v1.model.AgentConfigurationDocument) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + AgentConfigurationDocument_TagsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > tags_; + ::v1::model::TelemetryConfiguration* telemetry_; + ::v1::model::ResourcesConfiguration* resources_; + ::v1::model::ApplicationConfiguration* application_; + ::google::protobuf::int32 version_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto; +}; +// ------------------------------------------------------------------- + +class TelemetryConfiguration : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.TelemetryConfiguration) */ { + public: + TelemetryConfiguration(); + virtual ~TelemetryConfiguration(); + + TelemetryConfiguration(const TelemetryConfiguration& from); + + inline TelemetryConfiguration& operator=(const TelemetryConfiguration& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TelemetryConfiguration(TelemetryConfiguration&& from) noexcept + : TelemetryConfiguration() { + *this = ::std::move(from); + } + + inline TelemetryConfiguration& operator=(TelemetryConfiguration&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TelemetryConfiguration& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TelemetryConfiguration* internal_default_instance() { + return reinterpret_cast( + &_TelemetryConfiguration_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(TelemetryConfiguration* other); + friend void swap(TelemetryConfiguration& a, TelemetryConfiguration& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TelemetryConfiguration* New() const final { + return CreateMaybeMessage(nullptr); + } + + TelemetryConfiguration* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TelemetryConfiguration& from); + void MergeFrom(const TelemetryConfiguration& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TelemetryConfiguration* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .v1.model.StreamConfiguration streams = 1; + int streams_size() const; + void clear_streams(); + static const int kStreamsFieldNumber = 1; + ::v1::model::StreamConfiguration* mutable_streams(int index); + ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >* + mutable_streams(); + const ::v1::model::StreamConfiguration& streams(int index) const; + ::v1::model::StreamConfiguration* add_streams(); + const ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >& + streams() const; + + // .v1.model.ROSConfiguration ros = 2; + bool has_ros() const; + void clear_ros(); + static const int kRosFieldNumber = 2; + const ::v1::model::ROSConfiguration& ros() const; + ::v1::model::ROSConfiguration* release_ros(); + ::v1::model::ROSConfiguration* mutable_ros(); + void set_allocated_ros(::v1::model::ROSConfiguration* ros); + + // @@protoc_insertion_point(class_scope:v1.model.TelemetryConfiguration) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration > streams_; + ::v1::model::ROSConfiguration* ros_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto; +}; +// ------------------------------------------------------------------- + +class ApplicationConfiguration_ConfigurationMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + ApplicationConfiguration_ConfigurationMapEntry_DoNotUse(); + ApplicationConfiguration_ConfigurationMapEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const ApplicationConfiguration_ConfigurationMapEntry_DoNotUse& other); + static const ApplicationConfiguration_ConfigurationMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class ApplicationConfiguration : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.ApplicationConfiguration) */ { + public: + ApplicationConfiguration(); + virtual ~ApplicationConfiguration(); + + ApplicationConfiguration(const ApplicationConfiguration& from); + + inline ApplicationConfiguration& operator=(const ApplicationConfiguration& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ApplicationConfiguration(ApplicationConfiguration&& from) noexcept + : ApplicationConfiguration() { + *this = ::std::move(from); + } + + inline ApplicationConfiguration& operator=(ApplicationConfiguration&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ApplicationConfiguration& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ApplicationConfiguration* internal_default_instance() { + return reinterpret_cast( + &_ApplicationConfiguration_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(ApplicationConfiguration* other); + friend void swap(ApplicationConfiguration& a, ApplicationConfiguration& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ApplicationConfiguration* New() const final { + return CreateMaybeMessage(nullptr); + } + + ApplicationConfiguration* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ApplicationConfiguration& from); + void MergeFrom(const ApplicationConfiguration& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ApplicationConfiguration* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map configuration_map = 1; + int configuration_map_size() const; + void clear_configuration_map(); + static const int kConfigurationMapFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::std::string >& + configuration_map() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_configuration_map(); + + // @@protoc_insertion_point(class_scope:v1.model.ApplicationConfiguration) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + ApplicationConfiguration_ConfigurationMapEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > configuration_map_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourcesConfiguration : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.ResourcesConfiguration) */ { + public: + ResourcesConfiguration(); + virtual ~ResourcesConfiguration(); + + ResourcesConfiguration(const ResourcesConfiguration& from); + + inline ResourcesConfiguration& operator=(const ResourcesConfiguration& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ResourcesConfiguration(ResourcesConfiguration&& from) noexcept + : ResourcesConfiguration() { + *this = ::std::move(from); + } + + inline ResourcesConfiguration& operator=(ResourcesConfiguration&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ResourcesConfiguration& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ResourcesConfiguration* internal_default_instance() { + return reinterpret_cast( + &_ResourcesConfiguration_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(ResourcesConfiguration* other); + friend void swap(ResourcesConfiguration& a, ResourcesConfiguration& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ResourcesConfiguration* New() const final { + return CreateMaybeMessage(nullptr); + } + + ResourcesConfiguration* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ResourcesConfiguration& from); + void MergeFrom(const ResourcesConfiguration& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourcesConfiguration* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .v1.model.DiskConfiguration disk = 1; + bool has_disk() const; + void clear_disk(); + static const int kDiskFieldNumber = 1; + const ::v1::model::DiskConfiguration& disk() const; + ::v1::model::DiskConfiguration* release_disk(); + ::v1::model::DiskConfiguration* mutable_disk(); + void set_allocated_disk(::v1::model::DiskConfiguration* disk); + + // @@protoc_insertion_point(class_scope:v1.model.ResourcesConfiguration) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::v1::model::DiskConfiguration* disk_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto; +}; +// ------------------------------------------------------------------- + +class DiskConfiguration : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.DiskConfiguration) */ { + public: + DiskConfiguration(); + virtual ~DiskConfiguration(); + + DiskConfiguration(const DiskConfiguration& from); + + inline DiskConfiguration& operator=(const DiskConfiguration& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DiskConfiguration(DiskConfiguration&& from) noexcept + : DiskConfiguration() { + *this = ::std::move(from); + } + + inline DiskConfiguration& operator=(DiskConfiguration&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DiskConfiguration& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DiskConfiguration* internal_default_instance() { + return reinterpret_cast( + &_DiskConfiguration_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(DiskConfiguration* other); + friend void swap(DiskConfiguration& a, DiskConfiguration& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DiskConfiguration* New() const final { + return CreateMaybeMessage(nullptr); + } + + DiskConfiguration* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DiskConfiguration& from); + void MergeFrom(const DiskConfiguration& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DiskConfiguration* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // int64 buffer_size = 1; + void clear_buffer_size(); + static const int kBufferSizeFieldNumber = 1; + ::google::protobuf::int64 buffer_size() const; + void set_buffer_size(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:v1.model.DiskConfiguration) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int64 buffer_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto; +}; +// ------------------------------------------------------------------- + +class ROSConfiguration : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.ROSConfiguration) */ { + public: + ROSConfiguration(); + virtual ~ROSConfiguration(); + + ROSConfiguration(const ROSConfiguration& from); + + inline ROSConfiguration& operator=(const ROSConfiguration& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ROSConfiguration(ROSConfiguration&& from) noexcept + : ROSConfiguration() { + *this = ::std::move(from); + } + + inline ROSConfiguration& operator=(ROSConfiguration&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ROSConfiguration& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ROSConfiguration* internal_default_instance() { + return reinterpret_cast( + &_ROSConfiguration_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(ROSConfiguration* other); + friend void swap(ROSConfiguration& a, ROSConfiguration& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ROSConfiguration* New() const final { + return CreateMaybeMessage(nullptr); + } + + ROSConfiguration* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ROSConfiguration& from); + void MergeFrom(const ROSConfiguration& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ROSConfiguration* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string world_reference_frame_id = 1; + void clear_world_reference_frame_id(); + static const int kWorldReferenceFrameIdFieldNumber = 1; + const ::std::string& world_reference_frame_id() const; + void set_world_reference_frame_id(const ::std::string& value); + #if LANG_CXX11 + void set_world_reference_frame_id(::std::string&& value); + #endif + void set_world_reference_frame_id(const char* value); + void set_world_reference_frame_id(const char* value, size_t size); + ::std::string* mutable_world_reference_frame_id(); + ::std::string* release_world_reference_frame_id(); + void set_allocated_world_reference_frame_id(::std::string* world_reference_frame_id); + + // @@protoc_insertion_point(class_scope:v1.model.ROSConfiguration) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr world_reference_frame_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto; +}; +// ------------------------------------------------------------------- + +class StreamConfiguration_TagsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + StreamConfiguration_TagsEntry_DoNotUse(); + StreamConfiguration_TagsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const StreamConfiguration_TagsEntry_DoNotUse& other); + static const StreamConfiguration_TagsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_StreamConfiguration_TagsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class StreamConfiguration : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.StreamConfiguration) */ { + public: + StreamConfiguration(); + virtual ~StreamConfiguration(); + + StreamConfiguration(const StreamConfiguration& from); + + inline StreamConfiguration& operator=(const StreamConfiguration& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StreamConfiguration(StreamConfiguration&& from) noexcept + : StreamConfiguration() { + *this = ::std::move(from); + } + + inline StreamConfiguration& operator=(StreamConfiguration&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const StreamConfiguration& default_instance(); + + enum ConfigurationCase { + kRosTopic = 3, + kRosLocalization = 4, + kDirectoryWatch = 5, + kFileTail = 6, + CONFIGURATION_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StreamConfiguration* internal_default_instance() { + return reinterpret_cast( + &_StreamConfiguration_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(StreamConfiguration* other); + friend void swap(StreamConfiguration& a, StreamConfiguration& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StreamConfiguration* New() const final { + return CreateMaybeMessage(nullptr); + } + + StreamConfiguration* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StreamConfiguration& from); + void MergeFrom(const StreamConfiguration& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StreamConfiguration* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map tags = 2; + int tags_size() const; + void clear_tags(); + static const int kTagsFieldNumber = 2; + const ::google::protobuf::Map< ::std::string, ::std::string >& + tags() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_tags(); + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .v1.model.ROSTopic ros_topic = 3; + bool has_ros_topic() const; + void clear_ros_topic(); + static const int kRosTopicFieldNumber = 3; + const ::v1::model::ROSTopic& ros_topic() const; + ::v1::model::ROSTopic* release_ros_topic(); + ::v1::model::ROSTopic* mutable_ros_topic(); + void set_allocated_ros_topic(::v1::model::ROSTopic* ros_topic); + + // .v1.model.ROSLocalization ros_localization = 4; + bool has_ros_localization() const; + void clear_ros_localization(); + static const int kRosLocalizationFieldNumber = 4; + const ::v1::model::ROSLocalization& ros_localization() const; + ::v1::model::ROSLocalization* release_ros_localization(); + ::v1::model::ROSLocalization* mutable_ros_localization(); + void set_allocated_ros_localization(::v1::model::ROSLocalization* ros_localization); + + // .v1.model.DirectoryWatch directory_watch = 5; + bool has_directory_watch() const; + void clear_directory_watch(); + static const int kDirectoryWatchFieldNumber = 5; + const ::v1::model::DirectoryWatch& directory_watch() const; + ::v1::model::DirectoryWatch* release_directory_watch(); + ::v1::model::DirectoryWatch* mutable_directory_watch(); + void set_allocated_directory_watch(::v1::model::DirectoryWatch* directory_watch); + + // .v1.model.FileTail file_tail = 6; + bool has_file_tail() const; + void clear_file_tail(); + static const int kFileTailFieldNumber = 6; + const ::v1::model::FileTail& file_tail() const; + ::v1::model::FileTail* release_file_tail(); + ::v1::model::FileTail* mutable_file_tail(); + void set_allocated_file_tail(::v1::model::FileTail* file_tail); + + void clear_configuration(); + ConfigurationCase configuration_case() const; + // @@protoc_insertion_point(class_scope:v1.model.StreamConfiguration) + private: + class HasBitSetters; + void set_has_ros_topic(); + void set_has_ros_localization(); + void set_has_directory_watch(); + void set_has_file_tail(); + + inline bool has_configuration() const; + inline void clear_has_configuration(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + StreamConfiguration_TagsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > tags_; + ::google::protobuf::internal::ArenaStringPtr name_; + union ConfigurationUnion { + ConfigurationUnion() {} + ::v1::model::ROSTopic* ros_topic_; + ::v1::model::ROSLocalization* ros_localization_; + ::v1::model::DirectoryWatch* directory_watch_; + ::v1::model::FileTail* file_tail_; + } configuration_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto; +}; +// ------------------------------------------------------------------- + +class DirectoryWatch : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.DirectoryWatch) */ { + public: + DirectoryWatch(); + virtual ~DirectoryWatch(); + + DirectoryWatch(const DirectoryWatch& from); + + inline DirectoryWatch& operator=(const DirectoryWatch& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DirectoryWatch(DirectoryWatch&& from) noexcept + : DirectoryWatch() { + *this = ::std::move(from); + } + + inline DirectoryWatch& operator=(DirectoryWatch&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DirectoryWatch& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DirectoryWatch* internal_default_instance() { + return reinterpret_cast( + &_DirectoryWatch_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(DirectoryWatch* other); + friend void swap(DirectoryWatch& a, DirectoryWatch& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DirectoryWatch* New() const final { + return CreateMaybeMessage(nullptr); + } + + DirectoryWatch* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DirectoryWatch& from); + void MergeFrom(const DirectoryWatch& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DirectoryWatch* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string directory = 1; + void clear_directory(); + static const int kDirectoryFieldNumber = 1; + const ::std::string& directory() const; + void set_directory(const ::std::string& value); + #if LANG_CXX11 + void set_directory(::std::string&& value); + #endif + void set_directory(const char* value); + void set_directory(const char* value, size_t size); + ::std::string* mutable_directory(); + ::std::string* release_directory(); + void set_allocated_directory(::std::string* directory); + + // string extension = 2; + void clear_extension(); + static const int kExtensionFieldNumber = 2; + const ::std::string& extension() const; + void set_extension(const ::std::string& value); + #if LANG_CXX11 + void set_extension(::std::string&& value); + #endif + void set_extension(const char* value); + void set_extension(const char* value, size_t size); + ::std::string* mutable_extension(); + ::std::string* release_extension(); + void set_allocated_extension(::std::string* extension); + + // .v1.model.FileType file_type = 3; + void clear_file_type(); + static const int kFileTypeFieldNumber = 3; + ::v1::model::FileType file_type() const; + void set_file_type(::v1::model::FileType value); + + // bool remote_agent = 4; + void clear_remote_agent(); + static const int kRemoteAgentFieldNumber = 4; + bool remote_agent() const; + void set_remote_agent(bool value); + + // @@protoc_insertion_point(class_scope:v1.model.DirectoryWatch) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr directory_; + ::google::protobuf::internal::ArenaStringPtr extension_; + int file_type_; + bool remote_agent_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto; +}; +// ------------------------------------------------------------------- + +class FileTail : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.FileTail) */ { + public: + FileTail(); + virtual ~FileTail(); + + FileTail(const FileTail& from); + + inline FileTail& operator=(const FileTail& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + FileTail(FileTail&& from) noexcept + : FileTail() { + *this = ::std::move(from); + } + + inline FileTail& operator=(FileTail&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const FileTail& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FileTail* internal_default_instance() { + return reinterpret_cast( + &_FileTail_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(FileTail* other); + friend void swap(FileTail& a, FileTail& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline FileTail* New() const final { + return CreateMaybeMessage(nullptr); + } + + FileTail* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const FileTail& from); + void MergeFrom(const FileTail& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FileTail* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string filename = 1; + void clear_filename(); + static const int kFilenameFieldNumber = 1; + const ::std::string& filename() const; + void set_filename(const ::std::string& value); + #if LANG_CXX11 + void set_filename(::std::string&& value); + #endif + void set_filename(const char* value); + void set_filename(const char* value, size_t size); + ::std::string* mutable_filename(); + ::std::string* release_filename(); + void set_allocated_filename(::std::string* filename); + + // string time_key = 3; + void clear_time_key(); + static const int kTimeKeyFieldNumber = 3; + const ::std::string& time_key() const; + void set_time_key(const ::std::string& value); + #if LANG_CXX11 + void set_time_key(::std::string&& value); + #endif + void set_time_key(const char* value); + void set_time_key(const char* value, size_t size); + ::std::string* mutable_time_key(); + ::std::string* release_time_key(); + void set_allocated_time_key(::std::string* time_key); + + // string time_format = 4; + void clear_time_format(); + static const int kTimeFormatFieldNumber = 4; + const ::std::string& time_format() const; + void set_time_format(const ::std::string& value); + #if LANG_CXX11 + void set_time_format(::std::string&& value); + #endif + void set_time_format(const char* value); + void set_time_format(const char* value, size_t size); + ::std::string* mutable_time_format(); + ::std::string* release_time_format(); + void set_allocated_time_format(::std::string* time_format); + + // string regex = 5; + void clear_regex(); + static const int kRegexFieldNumber = 5; + const ::std::string& regex() const; + void set_regex(const ::std::string& value); + #if LANG_CXX11 + void set_regex(::std::string&& value); + #endif + void set_regex(const char* value); + void set_regex(const char* value, size_t size); + ::std::string* mutable_regex(); + ::std::string* release_regex(); + void set_allocated_regex(::std::string* regex); + + // .v1.model.FileFormat file_format = 2; + void clear_file_format(); + static const int kFileFormatFieldNumber = 2; + ::v1::model::FileFormat file_format() const; + void set_file_format(::v1::model::FileFormat value); + + // @@protoc_insertion_point(class_scope:v1.model.FileTail) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr filename_; + ::google::protobuf::internal::ArenaStringPtr time_key_; + ::google::protobuf::internal::ArenaStringPtr time_format_; + ::google::protobuf::internal::ArenaStringPtr regex_; + int file_format_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// AgentConfiguration + +// string id = 1; +inline void AgentConfiguration::clear_id() { + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AgentConfiguration::id() const { + // @@protoc_insertion_point(field_get:v1.model.AgentConfiguration.id) + return id_.GetNoArena(); +} +inline void AgentConfiguration::set_id(const ::std::string& value) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:v1.model.AgentConfiguration.id) +} +#if LANG_CXX11 +inline void AgentConfiguration::set_id(::std::string&& value) { + + id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.AgentConfiguration.id) +} +#endif +inline void AgentConfiguration::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.AgentConfiguration.id) +} +inline void AgentConfiguration::set_id(const char* value, size_t size) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.AgentConfiguration.id) +} +inline ::std::string* AgentConfiguration::mutable_id() { + + // @@protoc_insertion_point(field_mutable:v1.model.AgentConfiguration.id) + return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AgentConfiguration::release_id() { + // @@protoc_insertion_point(field_release:v1.model.AgentConfiguration.id) + + return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AgentConfiguration::set_allocated_id(::std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); + // @@protoc_insertion_point(field_set_allocated:v1.model.AgentConfiguration.id) +} + +// string name = 2; +inline void AgentConfiguration::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AgentConfiguration::name() const { + // @@protoc_insertion_point(field_get:v1.model.AgentConfiguration.name) + return name_.GetNoArena(); +} +inline void AgentConfiguration::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:v1.model.AgentConfiguration.name) +} +#if LANG_CXX11 +inline void AgentConfiguration::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.AgentConfiguration.name) +} +#endif +inline void AgentConfiguration::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.AgentConfiguration.name) +} +inline void AgentConfiguration::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.AgentConfiguration.name) +} +inline ::std::string* AgentConfiguration::mutable_name() { + + // @@protoc_insertion_point(field_mutable:v1.model.AgentConfiguration.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AgentConfiguration::release_name() { + // @@protoc_insertion_point(field_release:v1.model.AgentConfiguration.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AgentConfiguration::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:v1.model.AgentConfiguration.name) +} + +// .v1.model.AgentConfigurationDocument document = 3; +inline bool AgentConfiguration::has_document() const { + return this != internal_default_instance() && document_ != nullptr; +} +inline void AgentConfiguration::clear_document() { + if (GetArenaNoVirtual() == nullptr && document_ != nullptr) { + delete document_; + } + document_ = nullptr; +} +inline const ::v1::model::AgentConfigurationDocument& AgentConfiguration::document() const { + const ::v1::model::AgentConfigurationDocument* p = document_; + // @@protoc_insertion_point(field_get:v1.model.AgentConfiguration.document) + return p != nullptr ? *p : *reinterpret_cast( + &::v1::model::_AgentConfigurationDocument_default_instance_); +} +inline ::v1::model::AgentConfigurationDocument* AgentConfiguration::release_document() { + // @@protoc_insertion_point(field_release:v1.model.AgentConfiguration.document) + + ::v1::model::AgentConfigurationDocument* temp = document_; + document_ = nullptr; + return temp; +} +inline ::v1::model::AgentConfigurationDocument* AgentConfiguration::mutable_document() { + + if (document_ == nullptr) { + auto* p = CreateMaybeMessage<::v1::model::AgentConfigurationDocument>(GetArenaNoVirtual()); + document_ = p; + } + // @@protoc_insertion_point(field_mutable:v1.model.AgentConfiguration.document) + return document_; +} +inline void AgentConfiguration::set_allocated_document(::v1::model::AgentConfigurationDocument* document) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete document_; + } + if (document) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + document = ::google::protobuf::internal::GetOwnedMessage( + message_arena, document, submessage_arena); + } + + } else { + + } + document_ = document; + // @@protoc_insertion_point(field_set_allocated:v1.model.AgentConfiguration.document) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// AgentConfigurationDocument + +// int32 version = 1; +inline void AgentConfigurationDocument::clear_version() { + version_ = 0; +} +inline ::google::protobuf::int32 AgentConfigurationDocument::version() const { + // @@protoc_insertion_point(field_get:v1.model.AgentConfigurationDocument.version) + return version_; +} +inline void AgentConfigurationDocument::set_version(::google::protobuf::int32 value) { + + version_ = value; + // @@protoc_insertion_point(field_set:v1.model.AgentConfigurationDocument.version) +} + +// map tags = 2; +inline int AgentConfigurationDocument::tags_size() const { + return tags_.size(); +} +inline void AgentConfigurationDocument::clear_tags() { + tags_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +AgentConfigurationDocument::tags() const { + // @@protoc_insertion_point(field_map:v1.model.AgentConfigurationDocument.tags) + return tags_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +AgentConfigurationDocument::mutable_tags() { + // @@protoc_insertion_point(field_mutable_map:v1.model.AgentConfigurationDocument.tags) + return tags_.MutableMap(); +} + +// .v1.model.TelemetryConfiguration telemetry = 3; +inline bool AgentConfigurationDocument::has_telemetry() const { + return this != internal_default_instance() && telemetry_ != nullptr; +} +inline void AgentConfigurationDocument::clear_telemetry() { + if (GetArenaNoVirtual() == nullptr && telemetry_ != nullptr) { + delete telemetry_; + } + telemetry_ = nullptr; +} +inline const ::v1::model::TelemetryConfiguration& AgentConfigurationDocument::telemetry() const { + const ::v1::model::TelemetryConfiguration* p = telemetry_; + // @@protoc_insertion_point(field_get:v1.model.AgentConfigurationDocument.telemetry) + return p != nullptr ? *p : *reinterpret_cast( + &::v1::model::_TelemetryConfiguration_default_instance_); +} +inline ::v1::model::TelemetryConfiguration* AgentConfigurationDocument::release_telemetry() { + // @@protoc_insertion_point(field_release:v1.model.AgentConfigurationDocument.telemetry) + + ::v1::model::TelemetryConfiguration* temp = telemetry_; + telemetry_ = nullptr; + return temp; +} +inline ::v1::model::TelemetryConfiguration* AgentConfigurationDocument::mutable_telemetry() { + + if (telemetry_ == nullptr) { + auto* p = CreateMaybeMessage<::v1::model::TelemetryConfiguration>(GetArenaNoVirtual()); + telemetry_ = p; + } + // @@protoc_insertion_point(field_mutable:v1.model.AgentConfigurationDocument.telemetry) + return telemetry_; +} +inline void AgentConfigurationDocument::set_allocated_telemetry(::v1::model::TelemetryConfiguration* telemetry) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete telemetry_; + } + if (telemetry) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + telemetry = ::google::protobuf::internal::GetOwnedMessage( + message_arena, telemetry, submessage_arena); + } + + } else { + + } + telemetry_ = telemetry; + // @@protoc_insertion_point(field_set_allocated:v1.model.AgentConfigurationDocument.telemetry) +} + +// .v1.model.ResourcesConfiguration resources = 4; +inline bool AgentConfigurationDocument::has_resources() const { + return this != internal_default_instance() && resources_ != nullptr; +} +inline void AgentConfigurationDocument::clear_resources() { + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; +} +inline const ::v1::model::ResourcesConfiguration& AgentConfigurationDocument::resources() const { + const ::v1::model::ResourcesConfiguration* p = resources_; + // @@protoc_insertion_point(field_get:v1.model.AgentConfigurationDocument.resources) + return p != nullptr ? *p : *reinterpret_cast( + &::v1::model::_ResourcesConfiguration_default_instance_); +} +inline ::v1::model::ResourcesConfiguration* AgentConfigurationDocument::release_resources() { + // @@protoc_insertion_point(field_release:v1.model.AgentConfigurationDocument.resources) + + ::v1::model::ResourcesConfiguration* temp = resources_; + resources_ = nullptr; + return temp; +} +inline ::v1::model::ResourcesConfiguration* AgentConfigurationDocument::mutable_resources() { + + if (resources_ == nullptr) { + auto* p = CreateMaybeMessage<::v1::model::ResourcesConfiguration>(GetArenaNoVirtual()); + resources_ = p; + } + // @@protoc_insertion_point(field_mutable:v1.model.AgentConfigurationDocument.resources) + return resources_; +} +inline void AgentConfigurationDocument::set_allocated_resources(::v1::model::ResourcesConfiguration* resources) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete resources_; + } + if (resources) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + resources = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resources, submessage_arena); + } + + } else { + + } + resources_ = resources; + // @@protoc_insertion_point(field_set_allocated:v1.model.AgentConfigurationDocument.resources) +} + +// .v1.model.ApplicationConfiguration application = 5; +inline bool AgentConfigurationDocument::has_application() const { + return this != internal_default_instance() && application_ != nullptr; +} +inline void AgentConfigurationDocument::clear_application() { + if (GetArenaNoVirtual() == nullptr && application_ != nullptr) { + delete application_; + } + application_ = nullptr; +} +inline const ::v1::model::ApplicationConfiguration& AgentConfigurationDocument::application() const { + const ::v1::model::ApplicationConfiguration* p = application_; + // @@protoc_insertion_point(field_get:v1.model.AgentConfigurationDocument.application) + return p != nullptr ? *p : *reinterpret_cast( + &::v1::model::_ApplicationConfiguration_default_instance_); +} +inline ::v1::model::ApplicationConfiguration* AgentConfigurationDocument::release_application() { + // @@protoc_insertion_point(field_release:v1.model.AgentConfigurationDocument.application) + + ::v1::model::ApplicationConfiguration* temp = application_; + application_ = nullptr; + return temp; +} +inline ::v1::model::ApplicationConfiguration* AgentConfigurationDocument::mutable_application() { + + if (application_ == nullptr) { + auto* p = CreateMaybeMessage<::v1::model::ApplicationConfiguration>(GetArenaNoVirtual()); + application_ = p; + } + // @@protoc_insertion_point(field_mutable:v1.model.AgentConfigurationDocument.application) + return application_; +} +inline void AgentConfigurationDocument::set_allocated_application(::v1::model::ApplicationConfiguration* application) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete application_; + } + if (application) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + application = ::google::protobuf::internal::GetOwnedMessage( + message_arena, application, submessage_arena); + } + + } else { + + } + application_ = application; + // @@protoc_insertion_point(field_set_allocated:v1.model.AgentConfigurationDocument.application) +} + +// ------------------------------------------------------------------- + +// TelemetryConfiguration + +// repeated .v1.model.StreamConfiguration streams = 1; +inline int TelemetryConfiguration::streams_size() const { + return streams_.size(); +} +inline void TelemetryConfiguration::clear_streams() { + streams_.Clear(); +} +inline ::v1::model::StreamConfiguration* TelemetryConfiguration::mutable_streams(int index) { + // @@protoc_insertion_point(field_mutable:v1.model.TelemetryConfiguration.streams) + return streams_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >* +TelemetryConfiguration::mutable_streams() { + // @@protoc_insertion_point(field_mutable_list:v1.model.TelemetryConfiguration.streams) + return &streams_; +} +inline const ::v1::model::StreamConfiguration& TelemetryConfiguration::streams(int index) const { + // @@protoc_insertion_point(field_get:v1.model.TelemetryConfiguration.streams) + return streams_.Get(index); +} +inline ::v1::model::StreamConfiguration* TelemetryConfiguration::add_streams() { + // @@protoc_insertion_point(field_add:v1.model.TelemetryConfiguration.streams) + return streams_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >& +TelemetryConfiguration::streams() const { + // @@protoc_insertion_point(field_list:v1.model.TelemetryConfiguration.streams) + return streams_; +} + +// .v1.model.ROSConfiguration ros = 2; +inline bool TelemetryConfiguration::has_ros() const { + return this != internal_default_instance() && ros_ != nullptr; +} +inline void TelemetryConfiguration::clear_ros() { + if (GetArenaNoVirtual() == nullptr && ros_ != nullptr) { + delete ros_; + } + ros_ = nullptr; +} +inline const ::v1::model::ROSConfiguration& TelemetryConfiguration::ros() const { + const ::v1::model::ROSConfiguration* p = ros_; + // @@protoc_insertion_point(field_get:v1.model.TelemetryConfiguration.ros) + return p != nullptr ? *p : *reinterpret_cast( + &::v1::model::_ROSConfiguration_default_instance_); +} +inline ::v1::model::ROSConfiguration* TelemetryConfiguration::release_ros() { + // @@protoc_insertion_point(field_release:v1.model.TelemetryConfiguration.ros) + + ::v1::model::ROSConfiguration* temp = ros_; + ros_ = nullptr; + return temp; +} +inline ::v1::model::ROSConfiguration* TelemetryConfiguration::mutable_ros() { + + if (ros_ == nullptr) { + auto* p = CreateMaybeMessage<::v1::model::ROSConfiguration>(GetArenaNoVirtual()); + ros_ = p; + } + // @@protoc_insertion_point(field_mutable:v1.model.TelemetryConfiguration.ros) + return ros_; +} +inline void TelemetryConfiguration::set_allocated_ros(::v1::model::ROSConfiguration* ros) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete ros_; + } + if (ros) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + ros = ::google::protobuf::internal::GetOwnedMessage( + message_arena, ros, submessage_arena); + } + + } else { + + } + ros_ = ros; + // @@protoc_insertion_point(field_set_allocated:v1.model.TelemetryConfiguration.ros) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ApplicationConfiguration + +// map configuration_map = 1; +inline int ApplicationConfiguration::configuration_map_size() const { + return configuration_map_.size(); +} +inline void ApplicationConfiguration::clear_configuration_map() { + configuration_map_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +ApplicationConfiguration::configuration_map() const { + // @@protoc_insertion_point(field_map:v1.model.ApplicationConfiguration.configuration_map) + return configuration_map_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +ApplicationConfiguration::mutable_configuration_map() { + // @@protoc_insertion_point(field_mutable_map:v1.model.ApplicationConfiguration.configuration_map) + return configuration_map_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// ResourcesConfiguration + +// .v1.model.DiskConfiguration disk = 1; +inline bool ResourcesConfiguration::has_disk() const { + return this != internal_default_instance() && disk_ != nullptr; +} +inline void ResourcesConfiguration::clear_disk() { + if (GetArenaNoVirtual() == nullptr && disk_ != nullptr) { + delete disk_; + } + disk_ = nullptr; +} +inline const ::v1::model::DiskConfiguration& ResourcesConfiguration::disk() const { + const ::v1::model::DiskConfiguration* p = disk_; + // @@protoc_insertion_point(field_get:v1.model.ResourcesConfiguration.disk) + return p != nullptr ? *p : *reinterpret_cast( + &::v1::model::_DiskConfiguration_default_instance_); +} +inline ::v1::model::DiskConfiguration* ResourcesConfiguration::release_disk() { + // @@protoc_insertion_point(field_release:v1.model.ResourcesConfiguration.disk) + + ::v1::model::DiskConfiguration* temp = disk_; + disk_ = nullptr; + return temp; +} +inline ::v1::model::DiskConfiguration* ResourcesConfiguration::mutable_disk() { + + if (disk_ == nullptr) { + auto* p = CreateMaybeMessage<::v1::model::DiskConfiguration>(GetArenaNoVirtual()); + disk_ = p; + } + // @@protoc_insertion_point(field_mutable:v1.model.ResourcesConfiguration.disk) + return disk_; +} +inline void ResourcesConfiguration::set_allocated_disk(::v1::model::DiskConfiguration* disk) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete disk_; + } + if (disk) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + disk = ::google::protobuf::internal::GetOwnedMessage( + message_arena, disk, submessage_arena); + } + + } else { + + } + disk_ = disk; + // @@protoc_insertion_point(field_set_allocated:v1.model.ResourcesConfiguration.disk) +} + +// ------------------------------------------------------------------- + +// DiskConfiguration + +// int64 buffer_size = 1; +inline void DiskConfiguration::clear_buffer_size() { + buffer_size_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 DiskConfiguration::buffer_size() const { + // @@protoc_insertion_point(field_get:v1.model.DiskConfiguration.buffer_size) + return buffer_size_; +} +inline void DiskConfiguration::set_buffer_size(::google::protobuf::int64 value) { + + buffer_size_ = value; + // @@protoc_insertion_point(field_set:v1.model.DiskConfiguration.buffer_size) +} + +// ------------------------------------------------------------------- + +// ROSConfiguration + +// string world_reference_frame_id = 1; +inline void ROSConfiguration::clear_world_reference_frame_id() { + world_reference_frame_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ROSConfiguration::world_reference_frame_id() const { + // @@protoc_insertion_point(field_get:v1.model.ROSConfiguration.world_reference_frame_id) + return world_reference_frame_id_.GetNoArena(); +} +inline void ROSConfiguration::set_world_reference_frame_id(const ::std::string& value) { + + world_reference_frame_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:v1.model.ROSConfiguration.world_reference_frame_id) +} +#if LANG_CXX11 +inline void ROSConfiguration::set_world_reference_frame_id(::std::string&& value) { + + world_reference_frame_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.ROSConfiguration.world_reference_frame_id) +} +#endif +inline void ROSConfiguration::set_world_reference_frame_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + world_reference_frame_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.ROSConfiguration.world_reference_frame_id) +} +inline void ROSConfiguration::set_world_reference_frame_id(const char* value, size_t size) { + + world_reference_frame_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.ROSConfiguration.world_reference_frame_id) +} +inline ::std::string* ROSConfiguration::mutable_world_reference_frame_id() { + + // @@protoc_insertion_point(field_mutable:v1.model.ROSConfiguration.world_reference_frame_id) + return world_reference_frame_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ROSConfiguration::release_world_reference_frame_id() { + // @@protoc_insertion_point(field_release:v1.model.ROSConfiguration.world_reference_frame_id) + + return world_reference_frame_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ROSConfiguration::set_allocated_world_reference_frame_id(::std::string* world_reference_frame_id) { + if (world_reference_frame_id != nullptr) { + + } else { + + } + world_reference_frame_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), world_reference_frame_id); + // @@protoc_insertion_point(field_set_allocated:v1.model.ROSConfiguration.world_reference_frame_id) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// StreamConfiguration + +// string name = 1; +inline void StreamConfiguration::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StreamConfiguration::name() const { + // @@protoc_insertion_point(field_get:v1.model.StreamConfiguration.name) + return name_.GetNoArena(); +} +inline void StreamConfiguration::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:v1.model.StreamConfiguration.name) +} +#if LANG_CXX11 +inline void StreamConfiguration::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.StreamConfiguration.name) +} +#endif +inline void StreamConfiguration::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.StreamConfiguration.name) +} +inline void StreamConfiguration::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.StreamConfiguration.name) +} +inline ::std::string* StreamConfiguration::mutable_name() { + + // @@protoc_insertion_point(field_mutable:v1.model.StreamConfiguration.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StreamConfiguration::release_name() { + // @@protoc_insertion_point(field_release:v1.model.StreamConfiguration.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StreamConfiguration::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:v1.model.StreamConfiguration.name) +} + +// map tags = 2; +inline int StreamConfiguration::tags_size() const { + return tags_.size(); +} +inline void StreamConfiguration::clear_tags() { + tags_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +StreamConfiguration::tags() const { + // @@protoc_insertion_point(field_map:v1.model.StreamConfiguration.tags) + return tags_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +StreamConfiguration::mutable_tags() { + // @@protoc_insertion_point(field_mutable_map:v1.model.StreamConfiguration.tags) + return tags_.MutableMap(); +} + +// .v1.model.ROSTopic ros_topic = 3; +inline bool StreamConfiguration::has_ros_topic() const { + return configuration_case() == kRosTopic; +} +inline void StreamConfiguration::set_has_ros_topic() { + _oneof_case_[0] = kRosTopic; +} +inline ::v1::model::ROSTopic* StreamConfiguration::release_ros_topic() { + // @@protoc_insertion_point(field_release:v1.model.StreamConfiguration.ros_topic) + if (has_ros_topic()) { + clear_has_configuration(); + ::v1::model::ROSTopic* temp = configuration_.ros_topic_; + configuration_.ros_topic_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::v1::model::ROSTopic& StreamConfiguration::ros_topic() const { + // @@protoc_insertion_point(field_get:v1.model.StreamConfiguration.ros_topic) + return has_ros_topic() + ? *configuration_.ros_topic_ + : *reinterpret_cast< ::v1::model::ROSTopic*>(&::v1::model::_ROSTopic_default_instance_); +} +inline ::v1::model::ROSTopic* StreamConfiguration::mutable_ros_topic() { + if (!has_ros_topic()) { + clear_configuration(); + set_has_ros_topic(); + configuration_.ros_topic_ = CreateMaybeMessage< ::v1::model::ROSTopic >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:v1.model.StreamConfiguration.ros_topic) + return configuration_.ros_topic_; +} + +// .v1.model.ROSLocalization ros_localization = 4; +inline bool StreamConfiguration::has_ros_localization() const { + return configuration_case() == kRosLocalization; +} +inline void StreamConfiguration::set_has_ros_localization() { + _oneof_case_[0] = kRosLocalization; +} +inline ::v1::model::ROSLocalization* StreamConfiguration::release_ros_localization() { + // @@protoc_insertion_point(field_release:v1.model.StreamConfiguration.ros_localization) + if (has_ros_localization()) { + clear_has_configuration(); + ::v1::model::ROSLocalization* temp = configuration_.ros_localization_; + configuration_.ros_localization_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::v1::model::ROSLocalization& StreamConfiguration::ros_localization() const { + // @@protoc_insertion_point(field_get:v1.model.StreamConfiguration.ros_localization) + return has_ros_localization() + ? *configuration_.ros_localization_ + : *reinterpret_cast< ::v1::model::ROSLocalization*>(&::v1::model::_ROSLocalization_default_instance_); +} +inline ::v1::model::ROSLocalization* StreamConfiguration::mutable_ros_localization() { + if (!has_ros_localization()) { + clear_configuration(); + set_has_ros_localization(); + configuration_.ros_localization_ = CreateMaybeMessage< ::v1::model::ROSLocalization >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:v1.model.StreamConfiguration.ros_localization) + return configuration_.ros_localization_; +} + +// .v1.model.DirectoryWatch directory_watch = 5; +inline bool StreamConfiguration::has_directory_watch() const { + return configuration_case() == kDirectoryWatch; +} +inline void StreamConfiguration::set_has_directory_watch() { + _oneof_case_[0] = kDirectoryWatch; +} +inline void StreamConfiguration::clear_directory_watch() { + if (has_directory_watch()) { + delete configuration_.directory_watch_; + clear_has_configuration(); + } +} +inline ::v1::model::DirectoryWatch* StreamConfiguration::release_directory_watch() { + // @@protoc_insertion_point(field_release:v1.model.StreamConfiguration.directory_watch) + if (has_directory_watch()) { + clear_has_configuration(); + ::v1::model::DirectoryWatch* temp = configuration_.directory_watch_; + configuration_.directory_watch_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::v1::model::DirectoryWatch& StreamConfiguration::directory_watch() const { + // @@protoc_insertion_point(field_get:v1.model.StreamConfiguration.directory_watch) + return has_directory_watch() + ? *configuration_.directory_watch_ + : *reinterpret_cast< ::v1::model::DirectoryWatch*>(&::v1::model::_DirectoryWatch_default_instance_); +} +inline ::v1::model::DirectoryWatch* StreamConfiguration::mutable_directory_watch() { + if (!has_directory_watch()) { + clear_configuration(); + set_has_directory_watch(); + configuration_.directory_watch_ = CreateMaybeMessage< ::v1::model::DirectoryWatch >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:v1.model.StreamConfiguration.directory_watch) + return configuration_.directory_watch_; +} + +// .v1.model.FileTail file_tail = 6; +inline bool StreamConfiguration::has_file_tail() const { + return configuration_case() == kFileTail; +} +inline void StreamConfiguration::set_has_file_tail() { + _oneof_case_[0] = kFileTail; +} +inline void StreamConfiguration::clear_file_tail() { + if (has_file_tail()) { + delete configuration_.file_tail_; + clear_has_configuration(); + } +} +inline ::v1::model::FileTail* StreamConfiguration::release_file_tail() { + // @@protoc_insertion_point(field_release:v1.model.StreamConfiguration.file_tail) + if (has_file_tail()) { + clear_has_configuration(); + ::v1::model::FileTail* temp = configuration_.file_tail_; + configuration_.file_tail_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::v1::model::FileTail& StreamConfiguration::file_tail() const { + // @@protoc_insertion_point(field_get:v1.model.StreamConfiguration.file_tail) + return has_file_tail() + ? *configuration_.file_tail_ + : *reinterpret_cast< ::v1::model::FileTail*>(&::v1::model::_FileTail_default_instance_); +} +inline ::v1::model::FileTail* StreamConfiguration::mutable_file_tail() { + if (!has_file_tail()) { + clear_configuration(); + set_has_file_tail(); + configuration_.file_tail_ = CreateMaybeMessage< ::v1::model::FileTail >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:v1.model.StreamConfiguration.file_tail) + return configuration_.file_tail_; +} + +inline bool StreamConfiguration::has_configuration() const { + return configuration_case() != CONFIGURATION_NOT_SET; +} +inline void StreamConfiguration::clear_has_configuration() { + _oneof_case_[0] = CONFIGURATION_NOT_SET; +} +inline StreamConfiguration::ConfigurationCase StreamConfiguration::configuration_case() const { + return StreamConfiguration::ConfigurationCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// DirectoryWatch + +// string directory = 1; +inline void DirectoryWatch::clear_directory() { + directory_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DirectoryWatch::directory() const { + // @@protoc_insertion_point(field_get:v1.model.DirectoryWatch.directory) + return directory_.GetNoArena(); +} +inline void DirectoryWatch::set_directory(const ::std::string& value) { + + directory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:v1.model.DirectoryWatch.directory) +} +#if LANG_CXX11 +inline void DirectoryWatch::set_directory(::std::string&& value) { + + directory_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.DirectoryWatch.directory) +} +#endif +inline void DirectoryWatch::set_directory(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + directory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.DirectoryWatch.directory) +} +inline void DirectoryWatch::set_directory(const char* value, size_t size) { + + directory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.DirectoryWatch.directory) +} +inline ::std::string* DirectoryWatch::mutable_directory() { + + // @@protoc_insertion_point(field_mutable:v1.model.DirectoryWatch.directory) + return directory_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DirectoryWatch::release_directory() { + // @@protoc_insertion_point(field_release:v1.model.DirectoryWatch.directory) + + return directory_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DirectoryWatch::set_allocated_directory(::std::string* directory) { + if (directory != nullptr) { + + } else { + + } + directory_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), directory); + // @@protoc_insertion_point(field_set_allocated:v1.model.DirectoryWatch.directory) +} + +// string extension = 2; +inline void DirectoryWatch::clear_extension() { + extension_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DirectoryWatch::extension() const { + // @@protoc_insertion_point(field_get:v1.model.DirectoryWatch.extension) + return extension_.GetNoArena(); +} +inline void DirectoryWatch::set_extension(const ::std::string& value) { + + extension_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:v1.model.DirectoryWatch.extension) +} +#if LANG_CXX11 +inline void DirectoryWatch::set_extension(::std::string&& value) { + + extension_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.DirectoryWatch.extension) +} +#endif +inline void DirectoryWatch::set_extension(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + extension_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.DirectoryWatch.extension) +} +inline void DirectoryWatch::set_extension(const char* value, size_t size) { + + extension_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.DirectoryWatch.extension) +} +inline ::std::string* DirectoryWatch::mutable_extension() { + + // @@protoc_insertion_point(field_mutable:v1.model.DirectoryWatch.extension) + return extension_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DirectoryWatch::release_extension() { + // @@protoc_insertion_point(field_release:v1.model.DirectoryWatch.extension) + + return extension_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DirectoryWatch::set_allocated_extension(::std::string* extension) { + if (extension != nullptr) { + + } else { + + } + extension_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extension); + // @@protoc_insertion_point(field_set_allocated:v1.model.DirectoryWatch.extension) +} + +// .v1.model.FileType file_type = 3; +inline void DirectoryWatch::clear_file_type() { + file_type_ = 0; +} +inline ::v1::model::FileType DirectoryWatch::file_type() const { + // @@protoc_insertion_point(field_get:v1.model.DirectoryWatch.file_type) + return static_cast< ::v1::model::FileType >(file_type_); +} +inline void DirectoryWatch::set_file_type(::v1::model::FileType value) { + + file_type_ = value; + // @@protoc_insertion_point(field_set:v1.model.DirectoryWatch.file_type) +} + +// bool remote_agent = 4; +inline void DirectoryWatch::clear_remote_agent() { + remote_agent_ = false; +} +inline bool DirectoryWatch::remote_agent() const { + // @@protoc_insertion_point(field_get:v1.model.DirectoryWatch.remote_agent) + return remote_agent_; +} +inline void DirectoryWatch::set_remote_agent(bool value) { + + remote_agent_ = value; + // @@protoc_insertion_point(field_set:v1.model.DirectoryWatch.remote_agent) +} + +// ------------------------------------------------------------------- + +// FileTail + +// string filename = 1; +inline void FileTail::clear_filename() { + filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& FileTail::filename() const { + // @@protoc_insertion_point(field_get:v1.model.FileTail.filename) + return filename_.GetNoArena(); +} +inline void FileTail::set_filename(const ::std::string& value) { + + filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:v1.model.FileTail.filename) +} +#if LANG_CXX11 +inline void FileTail::set_filename(::std::string&& value) { + + filename_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.FileTail.filename) +} +#endif +inline void FileTail::set_filename(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.FileTail.filename) +} +inline void FileTail::set_filename(const char* value, size_t size) { + + filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.FileTail.filename) +} +inline ::std::string* FileTail::mutable_filename() { + + // @@protoc_insertion_point(field_mutable:v1.model.FileTail.filename) + return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* FileTail::release_filename() { + // @@protoc_insertion_point(field_release:v1.model.FileTail.filename) + + return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void FileTail::set_allocated_filename(::std::string* filename) { + if (filename != nullptr) { + + } else { + + } + filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename); + // @@protoc_insertion_point(field_set_allocated:v1.model.FileTail.filename) +} + +// .v1.model.FileFormat file_format = 2; +inline void FileTail::clear_file_format() { + file_format_ = 0; +} +inline ::v1::model::FileFormat FileTail::file_format() const { + // @@protoc_insertion_point(field_get:v1.model.FileTail.file_format) + return static_cast< ::v1::model::FileFormat >(file_format_); +} +inline void FileTail::set_file_format(::v1::model::FileFormat value) { + + file_format_ = value; + // @@protoc_insertion_point(field_set:v1.model.FileTail.file_format) +} + +// string time_key = 3; +inline void FileTail::clear_time_key() { + time_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& FileTail::time_key() const { + // @@protoc_insertion_point(field_get:v1.model.FileTail.time_key) + return time_key_.GetNoArena(); +} +inline void FileTail::set_time_key(const ::std::string& value) { + + time_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:v1.model.FileTail.time_key) +} +#if LANG_CXX11 +inline void FileTail::set_time_key(::std::string&& value) { + + time_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.FileTail.time_key) +} +#endif +inline void FileTail::set_time_key(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + time_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.FileTail.time_key) +} +inline void FileTail::set_time_key(const char* value, size_t size) { + + time_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.FileTail.time_key) +} +inline ::std::string* FileTail::mutable_time_key() { + + // @@protoc_insertion_point(field_mutable:v1.model.FileTail.time_key) + return time_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* FileTail::release_time_key() { + // @@protoc_insertion_point(field_release:v1.model.FileTail.time_key) + + return time_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void FileTail::set_allocated_time_key(::std::string* time_key) { + if (time_key != nullptr) { + + } else { + + } + time_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), time_key); + // @@protoc_insertion_point(field_set_allocated:v1.model.FileTail.time_key) +} + +// string time_format = 4; +inline void FileTail::clear_time_format() { + time_format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& FileTail::time_format() const { + // @@protoc_insertion_point(field_get:v1.model.FileTail.time_format) + return time_format_.GetNoArena(); +} +inline void FileTail::set_time_format(const ::std::string& value) { + + time_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:v1.model.FileTail.time_format) +} +#if LANG_CXX11 +inline void FileTail::set_time_format(::std::string&& value) { + + time_format_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.FileTail.time_format) +} +#endif +inline void FileTail::set_time_format(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + time_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.FileTail.time_format) +} +inline void FileTail::set_time_format(const char* value, size_t size) { + + time_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.FileTail.time_format) +} +inline ::std::string* FileTail::mutable_time_format() { + + // @@protoc_insertion_point(field_mutable:v1.model.FileTail.time_format) + return time_format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* FileTail::release_time_format() { + // @@protoc_insertion_point(field_release:v1.model.FileTail.time_format) + + return time_format_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void FileTail::set_allocated_time_format(::std::string* time_format) { + if (time_format != nullptr) { + + } else { + + } + time_format_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), time_format); + // @@protoc_insertion_point(field_set_allocated:v1.model.FileTail.time_format) +} + +// string regex = 5; +inline void FileTail::clear_regex() { + regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& FileTail::regex() const { + // @@protoc_insertion_point(field_get:v1.model.FileTail.regex) + return regex_.GetNoArena(); +} +inline void FileTail::set_regex(const ::std::string& value) { + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:v1.model.FileTail.regex) +} +#if LANG_CXX11 +inline void FileTail::set_regex(::std::string&& value) { + + regex_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.FileTail.regex) +} +#endif +inline void FileTail::set_regex(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.FileTail.regex) +} +inline void FileTail::set_regex(const char* value, size_t size) { + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.FileTail.regex) +} +inline ::std::string* FileTail::mutable_regex() { + + // @@protoc_insertion_point(field_mutable:v1.model.FileTail.regex) + return regex_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* FileTail::release_regex() { + // @@protoc_insertion_point(field_release:v1.model.FileTail.regex) + + return regex_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void FileTail::set_allocated_regex(::std::string* regex) { + if (regex != nullptr) { + + } else { + + } + regex_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), regex); + // @@protoc_insertion_point(field_set_allocated:v1.model.FileTail.regex) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace model +} // namespace v1 + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::v1::model::FileFormat> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::v1::model::FileFormat>() { + return ::v1::model::FileFormat_descriptor(); +} +template <> struct is_proto_enum< ::v1::model::FileType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::v1::model::FileType>() { + return ::v1::model::FileType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fconfig_2eproto diff --git a/examples/cpp/protos/model/v1/datapoint.pb.cc b/examples/cpp/protos/model/v1/datapoint.pb.cc index b833bea..8226403 100755 --- a/examples/cpp/protos/model/v1/datapoint.pb.cc +++ b/examples/cpp/protos/model/v1/datapoint.pb.cc @@ -20,14 +20,12 @@ extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fdatapoint_2eproto ::google extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2ffile_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_File_protos_2fmodel_2fv1_2ffile_2eproto; extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fhealth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Health_protos_2fmodel_2fv1_2fhealth_2eproto; extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fmath_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Numeric_protos_2fmodel_2fv1_2fmath_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fmath_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_BitSet_protos_2fmodel_2fv1_2fmath_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fmath_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Bitset_protos_2fmodel_2fv1_2fmath_2eproto; extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fmath_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MetricSet_protos_2fmodel_2fv1_2fmath_2eproto; extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fmedia_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Image_protos_2fmodel_2fv1_2fmedia_2eproto; extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fmedia_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PointCloud_protos_2fmodel_2fv1_2fmedia_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fmedia_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Video_protos_2fmodel_2fv1_2fmedia_2eproto; extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fnavigation_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Location_protos_2fmodel_2fv1_2fnavigation_2eproto; extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fnavigation_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Localization_protos_2fmodel_2fv1_2fnavigation_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fros_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ROSMessage_protos_2fmodel_2fv1_2fros_2eproto; extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2ftext_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Text_protos_2fmodel_2fv1_2ftext_2eproto; namespace v1 { namespace model { @@ -41,13 +39,11 @@ class DatapointDefaultTypeInternal { const ::v1::model::Text* text_; const ::v1::model::Numeric* numeric_; const ::v1::model::MetricSet* metric_set_; - const ::v1::model::BitSet* bitset_; + const ::v1::model::Bitset* bitset_; const ::v1::model::File* file_; const ::v1::model::Image* image_; - const ::v1::model::Video* video_; const ::v1::model::PointCloud* point_cloud_; const ::v1::model::Location* location_; - const ::v1::model::ROSMessage* ros_message_; const ::v1::model::Localization* localization_; const ::v1::model::Health* health_; } _Datapoint_default_instance_; @@ -77,19 +73,17 @@ static void InitDefaultsDatapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto() { ::v1::model::Datapoint::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<13> scc_info_Datapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 13, InitDefaultsDatapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto}, { +::google::protobuf::internal::SCCInfo<11> scc_info_Datapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 11, InitDefaultsDatapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto}, { &scc_info_Datapoint_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fdatapoint_2eproto.base, &scc_info_Text_protos_2fmodel_2fv1_2ftext_2eproto.base, &scc_info_Numeric_protos_2fmodel_2fv1_2fmath_2eproto.base, &scc_info_MetricSet_protos_2fmodel_2fv1_2fmath_2eproto.base, - &scc_info_BitSet_protos_2fmodel_2fv1_2fmath_2eproto.base, + &scc_info_Bitset_protos_2fmodel_2fv1_2fmath_2eproto.base, &scc_info_File_protos_2fmodel_2fv1_2ffile_2eproto.base, &scc_info_Image_protos_2fmodel_2fv1_2fmedia_2eproto.base, - &scc_info_Video_protos_2fmodel_2fv1_2fmedia_2eproto.base, &scc_info_PointCloud_protos_2fmodel_2fv1_2fmedia_2eproto.base, &scc_info_Location_protos_2fmodel_2fv1_2fnavigation_2eproto.base, - &scc_info_ROSMessage_protos_2fmodel_2fv1_2fros_2eproto.base, &scc_info_Localization_protos_2fmodel_2fv1_2fnavigation_2eproto.base, &scc_info_Health_protos_2fmodel_2fv1_2fhealth_2eproto.base,}}; @@ -126,10 +120,8 @@ const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2fdatapoint_2ep offsetof(::v1::model::DatapointDefaultTypeInternal, bitset_), offsetof(::v1::model::DatapointDefaultTypeInternal, file_), offsetof(::v1::model::DatapointDefaultTypeInternal, image_), - offsetof(::v1::model::DatapointDefaultTypeInternal, video_), offsetof(::v1::model::DatapointDefaultTypeInternal, point_cloud_), offsetof(::v1::model::DatapointDefaultTypeInternal, location_), - offsetof(::v1::model::DatapointDefaultTypeInternal, ros_message_), offsetof(::v1::model::DatapointDefaultTypeInternal, localization_), offsetof(::v1::model::DatapointDefaultTypeInternal, health_), PROTOBUF_FIELD_OFFSET(::v1::model::Datapoint, data_), @@ -155,44 +147,41 @@ const char descriptor_table_protodef_protos_2fmodel_2fv1_2fdatapoint_2eproto[] = "del\032\032protos/model/v1/file.proto\032\034protos/" "model/v1/health.proto\032\032protos/model/v1/m" "ath.proto\032 protos/model/v1/navigation.pr" - "oto\032\031protos/model/v1/ros.proto\032\032protos/m" - "odel/v1/text.proto\032\033protos/model/v1/medi" - "a.proto\"\337\004\n\tDatapoint\022\016\n\006stream\030\001 \001(\t\022\021\n" - "\ttimestamp\030\002 \001(\003\022+\n\004tags\030\016 \003(\0132\035.v1.mode" - "l.Datapoint.TagsEntry\022\036\n\004text\030\003 \001(\0132\016.v1" - ".model.TextH\000\022$\n\007numeric\030\004 \001(\0132\021.v1.mode" - "l.NumericH\000\022)\n\nmetric_set\030\017 \001(\0132\023.v1.mod" - "el.MetricSetH\000\022\"\n\006bitset\030\r \001(\0132\020.v1.mode" - "l.BitSetH\000\022\036\n\004file\030\005 \001(\0132\016.v1.model.File" - "H\000\022 \n\005image\030\006 \001(\0132\017.v1.model.ImageH\000\022 \n\005" - "video\030\007 \001(\0132\017.v1.model.VideoH\000\022+\n\013point_" - "cloud\030\010 \001(\0132\024.v1.model.PointCloudH\000\022&\n\010l" - "ocation\030\t \001(\0132\022.v1.model.LocationH\000\022+\n\013r" - "os_message\030\n \001(\0132\024.v1.model.ROSMessageH\000" - "\022.\n\014localization\030\013 \001(\0132\026.v1.model.Locali" - "zationH\000\022\"\n\006health\030\014 \001(\0132\020.v1.model.Heal" - "thH\000\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - "\002 \001(\t:\0028\001B\006\n\004dataB+Z)github.com/FormantI" - "O/genproto/go/v1/modelb\006proto3" + "oto\032\032protos/model/v1/text.proto\032\033protos/" + "model/v1/media.proto\"\220\004\n\tDatapoint\022\016\n\006st" + "ream\030\001 \001(\t\022\021\n\ttimestamp\030\002 \001(\003\022+\n\004tags\030\003 " + "\003(\0132\035.v1.model.Datapoint.TagsEntry\022\036\n\004te" + "xt\030\004 \001(\0132\016.v1.model.TextH\000\022$\n\007numeric\030\005 " + "\001(\0132\021.v1.model.NumericH\000\022)\n\nmetric_set\030\006" + " \001(\0132\023.v1.model.MetricSetH\000\022\"\n\006bitset\030\007 " + "\001(\0132\020.v1.model.BitsetH\000\022\036\n\004file\030\010 \001(\0132\016." + "v1.model.FileH\000\022 \n\005image\030\t \001(\0132\017.v1.mode" + "l.ImageH\000\022+\n\013point_cloud\030\n \001(\0132\024.v1.mode" + "l.PointCloudH\000\022&\n\010location\030\013 \001(\0132\022.v1.mo" + "del.LocationH\000\022.\n\014localization\030\014 \001(\0132\026.v" + "1.model.LocalizationH\000\022\"\n\006health\030\r \001(\0132\020" + ".v1.model.HealthH\000\032+\n\tTagsEntry\022\013\n\003key\030\001" + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\006\n\004dataB+Z)githu" + "b.com/FormantIO/genproto/go/v1/modelb\006pr" + "oto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto = { false, InitDefaults_protos_2fmodel_2fv1_2fdatapoint_2eproto, descriptor_table_protodef_protos_2fmodel_2fv1_2fdatapoint_2eproto, - "protos/model/v1/datapoint.proto", &assign_descriptors_table_protos_2fmodel_2fv1_2fdatapoint_2eproto, 910, + "protos/model/v1/datapoint.proto", &assign_descriptors_table_protos_2fmodel_2fv1_2fdatapoint_2eproto, 804, }; void AddDescriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[7] = + static constexpr ::google::protobuf::internal::InitFunc deps[6] = { ::AddDescriptors_protos_2fmodel_2fv1_2ffile_2eproto, ::AddDescriptors_protos_2fmodel_2fv1_2fhealth_2eproto, ::AddDescriptors_protos_2fmodel_2fv1_2fmath_2eproto, ::AddDescriptors_protos_2fmodel_2fv1_2fnavigation_2eproto, - ::AddDescriptors_protos_2fmodel_2fv1_2fros_2eproto, ::AddDescriptors_protos_2fmodel_2fv1_2ftext_2eproto, ::AddDescriptors_protos_2fmodel_2fv1_2fmedia_2eproto, }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto, deps, 7); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto, deps, 6); } // Force running AddDescriptors() at dynamic initialization time. @@ -250,20 +239,16 @@ void Datapoint::InitAsDefaultInstance() { ::v1::model::Numeric::internal_default_instance()); ::v1::model::_Datapoint_default_instance_.metric_set_ = const_cast< ::v1::model::MetricSet*>( ::v1::model::MetricSet::internal_default_instance()); - ::v1::model::_Datapoint_default_instance_.bitset_ = const_cast< ::v1::model::BitSet*>( - ::v1::model::BitSet::internal_default_instance()); + ::v1::model::_Datapoint_default_instance_.bitset_ = const_cast< ::v1::model::Bitset*>( + ::v1::model::Bitset::internal_default_instance()); ::v1::model::_Datapoint_default_instance_.file_ = const_cast< ::v1::model::File*>( ::v1::model::File::internal_default_instance()); ::v1::model::_Datapoint_default_instance_.image_ = const_cast< ::v1::model::Image*>( ::v1::model::Image::internal_default_instance()); - ::v1::model::_Datapoint_default_instance_.video_ = const_cast< ::v1::model::Video*>( - ::v1::model::Video::internal_default_instance()); ::v1::model::_Datapoint_default_instance_.point_cloud_ = const_cast< ::v1::model::PointCloud*>( ::v1::model::PointCloud::internal_default_instance()); ::v1::model::_Datapoint_default_instance_.location_ = const_cast< ::v1::model::Location*>( ::v1::model::Location::internal_default_instance()); - ::v1::model::_Datapoint_default_instance_.ros_message_ = const_cast< ::v1::model::ROSMessage*>( - ::v1::model::ROSMessage::internal_default_instance()); ::v1::model::_Datapoint_default_instance_.localization_ = const_cast< ::v1::model::Localization*>( ::v1::model::Localization::internal_default_instance()); ::v1::model::_Datapoint_default_instance_.health_ = const_cast< ::v1::model::Health*>( @@ -274,13 +259,11 @@ class Datapoint::HasBitSetters { static const ::v1::model::Text& text(const Datapoint* msg); static const ::v1::model::Numeric& numeric(const Datapoint* msg); static const ::v1::model::MetricSet& metric_set(const Datapoint* msg); - static const ::v1::model::BitSet& bitset(const Datapoint* msg); + static const ::v1::model::Bitset& bitset(const Datapoint* msg); static const ::v1::model::File& file(const Datapoint* msg); static const ::v1::model::Image& image(const Datapoint* msg); - static const ::v1::model::Video& video(const Datapoint* msg); static const ::v1::model::PointCloud& point_cloud(const Datapoint* msg); static const ::v1::model::Location& location(const Datapoint* msg); - static const ::v1::model::ROSMessage& ros_message(const Datapoint* msg); static const ::v1::model::Localization& localization(const Datapoint* msg); static const ::v1::model::Health& health(const Datapoint* msg); }; @@ -297,7 +280,7 @@ const ::v1::model::MetricSet& Datapoint::HasBitSetters::metric_set(const Datapoint* msg) { return *msg->data_.metric_set_; } -const ::v1::model::BitSet& +const ::v1::model::Bitset& Datapoint::HasBitSetters::bitset(const Datapoint* msg) { return *msg->data_.bitset_; } @@ -309,10 +292,6 @@ const ::v1::model::Image& Datapoint::HasBitSetters::image(const Datapoint* msg) { return *msg->data_.image_; } -const ::v1::model::Video& -Datapoint::HasBitSetters::video(const Datapoint* msg) { - return *msg->data_.video_; -} const ::v1::model::PointCloud& Datapoint::HasBitSetters::point_cloud(const Datapoint* msg) { return *msg->data_.point_cloud_; @@ -321,10 +300,6 @@ const ::v1::model::Location& Datapoint::HasBitSetters::location(const Datapoint* msg) { return *msg->data_.location_; } -const ::v1::model::ROSMessage& -Datapoint::HasBitSetters::ros_message(const Datapoint* msg) { - return *msg->data_.ros_message_; -} const ::v1::model::Localization& Datapoint::HasBitSetters::localization(const Datapoint* msg) { return *msg->data_.localization_; @@ -393,7 +368,7 @@ void Datapoint::clear_metric_set() { clear_has_data(); } } -void Datapoint::set_allocated_bitset(::v1::model::BitSet* bitset) { +void Datapoint::set_allocated_bitset(::v1::model::Bitset* bitset) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (bitset) { @@ -453,26 +428,6 @@ void Datapoint::clear_image() { clear_has_data(); } } -void Datapoint::set_allocated_video(::v1::model::Video* video) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_data(); - if (video) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - video = ::google::protobuf::internal::GetOwnedMessage( - message_arena, video, submessage_arena); - } - set_has_video(); - data_.video_ = video; - } - // @@protoc_insertion_point(field_set_allocated:v1.model.Datapoint.video) -} -void Datapoint::clear_video() { - if (has_video()) { - delete data_.video_; - clear_has_data(); - } -} void Datapoint::set_allocated_point_cloud(::v1::model::PointCloud* point_cloud) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_data(); @@ -513,26 +468,6 @@ void Datapoint::clear_location() { clear_has_data(); } } -void Datapoint::set_allocated_ros_message(::v1::model::ROSMessage* ros_message) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_data(); - if (ros_message) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - ros_message = ::google::protobuf::internal::GetOwnedMessage( - message_arena, ros_message, submessage_arena); - } - set_has_ros_message(); - data_.ros_message_ = ros_message; - } - // @@protoc_insertion_point(field_set_allocated:v1.model.Datapoint.ros_message) -} -void Datapoint::clear_ros_message() { - if (has_ros_message()) { - delete data_.ros_message_; - clear_has_data(); - } -} void Datapoint::set_allocated_localization(::v1::model::Localization* localization) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_data(); @@ -583,10 +518,8 @@ const int Datapoint::kMetricSetFieldNumber; const int Datapoint::kBitsetFieldNumber; const int Datapoint::kFileFieldNumber; const int Datapoint::kImageFieldNumber; -const int Datapoint::kVideoFieldNumber; const int Datapoint::kPointCloudFieldNumber; const int Datapoint::kLocationFieldNumber; -const int Datapoint::kRosMessageFieldNumber; const int Datapoint::kLocalizationFieldNumber; const int Datapoint::kHealthFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 @@ -621,7 +554,7 @@ Datapoint::Datapoint(const Datapoint& from) break; } case kBitset: { - mutable_bitset()->::v1::model::BitSet::MergeFrom(from.bitset()); + mutable_bitset()->::v1::model::Bitset::MergeFrom(from.bitset()); break; } case kFile: { @@ -632,10 +565,6 @@ Datapoint::Datapoint(const Datapoint& from) mutable_image()->::v1::model::Image::MergeFrom(from.image()); break; } - case kVideo: { - mutable_video()->::v1::model::Video::MergeFrom(from.video()); - break; - } case kPointCloud: { mutable_point_cloud()->::v1::model::PointCloud::MergeFrom(from.point_cloud()); break; @@ -644,10 +573,6 @@ Datapoint::Datapoint(const Datapoint& from) mutable_location()->::v1::model::Location::MergeFrom(from.location()); break; } - case kRosMessage: { - mutable_ros_message()->::v1::model::ROSMessage::MergeFrom(from.ros_message()); - break; - } case kLocalization: { mutable_localization()->::v1::model::Localization::MergeFrom(from.localization()); break; @@ -719,10 +644,6 @@ void Datapoint::clear_data() { delete data_.image_; break; } - case kVideo: { - delete data_.video_; - break; - } case kPointCloud: { delete data_.point_cloud_; break; @@ -731,10 +652,6 @@ void Datapoint::clear_data() { delete data_.location_; break; } - case kRosMessage: { - delete data_.ros_message_; - break; - } case kLocalization: { delete data_.localization_; break; @@ -800,175 +717,149 @@ const char* Datapoint::_InternalParse(const char* begin, const char* end, void* GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } - // .v1.model.Text text = 3; + // map tags = 3; case 3: { if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::v1::model::Text::_InternalParse; - object = msg->mutable_text(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::v1::model::Datapoint_TagsEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->tags_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); break; } - // .v1.model.Numeric numeric = 4; + // .v1.model.Text text = 4; case 4: { if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::v1::model::Numeric::_InternalParse; - object = msg->mutable_numeric(); + parser_till_end = ::v1::model::Text::_InternalParse; + object = msg->mutable_text(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .v1.model.File file = 5; + // .v1.model.Numeric numeric = 5; case 5: { if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::v1::model::File::_InternalParse; - object = msg->mutable_file(); + parser_till_end = ::v1::model::Numeric::_InternalParse; + object = msg->mutable_numeric(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .v1.model.Image image = 6; + // .v1.model.MetricSet metric_set = 6; case 6: { if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::v1::model::Image::_InternalParse; - object = msg->mutable_image(); + parser_till_end = ::v1::model::MetricSet::_InternalParse; + object = msg->mutable_metric_set(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .v1.model.Video video = 7; + // .v1.model.Bitset bitset = 7; case 7: { if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::v1::model::Video::_InternalParse; - object = msg->mutable_video(); + parser_till_end = ::v1::model::Bitset::_InternalParse; + object = msg->mutable_bitset(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .v1.model.PointCloud point_cloud = 8; + // .v1.model.File file = 8; case 8: { if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::v1::model::PointCloud::_InternalParse; - object = msg->mutable_point_cloud(); + parser_till_end = ::v1::model::File::_InternalParse; + object = msg->mutable_file(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .v1.model.Location location = 9; + // .v1.model.Image image = 9; case 9: { if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::v1::model::Location::_InternalParse; - object = msg->mutable_location(); + parser_till_end = ::v1::model::Image::_InternalParse; + object = msg->mutable_image(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .v1.model.ROSMessage ros_message = 10; + // .v1.model.PointCloud point_cloud = 10; case 10: { if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::v1::model::ROSMessage::_InternalParse; - object = msg->mutable_ros_message(); + parser_till_end = ::v1::model::PointCloud::_InternalParse; + object = msg->mutable_point_cloud(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .v1.model.Localization localization = 11; + // .v1.model.Location location = 11; case 11: { if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::v1::model::Localization::_InternalParse; - object = msg->mutable_localization(); + parser_till_end = ::v1::model::Location::_InternalParse; + object = msg->mutable_location(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .v1.model.Health health = 12; + // .v1.model.Localization localization = 12; case 12: { if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::v1::model::Health::_InternalParse; - object = msg->mutable_health(); + parser_till_end = ::v1::model::Localization::_InternalParse; + object = msg->mutable_localization(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( {parser_till_end, object}, ptr - size, ptr)); break; } - // .v1.model.BitSet bitset = 13; + // .v1.model.Health health = 13; case 13: { if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual; ptr = ::google::protobuf::io::ReadSize(ptr, &size); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::v1::model::BitSet::_InternalParse; - object = msg->mutable_bitset(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // map tags = 14; - case 14: { - if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::v1::model::Datapoint_TagsEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->tags_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 114 && (ptr += 1)); - break; - } - // .v1.model.MetricSet metric_set = 15; - case 15: { - if (static_cast<::google::protobuf::uint8>(tag) != 122) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::v1::model::MetricSet::_InternalParse; - object = msg->mutable_metric_set(); + parser_till_end = ::v1::model::Health::_InternalParse; + object = msg->mutable_health(); if (size > end - ptr) goto len_delim_till_end; ptr += size; GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( @@ -1037,158 +928,136 @@ bool Datapoint::MergePartialFromCodedStream( break; } - // .v1.model.Text text = 3; + // map tags = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_text())); + Datapoint_TagsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + Datapoint_TagsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&tags_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.Datapoint.TagsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "v1.model.Datapoint.TagsEntry.value")); } else { goto handle_unusual; } break; } - // .v1.model.Numeric numeric = 4; + // .v1.model.Text text = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_numeric())); + input, mutable_text())); } else { goto handle_unusual; } break; } - // .v1.model.File file = 5; + // .v1.model.Numeric numeric = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_file())); + input, mutable_numeric())); } else { goto handle_unusual; } break; } - // .v1.model.Image image = 6; + // .v1.model.MetricSet metric_set = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_image())); + input, mutable_metric_set())); } else { goto handle_unusual; } break; } - // .v1.model.Video video = 7; + // .v1.model.Bitset bitset = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_video())); + input, mutable_bitset())); } else { goto handle_unusual; } break; } - // .v1.model.PointCloud point_cloud = 8; + // .v1.model.File file = 8; case 8: { if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_point_cloud())); + input, mutable_file())); } else { goto handle_unusual; } break; } - // .v1.model.Location location = 9; + // .v1.model.Image image = 9; case 9: { if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_location())); + input, mutable_image())); } else { goto handle_unusual; } break; } - // .v1.model.ROSMessage ros_message = 10; + // .v1.model.PointCloud point_cloud = 10; case 10: { if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_ros_message())); + input, mutable_point_cloud())); } else { goto handle_unusual; } break; } - // .v1.model.Localization localization = 11; + // .v1.model.Location location = 11; case 11: { if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_localization())); + input, mutable_location())); } else { goto handle_unusual; } break; } - // .v1.model.Health health = 12; + // .v1.model.Localization localization = 12; case 12: { if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_health())); + input, mutable_localization())); } else { goto handle_unusual; } break; } - // .v1.model.BitSet bitset = 13; + // .v1.model.Health health = 13; case 13: { if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_bitset())); - } else { - goto handle_unusual; - } - break; - } - - // map tags = 14; - case 14: { - if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) { - Datapoint_TagsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - Datapoint_TagsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&tags_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "v1.model.Datapoint.TagsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "v1.model.Datapoint.TagsEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - // .v1.model.MetricSet metric_set = 15; - case 15: { - if (static_cast< ::google::protobuf::uint8>(tag) == (122 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metric_set())); + input, mutable_health())); } else { goto handle_unusual; } @@ -1237,73 +1106,7 @@ void Datapoint::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->timestamp(), output); } - // .v1.model.Text text = 3; - if (has_text()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::text(this), output); - } - - // .v1.model.Numeric numeric = 4; - if (has_numeric()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::numeric(this), output); - } - - // .v1.model.File file = 5; - if (has_file()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::file(this), output); - } - - // .v1.model.Image image = 6; - if (has_image()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::image(this), output); - } - - // .v1.model.Video video = 7; - if (has_video()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::video(this), output); - } - - // .v1.model.PointCloud point_cloud = 8; - if (has_point_cloud()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::point_cloud(this), output); - } - - // .v1.model.Location location = 9; - if (has_location()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, HasBitSetters::location(this), output); - } - - // .v1.model.ROSMessage ros_message = 10; - if (has_ros_message()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, HasBitSetters::ros_message(this), output); - } - - // .v1.model.Localization localization = 11; - if (has_localization()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, HasBitSetters::localization(this), output); - } - - // .v1.model.Health health = 12; - if (has_health()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 12, HasBitSetters::health(this), output); - } - - // .v1.model.BitSet bitset = 13; - if (has_bitset()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 13, HasBitSetters::bitset(this), output); - } - - // map tags = 14; + // map tags = 3; if (!this->tags().empty()) { typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer ConstPtr; @@ -1337,7 +1140,7 @@ void Datapoint::SerializeWithCachedSizes( ::std::unique_ptr entry; for (size_type i = 0; i < n; i++) { entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(14, *entry, output); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(3, *entry, output); Utf8Check::Check(&(*items[static_cast(i)])); } } else { @@ -1346,16 +1149,70 @@ void Datapoint::SerializeWithCachedSizes( it = this->tags().begin(); it != this->tags().end(); ++it) { entry.reset(tags_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(14, *entry, output); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(3, *entry, output); Utf8Check::Check(&(*it)); } } } - // .v1.model.MetricSet metric_set = 15; + // .v1.model.Text text = 4; + if (has_text()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::text(this), output); + } + + // .v1.model.Numeric numeric = 5; + if (has_numeric()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::numeric(this), output); + } + + // .v1.model.MetricSet metric_set = 6; if (has_metric_set()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 15, HasBitSetters::metric_set(this), output); + 6, HasBitSetters::metric_set(this), output); + } + + // .v1.model.Bitset bitset = 7; + if (has_bitset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::bitset(this), output); + } + + // .v1.model.File file = 8; + if (has_file()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::file(this), output); + } + + // .v1.model.Image image = 9; + if (has_image()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, HasBitSetters::image(this), output); + } + + // .v1.model.PointCloud point_cloud = 10; + if (has_point_cloud()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, HasBitSetters::point_cloud(this), output); + } + + // .v1.model.Location location = 11; + if (has_location()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 11, HasBitSetters::location(this), output); + } + + // .v1.model.Localization localization = 12; + if (has_localization()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 12, HasBitSetters::localization(this), output); + } + + // .v1.model.Health health = 13; + if (has_health()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 13, HasBitSetters::health(this), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -1387,84 +1244,7 @@ ::google::protobuf::uint8* Datapoint::InternalSerializeWithCachedSizesToArray( target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->timestamp(), target); } - // .v1.model.Text text = 3; - if (has_text()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::text(this), target); - } - - // .v1.model.Numeric numeric = 4; - if (has_numeric()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::numeric(this), target); - } - - // .v1.model.File file = 5; - if (has_file()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::file(this), target); - } - - // .v1.model.Image image = 6; - if (has_image()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::image(this), target); - } - - // .v1.model.Video video = 7; - if (has_video()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::video(this), target); - } - - // .v1.model.PointCloud point_cloud = 8; - if (has_point_cloud()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::point_cloud(this), target); - } - - // .v1.model.Location location = 9; - if (has_location()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 9, HasBitSetters::location(this), target); - } - - // .v1.model.ROSMessage ros_message = 10; - if (has_ros_message()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 10, HasBitSetters::ros_message(this), target); - } - - // .v1.model.Localization localization = 11; - if (has_localization()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 11, HasBitSetters::localization(this), target); - } - - // .v1.model.Health health = 12; - if (has_health()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 12, HasBitSetters::health(this), target); - } - - // .v1.model.BitSet bitset = 13; - if (has_bitset()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 13, HasBitSetters::bitset(this), target); - } - - // map tags = 14; + // map tags = 3; if (!this->tags().empty()) { typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer ConstPtr; @@ -1498,7 +1278,7 @@ ::google::protobuf::uint8* Datapoint::InternalSerializeWithCachedSizesToArray( ::std::unique_ptr entry; for (size_type i = 0; i < n; i++) { entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(14, *entry, target); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(3, *entry, target); Utf8Check::Check(&(*items[static_cast(i)])); } } else { @@ -1507,17 +1287,80 @@ ::google::protobuf::uint8* Datapoint::InternalSerializeWithCachedSizesToArray( it = this->tags().begin(); it != this->tags().end(); ++it) { entry.reset(tags_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(14, *entry, target); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(3, *entry, target); Utf8Check::Check(&(*it)); } } } - // .v1.model.MetricSet metric_set = 15; + // .v1.model.Text text = 4; + if (has_text()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::text(this), target); + } + + // .v1.model.Numeric numeric = 5; + if (has_numeric()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::numeric(this), target); + } + + // .v1.model.MetricSet metric_set = 6; if (has_metric_set()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 15, HasBitSetters::metric_set(this), target); + 6, HasBitSetters::metric_set(this), target); + } + + // .v1.model.Bitset bitset = 7; + if (has_bitset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::bitset(this), target); + } + + // .v1.model.File file = 8; + if (has_file()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::file(this), target); + } + + // .v1.model.Image image = 9; + if (has_image()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, HasBitSetters::image(this), target); + } + + // .v1.model.PointCloud point_cloud = 10; + if (has_point_cloud()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10, HasBitSetters::point_cloud(this), target); + } + + // .v1.model.Location location = 11; + if (has_location()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 11, HasBitSetters::location(this), target); + } + + // .v1.model.Localization localization = 12; + if (has_localization()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 12, HasBitSetters::localization(this), target); + } + + // .v1.model.Health health = 13; + if (has_health()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 13, HasBitSetters::health(this), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -1541,7 +1384,7 @@ size_t Datapoint::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // map tags = 14; + // map tags = 3; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->tags_size()); { @@ -1570,84 +1413,70 @@ size_t Datapoint::ByteSizeLong() const { } switch (data_case()) { - // .v1.model.Text text = 3; + // .v1.model.Text text = 4; case kText: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *data_.text_); break; } - // .v1.model.Numeric numeric = 4; + // .v1.model.Numeric numeric = 5; case kNumeric: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *data_.numeric_); break; } - // .v1.model.MetricSet metric_set = 15; + // .v1.model.MetricSet metric_set = 6; case kMetricSet: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *data_.metric_set_); break; } - // .v1.model.BitSet bitset = 13; + // .v1.model.Bitset bitset = 7; case kBitset: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *data_.bitset_); break; } - // .v1.model.File file = 5; + // .v1.model.File file = 8; case kFile: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *data_.file_); break; } - // .v1.model.Image image = 6; + // .v1.model.Image image = 9; case kImage: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *data_.image_); break; } - // .v1.model.Video video = 7; - case kVideo: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_.video_); - break; - } - // .v1.model.PointCloud point_cloud = 8; + // .v1.model.PointCloud point_cloud = 10; case kPointCloud: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *data_.point_cloud_); break; } - // .v1.model.Location location = 9; + // .v1.model.Location location = 11; case kLocation: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *data_.location_); break; } - // .v1.model.ROSMessage ros_message = 10; - case kRosMessage: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_.ros_message_); - break; - } - // .v1.model.Localization localization = 11; + // .v1.model.Localization localization = 12; case kLocalization: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *data_.localization_); break; } - // .v1.model.Health health = 12; + // .v1.model.Health health = 13; case kHealth: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( @@ -1707,7 +1536,7 @@ void Datapoint::MergeFrom(const Datapoint& from) { break; } case kBitset: { - mutable_bitset()->::v1::model::BitSet::MergeFrom(from.bitset()); + mutable_bitset()->::v1::model::Bitset::MergeFrom(from.bitset()); break; } case kFile: { @@ -1718,10 +1547,6 @@ void Datapoint::MergeFrom(const Datapoint& from) { mutable_image()->::v1::model::Image::MergeFrom(from.image()); break; } - case kVideo: { - mutable_video()->::v1::model::Video::MergeFrom(from.video()); - break; - } case kPointCloud: { mutable_point_cloud()->::v1::model::PointCloud::MergeFrom(from.point_cloud()); break; @@ -1730,10 +1555,6 @@ void Datapoint::MergeFrom(const Datapoint& from) { mutable_location()->::v1::model::Location::MergeFrom(from.location()); break; } - case kRosMessage: { - mutable_ros_message()->::v1::model::ROSMessage::MergeFrom(from.ros_message()); - break; - } case kLocalization: { mutable_localization()->::v1::model::Localization::MergeFrom(from.localization()); break; diff --git a/examples/cpp/protos/model/v1/datapoint.pb.h b/examples/cpp/protos/model/v1/datapoint.pb.h index 93bf42e..472fb0e 100755 --- a/examples/cpp/protos/model/v1/datapoint.pb.h +++ b/examples/cpp/protos/model/v1/datapoint.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#if 3007001 < 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. @@ -38,7 +38,6 @@ #include "protos/model/v1/health.pb.h" #include "protos/model/v1/math.pb.h" #include "protos/model/v1/navigation.pb.h" -#include "protos/model/v1/ros.pb.h" #include "protos/model/v1/text.pb.h" #include "protos/model/v1/media.pb.h" // @@protoc_insertion_point(includes) @@ -103,7 +102,7 @@ static bool _ParseMap(const char* begin, const char* end, void* object, ::google // ------------------------------------------------------------------- -class Datapoint final : +class Datapoint : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Datapoint) */ { public: Datapoint(); @@ -136,18 +135,16 @@ class Datapoint final : static const Datapoint& default_instance(); enum DataCase { - kText = 3, - kNumeric = 4, - kMetricSet = 15, - kBitset = 13, - kFile = 5, - kImage = 6, - kVideo = 7, - kPointCloud = 8, - kLocation = 9, - kRosMessage = 10, - kLocalization = 11, - kHealth = 12, + kText = 4, + kNumeric = 5, + kMetricSet = 6, + kBitset = 7, + kFile = 8, + kImage = 9, + kPointCloud = 10, + kLocation = 11, + kLocalization = 12, + kHealth = 13, DATA_NOT_SET = 0, }; @@ -215,10 +212,10 @@ class Datapoint final : // accessors ------------------------------------------------------- - // map tags = 14; + // map tags = 3; int tags_size() const; void clear_tags(); - static const int kTagsFieldNumber = 14; + static const int kTagsFieldNumber = 3; const ::google::protobuf::Map< ::std::string, ::std::string >& tags() const; ::google::protobuf::Map< ::std::string, ::std::string >* @@ -244,109 +241,91 @@ class Datapoint final : ::google::protobuf::int64 timestamp() const; void set_timestamp(::google::protobuf::int64 value); - // .v1.model.Text text = 3; + // .v1.model.Text text = 4; bool has_text() const; void clear_text(); - static const int kTextFieldNumber = 3; + static const int kTextFieldNumber = 4; const ::v1::model::Text& text() const; ::v1::model::Text* release_text(); ::v1::model::Text* mutable_text(); void set_allocated_text(::v1::model::Text* text); - // .v1.model.Numeric numeric = 4; + // .v1.model.Numeric numeric = 5; bool has_numeric() const; void clear_numeric(); - static const int kNumericFieldNumber = 4; + static const int kNumericFieldNumber = 5; const ::v1::model::Numeric& numeric() const; ::v1::model::Numeric* release_numeric(); ::v1::model::Numeric* mutable_numeric(); void set_allocated_numeric(::v1::model::Numeric* numeric); - // .v1.model.MetricSet metric_set = 15; + // .v1.model.MetricSet metric_set = 6; bool has_metric_set() const; void clear_metric_set(); - static const int kMetricSetFieldNumber = 15; + static const int kMetricSetFieldNumber = 6; const ::v1::model::MetricSet& metric_set() const; ::v1::model::MetricSet* release_metric_set(); ::v1::model::MetricSet* mutable_metric_set(); void set_allocated_metric_set(::v1::model::MetricSet* metric_set); - // .v1.model.BitSet bitset = 13; + // .v1.model.Bitset bitset = 7; bool has_bitset() const; void clear_bitset(); - static const int kBitsetFieldNumber = 13; - const ::v1::model::BitSet& bitset() const; - ::v1::model::BitSet* release_bitset(); - ::v1::model::BitSet* mutable_bitset(); - void set_allocated_bitset(::v1::model::BitSet* bitset); + static const int kBitsetFieldNumber = 7; + const ::v1::model::Bitset& bitset() const; + ::v1::model::Bitset* release_bitset(); + ::v1::model::Bitset* mutable_bitset(); + void set_allocated_bitset(::v1::model::Bitset* bitset); - // .v1.model.File file = 5; + // .v1.model.File file = 8; bool has_file() const; void clear_file(); - static const int kFileFieldNumber = 5; + static const int kFileFieldNumber = 8; const ::v1::model::File& file() const; ::v1::model::File* release_file(); ::v1::model::File* mutable_file(); void set_allocated_file(::v1::model::File* file); - // .v1.model.Image image = 6; + // .v1.model.Image image = 9; bool has_image() const; void clear_image(); - static const int kImageFieldNumber = 6; + static const int kImageFieldNumber = 9; const ::v1::model::Image& image() const; ::v1::model::Image* release_image(); ::v1::model::Image* mutable_image(); void set_allocated_image(::v1::model::Image* image); - // .v1.model.Video video = 7; - bool has_video() const; - void clear_video(); - static const int kVideoFieldNumber = 7; - const ::v1::model::Video& video() const; - ::v1::model::Video* release_video(); - ::v1::model::Video* mutable_video(); - void set_allocated_video(::v1::model::Video* video); - - // .v1.model.PointCloud point_cloud = 8; + // .v1.model.PointCloud point_cloud = 10; bool has_point_cloud() const; void clear_point_cloud(); - static const int kPointCloudFieldNumber = 8; + static const int kPointCloudFieldNumber = 10; const ::v1::model::PointCloud& point_cloud() const; ::v1::model::PointCloud* release_point_cloud(); ::v1::model::PointCloud* mutable_point_cloud(); void set_allocated_point_cloud(::v1::model::PointCloud* point_cloud); - // .v1.model.Location location = 9; + // .v1.model.Location location = 11; bool has_location() const; void clear_location(); - static const int kLocationFieldNumber = 9; + static const int kLocationFieldNumber = 11; const ::v1::model::Location& location() const; ::v1::model::Location* release_location(); ::v1::model::Location* mutable_location(); void set_allocated_location(::v1::model::Location* location); - // .v1.model.ROSMessage ros_message = 10; - bool has_ros_message() const; - void clear_ros_message(); - static const int kRosMessageFieldNumber = 10; - const ::v1::model::ROSMessage& ros_message() const; - ::v1::model::ROSMessage* release_ros_message(); - ::v1::model::ROSMessage* mutable_ros_message(); - void set_allocated_ros_message(::v1::model::ROSMessage* ros_message); - - // .v1.model.Localization localization = 11; + // .v1.model.Localization localization = 12; bool has_localization() const; void clear_localization(); - static const int kLocalizationFieldNumber = 11; + static const int kLocalizationFieldNumber = 12; const ::v1::model::Localization& localization() const; ::v1::model::Localization* release_localization(); ::v1::model::Localization* mutable_localization(); void set_allocated_localization(::v1::model::Localization* localization); - // .v1.model.Health health = 12; + // .v1.model.Health health = 13; bool has_health() const; void clear_health(); - static const int kHealthFieldNumber = 12; + static const int kHealthFieldNumber = 13; const ::v1::model::Health& health() const; ::v1::model::Health* release_health(); ::v1::model::Health* mutable_health(); @@ -363,10 +342,8 @@ class Datapoint final : void set_has_bitset(); void set_has_file(); void set_has_image(); - void set_has_video(); void set_has_point_cloud(); void set_has_location(); - void set_has_ros_message(); void set_has_localization(); void set_has_health(); @@ -387,13 +364,11 @@ class Datapoint final : ::v1::model::Text* text_; ::v1::model::Numeric* numeric_; ::v1::model::MetricSet* metric_set_; - ::v1::model::BitSet* bitset_; + ::v1::model::Bitset* bitset_; ::v1::model::File* file_; ::v1::model::Image* image_; - ::v1::model::Video* video_; ::v1::model::PointCloud* point_cloud_; ::v1::model::Location* location_; - ::v1::model::ROSMessage* ros_message_; ::v1::model::Localization* localization_; ::v1::model::Health* health_; } data_; @@ -482,7 +457,7 @@ inline void Datapoint::set_timestamp(::google::protobuf::int64 value) { // @@protoc_insertion_point(field_set:v1.model.Datapoint.timestamp) } -// map tags = 14; +// map tags = 3; inline int Datapoint::tags_size() const { return tags_.size(); } @@ -500,7 +475,7 @@ Datapoint::mutable_tags() { return tags_.MutableMap(); } -// .v1.model.Text text = 3; +// .v1.model.Text text = 4; inline bool Datapoint::has_text() const { return data_case() == kText; } @@ -535,7 +510,7 @@ inline ::v1::model::Text* Datapoint::mutable_text() { return data_.text_; } -// .v1.model.Numeric numeric = 4; +// .v1.model.Numeric numeric = 5; inline bool Datapoint::has_numeric() const { return data_case() == kNumeric; } @@ -570,7 +545,7 @@ inline ::v1::model::Numeric* Datapoint::mutable_numeric() { return data_.numeric_; } -// .v1.model.MetricSet metric_set = 15; +// .v1.model.MetricSet metric_set = 6; inline bool Datapoint::has_metric_set() const { return data_case() == kMetricSet; } @@ -605,42 +580,42 @@ inline ::v1::model::MetricSet* Datapoint::mutable_metric_set() { return data_.metric_set_; } -// .v1.model.BitSet bitset = 13; +// .v1.model.Bitset bitset = 7; inline bool Datapoint::has_bitset() const { return data_case() == kBitset; } inline void Datapoint::set_has_bitset() { _oneof_case_[0] = kBitset; } -inline ::v1::model::BitSet* Datapoint::release_bitset() { +inline ::v1::model::Bitset* Datapoint::release_bitset() { // @@protoc_insertion_point(field_release:v1.model.Datapoint.bitset) if (has_bitset()) { clear_has_data(); - ::v1::model::BitSet* temp = data_.bitset_; + ::v1::model::Bitset* temp = data_.bitset_; data_.bitset_ = nullptr; return temp; } else { return nullptr; } } -inline const ::v1::model::BitSet& Datapoint::bitset() const { +inline const ::v1::model::Bitset& Datapoint::bitset() const { // @@protoc_insertion_point(field_get:v1.model.Datapoint.bitset) return has_bitset() ? *data_.bitset_ - : *reinterpret_cast< ::v1::model::BitSet*>(&::v1::model::_BitSet_default_instance_); + : *reinterpret_cast< ::v1::model::Bitset*>(&::v1::model::_Bitset_default_instance_); } -inline ::v1::model::BitSet* Datapoint::mutable_bitset() { +inline ::v1::model::Bitset* Datapoint::mutable_bitset() { if (!has_bitset()) { clear_data(); set_has_bitset(); - data_.bitset_ = CreateMaybeMessage< ::v1::model::BitSet >( + data_.bitset_ = CreateMaybeMessage< ::v1::model::Bitset >( GetArenaNoVirtual()); } // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.bitset) return data_.bitset_; } -// .v1.model.File file = 5; +// .v1.model.File file = 8; inline bool Datapoint::has_file() const { return data_case() == kFile; } @@ -675,7 +650,7 @@ inline ::v1::model::File* Datapoint::mutable_file() { return data_.file_; } -// .v1.model.Image image = 6; +// .v1.model.Image image = 9; inline bool Datapoint::has_image() const { return data_case() == kImage; } @@ -710,42 +685,7 @@ inline ::v1::model::Image* Datapoint::mutable_image() { return data_.image_; } -// .v1.model.Video video = 7; -inline bool Datapoint::has_video() const { - return data_case() == kVideo; -} -inline void Datapoint::set_has_video() { - _oneof_case_[0] = kVideo; -} -inline ::v1::model::Video* Datapoint::release_video() { - // @@protoc_insertion_point(field_release:v1.model.Datapoint.video) - if (has_video()) { - clear_has_data(); - ::v1::model::Video* temp = data_.video_; - data_.video_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::v1::model::Video& Datapoint::video() const { - // @@protoc_insertion_point(field_get:v1.model.Datapoint.video) - return has_video() - ? *data_.video_ - : *reinterpret_cast< ::v1::model::Video*>(&::v1::model::_Video_default_instance_); -} -inline ::v1::model::Video* Datapoint::mutable_video() { - if (!has_video()) { - clear_data(); - set_has_video(); - data_.video_ = CreateMaybeMessage< ::v1::model::Video >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.video) - return data_.video_; -} - -// .v1.model.PointCloud point_cloud = 8; +// .v1.model.PointCloud point_cloud = 10; inline bool Datapoint::has_point_cloud() const { return data_case() == kPointCloud; } @@ -780,7 +720,7 @@ inline ::v1::model::PointCloud* Datapoint::mutable_point_cloud() { return data_.point_cloud_; } -// .v1.model.Location location = 9; +// .v1.model.Location location = 11; inline bool Datapoint::has_location() const { return data_case() == kLocation; } @@ -815,42 +755,7 @@ inline ::v1::model::Location* Datapoint::mutable_location() { return data_.location_; } -// .v1.model.ROSMessage ros_message = 10; -inline bool Datapoint::has_ros_message() const { - return data_case() == kRosMessage; -} -inline void Datapoint::set_has_ros_message() { - _oneof_case_[0] = kRosMessage; -} -inline ::v1::model::ROSMessage* Datapoint::release_ros_message() { - // @@protoc_insertion_point(field_release:v1.model.Datapoint.ros_message) - if (has_ros_message()) { - clear_has_data(); - ::v1::model::ROSMessage* temp = data_.ros_message_; - data_.ros_message_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::v1::model::ROSMessage& Datapoint::ros_message() const { - // @@protoc_insertion_point(field_get:v1.model.Datapoint.ros_message) - return has_ros_message() - ? *data_.ros_message_ - : *reinterpret_cast< ::v1::model::ROSMessage*>(&::v1::model::_ROSMessage_default_instance_); -} -inline ::v1::model::ROSMessage* Datapoint::mutable_ros_message() { - if (!has_ros_message()) { - clear_data(); - set_has_ros_message(); - data_.ros_message_ = CreateMaybeMessage< ::v1::model::ROSMessage >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.ros_message) - return data_.ros_message_; -} - -// .v1.model.Localization localization = 11; +// .v1.model.Localization localization = 12; inline bool Datapoint::has_localization() const { return data_case() == kLocalization; } @@ -885,7 +790,7 @@ inline ::v1::model::Localization* Datapoint::mutable_localization() { return data_.localization_; } -// .v1.model.Health health = 12; +// .v1.model.Health health = 13; inline bool Datapoint::has_health() const { return data_case() == kHealth; } diff --git a/examples/cpp/protos/model/v1/file.pb.cc b/examples/cpp/protos/model/v1/file.pb.cc index f57ffbf..6adb8c6 100755 --- a/examples/cpp/protos/model/v1/file.pb.cc +++ b/examples/cpp/protos/model/v1/file.pb.cc @@ -23,8 +23,6 @@ class FileDefaultTypeInternal { ::google::protobuf::internal::ExplicitlyConstructed _instance; ::google::protobuf::internal::ArenaStringPtr url_; ::google::protobuf::internal::ArenaStringPtr raw_; - ::google::protobuf::internal::ArenaStringPtr preview_url_; - ::google::protobuf::internal::ArenaStringPtr preview_raw_; } _File_default_instance_; } // namespace model } // namespace v1 @@ -60,10 +58,7 @@ const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2ffile_2eproto: offsetof(::v1::model::FileDefaultTypeInternal, raw_), PROTOBUF_FIELD_OFFSET(::v1::model::File, filename_), PROTOBUF_FIELD_OFFSET(::v1::model::File, size_), - offsetof(::v1::model::FileDefaultTypeInternal, preview_url_), - offsetof(::v1::model::FileDefaultTypeInternal, preview_raw_), PROTOBUF_FIELD_OFFSET(::v1::model::File, data_), - PROTOBUF_FIELD_OFFSET(::v1::model::File, preview_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::v1::model::File)}, @@ -80,17 +75,16 @@ ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_pr }; const char descriptor_table_protodef_protos_2fmodel_2fv1_2ffile_2eproto[] = - "\n\032protos/model/v1/file.proto\022\010v1.model\"\205" - "\001\n\004File\022\r\n\003url\030\001 \001(\tH\000\022\r\n\003raw\030\002 \001(\014H\000\022\020\n" - "\010filename\030\003 \001(\t\022\014\n\004size\030\004 \001(\003\022\025\n\013preview" - "_url\030\005 \001(\tH\001\022\025\n\013preview_raw\030\006 \001(\014H\001B\006\n\004d" - "ataB\t\n\007previewB+Z)github.com/FormantIO/g" - "enproto/go/v1/modelb\006proto3" + "\n\032protos/model/v1/file.proto\022\010v1.model\"L" + "\n\004File\022\r\n\003url\030\001 \001(\tH\000\022\r\n\003raw\030\002 \001(\014H\000\022\020\n\010" + "filename\030\003 \001(\t\022\014\n\004size\030\004 \001(\003B\006\n\004dataB+Z)" + "github.com/FormantIO/genproto/go/v1/mode" + "lb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto = { false, InitDefaults_protos_2fmodel_2fv1_2ffile_2eproto, descriptor_table_protodef_protos_2fmodel_2fv1_2ffile_2eproto, - "protos/model/v1/file.proto", &assign_descriptors_table_protos_2fmodel_2fv1_2ffile_2eproto, 227, + "protos/model/v1/file.proto", &assign_descriptors_table_protos_2fmodel_2fv1_2ffile_2eproto, 169, }; void AddDescriptors_protos_2fmodel_2fv1_2ffile_2eproto() { @@ -112,10 +106,6 @@ void File::InitAsDefaultInstance() { &::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::v1::model::_File_default_instance_.raw_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::v1::model::_File_default_instance_.preview_url_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::v1::model::_File_default_instance_.preview_raw_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); } class File::HasBitSetters { public: @@ -126,8 +116,6 @@ const int File::kUrlFieldNumber; const int File::kRawFieldNumber; const int File::kFilenameFieldNumber; const int File::kSizeFieldNumber; -const int File::kPreviewUrlFieldNumber; -const int File::kPreviewRawFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 File::File() @@ -158,20 +146,6 @@ File::File(const File& from) break; } } - clear_has_preview(); - switch (from.preview_case()) { - case kPreviewUrl: { - set_preview_url(from.preview_url()); - break; - } - case kPreviewRaw: { - set_preview_raw(from.preview_raw()); - break; - } - case PREVIEW_NOT_SET: { - break; - } - } // @@protoc_insertion_point(copy_constructor:v1.model.File) } @@ -181,7 +155,6 @@ void File::SharedCtor() { filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); size_ = PROTOBUF_LONGLONG(0); clear_has_data(); - clear_has_preview(); } File::~File() { @@ -194,9 +167,6 @@ void File::SharedDtor() { if (has_data()) { clear_data(); } - if (has_preview()) { - clear_preview(); - } } void File::SetCachedSize(int size) const { @@ -226,24 +196,6 @@ void File::clear_data() { _oneof_case_[0] = DATA_NOT_SET; } -void File::clear_preview() { -// @@protoc_insertion_point(one_of_clear_start:v1.model.File) - switch (preview_case()) { - case kPreviewUrl: { - preview_.preview_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kPreviewRaw: { - preview_.preview_raw_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case PREVIEW_NOT_SET: { - break; - } - } - _oneof_case_[1] = PREVIEW_NOT_SET; -} - void File::Clear() { // @@protoc_insertion_point(message_clear_start:v1.model.File) @@ -254,7 +206,6 @@ void File::Clear() { filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); size_ = PROTOBUF_LONGLONG(0); clear_data(); - clear_preview(); _internal_metadata_.Clear(); } @@ -325,37 +276,6 @@ const char* File::_InternalParse(const char* begin, const char* end, void* objec GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); break; } - // string preview_url = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("v1.model.File.preview_url"); - object = msg->mutable_preview_url(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // bytes preview_raw = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_preview_raw(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -444,32 +364,6 @@ bool File::MergePartialFromCodedStream( break; } - // string preview_url = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_preview_url())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->preview_url().data(), static_cast(this->preview_url().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "v1.model.File.preview_url")); - } else { - goto handle_unusual; - } - break; - } - - // bytes preview_raw = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_preview_raw())); - } else { - goto handle_unusual; - } - break; - } - default: { handle_unusual: if (tag == 0) { @@ -528,22 +422,6 @@ void File::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->size(), output); } - // string preview_url = 5; - if (has_preview_url()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->preview_url().data(), static_cast(this->preview_url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "v1.model.File.preview_url"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->preview_url(), output); - } - - // bytes preview_raw = 6; - if (has_preview_raw()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 6, this->preview_raw(), output); - } - if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); @@ -591,24 +469,6 @@ ::google::protobuf::uint8* File::InternalSerializeWithCachedSizesToArray( target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->size(), target); } - // string preview_url = 5; - if (has_preview_url()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->preview_url().data(), static_cast(this->preview_url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "v1.model.File.preview_url"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->preview_url(), target); - } - - // bytes preview_raw = 6; - if (has_preview_raw()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 6, this->preview_raw(), target); - } - if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); @@ -663,25 +523,6 @@ size_t File::ByteSizeLong() const { break; } } - switch (preview_case()) { - // string preview_url = 5; - case kPreviewUrl: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->preview_url()); - break; - } - // bytes preview_raw = 6; - case kPreviewRaw: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->preview_raw()); - break; - } - case PREVIEW_NOT_SET: { - break; - } - } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; @@ -729,19 +570,6 @@ void File::MergeFrom(const File& from) { break; } } - switch (from.preview_case()) { - case kPreviewUrl: { - set_preview_url(from.preview_url()); - break; - } - case kPreviewRaw: { - set_preview_raw(from.preview_raw()); - break; - } - case PREVIEW_NOT_SET: { - break; - } - } } void File::CopyFrom(const ::google::protobuf::Message& from) { @@ -773,9 +601,7 @@ void File::InternalSwap(File* other) { GetArenaNoVirtual()); swap(size_, other->size_); swap(data_, other->data_); - swap(preview_, other->preview_); swap(_oneof_case_[0], other->_oneof_case_[0]); - swap(_oneof_case_[1], other->_oneof_case_[1]); } ::google::protobuf::Metadata File::GetMetadata() const { diff --git a/examples/cpp/protos/model/v1/file.pb.h b/examples/cpp/protos/model/v1/file.pb.h index 429e509..6256f1a 100755 --- a/examples/cpp/protos/model/v1/file.pb.h +++ b/examples/cpp/protos/model/v1/file.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#if 3007001 < 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. @@ -65,7 +65,7 @@ namespace model { // =================================================================== -class File final : +class File : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.File) */ { public: File(); @@ -103,12 +103,6 @@ class File final : DATA_NOT_SET = 0, }; - enum PreviewCase { - kPreviewUrl = 5, - kPreviewRaw = 6, - PREVIEW_NOT_SET = 0, - }; - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const File* internal_default_instance() { return reinterpret_cast( @@ -226,58 +220,17 @@ class File final : ::std::string* release_raw(); void set_allocated_raw(::std::string* raw); - // string preview_url = 5; - private: - bool has_preview_url() const; - public: - void clear_preview_url(); - static const int kPreviewUrlFieldNumber = 5; - const ::std::string& preview_url() const; - void set_preview_url(const ::std::string& value); - #if LANG_CXX11 - void set_preview_url(::std::string&& value); - #endif - void set_preview_url(const char* value); - void set_preview_url(const char* value, size_t size); - ::std::string* mutable_preview_url(); - ::std::string* release_preview_url(); - void set_allocated_preview_url(::std::string* preview_url); - - // bytes preview_raw = 6; - private: - bool has_preview_raw() const; - public: - void clear_preview_raw(); - static const int kPreviewRawFieldNumber = 6; - const ::std::string& preview_raw() const; - void set_preview_raw(const ::std::string& value); - #if LANG_CXX11 - void set_preview_raw(::std::string&& value); - #endif - void set_preview_raw(const char* value); - void set_preview_raw(const void* value, size_t size); - ::std::string* mutable_preview_raw(); - ::std::string* release_preview_raw(); - void set_allocated_preview_raw(::std::string* preview_raw); - void clear_data(); DataCase data_case() const; - void clear_preview(); - PreviewCase preview_case() const; // @@protoc_insertion_point(class_scope:v1.model.File) private: class HasBitSetters; void set_has_url(); void set_has_raw(); - void set_has_preview_url(); - void set_has_preview_raw(); inline bool has_data() const; inline void clear_has_data(); - inline bool has_preview() const; - inline void clear_has_preview(); - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr filename_; ::google::protobuf::int64 size_; @@ -286,13 +239,8 @@ class File final : ::google::protobuf::internal::ArenaStringPtr url_; ::google::protobuf::internal::ArenaStringPtr raw_; } data_; - union PreviewUnion { - PreviewUnion() {} - ::google::protobuf::internal::ArenaStringPtr preview_url_; - ::google::protobuf::internal::ArenaStringPtr preview_raw_; - } preview_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[2]; + ::google::protobuf::uint32 _oneof_case_[1]; friend struct ::TableStruct_protos_2fmodel_2fv1_2ffile_2eproto; }; @@ -558,208 +506,15 @@ inline void File::set_size(::google::protobuf::int64 value) { // @@protoc_insertion_point(field_set:v1.model.File.size) } -// string preview_url = 5; -inline bool File::has_preview_url() const { - return preview_case() == kPreviewUrl; -} -inline void File::set_has_preview_url() { - _oneof_case_[1] = kPreviewUrl; -} -inline void File::clear_preview_url() { - if (has_preview_url()) { - preview_.preview_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_preview(); - } -} -inline const ::std::string& File::preview_url() const { - // @@protoc_insertion_point(field_get:v1.model.File.preview_url) - if (has_preview_url()) { - return preview_.preview_url_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void File::set_preview_url(const ::std::string& value) { - // @@protoc_insertion_point(field_set:v1.model.File.preview_url) - if (!has_preview_url()) { - clear_preview(); - set_has_preview_url(); - preview_.preview_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - preview_.preview_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.model.File.preview_url) -} -#if LANG_CXX11 -inline void File::set_preview_url(::std::string&& value) { - // @@protoc_insertion_point(field_set:v1.model.File.preview_url) - if (!has_preview_url()) { - clear_preview(); - set_has_preview_url(); - preview_.preview_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - preview_.preview_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:v1.model.File.preview_url) -} -#endif -inline void File::set_preview_url(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_preview_url()) { - clear_preview(); - set_has_preview_url(); - preview_.preview_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - preview_.preview_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:v1.model.File.preview_url) -} -inline void File::set_preview_url(const char* value, size_t size) { - if (!has_preview_url()) { - clear_preview(); - set_has_preview_url(); - preview_.preview_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - preview_.preview_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:v1.model.File.preview_url) -} -inline ::std::string* File::mutable_preview_url() { - if (!has_preview_url()) { - clear_preview(); - set_has_preview_url(); - preview_.preview_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:v1.model.File.preview_url) - return preview_.preview_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* File::release_preview_url() { - // @@protoc_insertion_point(field_release:v1.model.File.preview_url) - if (has_preview_url()) { - clear_has_preview(); - return preview_.preview_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void File::set_allocated_preview_url(::std::string* preview_url) { - if (has_preview()) { - clear_preview(); - } - if (preview_url != nullptr) { - set_has_preview_url(); - preview_.preview_url_.UnsafeSetDefault(preview_url); - } - // @@protoc_insertion_point(field_set_allocated:v1.model.File.preview_url) -} - -// bytes preview_raw = 6; -inline bool File::has_preview_raw() const { - return preview_case() == kPreviewRaw; -} -inline void File::set_has_preview_raw() { - _oneof_case_[1] = kPreviewRaw; -} -inline void File::clear_preview_raw() { - if (has_preview_raw()) { - preview_.preview_raw_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_preview(); - } -} -inline const ::std::string& File::preview_raw() const { - // @@protoc_insertion_point(field_get:v1.model.File.preview_raw) - if (has_preview_raw()) { - return preview_.preview_raw_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void File::set_preview_raw(const ::std::string& value) { - // @@protoc_insertion_point(field_set:v1.model.File.preview_raw) - if (!has_preview_raw()) { - clear_preview(); - set_has_preview_raw(); - preview_.preview_raw_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - preview_.preview_raw_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.model.File.preview_raw) -} -#if LANG_CXX11 -inline void File::set_preview_raw(::std::string&& value) { - // @@protoc_insertion_point(field_set:v1.model.File.preview_raw) - if (!has_preview_raw()) { - clear_preview(); - set_has_preview_raw(); - preview_.preview_raw_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - preview_.preview_raw_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:v1.model.File.preview_raw) -} -#endif -inline void File::set_preview_raw(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_preview_raw()) { - clear_preview(); - set_has_preview_raw(); - preview_.preview_raw_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - preview_.preview_raw_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:v1.model.File.preview_raw) -} -inline void File::set_preview_raw(const void* value, size_t size) { - if (!has_preview_raw()) { - clear_preview(); - set_has_preview_raw(); - preview_.preview_raw_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - preview_.preview_raw_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:v1.model.File.preview_raw) -} -inline ::std::string* File::mutable_preview_raw() { - if (!has_preview_raw()) { - clear_preview(); - set_has_preview_raw(); - preview_.preview_raw_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:v1.model.File.preview_raw) - return preview_.preview_raw_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* File::release_preview_raw() { - // @@protoc_insertion_point(field_release:v1.model.File.preview_raw) - if (has_preview_raw()) { - clear_has_preview(); - return preview_.preview_raw_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void File::set_allocated_preview_raw(::std::string* preview_raw) { - if (has_preview()) { - clear_preview(); - } - if (preview_raw != nullptr) { - set_has_preview_raw(); - preview_.preview_raw_.UnsafeSetDefault(preview_raw); - } - // @@protoc_insertion_point(field_set_allocated:v1.model.File.preview_raw) -} - inline bool File::has_data() const { return data_case() != DATA_NOT_SET; } inline void File::clear_has_data() { _oneof_case_[0] = DATA_NOT_SET; } -inline bool File::has_preview() const { - return preview_case() != PREVIEW_NOT_SET; -} -inline void File::clear_has_preview() { - _oneof_case_[1] = PREVIEW_NOT_SET; -} inline File::DataCase File::data_case() const { return File::DataCase(_oneof_case_[0]); } -inline File::PreviewCase File::preview_case() const { - return File::PreviewCase(_oneof_case_[1]); -} #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ diff --git a/examples/cpp/protos/model/v1/health.pb.h b/examples/cpp/protos/model/v1/health.pb.h index 59ebe8e..cdd4047 100755 --- a/examples/cpp/protos/model/v1/health.pb.h +++ b/examples/cpp/protos/model/v1/health.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#if 3007001 < 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. @@ -89,7 +89,7 @@ inline bool HealthStatus_Parse( } // =================================================================== -class Health final : +class Health : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Health) */ { public: Health(); diff --git a/examples/cpp/protos/model/v1/intervention.pb.h b/examples/cpp/protos/model/v1/intervention.pb.h index ec7d254..8bd74ad 100755 --- a/examples/cpp/protos/model/v1/intervention.pb.h +++ b/examples/cpp/protos/model/v1/intervention.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#if 3007001 < 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. @@ -153,7 +153,7 @@ static bool _ParseMap(const char* begin, const char* end, void* object, ::google // ------------------------------------------------------------------- -class InterventionRequest final : +class InterventionRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.InterventionRequest) */ { public: InterventionRequest(); @@ -354,7 +354,7 @@ class InterventionRequest final : }; // ------------------------------------------------------------------- -class InterventionResponse final : +class InterventionResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.InterventionResponse) */ { public: InterventionResponse(); @@ -534,7 +534,7 @@ class InterventionResponse final : }; // ------------------------------------------------------------------- -class Label final : +class Label : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Label) */ { public: Label(); @@ -669,7 +669,7 @@ class Label final : }; // ------------------------------------------------------------------- -class LabeledPolygon final : +class LabeledPolygon : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.LabeledPolygon) */ { public: LabeledPolygon(); @@ -810,7 +810,7 @@ class LabeledPolygon final : }; // ------------------------------------------------------------------- -class Vertex final : +class Vertex : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Vertex) */ { public: Vertex(); @@ -929,7 +929,7 @@ class Vertex final : }; // ------------------------------------------------------------------- -class LabelingRequest final : +class LabelingRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.LabelingRequest) */ { public: LabelingRequest(); @@ -1100,7 +1100,7 @@ class LabelingRequest final : }; // ------------------------------------------------------------------- -class LabelingResponse final : +class LabelingResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.LabelingResponse) */ { public: LabelingResponse(); @@ -1218,7 +1218,7 @@ class LabelingResponse final : }; // ------------------------------------------------------------------- -class SelectionRequest final : +class SelectionRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.SelectionRequest) */ { public: SelectionRequest(); @@ -1409,7 +1409,7 @@ class SelectionRequest final : }; // ------------------------------------------------------------------- -class SelectionResponse final : +class SelectionResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.SelectionResponse) */ { public: SelectionResponse(); diff --git a/examples/cpp/protos/model/v1/math.pb.cc b/examples/cpp/protos/model/v1/math.pb.cc index 2bfd971..f3f97ad 100755 --- a/examples/cpp/protos/model/v1/math.pb.cc +++ b/examples/cpp/protos/model/v1/math.pb.cc @@ -38,10 +38,10 @@ class BitDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Bit_default_instance_; -class BitSetDefaultTypeInternal { +class BitsetDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _BitSet_default_instance_; + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Bitset_default_instance_; class TwistDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -117,19 +117,19 @@ static void InitDefaultsBit_protos_2fmodel_2fv1_2fmath_2eproto() { ::google::protobuf::internal::SCCInfo<0> scc_info_Bit_protos_2fmodel_2fv1_2fmath_2eproto = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBit_protos_2fmodel_2fv1_2fmath_2eproto}, {}}; -static void InitDefaultsBitSet_protos_2fmodel_2fv1_2fmath_2eproto() { +static void InitDefaultsBitset_protos_2fmodel_2fv1_2fmath_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::model::_BitSet_default_instance_; - new (ptr) ::v1::model::BitSet(); + void* ptr = &::v1::model::_Bitset_default_instance_; + new (ptr) ::v1::model::Bitset(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::v1::model::BitSet::InitAsDefaultInstance(); + ::v1::model::Bitset::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_BitSet_protos_2fmodel_2fv1_2fmath_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBitSet_protos_2fmodel_2fv1_2fmath_2eproto}, { +::google::protobuf::internal::SCCInfo<1> scc_info_Bitset_protos_2fmodel_2fv1_2fmath_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBitset_protos_2fmodel_2fv1_2fmath_2eproto}, { &scc_info_Bit_protos_2fmodel_2fv1_2fmath_2eproto.base,}}; static void InitDefaultsTwist_protos_2fmodel_2fv1_2fmath_2eproto() { @@ -196,7 +196,7 @@ void InitDefaults_protos_2fmodel_2fv1_2fmath_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_MetricSet_protos_2fmodel_2fv1_2fmath_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_Metric_protos_2fmodel_2fv1_2fmath_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_Bit_protos_2fmodel_2fv1_2fmath_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_BitSet_protos_2fmodel_2fv1_2fmath_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Bitset_protos_2fmodel_2fv1_2fmath_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_Twist_protos_2fmodel_2fv1_2fmath_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_Transform_protos_2fmodel_2fv1_2fmath_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_Vector3_protos_2fmodel_2fv1_2fmath_2eproto.base); @@ -235,11 +235,11 @@ const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2fmath_2eproto: PROTOBUF_FIELD_OFFSET(::v1::model::Bit, key_), PROTOBUF_FIELD_OFFSET(::v1::model::Bit, value_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::v1::model::BitSet, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::v1::model::Bitset, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::v1::model::BitSet, bits_), + PROTOBUF_FIELD_OFFSET(::v1::model::Bitset, bits_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::v1::model::Twist, _internal_metadata_), ~0u, // no _extensions_ @@ -277,7 +277,7 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SE { 6, -1, sizeof(::v1::model::MetricSet)}, { 12, -1, sizeof(::v1::model::Metric)}, { 19, -1, sizeof(::v1::model::Bit)}, - { 26, -1, sizeof(::v1::model::BitSet)}, + { 26, -1, sizeof(::v1::model::Bitset)}, { 32, -1, sizeof(::v1::model::Twist)}, { 39, -1, sizeof(::v1::model::Transform)}, { 46, -1, sizeof(::v1::model::Vector3)}, @@ -289,7 +289,7 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::v1::model::_MetricSet_default_instance_), reinterpret_cast(&::v1::model::_Metric_default_instance_), reinterpret_cast(&::v1::model::_Bit_default_instance_), - reinterpret_cast(&::v1::model::_BitSet_default_instance_), + reinterpret_cast(&::v1::model::_Bitset_default_instance_), reinterpret_cast(&::v1::model::_Twist_default_instance_), reinterpret_cast(&::v1::model::_Transform_default_instance_), reinterpret_cast(&::v1::model::_Vector3_default_instance_), @@ -307,7 +307,7 @@ const char descriptor_table_protodef_protos_2fmodel_2fv1_2fmath_2eproto[] = "\n\007Numeric\022\r\n\005value\030\001 \001(\001\".\n\tMetricSet\022!\n" "\007metrics\030\001 \003(\0132\020.v1.model.Metric\"%\n\006Metr" "ic\022\r\n\005value\030\001 \001(\001\022\014\n\004unit\030\002 \001(\t\"!\n\003Bit\022\013" - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\010\"%\n\006BitSet\022\033\n\004" + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\010\"%\n\006Bitset\022\033\n\004" "bits\030\001 \003(\0132\r.v1.model.Bit\"N\n\005Twist\022!\n\006li" "near\030\001 \001(\0132\021.v1.model.Vector3\022\"\n\007angular" "\030\002 \001(\0132\021.v1.model.Vector3\"[\n\tTransform\022&" @@ -1556,53 +1556,53 @@ ::google::protobuf::Metadata Bit::GetMetadata() const { // =================================================================== -void BitSet::InitAsDefaultInstance() { +void Bitset::InitAsDefaultInstance() { } -class BitSet::HasBitSetters { +class Bitset::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BitSet::kBitsFieldNumber; +const int Bitset::kBitsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -BitSet::BitSet() +Bitset::Bitset() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:v1.model.BitSet) + // @@protoc_insertion_point(constructor:v1.model.Bitset) } -BitSet::BitSet(const BitSet& from) +Bitset::Bitset(const Bitset& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr), bits_(from.bits_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:v1.model.BitSet) + // @@protoc_insertion_point(copy_constructor:v1.model.Bitset) } -void BitSet::SharedCtor() { +void Bitset::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_BitSet_protos_2fmodel_2fv1_2fmath_2eproto.base); + &scc_info_Bitset_protos_2fmodel_2fv1_2fmath_2eproto.base); } -BitSet::~BitSet() { - // @@protoc_insertion_point(destructor:v1.model.BitSet) +Bitset::~Bitset() { + // @@protoc_insertion_point(destructor:v1.model.Bitset) SharedDtor(); } -void BitSet::SharedDtor() { +void Bitset::SharedDtor() { } -void BitSet::SetCachedSize(int size) const { +void Bitset::SetCachedSize(int size) const { _cached_size_.Set(size); } -const BitSet& BitSet::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_BitSet_protos_2fmodel_2fv1_2fmath_2eproto.base); +const Bitset& Bitset::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Bitset_protos_2fmodel_2fv1_2fmath_2eproto.base); return *internal_default_instance(); } -void BitSet::Clear() { -// @@protoc_insertion_point(message_clear_start:v1.model.BitSet) +void Bitset::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.Bitset) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1612,9 +1612,9 @@ void BitSet::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* BitSet::_InternalParse(const char* begin, const char* end, void* object, +const char* Bitset::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -1660,11 +1660,11 @@ const char* BitSet::_InternalParse(const char* begin, const char* end, void* obj {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool BitSet::MergePartialFromCodedStream( +bool Bitset::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:v1.model.BitSet) + // @@protoc_insertion_point(parse_start:v1.model.Bitset) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -1693,18 +1693,18 @@ bool BitSet::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:v1.model.BitSet) + // @@protoc_insertion_point(parse_success:v1.model.Bitset) return true; failure: - // @@protoc_insertion_point(parse_failure:v1.model.BitSet) + // @@protoc_insertion_point(parse_failure:v1.model.Bitset) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void BitSet::SerializeWithCachedSizes( +void Bitset::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.model.BitSet) + // @@protoc_insertion_point(serialize_start:v1.model.Bitset) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1721,12 +1721,12 @@ void BitSet::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:v1.model.BitSet) + // @@protoc_insertion_point(serialize_end:v1.model.Bitset) } -::google::protobuf::uint8* BitSet::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* Bitset::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:v1.model.BitSet) + // @@protoc_insertion_point(serialize_to_array_start:v1.model.Bitset) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -1742,12 +1742,12 @@ ::google::protobuf::uint8* BitSet::InternalSerializeWithCachedSizesToArray( target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:v1.model.BitSet) + // @@protoc_insertion_point(serialize_to_array_end:v1.model.Bitset) return target; } -size_t BitSet::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:v1.model.BitSet) +size_t Bitset::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.Bitset) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -1775,23 +1775,23 @@ size_t BitSet::ByteSizeLong() const { return total_size; } -void BitSet::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:v1.model.BitSet) +void Bitset::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.Bitset) GOOGLE_DCHECK_NE(&from, this); - const BitSet* source = - ::google::protobuf::DynamicCastToGenerated( + const Bitset* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.BitSet) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.Bitset) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.BitSet) + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.Bitset) MergeFrom(*source); } } -void BitSet::MergeFrom(const BitSet& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.BitSet) +void Bitset::MergeFrom(const Bitset& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.Bitset) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -1800,35 +1800,35 @@ void BitSet::MergeFrom(const BitSet& from) { bits_.MergeFrom(from.bits_); } -void BitSet::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:v1.model.BitSet) +void Bitset::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.Bitset) if (&from == this) return; Clear(); MergeFrom(from); } -void BitSet::CopyFrom(const BitSet& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.BitSet) +void Bitset::CopyFrom(const Bitset& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.Bitset) if (&from == this) return; Clear(); MergeFrom(from); } -bool BitSet::IsInitialized() const { +bool Bitset::IsInitialized() const { return true; } -void BitSet::Swap(BitSet* other) { +void Bitset::Swap(Bitset* other) { if (other == this) return; InternalSwap(other); } -void BitSet::InternalSwap(BitSet* other) { +void Bitset::InternalSwap(Bitset* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); CastToBase(&bits_)->InternalSwap(CastToBase(&other->bits_)); } -::google::protobuf::Metadata BitSet::GetMetadata() const { +::google::protobuf::Metadata Bitset::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fmath_2eproto); return ::file_level_metadata_protos_2fmodel_2fv1_2fmath_2eproto[kIndexInFileMessages]; } @@ -3289,8 +3289,8 @@ template<> PROTOBUF_NOINLINE ::v1::model::Metric* Arena::CreateMaybeMessage< ::v template<> PROTOBUF_NOINLINE ::v1::model::Bit* Arena::CreateMaybeMessage< ::v1::model::Bit >(Arena* arena) { return Arena::CreateInternal< ::v1::model::Bit >(arena); } -template<> PROTOBUF_NOINLINE ::v1::model::BitSet* Arena::CreateMaybeMessage< ::v1::model::BitSet >(Arena* arena) { - return Arena::CreateInternal< ::v1::model::BitSet >(arena); +template<> PROTOBUF_NOINLINE ::v1::model::Bitset* Arena::CreateMaybeMessage< ::v1::model::Bitset >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::Bitset >(arena); } template<> PROTOBUF_NOINLINE ::v1::model::Twist* Arena::CreateMaybeMessage< ::v1::model::Twist >(Arena* arena) { return Arena::CreateInternal< ::v1::model::Twist >(arena); diff --git a/examples/cpp/protos/model/v1/math.pb.h b/examples/cpp/protos/model/v1/math.pb.h index 9001a5b..1dd1a0b 100755 --- a/examples/cpp/protos/model/v1/math.pb.h +++ b/examples/cpp/protos/model/v1/math.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#if 3007001 < 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. @@ -53,9 +53,9 @@ namespace model { class Bit; class BitDefaultTypeInternal; extern BitDefaultTypeInternal _Bit_default_instance_; -class BitSet; -class BitSetDefaultTypeInternal; -extern BitSetDefaultTypeInternal _BitSet_default_instance_; +class Bitset; +class BitsetDefaultTypeInternal; +extern BitsetDefaultTypeInternal _Bitset_default_instance_; class Metric; class MetricDefaultTypeInternal; extern MetricDefaultTypeInternal _Metric_default_instance_; @@ -82,7 +82,7 @@ extern Vector3DefaultTypeInternal _Vector3_default_instance_; namespace google { namespace protobuf { template<> ::v1::model::Bit* Arena::CreateMaybeMessage<::v1::model::Bit>(Arena*); -template<> ::v1::model::BitSet* Arena::CreateMaybeMessage<::v1::model::BitSet>(Arena*); +template<> ::v1::model::Bitset* Arena::CreateMaybeMessage<::v1::model::Bitset>(Arena*); template<> ::v1::model::Metric* Arena::CreateMaybeMessage<::v1::model::Metric>(Arena*); template<> ::v1::model::MetricSet* Arena::CreateMaybeMessage<::v1::model::MetricSet>(Arena*); template<> ::v1::model::Numeric* Arena::CreateMaybeMessage<::v1::model::Numeric>(Arena*); @@ -97,7 +97,7 @@ namespace model { // =================================================================== -class Numeric final : +class Numeric : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Numeric) */ { public: Numeric(); @@ -209,7 +209,7 @@ class Numeric final : }; // ------------------------------------------------------------------- -class MetricSet final : +class MetricSet : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.MetricSet) */ { public: MetricSet(); @@ -327,7 +327,7 @@ class MetricSet final : }; // ------------------------------------------------------------------- -class Metric final : +class Metric : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Metric) */ { public: Metric(); @@ -454,7 +454,7 @@ class Metric final : }; // ------------------------------------------------------------------- -class Bit final : +class Bit : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Bit) */ { public: Bit(); @@ -581,25 +581,25 @@ class Bit final : }; // ------------------------------------------------------------------- -class BitSet final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.BitSet) */ { +class Bitset : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Bitset) */ { public: - BitSet(); - virtual ~BitSet(); + Bitset(); + virtual ~Bitset(); - BitSet(const BitSet& from); + Bitset(const Bitset& from); - inline BitSet& operator=(const BitSet& from) { + inline Bitset& operator=(const Bitset& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - BitSet(BitSet&& from) noexcept - : BitSet() { + Bitset(Bitset&& from) noexcept + : Bitset() { *this = ::std::move(from); } - inline BitSet& operator=(BitSet&& from) noexcept { + inline Bitset& operator=(Bitset&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -611,34 +611,34 @@ class BitSet final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const BitSet& default_instance(); + static const Bitset& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BitSet* internal_default_instance() { - return reinterpret_cast( - &_BitSet_default_instance_); + static inline const Bitset* internal_default_instance() { + return reinterpret_cast( + &_Bitset_default_instance_); } static constexpr int kIndexInFileMessages = 4; - void Swap(BitSet* other); - friend void swap(BitSet& a, BitSet& b) { + void Swap(Bitset* other); + friend void swap(Bitset& a, Bitset& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline BitSet* New() const final { - return CreateMaybeMessage(nullptr); + inline Bitset* New() const final { + return CreateMaybeMessage(nullptr); } - BitSet* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + Bitset* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const BitSet& from); - void MergeFrom(const BitSet& from); + void CopyFrom(const Bitset& from); + void MergeFrom(const Bitset& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -660,7 +660,7 @@ class BitSet final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(BitSet* other); + void InternalSwap(Bitset* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -688,7 +688,7 @@ class BitSet final : const ::google::protobuf::RepeatedPtrField< ::v1::model::Bit >& bits() const; - // @@protoc_insertion_point(class_scope:v1.model.BitSet) + // @@protoc_insertion_point(class_scope:v1.model.Bitset) private: class HasBitSetters; @@ -699,7 +699,7 @@ class BitSet final : }; // ------------------------------------------------------------------- -class Twist final : +class Twist : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Twist) */ { public: Twist(); @@ -824,7 +824,7 @@ class Twist final : }; // ------------------------------------------------------------------- -class Transform final : +class Transform : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Transform) */ { public: Transform(); @@ -949,7 +949,7 @@ class Transform final : }; // ------------------------------------------------------------------- -class Vector3 final : +class Vector3 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Vector3) */ { public: Vector3(); @@ -1075,7 +1075,7 @@ class Vector3 final : }; // ------------------------------------------------------------------- -class Quaternion final : +class Quaternion : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Quaternion) */ { public: Quaternion(); @@ -1409,35 +1409,35 @@ inline void Bit::set_value(bool value) { // ------------------------------------------------------------------- -// BitSet +// Bitset // repeated .v1.model.Bit bits = 1; -inline int BitSet::bits_size() const { +inline int Bitset::bits_size() const { return bits_.size(); } -inline void BitSet::clear_bits() { +inline void Bitset::clear_bits() { bits_.Clear(); } -inline ::v1::model::Bit* BitSet::mutable_bits(int index) { - // @@protoc_insertion_point(field_mutable:v1.model.BitSet.bits) +inline ::v1::model::Bit* Bitset::mutable_bits(int index) { + // @@protoc_insertion_point(field_mutable:v1.model.Bitset.bits) return bits_.Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::v1::model::Bit >* -BitSet::mutable_bits() { - // @@protoc_insertion_point(field_mutable_list:v1.model.BitSet.bits) +Bitset::mutable_bits() { + // @@protoc_insertion_point(field_mutable_list:v1.model.Bitset.bits) return &bits_; } -inline const ::v1::model::Bit& BitSet::bits(int index) const { - // @@protoc_insertion_point(field_get:v1.model.BitSet.bits) +inline const ::v1::model::Bit& Bitset::bits(int index) const { + // @@protoc_insertion_point(field_get:v1.model.Bitset.bits) return bits_.Get(index); } -inline ::v1::model::Bit* BitSet::add_bits() { - // @@protoc_insertion_point(field_add:v1.model.BitSet.bits) +inline ::v1::model::Bit* Bitset::add_bits() { + // @@protoc_insertion_point(field_add:v1.model.Bitset.bits) return bits_.Add(); } inline const ::google::protobuf::RepeatedPtrField< ::v1::model::Bit >& -BitSet::bits() const { - // @@protoc_insertion_point(field_list:v1.model.BitSet.bits) +Bitset::bits() const { + // @@protoc_insertion_point(field_list:v1.model.Bitset.bits) return bits_; } diff --git a/examples/cpp/protos/model/v1/media.pb.cc b/examples/cpp/protos/model/v1/media.pb.cc index 407f819..81f89e9 100755 --- a/examples/cpp/protos/model/v1/media.pb.cc +++ b/examples/cpp/protos/model/v1/media.pb.cc @@ -24,12 +24,6 @@ class ImageDefaultTypeInternal { ::google::protobuf::internal::ArenaStringPtr url_; ::google::protobuf::internal::ArenaStringPtr raw_; } _Image_default_instance_; -class VideoDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed