diff --git a/docker/README.md b/docker/README.md index 8d163e7..3242a33 100755 --- a/docker/README.md +++ b/docker/README.md @@ -32,5 +32,5 @@ The provisioning token you use to initialize the agent is a one-time use token. ### MacOS -Docker for Mac users may need to set `FORMANT_AGENT_IP=0.0.0.0` in the [formant.env](formant.env) file in order to access the local HTTP/GRPC interface from their host machine. +Docker for Mac users may need to set `FORMANT_AGENT_IP=0.0.0.0` in the [formant.env](formant.env) file in order to access the local gRPC and HTTP interfaces from their host machine. This is to ensure that the Formant agent is reachable from outside its container networking namespace. diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 6257709..8ea0bdb 100755 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -18,6 +18,6 @@ services: - "5501:5501" - "5502:5502" volumes: - - "formant:/root/.formant" + - "formant:/var/lib/formant" networks: - formant diff --git a/docker/ros/docker-compose.yaml b/docker/ros/docker-compose.yaml index 72afcdb..312d31c 100755 --- a/docker/ros/docker-compose.yaml +++ b/docker/ros/docker-compose.yaml @@ -24,6 +24,6 @@ services: - "5501:5501" - "5502:5502" volumes: - - "formant:/root/.formant" + - "formant:/var/lib/formant" networks: - formant diff --git a/examples/cpp/protos/agent/v1/agent.grpc.pb.cc b/examples/cpp/protos/agent/v1/agent.grpc.pb.cc index 82ceb00..a547c6d 100755 --- a/examples/cpp/protos/agent/v1/agent.grpc.pb.cc +++ b/examples/cpp/protos/agent/v1/agent.grpc.pb.cc @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include #include @@ -29,6 +29,11 @@ static const char* Agent_method_names[] = { "/v1.agent.Agent/GetApplicationConfiguration", "/v1.agent.Agent/GetAgentConfiguration", "/v1.agent.Agent/Health", + "/v1.agent.Agent/GetCommandRequest", + "/v1.agent.Agent/GetCommandRequestStream", + "/v1.agent.Agent/SendCommandResponse", + "/v1.agent.Agent/PostTransformFrame", + "/v1.agent.Agent/SetBaseFrameID", }; std::unique_ptr< Agent::Stub> Agent::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -47,22 +52,27 @@ Agent::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& 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) + , rpcmethod_GetCommandRequest_(Agent_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetCommandRequestStream_(Agent_method_names[10], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_SendCommandResponse_(Agent_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PostTransformFrame_(Agent_method_names[12], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetBaseFrameID_(Agent_method_names[13], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::ClientWriter< ::v1::model::Datapoint>* Agent::Stub::StreamDataRaw(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response) { - return ::grpc::internal::ClientWriterFactory< ::v1::model::Datapoint>::Create(channel_.get(), rpcmethod_StreamData_, context, response); + return ::grpc_impl::internal::ClientWriterFactory< ::v1::model::Datapoint>::Create(channel_.get(), rpcmethod_StreamData_, context, response); } void Agent::Stub::experimental_async::StreamData(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response, ::grpc::experimental::ClientWriteReactor< ::v1::model::Datapoint>* reactor) { - ::grpc::internal::ClientCallbackWriterFactory< ::v1::model::Datapoint>::Create(stub_->channel_.get(), stub_->rpcmethod_StreamData_, context, response, reactor); + ::grpc_impl::internal::ClientCallbackWriterFactory< ::v1::model::Datapoint>::Create(stub_->channel_.get(), stub_->rpcmethod_StreamData_, context, response, reactor); } ::grpc::ClientAsyncWriter< ::v1::model::Datapoint>* Agent::Stub::AsyncStreamDataRaw(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncWriterFactory< ::v1::model::Datapoint>::Create(channel_.get(), cq, rpcmethod_StreamData_, context, response, true, tag); + return ::grpc_impl::internal::ClientAsyncWriterFactory< ::v1::model::Datapoint>::Create(channel_.get(), cq, rpcmethod_StreamData_, context, response, true, tag); } ::grpc::ClientAsyncWriter< ::v1::model::Datapoint>* Agent::Stub::PrepareAsyncStreamDataRaw(::grpc::ClientContext* context, ::v1::agent::StreamDataResponse* response, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncWriterFactory< ::v1::model::Datapoint>::Create(channel_.get(), cq, rpcmethod_StreamData_, context, response, false, nullptr); + return ::grpc_impl::internal::ClientAsyncWriterFactory< ::v1::model::Datapoint>::Create(channel_.get(), cq, rpcmethod_StreamData_, context, response, false, nullptr); } ::grpc::Status Agent::Stub::PostData(::grpc::ClientContext* context, const ::v1::model::Datapoint& request, ::v1::agent::PostDataResponse* response) { @@ -70,19 +80,27 @@ ::grpc::Status Agent::Stub::PostData(::grpc::ClientContext* context, const ::v1: } void Agent::Stub::experimental_async::PostData(::grpc::ClientContext* context, const ::v1::model::Datapoint* 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_impl::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_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_PostData_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::PostData(::grpc::ClientContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_PostData_, context, request, response, reactor); +} + +void Agent::Stub::experimental_async::PostData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::PostDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_PostData_, context, request, response, reactor); } ::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); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::PostDataResponse>::Create(channel_.get(), cq, rpcmethod_PostData_, context, request, true); } ::grpc::ClientAsyncResponseReader< ::v1::agent::PostDataResponse>* Agent::Stub::PrepareAsyncPostDataRaw(::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, false); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::PostDataResponse>::Create(channel_.get(), cq, rpcmethod_PostData_, context, request, false); } ::grpc::Status Agent::Stub::CreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest& request, ::v1::model::InterventionRequest* response) { @@ -90,19 +108,27 @@ ::grpc::Status Agent::Stub::CreateInterventionRequest(::grpc::ClientContext* con } 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_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateInterventionRequest_, context, request, response, std::move(f)); } 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_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateInterventionRequest_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::CreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateInterventionRequest_, context, request, response, reactor); +} + +void Agent::Stub::experimental_async::CreateInterventionRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateInterventionRequest_, context, request, response, reactor); } ::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); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionRequest>::Create(channel_.get(), cq, rpcmethod_CreateInterventionRequest_, 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); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionRequest>::Create(channel_.get(), cq, rpcmethod_CreateInterventionRequest_, context, request, false); } ::grpc::Status Agent::Stub::GetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest& request, ::v1::model::InterventionRequest* response) { @@ -110,19 +136,27 @@ ::grpc::Status Agent::Stub::GetInterventionRequest(::grpc::ClientContext* contex } 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_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetInterventionRequest_, context, request, response, std::move(f)); } 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_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetInterventionRequest_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::GetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetInterventionRequest_, context, request, response, reactor); +} + +void Agent::Stub::experimental_async::GetInterventionRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetInterventionRequest_, context, request, response, reactor); } ::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); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionRequest>::Create(channel_.get(), cq, rpcmethod_GetInterventionRequest_, context, request, true); } ::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); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionRequest>::Create(channel_.get(), cq, rpcmethod_GetInterventionRequest_, context, request, false); } ::grpc::Status Agent::Stub::GetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest& request, ::v1::model::InterventionResponse* response) { @@ -130,19 +164,27 @@ ::grpc::Status Agent::Stub::GetInterventionResponse(::grpc::ClientContext* conte } 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_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetInterventionResponse_, context, request, response, std::move(f)); } 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)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetInterventionResponse_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::GetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetInterventionResponse_, context, request, response, reactor); +} + +void Agent::Stub::experimental_async::GetInterventionResponse(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetInterventionResponse_, context, request, response, reactor); } ::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); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionResponse>::Create(channel_.get(), cq, rpcmethod_GetInterventionResponse_, 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); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::model::InterventionResponse>::Create(channel_.get(), cq, rpcmethod_GetInterventionResponse_, context, request, false); } ::grpc::Status Agent::Stub::GetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest& request, ::v1::agent::GetStreamsConfigurationResponse* response) { @@ -150,19 +192,27 @@ ::grpc::Status Agent::Stub::GetStreamsConfiguration(::grpc::ClientContext* conte } 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)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetStreamsConfiguration_, 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_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetStreamsConfiguration_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::GetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetStreamsConfiguration_, context, request, response, reactor); +} + +void Agent::Stub::experimental_async::GetStreamsConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetStreamsConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetStreamsConfiguration_, context, request, response, reactor); } ::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); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetStreamsConfigurationResponse>::Create(channel_.get(), cq, rpcmethod_GetStreamsConfiguration_, context, request, true); } ::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); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetStreamsConfigurationResponse>::Create(channel_.get(), cq, rpcmethod_GetStreamsConfiguration_, context, request, false); } ::grpc::Status Agent::Stub::GetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest& request, ::v1::agent::GetApplicationConfigurationResponse* response) { @@ -170,19 +220,27 @@ ::grpc::Status Agent::Stub::GetApplicationConfiguration(::grpc::ClientContext* c } 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_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetApplicationConfiguration_, context, request, response, std::move(f)); } 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_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetApplicationConfiguration_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::GetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetApplicationConfiguration_, context, request, response, reactor); +} + +void Agent::Stub::experimental_async::GetApplicationConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetApplicationConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetApplicationConfiguration_, context, request, response, reactor); } ::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); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetApplicationConfigurationResponse>::Create(channel_.get(), cq, rpcmethod_GetApplicationConfiguration_, context, request, true); } ::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); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetApplicationConfigurationResponse>::Create(channel_.get(), cq, rpcmethod_GetApplicationConfiguration_, context, request, false); } ::grpc::Status Agent::Stub::GetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest& request, ::v1::agent::GetAgentConfigurationResponse* response) { @@ -190,19 +248,27 @@ ::grpc::Status Agent::Stub::GetAgentConfiguration(::grpc::ClientContext* context } 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_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetAgentConfiguration_, context, request, response, std::move(f)); } 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_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetAgentConfiguration_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::GetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetAgentConfiguration_, context, request, response, reactor); +} + +void Agent::Stub::experimental_async::GetAgentConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetAgentConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetAgentConfiguration_, context, request, response, reactor); } ::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); + return ::grpc_impl::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); + return ::grpc_impl::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) { @@ -210,19 +276,155 @@ ::grpc::Status Agent::Stub::Health(::grpc::ClientContext* context, const ::v1::a } 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)); + ::grpc_impl::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_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Health_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::Health(::grpc::ClientContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Health_, context, request, response, reactor); +} + +void Agent::Stub::experimental_async::Health(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::HealthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Health_, context, request, response, reactor); } ::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); + return ::grpc_impl::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); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::HealthResponse>::Create(channel_.get(), cq, rpcmethod_Health_, context, request, false); +} + +::grpc::Status Agent::Stub::GetCommandRequest(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::v1::agent::GetCommandRequestResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetCommandRequest_, context, request, response); +} + +void Agent::Stub::experimental_async::GetCommandRequest(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest* request, ::v1::agent::GetCommandRequestResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetCommandRequest_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::GetCommandRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetCommandRequestResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetCommandRequest_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::GetCommandRequest(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest* request, ::v1::agent::GetCommandRequestResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetCommandRequest_, context, request, response, reactor); +} + +void Agent::Stub::experimental_async::GetCommandRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetCommandRequestResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetCommandRequest_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::v1::agent::GetCommandRequestResponse>* Agent::Stub::AsyncGetCommandRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetCommandRequestResponse>::Create(channel_.get(), cq, rpcmethod_GetCommandRequest_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::v1::agent::GetCommandRequestResponse>* Agent::Stub::PrepareAsyncGetCommandRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::GetCommandRequestResponse>::Create(channel_.get(), cq, rpcmethod_GetCommandRequest_, context, request, false); +} + +::grpc::ClientReader< ::v1::agent::GetCommandRequestStreamResponse>* Agent::Stub::GetCommandRequestStreamRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request) { + return ::grpc_impl::internal::ClientReaderFactory< ::v1::agent::GetCommandRequestStreamResponse>::Create(channel_.get(), rpcmethod_GetCommandRequestStream_, context, request); +} + +void Agent::Stub::experimental_async::GetCommandRequestStream(::grpc::ClientContext* context, ::v1::agent::GetCommandRequestStreamRequest* request, ::grpc::experimental::ClientReadReactor< ::v1::agent::GetCommandRequestStreamResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::v1::agent::GetCommandRequestStreamResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_GetCommandRequestStream_, context, request, reactor); +} + +::grpc::ClientAsyncReader< ::v1::agent::GetCommandRequestStreamResponse>* Agent::Stub::AsyncGetCommandRequestStreamRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::v1::agent::GetCommandRequestStreamResponse>::Create(channel_.get(), cq, rpcmethod_GetCommandRequestStream_, context, request, true, tag); +} + +::grpc::ClientAsyncReader< ::v1::agent::GetCommandRequestStreamResponse>* Agent::Stub::PrepareAsyncGetCommandRequestStreamRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::v1::agent::GetCommandRequestStreamResponse>::Create(channel_.get(), cq, rpcmethod_GetCommandRequestStream_, context, request, false, nullptr); +} + +::grpc::Status Agent::Stub::SendCommandResponse(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::v1::agent::SendCommandResponseResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SendCommandResponse_, context, request, response); +} + +void Agent::Stub::experimental_async::SendCommandResponse(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest* request, ::v1::agent::SendCommandResponseResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SendCommandResponse_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::SendCommandResponse(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::SendCommandResponseResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SendCommandResponse_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::SendCommandResponse(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest* request, ::v1::agent::SendCommandResponseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SendCommandResponse_, context, request, response, reactor); +} + +void Agent::Stub::experimental_async::SendCommandResponse(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::SendCommandResponseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SendCommandResponse_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::v1::agent::SendCommandResponseResponse>* Agent::Stub::AsyncSendCommandResponseRaw(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::SendCommandResponseResponse>::Create(channel_.get(), cq, rpcmethod_SendCommandResponse_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::v1::agent::SendCommandResponseResponse>* Agent::Stub::PrepareAsyncSendCommandResponseRaw(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::SendCommandResponseResponse>::Create(channel_.get(), cq, rpcmethod_SendCommandResponse_, context, request, false); +} + +::grpc::Status Agent::Stub::PostTransformFrame(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::v1::agent::PostTransformFrameResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_PostTransformFrame_, context, request, response); +} + +void Agent::Stub::experimental_async::PostTransformFrame(::grpc::ClientContext* context, const ::v1::model::TransformFrame* request, ::v1::agent::PostTransformFrameResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_PostTransformFrame_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::PostTransformFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::PostTransformFrameResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_PostTransformFrame_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::PostTransformFrame(::grpc::ClientContext* context, const ::v1::model::TransformFrame* request, ::v1::agent::PostTransformFrameResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_PostTransformFrame_, context, request, response, reactor); +} + +void Agent::Stub::experimental_async::PostTransformFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::PostTransformFrameResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_PostTransformFrame_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::v1::agent::PostTransformFrameResponse>* Agent::Stub::AsyncPostTransformFrameRaw(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::PostTransformFrameResponse>::Create(channel_.get(), cq, rpcmethod_PostTransformFrame_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::v1::agent::PostTransformFrameResponse>* Agent::Stub::PrepareAsyncPostTransformFrameRaw(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::PostTransformFrameResponse>::Create(channel_.get(), cq, rpcmethod_PostTransformFrame_, context, request, false); +} + +::grpc::Status Agent::Stub::SetBaseFrameID(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::v1::agent::SetBaseFrameIDResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetBaseFrameID_, context, request, response); +} + +void Agent::Stub::experimental_async::SetBaseFrameID(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest* request, ::v1::agent::SetBaseFrameIDResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetBaseFrameID_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::SetBaseFrameID(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::SetBaseFrameIDResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetBaseFrameID_, context, request, response, std::move(f)); +} + +void Agent::Stub::experimental_async::SetBaseFrameID(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest* request, ::v1::agent::SetBaseFrameIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetBaseFrameID_, context, request, response, reactor); +} + +void Agent::Stub::experimental_async::SetBaseFrameID(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::SetBaseFrameIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetBaseFrameID_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::v1::agent::SetBaseFrameIDResponse>* Agent::Stub::AsyncSetBaseFrameIDRaw(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::SetBaseFrameIDResponse>::Create(channel_.get(), cq, rpcmethod_SetBaseFrameID_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::v1::agent::SetBaseFrameIDResponse>* Agent::Stub::PrepareAsyncSetBaseFrameIDRaw(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::v1::agent::SetBaseFrameIDResponse>::Create(channel_.get(), cq, rpcmethod_SetBaseFrameID_, context, request, false); } Agent::Service::Service() { @@ -271,6 +473,31 @@ Agent::Service::Service() { ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::HealthRequest, ::v1::agent::HealthResponse>( std::mem_fn(&Agent::Service::Health), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Agent_method_names[9], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::GetCommandRequestRequest, ::v1::agent::GetCommandRequestResponse>( + std::mem_fn(&Agent::Service::GetCommandRequest), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Agent_method_names[10], + ::grpc::internal::RpcMethod::SERVER_STREAMING, + new ::grpc::internal::ServerStreamingHandler< Agent::Service, ::v1::agent::GetCommandRequestStreamRequest, ::v1::agent::GetCommandRequestStreamResponse>( + std::mem_fn(&Agent::Service::GetCommandRequestStream), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Agent_method_names[11], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::SendCommandResponseRequest, ::v1::agent::SendCommandResponseResponse>( + std::mem_fn(&Agent::Service::SendCommandResponse), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Agent_method_names[12], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::model::TransformFrame, ::v1::agent::PostTransformFrameResponse>( + std::mem_fn(&Agent::Service::PostTransformFrame), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Agent_method_names[13], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Agent::Service, ::v1::agent::SetBaseFrameIDRequest, ::v1::agent::SetBaseFrameIDResponse>( + std::mem_fn(&Agent::Service::SetBaseFrameID), this))); } Agent::Service::~Service() { @@ -339,6 +566,41 @@ ::grpc::Status Agent::Service::Health(::grpc::ServerContext* context, const ::v1 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status Agent::Service::GetCommandRequest(::grpc::ServerContext* context, const ::v1::agent::GetCommandRequestRequest* request, ::v1::agent::GetCommandRequestResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Agent::Service::GetCommandRequestStream(::grpc::ServerContext* context, const ::v1::agent::GetCommandRequestStreamRequest* request, ::grpc::ServerWriter< ::v1::agent::GetCommandRequestStreamResponse>* writer) { + (void) context; + (void) request; + (void) writer; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Agent::Service::SendCommandResponse(::grpc::ServerContext* context, const ::v1::agent::SendCommandResponseRequest* request, ::v1::agent::SendCommandResponseResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Agent::Service::PostTransformFrame(::grpc::ServerContext* context, const ::v1::model::TransformFrame* request, ::v1::agent::PostTransformFrameResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Agent::Service::SetBaseFrameID(::grpc::ServerContext* context, const ::v1::agent::SetBaseFrameIDRequest* request, ::v1::agent::SetBaseFrameIDResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace v1 } // namespace agent diff --git a/examples/cpp/protos/agent/v1/agent.grpc.pb.h b/examples/cpp/protos/agent/v1/agent.grpc.pb.h index cfaff8e..de1fe96 100755 --- a/examples/cpp/protos/agent/v1/agent.grpc.pb.h +++ b/examples/cpp/protos/agent/v1/agent.grpc.pb.h @@ -11,26 +11,34 @@ #include #include #include -#include +#include +#include +#include #include #include #include +#include #include #include #include #include -namespace grpc { +namespace grpc_impl { class CompletionQueue; -class Channel; class ServerCompletionQueue; class ServerContext; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental } // namespace grpc namespace v1 { namespace agent { -// Agent is the Formant Agent gRPC API. class Agent final { public: static constexpr char const* service_full_name() { @@ -39,8 +47,6 @@ class Agent final { class StubInterface { public: virtual ~StubInterface() {} - // 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)); } @@ -50,13 +56,6 @@ 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)); } - // 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)); @@ -64,10 +63,6 @@ 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)); } - // 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)); @@ -75,9 +70,6 @@ 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)); } - // 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)); @@ -85,9 +77,6 @@ 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)); } - // 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)); @@ -95,7 +84,6 @@ 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)); @@ -103,8 +91,6 @@ class Agent final { 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)); @@ -112,7 +98,6 @@ class Agent final { 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)); @@ -120,8 +105,6 @@ class Agent final { 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)); @@ -129,51 +112,96 @@ class Agent final { 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)); } + virtual ::grpc::Status GetCommandRequest(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::v1::agent::GetCommandRequestResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetCommandRequestResponse>> AsyncGetCommandRequest(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetCommandRequestResponse>>(AsyncGetCommandRequestRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetCommandRequestResponse>> PrepareAsyncGetCommandRequest(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetCommandRequestResponse>>(PrepareAsyncGetCommandRequestRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientReaderInterface< ::v1::agent::GetCommandRequestStreamResponse>> GetCommandRequestStream(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request) { + return std::unique_ptr< ::grpc::ClientReaderInterface< ::v1::agent::GetCommandRequestStreamResponse>>(GetCommandRequestStreamRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::v1::agent::GetCommandRequestStreamResponse>> AsyncGetCommandRequestStream(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::v1::agent::GetCommandRequestStreamResponse>>(AsyncGetCommandRequestStreamRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::v1::agent::GetCommandRequestStreamResponse>> PrepareAsyncGetCommandRequestStream(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::v1::agent::GetCommandRequestStreamResponse>>(PrepareAsyncGetCommandRequestStreamRaw(context, request, cq)); + } + virtual ::grpc::Status SendCommandResponse(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::v1::agent::SendCommandResponseResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SendCommandResponseResponse>> AsyncSendCommandResponse(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SendCommandResponseResponse>>(AsyncSendCommandResponseRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SendCommandResponseResponse>> PrepareAsyncSendCommandResponse(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SendCommandResponseResponse>>(PrepareAsyncSendCommandResponseRaw(context, request, cq)); + } + virtual ::grpc::Status PostTransformFrame(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::v1::agent::PostTransformFrameResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostTransformFrameResponse>> AsyncPostTransformFrame(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostTransformFrameResponse>>(AsyncPostTransformFrameRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostTransformFrameResponse>> PrepareAsyncPostTransformFrame(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostTransformFrameResponse>>(PrepareAsyncPostTransformFrameRaw(context, request, cq)); + } + virtual ::grpc::Status SetBaseFrameID(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::v1::agent::SetBaseFrameIDResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SetBaseFrameIDResponse>> AsyncSetBaseFrameID(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SetBaseFrameIDResponse>>(AsyncSetBaseFrameIDRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SetBaseFrameIDResponse>> PrepareAsyncSetBaseFrameID(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SetBaseFrameIDResponse>>(PrepareAsyncSetBaseFrameIDRaw(context, request, cq)); + } class experimental_async_interface { public: virtual ~experimental_async_interface() {} - // 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; - // 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; 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 PostData(::grpc::ClientContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void PostData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::PostDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void CreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response, std::function) = 0; 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 CreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateInterventionRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void GetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response, std::function) = 0; 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 GetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetInterventionRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; 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 GetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetInterventionResponse(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; 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 GetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetStreamsConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetStreamsConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; 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 GetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetApplicationConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetApplicationConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; 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 GetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetAgentConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetAgentConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; 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 void Health(::grpc::ClientContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void Health(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::HealthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetCommandRequest(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest* request, ::v1::agent::GetCommandRequestResponse* response, std::function) = 0; + virtual void GetCommandRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetCommandRequestResponse* response, std::function) = 0; + virtual void GetCommandRequest(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest* request, ::v1::agent::GetCommandRequestResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetCommandRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetCommandRequestResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetCommandRequestStream(::grpc::ClientContext* context, ::v1::agent::GetCommandRequestStreamRequest* request, ::grpc::experimental::ClientReadReactor< ::v1::agent::GetCommandRequestStreamResponse>* reactor) = 0; + virtual void SendCommandResponse(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest* request, ::v1::agent::SendCommandResponseResponse* response, std::function) = 0; + virtual void SendCommandResponse(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::SendCommandResponseResponse* response, std::function) = 0; + virtual void SendCommandResponse(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest* request, ::v1::agent::SendCommandResponseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void SendCommandResponse(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::SendCommandResponseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void PostTransformFrame(::grpc::ClientContext* context, const ::v1::model::TransformFrame* request, ::v1::agent::PostTransformFrameResponse* response, std::function) = 0; + virtual void PostTransformFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::PostTransformFrameResponse* response, std::function) = 0; + virtual void PostTransformFrame(::grpc::ClientContext* context, const ::v1::model::TransformFrame* request, ::v1::agent::PostTransformFrameResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void PostTransformFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::PostTransformFrameResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void SetBaseFrameID(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest* request, ::v1::agent::SetBaseFrameIDResponse* response, std::function) = 0; + virtual void SetBaseFrameID(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::SetBaseFrameIDResponse* response, std::function) = 0; + virtual void SetBaseFrameID(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest* request, ::v1::agent::SetBaseFrameIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void SetBaseFrameID(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::SetBaseFrameIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; }; virtual class experimental_async_interface* experimental_async() { return nullptr; } private: @@ -196,6 +224,17 @@ class Agent final { 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; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetCommandRequestResponse>* AsyncGetCommandRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetCommandRequestResponse>* PrepareAsyncGetCommandRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderInterface< ::v1::agent::GetCommandRequestStreamResponse>* GetCommandRequestStreamRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::v1::agent::GetCommandRequestStreamResponse>* AsyncGetCommandRequestStreamRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::v1::agent::GetCommandRequestStreamResponse>* PrepareAsyncGetCommandRequestStreamRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SendCommandResponseResponse>* AsyncSendCommandResponseRaw(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SendCommandResponseResponse>* PrepareAsyncSendCommandResponseRaw(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostTransformFrameResponse>* AsyncPostTransformFrameRaw(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostTransformFrameResponse>* PrepareAsyncPostTransformFrameRaw(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SetBaseFrameIDResponse>* AsyncSetBaseFrameIDRaw(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SetBaseFrameIDResponse>* PrepareAsyncSetBaseFrameIDRaw(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -265,26 +304,96 @@ class Agent final { 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)); } + ::grpc::Status GetCommandRequest(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::v1::agent::GetCommandRequestResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetCommandRequestResponse>> AsyncGetCommandRequest(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetCommandRequestResponse>>(AsyncGetCommandRequestRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetCommandRequestResponse>> PrepareAsyncGetCommandRequest(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::GetCommandRequestResponse>>(PrepareAsyncGetCommandRequestRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientReader< ::v1::agent::GetCommandRequestStreamResponse>> GetCommandRequestStream(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request) { + return std::unique_ptr< ::grpc::ClientReader< ::v1::agent::GetCommandRequestStreamResponse>>(GetCommandRequestStreamRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::v1::agent::GetCommandRequestStreamResponse>> AsyncGetCommandRequestStream(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::v1::agent::GetCommandRequestStreamResponse>>(AsyncGetCommandRequestStreamRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::v1::agent::GetCommandRequestStreamResponse>> PrepareAsyncGetCommandRequestStream(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::v1::agent::GetCommandRequestStreamResponse>>(PrepareAsyncGetCommandRequestStreamRaw(context, request, cq)); + } + ::grpc::Status SendCommandResponse(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::v1::agent::SendCommandResponseResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::SendCommandResponseResponse>> AsyncSendCommandResponse(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::SendCommandResponseResponse>>(AsyncSendCommandResponseRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::SendCommandResponseResponse>> PrepareAsyncSendCommandResponse(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::SendCommandResponseResponse>>(PrepareAsyncSendCommandResponseRaw(context, request, cq)); + } + ::grpc::Status PostTransformFrame(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::v1::agent::PostTransformFrameResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::PostTransformFrameResponse>> AsyncPostTransformFrame(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::PostTransformFrameResponse>>(AsyncPostTransformFrameRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::PostTransformFrameResponse>> PrepareAsyncPostTransformFrame(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::PostTransformFrameResponse>>(PrepareAsyncPostTransformFrameRaw(context, request, cq)); + } + ::grpc::Status SetBaseFrameID(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::v1::agent::SetBaseFrameIDResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::SetBaseFrameIDResponse>> AsyncSetBaseFrameID(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::SetBaseFrameIDResponse>>(AsyncSetBaseFrameIDRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::SetBaseFrameIDResponse>> PrepareAsyncSetBaseFrameID(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::v1::agent::SetBaseFrameIDResponse>>(PrepareAsyncSetBaseFrameIDRaw(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 PostData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::PostDataResponse* response, std::function) override; + void PostData(::grpc::ClientContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void PostData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::PostDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) 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 CreateInterventionRequest(::grpc::ClientContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateInterventionRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ClientUnaryReactor* reactor) 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 GetInterventionRequest(::grpc::ClientContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetInterventionRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionRequest* response, ::grpc::experimental::ClientUnaryReactor* reactor) 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 GetInterventionResponse(::grpc::ClientContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetInterventionResponse(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::model::InterventionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) 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 GetStreamsConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetStreamsConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetStreamsConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) 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 GetApplicationConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetApplicationConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetApplicationConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) 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 GetAgentConfiguration(::grpc::ClientContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetAgentConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetAgentConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) 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; + void Health(::grpc::ClientContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void Health(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::HealthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetCommandRequest(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest* request, ::v1::agent::GetCommandRequestResponse* response, std::function) override; + void GetCommandRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetCommandRequestResponse* response, std::function) override; + void GetCommandRequest(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest* request, ::v1::agent::GetCommandRequestResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetCommandRequest(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::GetCommandRequestResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetCommandRequestStream(::grpc::ClientContext* context, ::v1::agent::GetCommandRequestStreamRequest* request, ::grpc::experimental::ClientReadReactor< ::v1::agent::GetCommandRequestStreamResponse>* reactor) override; + void SendCommandResponse(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest* request, ::v1::agent::SendCommandResponseResponse* response, std::function) override; + void SendCommandResponse(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::SendCommandResponseResponse* response, std::function) override; + void SendCommandResponse(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest* request, ::v1::agent::SendCommandResponseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void SendCommandResponse(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::SendCommandResponseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void PostTransformFrame(::grpc::ClientContext* context, const ::v1::model::TransformFrame* request, ::v1::agent::PostTransformFrameResponse* response, std::function) override; + void PostTransformFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::PostTransformFrameResponse* response, std::function) override; + void PostTransformFrame(::grpc::ClientContext* context, const ::v1::model::TransformFrame* request, ::v1::agent::PostTransformFrameResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void PostTransformFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::PostTransformFrameResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void SetBaseFrameID(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest* request, ::v1::agent::SetBaseFrameIDResponse* response, std::function) override; + void SetBaseFrameID(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::SetBaseFrameIDResponse* response, std::function) override; + void SetBaseFrameID(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest* request, ::v1::agent::SetBaseFrameIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void SetBaseFrameID(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::v1::agent::SetBaseFrameIDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -315,6 +424,17 @@ class Agent final { ::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; + ::grpc::ClientAsyncResponseReader< ::v1::agent::GetCommandRequestResponse>* AsyncGetCommandRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::GetCommandRequestResponse>* PrepareAsyncGetCommandRequestRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReader< ::v1::agent::GetCommandRequestStreamResponse>* GetCommandRequestStreamRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request) override; + ::grpc::ClientAsyncReader< ::v1::agent::GetCommandRequestStreamResponse>* AsyncGetCommandRequestStreamRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReader< ::v1::agent::GetCommandRequestStreamResponse>* PrepareAsyncGetCommandRequestStreamRaw(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::SendCommandResponseResponse>* AsyncSendCommandResponseRaw(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::SendCommandResponseResponse>* PrepareAsyncSendCommandResponseRaw(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::PostTransformFrameResponse>* AsyncPostTransformFrameRaw(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::PostTransformFrameResponse>* PrepareAsyncPostTransformFrameRaw(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::SetBaseFrameIDResponse>* AsyncSetBaseFrameIDRaw(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::v1::agent::SetBaseFrameIDResponse>* PrepareAsyncSetBaseFrameIDRaw(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_StreamData_; const ::grpc::internal::RpcMethod rpcmethod_PostData_; const ::grpc::internal::RpcMethod rpcmethod_CreateInterventionRequest_; @@ -324,6 +444,11 @@ class Agent final { const ::grpc::internal::RpcMethod rpcmethod_GetApplicationConfiguration_; const ::grpc::internal::RpcMethod rpcmethod_GetAgentConfiguration_; const ::grpc::internal::RpcMethod rpcmethod_Health_; + const ::grpc::internal::RpcMethod rpcmethod_GetCommandRequest_; + const ::grpc::internal::RpcMethod rpcmethod_GetCommandRequestStream_; + const ::grpc::internal::RpcMethod rpcmethod_SendCommandResponse_; + const ::grpc::internal::RpcMethod rpcmethod_PostTransformFrame_; + const ::grpc::internal::RpcMethod rpcmethod_SetBaseFrameID_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -331,45 +456,25 @@ class Agent final { public: Service(); virtual ~Service(); - // 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); - // 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); - // 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); - // 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); - // 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); + virtual ::grpc::Status GetCommandRequest(::grpc::ServerContext* context, const ::v1::agent::GetCommandRequestRequest* request, ::v1::agent::GetCommandRequestResponse* response); + virtual ::grpc::Status GetCommandRequestStream(::grpc::ServerContext* context, const ::v1::agent::GetCommandRequestStreamRequest* request, ::grpc::ServerWriter< ::v1::agent::GetCommandRequestStreamResponse>* writer); + virtual ::grpc::Status SendCommandResponse(::grpc::ServerContext* context, const ::v1::agent::SendCommandResponseRequest* request, ::v1::agent::SendCommandResponseResponse* response); + virtual ::grpc::Status PostTransformFrame(::grpc::ServerContext* context, const ::v1::model::TransformFrame* request, ::v1::agent::PostTransformFrameResponse* response); + virtual ::grpc::Status SetBaseFrameID(::grpc::ServerContext* context, const ::v1::agent::SetBaseFrameIDRequest* request, ::v1::agent::SetBaseFrameIDResponse* response); }; template class WithAsyncMethod_StreamData : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_StreamData() { ::grpc::Service::MarkMethodAsync(0); @@ -378,7 +483,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status StreamData(::grpc::ServerContext* context, ::grpc::ServerReader< ::v1::model::Datapoint>* reader, ::v1::agent::StreamDataResponse* response) override { + ::grpc::Status StreamData(::grpc::ServerContext* /*context*/, ::grpc::ServerReader< ::v1::model::Datapoint>* /*reader*/, ::v1::agent::StreamDataResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -389,7 +494,7 @@ class Agent final { template class WithAsyncMethod_PostData : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_PostData() { ::grpc::Service::MarkMethodAsync(1); @@ -398,7 +503,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PostData(::grpc::ServerContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response) override { + ::grpc::Status PostData(::grpc::ServerContext* /*context*/, const ::v1::model::Datapoint* /*request*/, ::v1::agent::PostDataResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -409,7 +514,7 @@ class Agent final { template class WithAsyncMethod_CreateInterventionRequest : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_CreateInterventionRequest() { ::grpc::Service::MarkMethodAsync(2); @@ -418,7 +523,7 @@ class Agent final { 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 CreateInterventionRequest(::grpc::ServerContext* /*context*/, const ::v1::model::InterventionRequest* /*request*/, ::v1::model::InterventionRequest* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -429,7 +534,7 @@ class Agent final { template class WithAsyncMethod_GetInterventionRequest : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetInterventionRequest() { ::grpc::Service::MarkMethodAsync(3); @@ -438,7 +543,7 @@ class Agent final { 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 GetInterventionRequest(::grpc::ServerContext* /*context*/, const ::v1::agent::GetInterventionRequestRequest* /*request*/, ::v1::model::InterventionRequest* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -449,7 +554,7 @@ class Agent final { template class WithAsyncMethod_GetInterventionResponse : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetInterventionResponse() { ::grpc::Service::MarkMethodAsync(4); @@ -458,7 +563,7 @@ class Agent final { 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 GetInterventionResponse(::grpc::ServerContext* /*context*/, const ::v1::agent::GetInterventionResponseRequest* /*request*/, ::v1::model::InterventionResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -469,7 +574,7 @@ class Agent final { template class WithAsyncMethod_GetStreamsConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetStreamsConfiguration() { ::grpc::Service::MarkMethodAsync(5); @@ -478,7 +583,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* 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, ""); } @@ -489,7 +594,7 @@ class Agent final { template class WithAsyncMethod_GetApplicationConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetApplicationConfiguration() { ::grpc::Service::MarkMethodAsync(6); @@ -498,7 +603,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* 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, ""); } @@ -509,7 +614,7 @@ class Agent final { template class WithAsyncMethod_GetAgentConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetAgentConfiguration() { ::grpc::Service::MarkMethodAsync(7); @@ -518,7 +623,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* 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, ""); } @@ -529,7 +634,7 @@ class Agent final { template class WithAsyncMethod_Health : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_Health() { ::grpc::Service::MarkMethodAsync(8); @@ -538,7 +643,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* 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, ""); } @@ -546,37 +651,137 @@ class Agent final { ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_StreamData > > > > > > > > AsyncService; + template + class WithAsyncMethod_GetCommandRequest : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetCommandRequest() { + ::grpc::Service::MarkMethodAsync(9); + } + ~WithAsyncMethod_GetCommandRequest() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCommandRequest(::grpc::ServerContext* /*context*/, const ::v1::agent::GetCommandRequestRequest* /*request*/, ::v1::agent::GetCommandRequestResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetCommandRequest(::grpc::ServerContext* context, ::v1::agent::GetCommandRequestRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::agent::GetCommandRequestResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetCommandRequestStream : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetCommandRequestStream() { + ::grpc::Service::MarkMethodAsync(10); + } + ~WithAsyncMethod_GetCommandRequestStream() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCommandRequestStream(::grpc::ServerContext* /*context*/, const ::v1::agent::GetCommandRequestStreamRequest* /*request*/, ::grpc::ServerWriter< ::v1::agent::GetCommandRequestStreamResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetCommandRequestStream(::grpc::ServerContext* context, ::v1::agent::GetCommandRequestStreamRequest* request, ::grpc::ServerAsyncWriter< ::v1::agent::GetCommandRequestStreamResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(10, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_SendCommandResponse : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SendCommandResponse() { + ::grpc::Service::MarkMethodAsync(11); + } + ~WithAsyncMethod_SendCommandResponse() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendCommandResponse(::grpc::ServerContext* /*context*/, const ::v1::agent::SendCommandResponseRequest* /*request*/, ::v1::agent::SendCommandResponseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSendCommandResponse(::grpc::ServerContext* context, ::v1::agent::SendCommandResponseRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::agent::SendCommandResponseResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_PostTransformFrame : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_PostTransformFrame() { + ::grpc::Service::MarkMethodAsync(12); + } + ~WithAsyncMethod_PostTransformFrame() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PostTransformFrame(::grpc::ServerContext* /*context*/, const ::v1::model::TransformFrame* /*request*/, ::v1::agent::PostTransformFrameResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPostTransformFrame(::grpc::ServerContext* context, ::v1::model::TransformFrame* request, ::grpc::ServerAsyncResponseWriter< ::v1::agent::PostTransformFrameResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_SetBaseFrameID : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SetBaseFrameID() { + ::grpc::Service::MarkMethodAsync(13); + } + ~WithAsyncMethod_SetBaseFrameID() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetBaseFrameID(::grpc::ServerContext* /*context*/, const ::v1::agent::SetBaseFrameIDRequest* /*request*/, ::v1::agent::SetBaseFrameIDResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetBaseFrameID(::grpc::ServerContext* context, ::v1::agent::SetBaseFrameIDRequest* request, ::grpc::ServerAsyncResponseWriter< ::v1::agent::SetBaseFrameIDResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_StreamData > > > > > > > > > > > > > AsyncService; template class ExperimentalWithCallbackMethod_StreamData : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_StreamData() { ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackClientStreamingHandler< ::v1::model::Datapoint, ::v1::agent::StreamDataResponse>( + new ::grpc_impl::internal::CallbackClientStreamingHandler< ::v1::model::Datapoint, ::v1::agent::StreamDataResponse>( [this] { return this->StreamData(); })); } ~ExperimentalWithCallbackMethod_StreamData() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status StreamData(::grpc::ServerContext* context, ::grpc::ServerReader< ::v1::model::Datapoint>* reader, ::v1::agent::StreamDataResponse* response) override { + ::grpc::Status StreamData(::grpc::ServerContext* /*context*/, ::grpc::ServerReader< ::v1::model::Datapoint>* /*reader*/, ::v1::agent::StreamDataResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::experimental::ServerReadReactor< ::v1::model::Datapoint, ::v1::agent::StreamDataResponse>* StreamData() { - return new ::grpc::internal::UnimplementedReadReactor< + return new ::grpc_impl::internal::UnimplementedReadReactor< ::v1::model::Datapoint, ::v1::agent::StreamDataResponse>;} }; template class ExperimentalWithCallbackMethod_PostData : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_PostData() { ::grpc::Service::experimental().MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::v1::model::Datapoint, ::v1::agent::PostDataResponse>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::v1::model::Datapoint, ::v1::agent::PostDataResponse>( [this](::grpc::ServerContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response, @@ -584,24 +789,30 @@ class Agent final { return this->PostData(context, request, response, controller); })); } + void SetMessageAllocatorFor_PostData( + ::grpc::experimental::MessageAllocator< ::v1::model::Datapoint, ::v1::agent::PostDataResponse>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::v1::model::Datapoint, ::v1::agent::PostDataResponse>*>( + ::grpc::Service::experimental().GetHandler(1)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_PostData() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PostData(::grpc::ServerContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response) override { + ::grpc::Status PostData(::grpc::ServerContext* /*context*/, const ::v1::model::Datapoint* /*request*/, ::v1::agent::PostDataResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - 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, "")); } + 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_CreateInterventionRequest : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_CreateInterventionRequest() { ::grpc::Service::experimental().MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::v1::model::InterventionRequest, ::v1::model::InterventionRequest>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::v1::model::InterventionRequest, ::v1::model::InterventionRequest>( [this](::grpc::ServerContext* context, const ::v1::model::InterventionRequest* request, ::v1::model::InterventionRequest* response, @@ -609,24 +820,30 @@ class Agent final { return this->CreateInterventionRequest(context, request, response, controller); })); } + void SetMessageAllocatorFor_CreateInterventionRequest( + ::grpc::experimental::MessageAllocator< ::v1::model::InterventionRequest, ::v1::model::InterventionRequest>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::v1::model::InterventionRequest, ::v1::model::InterventionRequest>*>( + ::grpc::Service::experimental().GetHandler(2)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_CreateInterventionRequest() 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 CreateInterventionRequest(::grpc::ServerContext* /*context*/, const ::v1::model::InterventionRequest* /*request*/, ::v1::model::InterventionRequest* /*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 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_GetInterventionRequest : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_GetInterventionRequest() { ::grpc::Service::experimental().MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetInterventionRequestRequest, ::v1::model::InterventionRequest>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::GetInterventionRequestRequest, ::v1::model::InterventionRequest>( [this](::grpc::ServerContext* context, const ::v1::agent::GetInterventionRequestRequest* request, ::v1::model::InterventionRequest* response, @@ -634,24 +851,30 @@ class Agent final { return this->GetInterventionRequest(context, request, response, controller); })); } + void SetMessageAllocatorFor_GetInterventionRequest( + ::grpc::experimental::MessageAllocator< ::v1::agent::GetInterventionRequestRequest, ::v1::model::InterventionRequest>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::GetInterventionRequestRequest, ::v1::model::InterventionRequest>*>( + ::grpc::Service::experimental().GetHandler(3)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_GetInterventionRequest() 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 GetInterventionRequest(::grpc::ServerContext* /*context*/, const ::v1::agent::GetInterventionRequestRequest* /*request*/, ::v1::model::InterventionRequest* /*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 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_GetInterventionResponse : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_GetInterventionResponse() { ::grpc::Service::experimental().MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetInterventionResponseRequest, ::v1::model::InterventionResponse>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::GetInterventionResponseRequest, ::v1::model::InterventionResponse>( [this](::grpc::ServerContext* context, const ::v1::agent::GetInterventionResponseRequest* request, ::v1::model::InterventionResponse* response, @@ -659,24 +882,30 @@ class Agent final { return this->GetInterventionResponse(context, request, response, controller); })); } + void SetMessageAllocatorFor_GetInterventionResponse( + ::grpc::experimental::MessageAllocator< ::v1::agent::GetInterventionResponseRequest, ::v1::model::InterventionResponse>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::GetInterventionResponseRequest, ::v1::model::InterventionResponse>*>( + ::grpc::Service::experimental().GetHandler(4)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_GetInterventionResponse() 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 GetInterventionResponse(::grpc::ServerContext* /*context*/, const ::v1::agent::GetInterventionResponseRequest* /*request*/, ::v1::model::InterventionResponse* /*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 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_GetStreamsConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_GetStreamsConfiguration() { ::grpc::Service::experimental().MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetStreamsConfigurationRequest, ::v1::agent::GetStreamsConfigurationResponse>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::GetStreamsConfigurationRequest, ::v1::agent::GetStreamsConfigurationResponse>( [this](::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* response, @@ -684,24 +913,30 @@ class Agent final { return this->GetStreamsConfiguration(context, request, response, controller); })); } + void SetMessageAllocatorFor_GetStreamsConfiguration( + ::grpc::experimental::MessageAllocator< ::v1::agent::GetStreamsConfigurationRequest, ::v1::agent::GetStreamsConfigurationResponse>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::GetStreamsConfigurationRequest, ::v1::agent::GetStreamsConfigurationResponse>*>( + ::grpc::Service::experimental().GetHandler(5)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_GetStreamsConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* 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 GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* 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_GetApplicationConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_GetApplicationConfiguration() { ::grpc::Service::experimental().MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetApplicationConfigurationRequest, ::v1::agent::GetApplicationConfigurationResponse>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::GetApplicationConfigurationRequest, ::v1::agent::GetApplicationConfigurationResponse>( [this](::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* response, @@ -709,24 +944,30 @@ class Agent final { return this->GetApplicationConfiguration(context, request, response, controller); })); } + void SetMessageAllocatorFor_GetApplicationConfiguration( + ::grpc::experimental::MessageAllocator< ::v1::agent::GetApplicationConfigurationRequest, ::v1::agent::GetApplicationConfigurationResponse>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::GetApplicationConfigurationRequest, ::v1::agent::GetApplicationConfigurationResponse>*>( + ::grpc::Service::experimental().GetHandler(6)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_GetApplicationConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* 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 GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* 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_GetAgentConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_GetAgentConfiguration() { ::grpc::Service::experimental().MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::GetAgentConfigurationRequest, ::v1::agent::GetAgentConfigurationResponse>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::GetAgentConfigurationRequest, ::v1::agent::GetAgentConfigurationResponse>( [this](::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* response, @@ -734,24 +975,30 @@ class Agent final { return this->GetAgentConfiguration(context, request, response, controller); })); } + void SetMessageAllocatorFor_GetAgentConfiguration( + ::grpc::experimental::MessageAllocator< ::v1::agent::GetAgentConfigurationRequest, ::v1::agent::GetAgentConfigurationResponse>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::GetAgentConfigurationRequest, ::v1::agent::GetAgentConfigurationResponse>*>( + ::grpc::Service::experimental().GetHandler(7)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_GetAgentConfiguration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* 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 GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* 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_Health : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_Health() { ::grpc::Service::experimental().MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::v1::agent::HealthRequest, ::v1::agent::HealthResponse>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::HealthRequest, ::v1::agent::HealthResponse>( [this](::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* response, @@ -759,21 +1006,173 @@ class Agent final { return this->Health(context, request, response, controller); })); } + void SetMessageAllocatorFor_Health( + ::grpc::experimental::MessageAllocator< ::v1::agent::HealthRequest, ::v1::agent::HealthResponse>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::HealthRequest, ::v1::agent::HealthResponse>*>( + ::grpc::Service::experimental().GetHandler(8)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_Health() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* 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 Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* 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; + template + class ExperimentalWithCallbackMethod_GetCommandRequest : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_GetCommandRequest() { + ::grpc::Service::experimental().MarkMethodCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::GetCommandRequestRequest, ::v1::agent::GetCommandRequestResponse>( + [this](::grpc::ServerContext* context, + const ::v1::agent::GetCommandRequestRequest* request, + ::v1::agent::GetCommandRequestResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetCommandRequest(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetCommandRequest( + ::grpc::experimental::MessageAllocator< ::v1::agent::GetCommandRequestRequest, ::v1::agent::GetCommandRequestResponse>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::GetCommandRequestRequest, ::v1::agent::GetCommandRequestResponse>*>( + ::grpc::Service::experimental().GetHandler(9)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetCommandRequest() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCommandRequest(::grpc::ServerContext* /*context*/, const ::v1::agent::GetCommandRequestRequest* /*request*/, ::v1::agent::GetCommandRequestResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetCommandRequest(::grpc::ServerContext* /*context*/, const ::v1::agent::GetCommandRequestRequest* /*request*/, ::v1::agent::GetCommandRequestResponse* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetCommandRequestStream : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_GetCommandRequestStream() { + ::grpc::Service::experimental().MarkMethodCallback(10, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::v1::agent::GetCommandRequestStreamRequest, ::v1::agent::GetCommandRequestStreamResponse>( + [this] { return this->GetCommandRequestStream(); })); + } + ~ExperimentalWithCallbackMethod_GetCommandRequestStream() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCommandRequestStream(::grpc::ServerContext* /*context*/, const ::v1::agent::GetCommandRequestStreamRequest* /*request*/, ::grpc::ServerWriter< ::v1::agent::GetCommandRequestStreamResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::experimental::ServerWriteReactor< ::v1::agent::GetCommandRequestStreamRequest, ::v1::agent::GetCommandRequestStreamResponse>* GetCommandRequestStream() { + return new ::grpc_impl::internal::UnimplementedWriteReactor< + ::v1::agent::GetCommandRequestStreamRequest, ::v1::agent::GetCommandRequestStreamResponse>;} + }; + template + class ExperimentalWithCallbackMethod_SendCommandResponse : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_SendCommandResponse() { + ::grpc::Service::experimental().MarkMethodCallback(11, + new ::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::SendCommandResponseRequest, ::v1::agent::SendCommandResponseResponse>( + [this](::grpc::ServerContext* context, + const ::v1::agent::SendCommandResponseRequest* request, + ::v1::agent::SendCommandResponseResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->SendCommandResponse(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_SendCommandResponse( + ::grpc::experimental::MessageAllocator< ::v1::agent::SendCommandResponseRequest, ::v1::agent::SendCommandResponseResponse>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::SendCommandResponseRequest, ::v1::agent::SendCommandResponseResponse>*>( + ::grpc::Service::experimental().GetHandler(11)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_SendCommandResponse() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendCommandResponse(::grpc::ServerContext* /*context*/, const ::v1::agent::SendCommandResponseRequest* /*request*/, ::v1::agent::SendCommandResponseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void SendCommandResponse(::grpc::ServerContext* /*context*/, const ::v1::agent::SendCommandResponseRequest* /*request*/, ::v1::agent::SendCommandResponseResponse* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_PostTransformFrame : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_PostTransformFrame() { + ::grpc::Service::experimental().MarkMethodCallback(12, + new ::grpc_impl::internal::CallbackUnaryHandler< ::v1::model::TransformFrame, ::v1::agent::PostTransformFrameResponse>( + [this](::grpc::ServerContext* context, + const ::v1::model::TransformFrame* request, + ::v1::agent::PostTransformFrameResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->PostTransformFrame(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_PostTransformFrame( + ::grpc::experimental::MessageAllocator< ::v1::model::TransformFrame, ::v1::agent::PostTransformFrameResponse>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::v1::model::TransformFrame, ::v1::agent::PostTransformFrameResponse>*>( + ::grpc::Service::experimental().GetHandler(12)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_PostTransformFrame() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PostTransformFrame(::grpc::ServerContext* /*context*/, const ::v1::model::TransformFrame* /*request*/, ::v1::agent::PostTransformFrameResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void PostTransformFrame(::grpc::ServerContext* /*context*/, const ::v1::model::TransformFrame* /*request*/, ::v1::agent::PostTransformFrameResponse* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_SetBaseFrameID : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_SetBaseFrameID() { + ::grpc::Service::experimental().MarkMethodCallback(13, + new ::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::SetBaseFrameIDRequest, ::v1::agent::SetBaseFrameIDResponse>( + [this](::grpc::ServerContext* context, + const ::v1::agent::SetBaseFrameIDRequest* request, + ::v1::agent::SetBaseFrameIDResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->SetBaseFrameID(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_SetBaseFrameID( + ::grpc::experimental::MessageAllocator< ::v1::agent::SetBaseFrameIDRequest, ::v1::agent::SetBaseFrameIDResponse>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::v1::agent::SetBaseFrameIDRequest, ::v1::agent::SetBaseFrameIDResponse>*>( + ::grpc::Service::experimental().GetHandler(13)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_SetBaseFrameID() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetBaseFrameID(::grpc::ServerContext* /*context*/, const ::v1::agent::SetBaseFrameIDRequest* /*request*/, ::v1::agent::SetBaseFrameIDResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void SetBaseFrameID(::grpc::ServerContext* /*context*/, const ::v1::agent::SetBaseFrameIDRequest* /*request*/, ::v1::agent::SetBaseFrameIDResponse* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_StreamData > > > > > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_StreamData : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_StreamData() { ::grpc::Service::MarkMethodGeneric(0); @@ -782,7 +1181,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status StreamData(::grpc::ServerContext* context, ::grpc::ServerReader< ::v1::model::Datapoint>* reader, ::v1::agent::StreamDataResponse* response) override { + ::grpc::Status StreamData(::grpc::ServerContext* /*context*/, ::grpc::ServerReader< ::v1::model::Datapoint>* /*reader*/, ::v1::agent::StreamDataResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -790,7 +1189,7 @@ class Agent final { template class WithGenericMethod_PostData : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_PostData() { ::grpc::Service::MarkMethodGeneric(1); @@ -799,7 +1198,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PostData(::grpc::ServerContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response) override { + ::grpc::Status PostData(::grpc::ServerContext* /*context*/, const ::v1::model::Datapoint* /*request*/, ::v1::agent::PostDataResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -807,7 +1206,7 @@ class Agent final { template class WithGenericMethod_CreateInterventionRequest : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_CreateInterventionRequest() { ::grpc::Service::MarkMethodGeneric(2); @@ -816,7 +1215,7 @@ class Agent final { 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 CreateInterventionRequest(::grpc::ServerContext* /*context*/, const ::v1::model::InterventionRequest* /*request*/, ::v1::model::InterventionRequest* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -824,7 +1223,7 @@ class Agent final { template class WithGenericMethod_GetInterventionRequest : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetInterventionRequest() { ::grpc::Service::MarkMethodGeneric(3); @@ -833,7 +1232,7 @@ class Agent final { 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 GetInterventionRequest(::grpc::ServerContext* /*context*/, const ::v1::agent::GetInterventionRequestRequest* /*request*/, ::v1::model::InterventionRequest* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -841,7 +1240,7 @@ class Agent final { template class WithGenericMethod_GetInterventionResponse : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetInterventionResponse() { ::grpc::Service::MarkMethodGeneric(4); @@ -850,7 +1249,7 @@ class Agent final { 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 GetInterventionResponse(::grpc::ServerContext* /*context*/, const ::v1::agent::GetInterventionResponseRequest* /*request*/, ::v1::model::InterventionResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -858,7 +1257,7 @@ class Agent final { template class WithGenericMethod_GetStreamsConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetStreamsConfiguration() { ::grpc::Service::MarkMethodGeneric(5); @@ -867,7 +1266,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* 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, ""); } @@ -875,7 +1274,7 @@ class Agent final { template class WithGenericMethod_GetApplicationConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetApplicationConfiguration() { ::grpc::Service::MarkMethodGeneric(6); @@ -884,7 +1283,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* 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, ""); } @@ -892,7 +1291,7 @@ class Agent final { template class WithGenericMethod_GetAgentConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetAgentConfiguration() { ::grpc::Service::MarkMethodGeneric(7); @@ -901,7 +1300,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* 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, ""); } @@ -909,7 +1308,7 @@ class Agent final { template class WithGenericMethod_Health : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_Health() { ::grpc::Service::MarkMethodGeneric(8); @@ -918,7 +1317,92 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* 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, ""); + } + }; + template + class WithGenericMethod_GetCommandRequest : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetCommandRequest() { + ::grpc::Service::MarkMethodGeneric(9); + } + ~WithGenericMethod_GetCommandRequest() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCommandRequest(::grpc::ServerContext* /*context*/, const ::v1::agent::GetCommandRequestRequest* /*request*/, ::v1::agent::GetCommandRequestResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetCommandRequestStream : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetCommandRequestStream() { + ::grpc::Service::MarkMethodGeneric(10); + } + ~WithGenericMethod_GetCommandRequestStream() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCommandRequestStream(::grpc::ServerContext* /*context*/, const ::v1::agent::GetCommandRequestStreamRequest* /*request*/, ::grpc::ServerWriter< ::v1::agent::GetCommandRequestStreamResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_SendCommandResponse : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SendCommandResponse() { + ::grpc::Service::MarkMethodGeneric(11); + } + ~WithGenericMethod_SendCommandResponse() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendCommandResponse(::grpc::ServerContext* /*context*/, const ::v1::agent::SendCommandResponseRequest* /*request*/, ::v1::agent::SendCommandResponseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_PostTransformFrame : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_PostTransformFrame() { + ::grpc::Service::MarkMethodGeneric(12); + } + ~WithGenericMethod_PostTransformFrame() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PostTransformFrame(::grpc::ServerContext* /*context*/, const ::v1::model::TransformFrame* /*request*/, ::v1::agent::PostTransformFrameResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_SetBaseFrameID : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SetBaseFrameID() { + ::grpc::Service::MarkMethodGeneric(13); + } + ~WithGenericMethod_SetBaseFrameID() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetBaseFrameID(::grpc::ServerContext* /*context*/, const ::v1::agent::SetBaseFrameIDRequest* /*request*/, ::v1::agent::SetBaseFrameIDResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -926,7 +1410,7 @@ class Agent final { template class WithRawMethod_StreamData : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_StreamData() { ::grpc::Service::MarkMethodRaw(0); @@ -935,7 +1419,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status StreamData(::grpc::ServerContext* context, ::grpc::ServerReader< ::v1::model::Datapoint>* reader, ::v1::agent::StreamDataResponse* response) override { + ::grpc::Status StreamData(::grpc::ServerContext* /*context*/, ::grpc::ServerReader< ::v1::model::Datapoint>* /*reader*/, ::v1::agent::StreamDataResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -946,7 +1430,7 @@ class Agent final { template class WithRawMethod_PostData : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_PostData() { ::grpc::Service::MarkMethodRaw(1); @@ -955,7 +1439,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PostData(::grpc::ServerContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response) override { + ::grpc::Status PostData(::grpc::ServerContext* /*context*/, const ::v1::model::Datapoint* /*request*/, ::v1::agent::PostDataResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -966,7 +1450,7 @@ class Agent final { template class WithRawMethod_CreateInterventionRequest : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_CreateInterventionRequest() { ::grpc::Service::MarkMethodRaw(2); @@ -975,7 +1459,7 @@ class Agent final { 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 CreateInterventionRequest(::grpc::ServerContext* /*context*/, const ::v1::model::InterventionRequest* /*request*/, ::v1::model::InterventionRequest* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -986,7 +1470,7 @@ class Agent final { template class WithRawMethod_GetInterventionRequest : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetInterventionRequest() { ::grpc::Service::MarkMethodRaw(3); @@ -995,7 +1479,7 @@ class Agent final { 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 GetInterventionRequest(::grpc::ServerContext* /*context*/, const ::v1::agent::GetInterventionRequestRequest* /*request*/, ::v1::model::InterventionRequest* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -1006,7 +1490,7 @@ class Agent final { template class WithRawMethod_GetInterventionResponse : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetInterventionResponse() { ::grpc::Service::MarkMethodRaw(4); @@ -1015,7 +1499,7 @@ class Agent final { 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 GetInterventionResponse(::grpc::ServerContext* /*context*/, const ::v1::agent::GetInterventionResponseRequest* /*request*/, ::v1::model::InterventionResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -1026,7 +1510,7 @@ class Agent final { template class WithRawMethod_GetStreamsConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetStreamsConfiguration() { ::grpc::Service::MarkMethodRaw(5); @@ -1035,7 +1519,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* 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, ""); } @@ -1046,7 +1530,7 @@ class Agent final { template class WithRawMethod_GetApplicationConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetApplicationConfiguration() { ::grpc::Service::MarkMethodRaw(6); @@ -1055,7 +1539,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* 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, ""); } @@ -1066,7 +1550,7 @@ class Agent final { template class WithRawMethod_GetAgentConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetAgentConfiguration() { ::grpc::Service::MarkMethodRaw(7); @@ -1075,7 +1559,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* 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, ""); } @@ -1086,7 +1570,7 @@ class Agent final { template class WithRawMethod_Health : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_Health() { ::grpc::Service::MarkMethodRaw(8); @@ -1095,7 +1579,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* 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, ""); } @@ -1104,35 +1588,135 @@ class Agent final { } }; template + class WithRawMethod_GetCommandRequest : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetCommandRequest() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_GetCommandRequest() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCommandRequest(::grpc::ServerContext* /*context*/, const ::v1::agent::GetCommandRequestRequest* /*request*/, ::v1::agent::GetCommandRequestResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetCommandRequest(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetCommandRequestStream : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetCommandRequestStream() { + ::grpc::Service::MarkMethodRaw(10); + } + ~WithRawMethod_GetCommandRequestStream() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCommandRequestStream(::grpc::ServerContext* /*context*/, const ::v1::agent::GetCommandRequestStreamRequest* /*request*/, ::grpc::ServerWriter< ::v1::agent::GetCommandRequestStreamResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetCommandRequestStream(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(10, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_SendCommandResponse : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SendCommandResponse() { + ::grpc::Service::MarkMethodRaw(11); + } + ~WithRawMethod_SendCommandResponse() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendCommandResponse(::grpc::ServerContext* /*context*/, const ::v1::agent::SendCommandResponseRequest* /*request*/, ::v1::agent::SendCommandResponseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSendCommandResponse(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_PostTransformFrame : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_PostTransformFrame() { + ::grpc::Service::MarkMethodRaw(12); + } + ~WithRawMethod_PostTransformFrame() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PostTransformFrame(::grpc::ServerContext* /*context*/, const ::v1::model::TransformFrame* /*request*/, ::v1::agent::PostTransformFrameResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPostTransformFrame(::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(12, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_SetBaseFrameID : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SetBaseFrameID() { + ::grpc::Service::MarkMethodRaw(13); + } + ~WithRawMethod_SetBaseFrameID() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetBaseFrameID(::grpc::ServerContext* /*context*/, const ::v1::agent::SetBaseFrameIDRequest* /*request*/, ::v1::agent::SetBaseFrameIDResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetBaseFrameID(::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(13, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class ExperimentalWithRawCallbackMethod_StreamData : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_StreamData() { ::grpc::Service::experimental().MarkMethodRawCallback(0, - new ::grpc::internal::CallbackClientStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackClientStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this] { return this->StreamData(); })); } ~ExperimentalWithRawCallbackMethod_StreamData() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status StreamData(::grpc::ServerContext* context, ::grpc::ServerReader< ::v1::model::Datapoint>* reader, ::v1::agent::StreamDataResponse* response) override { + ::grpc::Status StreamData(::grpc::ServerContext* /*context*/, ::grpc::ServerReader< ::v1::model::Datapoint>* /*reader*/, ::v1::agent::StreamDataResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::experimental::ServerReadReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* StreamData() { - return new ::grpc::internal::UnimplementedReadReactor< + return new ::grpc_impl::internal::UnimplementedReadReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>;} }; template class ExperimentalWithRawCallbackMethod_PostData : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_PostData() { ::grpc::Service::experimental().MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1144,20 +1728,20 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status PostData(::grpc::ServerContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response) override { + ::grpc::Status PostData(::grpc::ServerContext* /*context*/, const ::v1::model::Datapoint* /*request*/, ::v1::agent::PostDataResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void PostData(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + 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_CreateInterventionRequest : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_CreateInterventionRequest() { ::grpc::Service::experimental().MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1169,20 +1753,20 @@ class Agent final { 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 CreateInterventionRequest(::grpc::ServerContext* /*context*/, const ::v1::model::InterventionRequest* /*request*/, ::v1::model::InterventionRequest* /*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 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_GetInterventionRequest : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_GetInterventionRequest() { ::grpc::Service::experimental().MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1194,20 +1778,20 @@ class Agent final { 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 GetInterventionRequest(::grpc::ServerContext* /*context*/, const ::v1::agent::GetInterventionRequestRequest* /*request*/, ::v1::model::InterventionRequest* /*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 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_GetInterventionResponse : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_GetInterventionResponse() { ::grpc::Service::experimental().MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1219,20 +1803,20 @@ class Agent final { 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 GetInterventionResponse(::grpc::ServerContext* /*context*/, const ::v1::agent::GetInterventionResponseRequest* /*request*/, ::v1::model::InterventionResponse* /*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 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_GetStreamsConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_GetStreamsConfiguration() { ::grpc::Service::experimental().MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1244,20 +1828,20 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* 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 GetStreamsConfiguration(::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_GetApplicationConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_GetApplicationConfiguration() { ::grpc::Service::experimental().MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1269,20 +1853,20 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* 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 GetApplicationConfiguration(::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_GetAgentConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_GetAgentConfiguration() { ::grpc::Service::experimental().MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1294,20 +1878,20 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* 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 GetAgentConfiguration(::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_Health : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_Health() { ::grpc::Service::experimental().MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1319,16 +1903,138 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* 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 Health(::grpc::ServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetCommandRequest : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_GetCommandRequest() { + ::grpc::Service::experimental().MarkMethodRawCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetCommandRequest(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetCommandRequest() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCommandRequest(::grpc::ServerContext* /*context*/, const ::v1::agent::GetCommandRequestRequest* /*request*/, ::v1::agent::GetCommandRequestResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetCommandRequest(::grpc::ServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetCommandRequestStream : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_GetCommandRequestStream() { + ::grpc::Service::experimental().MarkMethodRawCallback(10, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this] { return this->GetCommandRequestStream(); })); + } + ~ExperimentalWithRawCallbackMethod_GetCommandRequestStream() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCommandRequestStream(::grpc::ServerContext* /*context*/, const ::v1::agent::GetCommandRequestStreamRequest* /*request*/, ::grpc::ServerWriter< ::v1::agent::GetCommandRequestStreamResponse>* /*writer*/) override { abort(); return ::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, "")); } + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* GetCommandRequestStream() { + return new ::grpc_impl::internal::UnimplementedWriteReactor< + ::grpc::ByteBuffer, ::grpc::ByteBuffer>;} + }; + template + class ExperimentalWithRawCallbackMethod_SendCommandResponse : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_SendCommandResponse() { + ::grpc::Service::experimental().MarkMethodRawCallback(11, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->SendCommandResponse(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_SendCommandResponse() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendCommandResponse(::grpc::ServerContext* /*context*/, const ::v1::agent::SendCommandResponseRequest* /*request*/, ::v1::agent::SendCommandResponseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void SendCommandResponse(::grpc::ServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_PostTransformFrame : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_PostTransformFrame() { + ::grpc::Service::experimental().MarkMethodRawCallback(12, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->PostTransformFrame(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_PostTransformFrame() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PostTransformFrame(::grpc::ServerContext* /*context*/, const ::v1::model::TransformFrame* /*request*/, ::v1::agent::PostTransformFrameResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void PostTransformFrame(::grpc::ServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_SetBaseFrameID : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_SetBaseFrameID() { + ::grpc::Service::experimental().MarkMethodRawCallback(13, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->SetBaseFrameID(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_SetBaseFrameID() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetBaseFrameID(::grpc::ServerContext* /*context*/, const ::v1::agent::SetBaseFrameIDRequest* /*request*/, ::v1::agent::SetBaseFrameIDResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void SetBaseFrameID(::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 { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_PostData() { ::grpc::Service::MarkMethodStreamed(1, @@ -1338,7 +2044,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status PostData(::grpc::ServerContext* context, const ::v1::model::Datapoint* request, ::v1::agent::PostDataResponse* response) override { + ::grpc::Status PostData(::grpc::ServerContext* /*context*/, const ::v1::model::Datapoint* /*request*/, ::v1::agent::PostDataResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -1348,7 +2054,7 @@ class Agent final { template class WithStreamedUnaryMethod_CreateInterventionRequest : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_CreateInterventionRequest() { ::grpc::Service::MarkMethodStreamed(2, @@ -1358,7 +2064,7 @@ class Agent final { 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 CreateInterventionRequest(::grpc::ServerContext* /*context*/, const ::v1::model::InterventionRequest* /*request*/, ::v1::model::InterventionRequest* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -1368,7 +2074,7 @@ class Agent final { template class WithStreamedUnaryMethod_GetInterventionRequest : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetInterventionRequest() { ::grpc::Service::MarkMethodStreamed(3, @@ -1378,7 +2084,7 @@ class Agent final { 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 GetInterventionRequest(::grpc::ServerContext* /*context*/, const ::v1::agent::GetInterventionRequestRequest* /*request*/, ::v1::model::InterventionRequest* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -1388,7 +2094,7 @@ class Agent final { template class WithStreamedUnaryMethod_GetInterventionResponse : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetInterventionResponse() { ::grpc::Service::MarkMethodStreamed(4, @@ -1398,7 +2104,7 @@ class Agent final { 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 GetInterventionResponse(::grpc::ServerContext* /*context*/, const ::v1::agent::GetInterventionResponseRequest* /*request*/, ::v1::model::InterventionResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -1408,7 +2114,7 @@ class Agent final { template class WithStreamedUnaryMethod_GetStreamsConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetStreamsConfiguration() { ::grpc::Service::MarkMethodStreamed(5, @@ -1418,7 +2124,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetStreamsConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetStreamsConfigurationRequest* request, ::v1::agent::GetStreamsConfigurationResponse* 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, ""); } @@ -1428,7 +2134,7 @@ class Agent final { template class WithStreamedUnaryMethod_GetApplicationConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetApplicationConfiguration() { ::grpc::Service::MarkMethodStreamed(6, @@ -1438,7 +2144,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetApplicationConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetApplicationConfigurationRequest* request, ::v1::agent::GetApplicationConfigurationResponse* 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, ""); } @@ -1448,7 +2154,7 @@ class Agent final { template class WithStreamedUnaryMethod_GetAgentConfiguration : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetAgentConfiguration() { ::grpc::Service::MarkMethodStreamed(7, @@ -1458,7 +2164,7 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetAgentConfiguration(::grpc::ServerContext* context, const ::v1::agent::GetAgentConfigurationRequest* request, ::v1::agent::GetAgentConfigurationResponse* 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, ""); } @@ -1468,7 +2174,7 @@ class Agent final { template class WithStreamedUnaryMethod_Health : public BaseClass { private: - void BaseClassMustBeDerivedFromService(const Service *service) {} + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_Health() { ::grpc::Service::MarkMethodStreamed(8, @@ -1478,16 +2184,116 @@ class Agent final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status Health(::grpc::ServerContext* context, const ::v1::agent::HealthRequest* request, ::v1::agent::HealthResponse* 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 StreamedHealth(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::HealthRequest,::v1::agent::HealthResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_PostData > > > > > > > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_PostData > > > > > > > StreamedService; + template + class WithStreamedUnaryMethod_GetCommandRequest : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetCommandRequest() { + ::grpc::Service::MarkMethodStreamed(9, + new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::GetCommandRequestRequest, ::v1::agent::GetCommandRequestResponse>(std::bind(&WithStreamedUnaryMethod_GetCommandRequest::StreamedGetCommandRequest, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetCommandRequest() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetCommandRequest(::grpc::ServerContext* /*context*/, const ::v1::agent::GetCommandRequestRequest* /*request*/, ::v1::agent::GetCommandRequestResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetCommandRequest(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::GetCommandRequestRequest,::v1::agent::GetCommandRequestResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_SendCommandResponse : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SendCommandResponse() { + ::grpc::Service::MarkMethodStreamed(11, + new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::SendCommandResponseRequest, ::v1::agent::SendCommandResponseResponse>(std::bind(&WithStreamedUnaryMethod_SendCommandResponse::StreamedSendCommandResponse, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_SendCommandResponse() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SendCommandResponse(::grpc::ServerContext* /*context*/, const ::v1::agent::SendCommandResponseRequest* /*request*/, ::v1::agent::SendCommandResponseResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSendCommandResponse(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::SendCommandResponseRequest,::v1::agent::SendCommandResponseResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_PostTransformFrame : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_PostTransformFrame() { + ::grpc::Service::MarkMethodStreamed(12, + new ::grpc::internal::StreamedUnaryHandler< ::v1::model::TransformFrame, ::v1::agent::PostTransformFrameResponse>(std::bind(&WithStreamedUnaryMethod_PostTransformFrame::StreamedPostTransformFrame, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_PostTransformFrame() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status PostTransformFrame(::grpc::ServerContext* /*context*/, const ::v1::model::TransformFrame* /*request*/, ::v1::agent::PostTransformFrameResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedPostTransformFrame(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::model::TransformFrame,::v1::agent::PostTransformFrameResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_SetBaseFrameID : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SetBaseFrameID() { + ::grpc::Service::MarkMethodStreamed(13, + new ::grpc::internal::StreamedUnaryHandler< ::v1::agent::SetBaseFrameIDRequest, ::v1::agent::SetBaseFrameIDResponse>(std::bind(&WithStreamedUnaryMethod_SetBaseFrameID::StreamedSetBaseFrameID, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_SetBaseFrameID() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SetBaseFrameID(::grpc::ServerContext* /*context*/, const ::v1::agent::SetBaseFrameIDRequest* /*request*/, ::v1::agent::SetBaseFrameIDResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSetBaseFrameID(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::v1::agent::SetBaseFrameIDRequest,::v1::agent::SetBaseFrameIDResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_PostData > > > > > > > > > > > StreamedUnaryService; + template + class WithSplitStreamingMethod_GetCommandRequestStream : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithSplitStreamingMethod_GetCommandRequestStream() { + ::grpc::Service::MarkMethodStreamed(10, + new ::grpc::internal::SplitServerStreamingHandler< ::v1::agent::GetCommandRequestStreamRequest, ::v1::agent::GetCommandRequestStreamResponse>(std::bind(&WithSplitStreamingMethod_GetCommandRequestStream::StreamedGetCommandRequestStream, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithSplitStreamingMethod_GetCommandRequestStream() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetCommandRequestStream(::grpc::ServerContext* /*context*/, const ::v1::agent::GetCommandRequestStreamRequest* /*request*/, ::grpc::ServerWriter< ::v1::agent::GetCommandRequestStreamResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with split streamed + virtual ::grpc::Status StreamedGetCommandRequestStream(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::v1::agent::GetCommandRequestStreamRequest,::v1::agent::GetCommandRequestStreamResponse>* server_split_streamer) = 0; + }; + typedef WithSplitStreamingMethod_GetCommandRequestStream SplitStreamedService; + 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 1d294eb..3fb5676 100755 --- a/examples/cpp/protos/agent/v1/agent.pb.cc +++ b/examples/cpp/protos/agent/v1/agent.pb.cc @@ -5,263 +5,413 @@ #include -#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<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; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CommandRequest_protos_2fmodel_2fv1_2fcommands_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fcommands_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CommandResponse_protos_2fmodel_2fv1_2fcommands_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<6> scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; namespace v1 { namespace agent { class StreamDataResponseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _StreamDataResponse_default_instance_; class PostDataResponseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _PostDataResponse_default_instance_; class GetInterventionRequestRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _GetInterventionRequestRequest_default_instance_; class GetInterventionResponseRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _GetInterventionResponseRequest_default_instance_; class GetStreamsConfigurationRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _GetStreamsConfigurationRequest_default_instance_; class GetStreamsConfigurationResponseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _GetStreamsConfigurationResponse_default_instance_; class GetApplicationConfigurationRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _GetApplicationConfigurationRequest_default_instance_; class GetApplicationConfigurationResponseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _GetApplicationConfigurationResponse_default_instance_; class GetAgentConfigurationRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _GetAgentConfigurationRequest_default_instance_; class GetAgentConfigurationResponseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _GetAgentConfigurationResponse_default_instance_; class HealthRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _HealthRequest_default_instance_; class HealthResponseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _HealthResponse_default_instance_; +class GetCommandRequestRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GetCommandRequestRequest_default_instance_; +class GetCommandRequestResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GetCommandRequestResponse_default_instance_; +class SendCommandResponseRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SendCommandResponseRequest_default_instance_; +class SendCommandResponseResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SendCommandResponseResponse_default_instance_; +class GetCommandRequestStreamRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GetCommandRequestStreamRequest_default_instance_; +class GetCommandRequestStreamResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GetCommandRequestStreamResponse_default_instance_; +class PostTransformFrameResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PostTransformFrameResponse_default_instance_; +class SetBaseFrameIDRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SetBaseFrameIDRequest_default_instance_; +class SetBaseFrameIDResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SetBaseFrameIDResponse_default_instance_; } // namespace agent } // namespace v1 -static void InitDefaultsStreamDataResponse_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsscc_info_GetAgentConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_StreamDataResponse_default_instance_; - new (ptr) ::v1::agent::StreamDataResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::v1::agent::_GetAgentConfigurationRequest_default_instance_; + new (ptr) ::v1::agent::GetAgentConfigurationRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::StreamDataResponse::InitAsDefaultInstance(); + ::v1::agent::GetAgentConfigurationRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_StreamDataResponse_protos_2fagent_2fv1_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStreamDataResponse_protos_2fagent_2fv1_2fagent_2eproto}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetAgentConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetAgentConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsPostDataResponse_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsscc_info_GetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_PostDataResponse_default_instance_; - new (ptr) ::v1::agent::PostDataResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::v1::agent::_GetAgentConfigurationResponse_default_instance_; + new (ptr) ::v1::agent::GetAgentConfigurationResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::PostDataResponse::InitAsDefaultInstance(); + ::v1::agent::GetAgentConfigurationResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto}, { + &scc_info_AgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; + +static void InitDefaultsscc_info_GetApplicationConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::agent::_GetApplicationConfigurationRequest_default_instance_; + new (ptr) ::v1::agent::GetApplicationConfigurationRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::agent::GetApplicationConfigurationRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetApplicationConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetApplicationConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; + +static void InitDefaultsscc_info_GetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::agent::_GetApplicationConfigurationResponse_default_instance_; + new (ptr) ::v1::agent::GetApplicationConfigurationResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::agent::GetApplicationConfigurationResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto}, { + &scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; + +static void InitDefaultsscc_info_GetCommandRequestRequest_protos_2fagent_2fv1_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::agent::_GetCommandRequestRequest_default_instance_; + new (ptr) ::v1::agent::GetCommandRequestRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::agent::GetCommandRequestRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetCommandRequestRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetCommandRequestRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; + +static void InitDefaultsscc_info_GetCommandRequestResponse_protos_2fagent_2fv1_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::agent::_GetCommandRequestResponse_default_instance_; + new (ptr) ::v1::agent::GetCommandRequestResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::agent::GetCommandRequestResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetCommandRequestResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetCommandRequestResponse_protos_2fagent_2fv1_2fagent_2eproto}, { + &scc_info_CommandRequest_protos_2fmodel_2fv1_2fcommands_2eproto.base,}}; + +static void InitDefaultsscc_info_GetCommandRequestStreamRequest_protos_2fagent_2fv1_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::agent::_GetCommandRequestStreamRequest_default_instance_; + new (ptr) ::v1::agent::GetCommandRequestStreamRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::agent::GetCommandRequestStreamRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetCommandRequestStreamRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetCommandRequestStreamRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; + +static void InitDefaultsscc_info_GetCommandRequestStreamResponse_protos_2fagent_2fv1_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::agent::_GetCommandRequestStreamResponse_default_instance_; + new (ptr) ::v1::agent::GetCommandRequestStreamResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::agent::GetCommandRequestStreamResponse::InitAsDefaultInstance(); } -::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetCommandRequestStreamResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetCommandRequestStreamResponse_protos_2fagent_2fv1_2fagent_2eproto}, { + &scc_info_CommandRequest_protos_2fmodel_2fv1_2fcommands_2eproto.base,}}; -static void InitDefaultsGetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsscc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::v1::agent::_GetInterventionRequestRequest_default_instance_; new (ptr) ::v1::agent::GetInterventionRequestRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::v1::agent::GetInterventionRequestRequest::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsGetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsscc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::v1::agent::_GetInterventionResponseRequest_default_instance_; new (ptr) ::v1::agent::GetInterventionResponseRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::v1::agent::GetInterventionResponseRequest::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsGetStreamsConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsscc_info_GetStreamsConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::v1::agent::_GetStreamsConfigurationRequest_default_instance_; new (ptr) ::v1::agent::GetStreamsConfigurationRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::v1::agent::GetStreamsConfigurationRequest::InitAsDefaultInstance(); } -::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetStreamsConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetStreamsConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsGetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsscc_info_GetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::v1::agent::_GetStreamsConfigurationResponse_default_instance_; new (ptr) ::v1::agent::GetStreamsConfigurationResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::v1::agent::GetStreamsConfigurationResponse::InitAsDefaultInstance(); } -::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}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto}, { &scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; -static void InitDefaultsGetApplicationConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsscc_info_HealthRequest_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_GetApplicationConfigurationRequest_default_instance_; - new (ptr) ::v1::agent::GetApplicationConfigurationRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::v1::agent::_HealthRequest_default_instance_; + new (ptr) ::v1::agent::HealthRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::GetApplicationConfigurationRequest::InitAsDefaultInstance(); + ::v1::agent::HealthRequest::InitAsDefaultInstance(); } -::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_HealthRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_HealthRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsGetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsscc_info_HealthResponse_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_GetApplicationConfigurationResponse_default_instance_; - new (ptr) ::v1::agent::GetApplicationConfigurationResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::v1::agent::_HealthResponse_default_instance_; + new (ptr) ::v1::agent::HealthResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::GetApplicationConfigurationResponse::InitAsDefaultInstance(); + ::v1::agent::HealthResponse::InitAsDefaultInstance(); } -::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,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_HealthResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_HealthResponse_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsGetAgentConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsscc_info_PostDataResponse_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_GetAgentConfigurationRequest_default_instance_; - new (ptr) ::v1::agent::GetAgentConfigurationRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::v1::agent::_PostDataResponse_default_instance_; + new (ptr) ::v1::agent::PostDataResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::GetAgentConfigurationRequest::InitAsDefaultInstance(); + ::v1::agent::PostDataResponse::InitAsDefaultInstance(); } -::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PostDataResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PostDataResponse_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsGetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsscc_info_PostTransformFrameResponse_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_GetAgentConfigurationResponse_default_instance_; - new (ptr) ::v1::agent::GetAgentConfigurationResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::v1::agent::_PostTransformFrameResponse_default_instance_; + new (ptr) ::v1::agent::PostTransformFrameResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::GetAgentConfigurationResponse::InitAsDefaultInstance(); + ::v1::agent::PostTransformFrameResponse::InitAsDefaultInstance(); } -::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,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PostTransformFrameResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PostTransformFrameResponse_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -static void InitDefaultsHealthRequest_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsscc_info_SendCommandResponseRequest_protos_2fagent_2fv1_2fagent_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::v1::agent::_HealthRequest_default_instance_; - new (ptr) ::v1::agent::HealthRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::v1::agent::_SendCommandResponseRequest_default_instance_; + new (ptr) ::v1::agent::SendCommandResponseRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::HealthRequest::InitAsDefaultInstance(); + ::v1::agent::SendCommandResponseRequest::InitAsDefaultInstance(); } -::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SendCommandResponseRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_SendCommandResponseRequest_protos_2fagent_2fv1_2fagent_2eproto}, { + &scc_info_CommandResponse_protos_2fmodel_2fv1_2fcommands_2eproto.base,}}; -static void InitDefaultsHealthResponse_protos_2fagent_2fv1_2fagent_2eproto() { +static void InitDefaultsscc_info_SendCommandResponseResponse_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); + void* ptr = &::v1::agent::_SendCommandResponseResponse_default_instance_; + new (ptr) ::v1::agent::SendCommandResponseResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::agent::HealthResponse::InitAsDefaultInstance(); + ::v1::agent::SendCommandResponseResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SendCommandResponseResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SendCommandResponseResponse_protos_2fagent_2fv1_2fagent_2eproto}, {}}; + +static void InitDefaultsscc_info_SetBaseFrameIDRequest_protos_2fagent_2fv1_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::agent::_SetBaseFrameIDRequest_default_instance_; + new (ptr) ::v1::agent::SetBaseFrameIDRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::agent::SetBaseFrameIDRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SetBaseFrameIDRequest_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SetBaseFrameIDRequest_protos_2fagent_2fv1_2fagent_2eproto}, {}}; + +static void InitDefaultsscc_info_SetBaseFrameIDResponse_protos_2fagent_2fv1_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::agent::_SetBaseFrameIDResponse_default_instance_; + new (ptr) ::v1::agent::SetBaseFrameIDResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::agent::SetBaseFrameIDResponse::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SetBaseFrameIDResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SetBaseFrameIDResponse_protos_2fagent_2fv1_2fagent_2eproto}, {}}; + +static void InitDefaultsscc_info_StreamDataResponse_protos_2fagent_2fv1_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; -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_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); + { + void* ptr = &::v1::agent::_StreamDataResponse_default_instance_; + new (ptr) ::v1::agent::StreamDataResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::agent::StreamDataResponse::InitAsDefaultInstance(); } -::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; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StreamDataResponse_protos_2fagent_2fv1_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_StreamDataResponse_protos_2fagent_2fv1_2fagent_2eproto}, {}}; -const ::google::protobuf::uint32 TableStruct_protos_2fagent_2fv1_2fagent_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[21]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_protos_2fagent_2fv1_2fagent_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protos_2fagent_2fv1_2fagent_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_protos_2fagent_2fv1_2fagent_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::v1::agent::StreamDataResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -327,8 +477,59 @@ const ::google::protobuf::uint32 TableStruct_protos_2fagent_2fv1_2fagent_2eproto ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::agent::GetCommandRequestRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::agent::GetCommandRequestRequest, command_filter_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::agent::GetCommandRequestResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::agent::GetCommandRequestResponse, request_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::agent::SendCommandResponseRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::agent::SendCommandResponseRequest, response_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::agent::SendCommandResponseResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::agent::GetCommandRequestStreamRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::agent::GetCommandRequestStreamRequest, command_filter_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::agent::GetCommandRequestStreamResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::agent::GetCommandRequestStreamResponse, request_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::agent::PostTransformFrameResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::agent::SetBaseFrameIDRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::agent::SetBaseFrameIDRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::agent::SetBaseFrameIDResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ }; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::PROTOBUF_NAMESPACE_ID::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::GetInterventionRequestRequest)}, @@ -341,89 +542,152 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SE { 49, -1, sizeof(::v1::agent::GetAgentConfigurationResponse)}, { 55, -1, sizeof(::v1::agent::HealthRequest)}, { 60, -1, sizeof(::v1::agent::HealthResponse)}, + { 65, -1, sizeof(::v1::agent::GetCommandRequestRequest)}, + { 71, -1, sizeof(::v1::agent::GetCommandRequestResponse)}, + { 77, -1, sizeof(::v1::agent::SendCommandResponseRequest)}, + { 83, -1, sizeof(::v1::agent::SendCommandResponseResponse)}, + { 88, -1, sizeof(::v1::agent::GetCommandRequestStreamRequest)}, + { 94, -1, sizeof(::v1::agent::GetCommandRequestStreamResponse)}, + { 100, -1, sizeof(::v1::agent::PostTransformFrameResponse)}, + { 105, -1, sizeof(::v1::agent::SetBaseFrameIDRequest)}, + { 111, -1, sizeof(::v1::agent::SetBaseFrameIDResponse)}, }; -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::_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, 12, file_level_enum_descriptors_protos_2fagent_2fv1_2fagent_2eproto, file_level_service_descriptors_protos_2fagent_2fv1_2fagent_2eproto, +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::v1::agent::_StreamDataResponse_default_instance_), + reinterpret_cast(&::v1::agent::_PostDataResponse_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_), + reinterpret_cast(&::v1::agent::_GetCommandRequestRequest_default_instance_), + reinterpret_cast(&::v1::agent::_GetCommandRequestResponse_default_instance_), + reinterpret_cast(&::v1::agent::_SendCommandResponseRequest_default_instance_), + reinterpret_cast(&::v1::agent::_SendCommandResponseResponse_default_instance_), + reinterpret_cast(&::v1::agent::_GetCommandRequestStreamRequest_default_instance_), + reinterpret_cast(&::v1::agent::_GetCommandRequestStreamResponse_default_instance_), + reinterpret_cast(&::v1::agent::_PostTransformFrameResponse_default_instance_), + reinterpret_cast(&::v1::agent::_SetBaseFrameIDRequest_default_instance_), + reinterpret_cast(&::v1::agent::_SetBaseFrameIDResponse_default_instance_), }; -const char descriptor_table_protodef_protos_2fagent_2fv1_2fagent_2eproto[] = +const char descriptor_table_protodef_protos_2fagent_2fv1_2fagent_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\033protos/agent/v1/agent.proto\022\010v1.agent\032" "\037protos/model/v1/datapoint.proto\032\"protos" - "/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" + "/model/v1/intervention.proto\032\036protos/mod" + "el/v1/commands.proto\032\034protos/model/v1/co" + "nfig.proto\032\032protos/model/v1/math.proto\"\024" + "\n\022StreamDataResponse\"\022\n\020PostDataResponse" + "\"/\n\035GetInterventionRequestRequest\022\016\n\002id\030" + "\001 \001(\tR\002id\"\?\n\036GetInterventionResponseRequ" + "est\022\035\n\nrequest_id\030\001 \001(\tR\trequestId\" \n\036Ge" + "tStreamsConfigurationRequest\"Z\n\037GetStrea" + "msConfigurationResponse\0227\n\007streams\030\001 \003(\013" + "2\035.v1.model.StreamConfigurationR\007streams" + "\"$\n\"GetApplicationConfigurationRequest\"o" + "\n#GetApplicationConfigurationResponse\022H\n" + "\rconfiguration\030\001 \001(\0132\".v1.model.Applicat" + "ionConfigurationR\rconfiguration\"\036\n\034GetAg" + "entConfigurationRequest\"c\n\035GetAgentConfi" + "gurationResponse\022B\n\rconfiguration\030\001 \001(\0132" + "\034.v1.model.AgentConfigurationR\rconfigura" + "tion\"\017\n\rHealthRequest\"\020\n\016HealthResponse\"" + "A\n\030GetCommandRequestRequest\022%\n\016command_f" + "ilter\030\001 \003(\tR\rcommandFilter\"O\n\031GetCommand" + "RequestResponse\0222\n\007request\030\001 \001(\0132\030.v1.mo" + "del.CommandRequestR\007request\"S\n\032SendComma" + "ndResponseRequest\0225\n\010response\030\001 \001(\0132\031.v1" + ".model.CommandResponseR\010response\"\035\n\033Send" + "CommandResponseResponse\"G\n\036GetCommandReq" + "uestStreamRequest\022%\n\016command_filter\030\001 \003(" + "\tR\rcommandFilter\"U\n\037GetCommandRequestStr" + "eamResponse\0222\n\007request\030\001 \001(\0132\030.v1.model." + "CommandRequestR\007request\"\034\n\032PostTransform" + "FrameResponse\"\'\n\025SetBaseFrameIDRequest\022\016" + "\n\002id\030\001 \001(\tR\002id\"\030\n\026SetBaseFrameIDResponse" + "2\267\n\n\005Agent\022C\n\nStreamData\022\023.v1.model.Data" + "point\032\034.v1.agent.StreamDataResponse\"\000(\001\022" + "=\n\010PostData\022\023.v1.model.Datapoint\032\032.v1.ag" + "ent.PostDataResponse\"\000\022[\n\031CreateInterven" + "tionRequest\022\035.v1.model.InterventionReque" + "st\032\035.v1.model.InterventionRequest\"\000\022b\n\026G" + "etInterventionRequest\022\'.v1.agent.GetInte" + "rventionRequestRequest\032\035.v1.model.Interv" + "entionRequest\"\000\022e\n\027GetInterventionRespon" + "se\022(.v1.agent.GetInterventionResponseReq" + "uest\032\036.v1.model.InterventionResponse\"\000\022p" + "\n\027GetStreamsConfiguration\022(.v1.agent.Get" + "StreamsConfigurationRequest\032).v1.agent.G" + "etStreamsConfigurationResponse\"\000\022|\n\033GetA" + "pplicationConfiguration\022,.v1.agent.GetAp" + "plicationConfigurationRequest\032-.v1.agent" + ".GetApplicationConfigurationResponse\"\000\022j" + "\n\025GetAgentConfiguration\022&.v1.agent.GetAg" + "entConfigurationRequest\032\'.v1.agent.GetAg" + "entConfigurationResponse\"\000\022=\n\006Health\022\027.v" + "1.agent.HealthRequest\032\030.v1.agent.HealthR" + "esponse\"\000\022^\n\021GetCommandRequest\022\".v1.agen" + "t.GetCommandRequestRequest\032#.v1.agent.Ge" + "tCommandRequestResponse\"\000\022r\n\027GetCommandR" + "equestStream\022(.v1.agent.GetCommandReques" + "tStreamRequest\032).v1.agent.GetCommandRequ" + "estStreamResponse\"\0000\001\022d\n\023SendCommandResp" + "onse\022$.v1.agent.SendCommandResponseReque" + "st\032%.v1.agent.SendCommandResponseRespons" + "e\"\000\022V\n\022PostTransformFrame\022\030.v1.model.Tra" + "nsformFrame\032$.v1.agent.PostTransformFram" + "eResponse\"\000\022U\n\016SetBaseFrameID\022\037.v1.agent" + ".SetBaseFrameIDRequest\032 .v1.agent.SetBas" + "eFrameIDResponse\"\000B+Z)github.com/Formant" + "IO/genproto/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, 1587, +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_protos_2fagent_2fv1_2fagent_2eproto_deps[5] = { + &::descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto, + &::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto, + &::descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto, + &::descriptor_table_protos_2fmodel_2fv1_2fintervention_2eproto, + &::descriptor_table_protos_2fmodel_2fv1_2fmath_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_protos_2fagent_2fv1_2fagent_2eproto_sccs[21] = { + &scc_info_GetAgentConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_GetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_GetApplicationConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_GetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_GetCommandRequestRequest_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_GetCommandRequestResponse_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_GetCommandRequestStreamRequest_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_GetCommandRequestStreamResponse_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_GetStreamsConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_GetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_HealthRequest_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_HealthResponse_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_PostDataResponse_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_PostTransformFrameResponse_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_SendCommandResponseRequest_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_SendCommandResponseResponse_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_SetBaseFrameIDRequest_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_SetBaseFrameIDResponse_protos_2fagent_2fv1_2fagent_2eproto.base, + &scc_info_StreamDataResponse_protos_2fagent_2fv1_2fagent_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protos_2fagent_2fv1_2fagent_2eproto_once; +static bool descriptor_table_protos_2fagent_2fv1_2fagent_2eproto_initialized = false; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fagent_2fv1_2fagent_2eproto = { + &descriptor_table_protos_2fagent_2fv1_2fagent_2eproto_initialized, descriptor_table_protodef_protos_2fagent_2fv1_2fagent_2eproto, "protos/agent/v1/agent.proto", 2711, + &descriptor_table_protos_2fagent_2fv1_2fagent_2eproto_once, descriptor_table_protos_2fagent_2fv1_2fagent_2eproto_sccs, descriptor_table_protos_2fagent_2fv1_2fagent_2eproto_deps, 21, 5, + schemas, file_default_instances, TableStruct_protos_2fagent_2fv1_2fagent_2eproto::offsets, + file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto, 21, file_level_enum_descriptors_protos_2fagent_2fv1_2fagent_2eproto, file_level_service_descriptors_protos_2fagent_2fv1_2fagent_2eproto, }; - -void AddDescriptors_protos_2fagent_2fv1_2fagent_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[3] = - { - ::AddDescriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto, - ::AddDescriptors_protos_2fmodel_2fv1_2fintervention_2eproto, - ::AddDescriptors_protos_2fmodel_2fv1_2fconfig_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_protos_2fagent_2fv1_2fagent_2eproto, deps, 3); -} // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_protos_2fagent_2fv1_2fagent_2eproto = []() { AddDescriptors_protos_2fagent_2fv1_2fagent_2eproto(); return true; }(); +static bool dynamic_init_dummy_protos_2fagent_2fv1_2fagent_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_protos_2fagent_2fv1_2fagent_2eproto), true); namespace v1 { namespace agent { @@ -431,20 +695,17 @@ namespace agent { void StreamDataResponse::InitAsDefaultInstance() { } -class StreamDataResponse::HasBitSetters { +class StreamDataResponse::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - StreamDataResponse::StreamDataResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.agent.StreamDataResponse) } StreamDataResponse::StreamDataResponse(const StreamDataResponse& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:v1.agent.StreamDataResponse) @@ -465,97 +726,51 @@ void StreamDataResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } const StreamDataResponse& StreamDataResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StreamDataResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StreamDataResponse_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } void StreamDataResponse::Clear() { // @@protoc_insertion_point(message_clear_start:v1.agent.StreamDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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* StreamDataResponse::_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: { +const char* StreamDataResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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 + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StreamDataResponse::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.StreamDataResponse) - 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.StreamDataResponse) - return true; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.StreamDataResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StreamDataResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.StreamDataResponse) - ::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.StreamDataResponse) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* StreamDataResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* StreamDataResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.agent.StreamDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.agent.StreamDataResponse) return target; @@ -565,29 +780,28 @@ size_t StreamDataResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:v1.agent.StreamDataResponse) 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; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void StreamDataResponse::MergeFrom(const ::google::protobuf::Message& from) { +void StreamDataResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.agent.StreamDataResponse) GOOGLE_DCHECK_NE(&from, this); const StreamDataResponse* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.StreamDataResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.StreamDataResponse) MergeFrom(*source); @@ -598,12 +812,12 @@ void StreamDataResponse::MergeFrom(const StreamDataResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.StreamDataResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; } -void StreamDataResponse::CopyFrom(const ::google::protobuf::Message& from) { +void StreamDataResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.agent.StreamDataResponse) if (&from == this) return; Clear(); @@ -621,18 +835,13 @@ bool StreamDataResponse::IsInitialized() const { return true; } -void StreamDataResponse::Swap(StreamDataResponse* other) { - if (other == this) return; - InternalSwap(other); -} void StreamDataResponse::InternalSwap(StreamDataResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); } -::google::protobuf::Metadata StreamDataResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto); - return ::file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata StreamDataResponse::GetMetadata() const { + return GetMetadataStatic(); } @@ -640,20 +849,17 @@ ::google::protobuf::Metadata StreamDataResponse::GetMetadata() const { void PostDataResponse::InitAsDefaultInstance() { } -class PostDataResponse::HasBitSetters { +class PostDataResponse::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - PostDataResponse::PostDataResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.agent.PostDataResponse) } PostDataResponse::PostDataResponse(const PostDataResponse& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:v1.agent.PostDataResponse) @@ -674,97 +880,51 @@ void PostDataResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } const PostDataResponse& PostDataResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PostDataResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PostDataResponse_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } void PostDataResponse::Clear() { // @@protoc_insertion_point(message_clear_start:v1.agent.PostDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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* PostDataResponse::_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: { +const char* PostDataResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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 + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PostDataResponse::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.PostDataResponse) - 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.PostDataResponse) - return true; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.PostDataResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PostDataResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.PostDataResponse) - ::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.PostDataResponse) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* PostDataResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* PostDataResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.agent.PostDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.agent.PostDataResponse) return target; @@ -774,29 +934,28 @@ size_t PostDataResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:v1.agent.PostDataResponse) 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; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void PostDataResponse::MergeFrom(const ::google::protobuf::Message& from) { +void PostDataResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.agent.PostDataResponse) GOOGLE_DCHECK_NE(&from, this); const PostDataResponse* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.PostDataResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.PostDataResponse) MergeFrom(*source); @@ -807,12 +966,12 @@ void PostDataResponse::MergeFrom(const PostDataResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.PostDataResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; } -void PostDataResponse::CopyFrom(const ::google::protobuf::Message& from) { +void PostDataResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.agent.PostDataResponse) if (&from == this) return; Clear(); @@ -830,18 +989,13 @@ bool PostDataResponse::IsInitialized() const { return true; } -void PostDataResponse::Swap(PostDataResponse* other) { - if (other == this) return; - InternalSwap(other); -} void PostDataResponse::InternalSwap(PostDataResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); } -::google::protobuf::Metadata PostDataResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fagent_2fv1_2fagent_2eproto); - return ::file_level_metadata_protos_2fagent_2fv1_2fagent_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata PostDataResponse::GetMetadata() const { + return GetMetadataStatic(); } @@ -849,34 +1003,29 @@ ::google::protobuf::Metadata PostDataResponse::GetMetadata() const { void GetInterventionRequestRequest::InitAsDefaultInstance() { } -class GetInterventionRequestRequest::HasBitSetters { +class GetInterventionRequestRequest::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetInterventionRequestRequest::kIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - GetInterventionRequestRequest::GetInterventionRequestRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.agent.GetInterventionRequestRequest) } GetInterventionRequestRequest::GetInterventionRequestRequest(const GetInterventionRequestRequest& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::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_); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_id().empty()) { + id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.id_); } // @@protoc_insertion_point(copy_constructor:v1.agent.GetInterventionRequestRequest) } void GetInterventionRequestRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto.base); - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } GetInterventionRequestRequest::~GetInterventionRequestRequest() { @@ -885,170 +1034,83 @@ GetInterventionRequestRequest::~GetInterventionRequestRequest() { } void GetInterventionRequestRequest::SharedDtor() { - id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void GetInterventionRequestRequest::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); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetInterventionRequestRequest_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } void GetInterventionRequestRequest::Clear() { // @@protoc_insertion_point(message_clear_start:v1.agent.GetInterventionRequestRequest) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetInterventionRequestRequest::_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); +const char* GetInterventionRequestRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(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; - } + // string id = 1[json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.agent.GetInterventionRequestRequest.id")); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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( - ::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) - 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; - } - } - } success: - // @@protoc_insertion_point(parse_success:v1.agent.GetInterventionRequestRequest) - return true; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetInterventionRequestRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetInterventionRequestRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@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.GetInterventionRequestRequest) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* GetInterventionRequestRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* GetInterventionRequestRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetInterventionRequestRequest) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string id = 1; + // string id = 1[json_name = "id"]; if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.agent.GetInterventionRequestRequest.id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->id(), target); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetInterventionRequestRequest) return target; @@ -1058,36 +1120,35 @@ 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()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1; + // string id = 1[json_name = "id"]; if (this->id().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->id()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void GetInterventionRequestRequest::MergeFrom(const ::google::protobuf::Message& from) { +void GetInterventionRequestRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetInterventionRequestRequest) GOOGLE_DCHECK_NE(&from, this); const GetInterventionRequestRequest* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetInterventionRequestRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetInterventionRequestRequest) MergeFrom(*source); @@ -1098,16 +1159,16 @@ void GetInterventionRequestRequest::MergeFrom(const GetInterventionRequestReques // @@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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.id().size() > 0) { - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.id_); } } -void GetInterventionRequestRequest::CopyFrom(const ::google::protobuf::Message& from) { +void GetInterventionRequestRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetInterventionRequestRequest) if (&from == this) return; Clear(); @@ -1125,20 +1186,15 @@ bool GetInterventionRequestRequest::IsInitialized() const { return true; } -void GetInterventionRequestRequest::Swap(GetInterventionRequestRequest* other) { - if (other == this) return; - InternalSwap(other); -} void GetInterventionRequestRequest::InternalSwap(GetInterventionRequestRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -::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]; +::PROTOBUF_NAMESPACE_ID::Metadata GetInterventionRequestRequest::GetMetadata() const { + return GetMetadataStatic(); } @@ -1146,34 +1202,29 @@ ::google::protobuf::Metadata GetInterventionRequestRequest::GetMetadata() const void GetInterventionResponseRequest::InitAsDefaultInstance() { } -class GetInterventionResponseRequest::HasBitSetters { +class GetInterventionResponseRequest::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetInterventionResponseRequest::kRequestIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - GetInterventionResponseRequest::GetInterventionResponseRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.agent.GetInterventionResponseRequest) } GetInterventionResponseRequest::GetInterventionResponseRequest(const GetInterventionResponseRequest& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::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_); + request_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_request_id().empty()) { + request_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.request_id_); } // @@protoc_insertion_point(copy_constructor:v1.agent.GetInterventionResponseRequest) } void GetInterventionResponseRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto.base); - request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + request_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } GetInterventionResponseRequest::~GetInterventionResponseRequest() { @@ -1182,209 +1233,121 @@ GetInterventionResponseRequest::~GetInterventionResponseRequest() { } void GetInterventionResponseRequest::SharedDtor() { - request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + request_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void GetInterventionResponseRequest::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); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetInterventionResponseRequest_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } void GetInterventionResponseRequest::Clear() { // @@protoc_insertion_point(message_clear_start:v1.agent.GetInterventionResponseRequest) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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()); + request_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetInterventionResponseRequest::_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); +const char* GetInterventionResponseRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(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; - } + // string request_id = 1[json_name = "requestId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_request_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.agent.GetInterventionResponseRequest.request_id")); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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( - ::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) - 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; - 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")); - } 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.agent.GetInterventionResponseRequest) - return true; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetInterventionResponseRequest) - return false; -#undef DO_ + ptr = nullptr; + goto success; +#undef CHK_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void GetInterventionResponseRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetInterventionResponseRequest) - ::google::protobuf::uint32 cached_has_bits = 0; +::PROTOBUF_NAMESPACE_ID::uint8* GetInterventionResponseRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetInterventionResponseRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string request_id = 1; + // string request_id = 1[json_name = "requestId"]; 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, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_request_id().data(), static_cast(this->_internal_request_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.agent.GetInterventionResponseRequest.request_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->request_id(), output); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_request_id(), target); } - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } - // @@protoc_insertion_point(serialize_end:v1.agent.GetInterventionResponseRequest) -} - -::google::protobuf::uint8* GetInterventionResponseRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetInterventionResponseRequest) - ::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); - } - - 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) - return target; + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetInterventionResponseRequest) + return target; } 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()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string request_id = 1; + // string request_id = 1[json_name = "requestId"]; if (this->request_id().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->request_id()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_request_id()); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void GetInterventionResponseRequest::MergeFrom(const ::google::protobuf::Message& from) { +void GetInterventionResponseRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetInterventionResponseRequest) GOOGLE_DCHECK_NE(&from, this); const GetInterventionResponseRequest* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetInterventionResponseRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetInterventionResponseRequest) MergeFrom(*source); @@ -1395,16 +1358,16 @@ void GetInterventionResponseRequest::MergeFrom(const GetInterventionResponseRequ // @@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; + ::PROTOBUF_NAMESPACE_ID::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_); + request_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.request_id_); } } -void GetInterventionResponseRequest::CopyFrom(const ::google::protobuf::Message& from) { +void GetInterventionResponseRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetInterventionResponseRequest) if (&from == this) return; Clear(); @@ -1422,20 +1385,15 @@ bool GetInterventionResponseRequest::IsInitialized() const { return true; } -void GetInterventionResponseRequest::Swap(GetInterventionResponseRequest* other) { - if (other == this) return; - InternalSwap(other); -} void GetInterventionResponseRequest::InternalSwap(GetInterventionResponseRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - request_id_.Swap(&other->request_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + request_id_.Swap(&other->request_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -::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]; +::PROTOBUF_NAMESPACE_ID::Metadata GetInterventionResponseRequest::GetMetadata() const { + return GetMetadataStatic(); } @@ -1443,20 +1401,17 @@ ::google::protobuf::Metadata GetInterventionResponseRequest::GetMetadata() const void GetStreamsConfigurationRequest::InitAsDefaultInstance() { } -class GetStreamsConfigurationRequest::HasBitSetters { +class GetStreamsConfigurationRequest::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - GetStreamsConfigurationRequest::GetStreamsConfigurationRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.agent.GetStreamsConfigurationRequest) } GetStreamsConfigurationRequest::GetStreamsConfigurationRequest(const GetStreamsConfigurationRequest& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:v1.agent.GetStreamsConfigurationRequest) @@ -1477,97 +1432,51 @@ void GetStreamsConfigurationRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } const GetStreamsConfigurationRequest& GetStreamsConfigurationRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetStreamsConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetStreamsConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } void GetStreamsConfigurationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:v1.agent.GetStreamsConfigurationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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* GetStreamsConfigurationRequest::_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: { +const char* GetStreamsConfigurationRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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 + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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.GetStreamsConfigurationRequest) - 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.GetStreamsConfigurationRequest) - return true; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetStreamsConfigurationRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetStreamsConfigurationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetStreamsConfigurationRequest) - ::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.GetStreamsConfigurationRequest) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* GetStreamsConfigurationRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* GetStreamsConfigurationRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetStreamsConfigurationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetStreamsConfigurationRequest) return target; @@ -1577,29 +1486,28 @@ 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()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void GetStreamsConfigurationRequest::MergeFrom(const ::google::protobuf::Message& from) { +void GetStreamsConfigurationRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetStreamsConfigurationRequest) GOOGLE_DCHECK_NE(&from, this); const GetStreamsConfigurationRequest* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetStreamsConfigurationRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetStreamsConfigurationRequest) MergeFrom(*source); @@ -1610,12 +1518,12 @@ void GetStreamsConfigurationRequest::MergeFrom(const GetStreamsConfigurationRequ // @@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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; } -void GetStreamsConfigurationRequest::CopyFrom(const ::google::protobuf::Message& from) { +void GetStreamsConfigurationRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetStreamsConfigurationRequest) if (&from == this) return; Clear(); @@ -1633,18 +1541,13 @@ bool GetStreamsConfigurationRequest::IsInitialized() const { return true; } -void GetStreamsConfigurationRequest::Swap(GetStreamsConfigurationRequest* other) { - if (other == this) return; - InternalSwap(other); -} void GetStreamsConfigurationRequest::InternalSwap(GetStreamsConfigurationRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); } -::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]; +::PROTOBUF_NAMESPACE_ID::Metadata GetStreamsConfigurationRequest::GetMetadata() const { + return GetMetadataStatic(); } @@ -1652,24 +1555,20 @@ ::google::protobuf::Metadata GetStreamsConfigurationRequest::GetMetadata() const void GetStreamsConfigurationResponse::InitAsDefaultInstance() { } -class GetStreamsConfigurationResponse::HasBitSetters { +class GetStreamsConfigurationResponse::_Internal { public: }; void GetStreamsConfigurationResponse::clear_streams() { streams_.Clear(); } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetStreamsConfigurationResponse::kStreamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - GetStreamsConfigurationResponse::GetStreamsConfigurationResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.agent.GetStreamsConfigurationResponse) } GetStreamsConfigurationResponse::GetStreamsConfigurationResponse(const GetStreamsConfigurationResponse& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), streams_(from.streams_) { _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -1677,8 +1576,7 @@ GetStreamsConfigurationResponse::GetStreamsConfigurationResponse(const GetStream } void GetStreamsConfigurationResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); } GetStreamsConfigurationResponse::~GetStreamsConfigurationResponse() { @@ -1693,14 +1591,14 @@ void GetStreamsConfigurationResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } const GetStreamsConfigurationResponse& GetStreamsConfigurationResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetStreamsConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } void GetStreamsConfigurationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:v1.agent.GetStreamsConfigurationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1708,136 +1606,62 @@ void GetStreamsConfigurationResponse::Clear() { _internal_metadata_.Clear(); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetStreamsConfigurationResponse::_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); +const char* GetStreamsConfigurationResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(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; - } + // repeated .v1.model.StreamConfiguration streams = 1[json_name = "streams"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_streams(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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 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.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.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; - } - - 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.agent.GetStreamsConfigurationResponse) - return true; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetStreamsConfigurationResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetStreamsConfigurationResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetStreamsConfigurationResponse) - ::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); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:v1.agent.GetStreamsConfigurationResponse) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* GetStreamsConfigurationResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* GetStreamsConfigurationResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetStreamsConfigurationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .v1.model.StreamConfiguration streams = 1; + // repeated .v1.model.StreamConfiguration streams = 1[json_name = "streams"]; 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); + n = static_cast(this->_internal_streams_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_streams(i), target, stream); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetStreamsConfigurationResponse) return target; @@ -1847,40 +1671,35 @@ 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()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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))); - } + // repeated .v1.model.StreamConfiguration streams = 1[json_name = "streams"]; + total_size += 1UL * this->_internal_streams_size(); + for (const auto& msg : this->streams_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void GetStreamsConfigurationResponse::MergeFrom(const ::google::protobuf::Message& from) { +void GetStreamsConfigurationResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetStreamsConfigurationResponse) GOOGLE_DCHECK_NE(&from, this); const GetStreamsConfigurationResponse* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetStreamsConfigurationResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetStreamsConfigurationResponse) MergeFrom(*source); @@ -1891,13 +1710,13 @@ void GetStreamsConfigurationResponse::MergeFrom(const GetStreamsConfigurationRes // @@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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; streams_.MergeFrom(from.streams_); } -void GetStreamsConfigurationResponse::CopyFrom(const ::google::protobuf::Message& from) { +void GetStreamsConfigurationResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetStreamsConfigurationResponse) if (&from == this) return; Clear(); @@ -1915,19 +1734,14 @@ bool GetStreamsConfigurationResponse::IsInitialized() const { return true; } -void GetStreamsConfigurationResponse::Swap(GetStreamsConfigurationResponse* other) { - if (other == this) return; - InternalSwap(other); -} void GetStreamsConfigurationResponse::InternalSwap(GetStreamsConfigurationResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&streams_)->InternalSwap(CastToBase(&other->streams_)); + streams_.InternalSwap(&other->streams_); } -::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]; +::PROTOBUF_NAMESPACE_ID::Metadata GetStreamsConfigurationResponse::GetMetadata() const { + return GetMetadataStatic(); } @@ -1935,20 +1749,17 @@ ::google::protobuf::Metadata GetStreamsConfigurationResponse::GetMetadata() cons void GetApplicationConfigurationRequest::InitAsDefaultInstance() { } -class GetApplicationConfigurationRequest::HasBitSetters { +class GetApplicationConfigurationRequest::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - GetApplicationConfigurationRequest::GetApplicationConfigurationRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.agent.GetApplicationConfigurationRequest) } GetApplicationConfigurationRequest::GetApplicationConfigurationRequest(const GetApplicationConfigurationRequest& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:v1.agent.GetApplicationConfigurationRequest) @@ -1969,97 +1780,51 @@ void GetApplicationConfigurationRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } const GetApplicationConfigurationRequest& GetApplicationConfigurationRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetApplicationConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetApplicationConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } void GetApplicationConfigurationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:v1.agent.GetApplicationConfigurationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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* GetApplicationConfigurationRequest::_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: { +const char* GetApplicationConfigurationRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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 + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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.GetApplicationConfigurationRequest) - 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.GetApplicationConfigurationRequest) - return true; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetApplicationConfigurationRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetApplicationConfigurationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetApplicationConfigurationRequest) - ::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.GetApplicationConfigurationRequest) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* GetApplicationConfigurationRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* GetApplicationConfigurationRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetApplicationConfigurationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetApplicationConfigurationRequest) return target; @@ -2069,29 +1834,28 @@ 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()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void GetApplicationConfigurationRequest::MergeFrom(const ::google::protobuf::Message& from) { +void GetApplicationConfigurationRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetApplicationConfigurationRequest) GOOGLE_DCHECK_NE(&from, this); const GetApplicationConfigurationRequest* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetApplicationConfigurationRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetApplicationConfigurationRequest) MergeFrom(*source); @@ -2102,12 +1866,12 @@ void GetApplicationConfigurationRequest::MergeFrom(const GetApplicationConfigura // @@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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; } -void GetApplicationConfigurationRequest::CopyFrom(const ::google::protobuf::Message& from) { +void GetApplicationConfigurationRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetApplicationConfigurationRequest) if (&from == this) return; Clear(); @@ -2125,18 +1889,13 @@ bool GetApplicationConfigurationRequest::IsInitialized() const { return true; } -void GetApplicationConfigurationRequest::Swap(GetApplicationConfigurationRequest* other) { - if (other == this) return; - InternalSwap(other); -} void GetApplicationConfigurationRequest::InternalSwap(GetApplicationConfigurationRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); } -::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]; +::PROTOBUF_NAMESPACE_ID::Metadata GetApplicationConfigurationRequest::GetMetadata() const { + return GetMetadataStatic(); } @@ -2146,13 +1905,13 @@ void GetApplicationConfigurationResponse::InitAsDefaultInstance() { ::v1::agent::_GetApplicationConfigurationResponse_default_instance_._instance.get_mutable()->configuration_ = const_cast< ::v1::model::ApplicationConfiguration*>( ::v1::model::ApplicationConfiguration::internal_default_instance()); } -class GetApplicationConfigurationResponse::HasBitSetters { +class GetApplicationConfigurationResponse::_Internal { public: static const ::v1::model::ApplicationConfiguration& configuration(const GetApplicationConfigurationResponse* msg); }; const ::v1::model::ApplicationConfiguration& -GetApplicationConfigurationResponse::HasBitSetters::configuration(const GetApplicationConfigurationResponse* msg) { +GetApplicationConfigurationResponse::_Internal::configuration(const GetApplicationConfigurationResponse* msg) { return *msg->configuration_; } void GetApplicationConfigurationResponse::clear_configuration() { @@ -2161,20 +1920,16 @@ void GetApplicationConfigurationResponse::clear_configuration() { } configuration_ = nullptr; } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetApplicationConfigurationResponse::kConfigurationFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - GetApplicationConfigurationResponse::GetApplicationConfigurationResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.agent.GetApplicationConfigurationResponse) } GetApplicationConfigurationResponse::GetApplicationConfigurationResponse(const GetApplicationConfigurationResponse& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_configuration()) { + if (from._internal_has_configuration()) { configuration_ = new ::v1::model::ApplicationConfiguration(*from.configuration_); } else { configuration_ = nullptr; @@ -2183,8 +1938,7 @@ GetApplicationConfigurationResponse::GetApplicationConfigurationResponse(const G } void GetApplicationConfigurationResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); configuration_ = nullptr; } @@ -2201,14 +1955,14 @@ void GetApplicationConfigurationResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } const GetApplicationConfigurationResponse& GetApplicationConfigurationResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetApplicationConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } void GetApplicationConfigurationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:v1.agent.GetApplicationConfigurationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2219,129 +1973,57 @@ void GetApplicationConfigurationResponse::Clear() { _internal_metadata_.Clear(); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetApplicationConfigurationResponse::_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); +const char* GetApplicationConfigurationResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { - // .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); - 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; - } + // .v1.model.ApplicationConfiguration configuration = 1[json_name = "configuration"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_configuration(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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 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.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)) { - // .v1.model.ApplicationConfiguration configuration = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_configuration())); - } 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.agent.GetApplicationConfigurationResponse) - return true; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetApplicationConfigurationResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetApplicationConfigurationResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetApplicationConfigurationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .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.GetApplicationConfigurationResponse) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* GetApplicationConfigurationResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* GetApplicationConfigurationResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetApplicationConfigurationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .v1.model.ApplicationConfiguration configuration = 1; + // .v1.model.ApplicationConfiguration configuration = 1[json_name = "configuration"]; if (this->has_configuration()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::configuration(this), target); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::configuration(this), target, stream); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetApplicationConfigurationResponse) return target; @@ -2351,36 +2033,35 @@ 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()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .v1.model.ApplicationConfiguration configuration = 1; + // .v1.model.ApplicationConfiguration configuration = 1[json_name = "configuration"]; if (this->has_configuration()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *configuration_); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void GetApplicationConfigurationResponse::MergeFrom(const ::google::protobuf::Message& from) { +void GetApplicationConfigurationResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetApplicationConfigurationResponse) GOOGLE_DCHECK_NE(&from, this); const GetApplicationConfigurationResponse* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetApplicationConfigurationResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetApplicationConfigurationResponse) MergeFrom(*source); @@ -2391,15 +2072,15 @@ void GetApplicationConfigurationResponse::MergeFrom(const GetApplicationConfigur // @@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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_configuration()) { - mutable_configuration()->::v1::model::ApplicationConfiguration::MergeFrom(from.configuration()); + _internal_mutable_configuration()->::v1::model::ApplicationConfiguration::MergeFrom(from._internal_configuration()); } } -void GetApplicationConfigurationResponse::CopyFrom(const ::google::protobuf::Message& from) { +void GetApplicationConfigurationResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetApplicationConfigurationResponse) if (&from == this) return; Clear(); @@ -2417,19 +2098,14 @@ bool GetApplicationConfigurationResponse::IsInitialized() const { return true; } -void GetApplicationConfigurationResponse::Swap(GetApplicationConfigurationResponse* other) { - if (other == this) return; - InternalSwap(other); -} void GetApplicationConfigurationResponse::InternalSwap(GetApplicationConfigurationResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); swap(configuration_, other->configuration_); } -::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]; +::PROTOBUF_NAMESPACE_ID::Metadata GetApplicationConfigurationResponse::GetMetadata() const { + return GetMetadataStatic(); } @@ -2437,20 +2113,17 @@ ::google::protobuf::Metadata GetApplicationConfigurationResponse::GetMetadata() void GetAgentConfigurationRequest::InitAsDefaultInstance() { } -class GetAgentConfigurationRequest::HasBitSetters { +class GetAgentConfigurationRequest::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - GetAgentConfigurationRequest::GetAgentConfigurationRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.agent.GetAgentConfigurationRequest) } GetAgentConfigurationRequest::GetAgentConfigurationRequest(const GetAgentConfigurationRequest& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:v1.agent.GetAgentConfigurationRequest) @@ -2471,97 +2144,51 @@ void GetAgentConfigurationRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } const GetAgentConfigurationRequest& GetAgentConfigurationRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetAgentConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetAgentConfigurationRequest_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } void GetAgentConfigurationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:v1.agent.GetAgentConfigurationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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* GetAgentConfigurationRequest::_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: { +const char* GetAgentConfigurationRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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 + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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.GetAgentConfigurationRequest) - 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.GetAgentConfigurationRequest) - return true; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetAgentConfigurationRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetAgentConfigurationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetAgentConfigurationRequest) - ::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.GetAgentConfigurationRequest) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* GetAgentConfigurationRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* GetAgentConfigurationRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetAgentConfigurationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetAgentConfigurationRequest) return target; @@ -2571,29 +2198,28 @@ 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()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void GetAgentConfigurationRequest::MergeFrom(const ::google::protobuf::Message& from) { +void GetAgentConfigurationRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetAgentConfigurationRequest) GOOGLE_DCHECK_NE(&from, this); const GetAgentConfigurationRequest* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetAgentConfigurationRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetAgentConfigurationRequest) MergeFrom(*source); @@ -2604,12 +2230,12 @@ void GetAgentConfigurationRequest::MergeFrom(const GetAgentConfigurationRequest& // @@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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; } -void GetAgentConfigurationRequest::CopyFrom(const ::google::protobuf::Message& from) { +void GetAgentConfigurationRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetAgentConfigurationRequest) if (&from == this) return; Clear(); @@ -2627,18 +2253,13 @@ bool GetAgentConfigurationRequest::IsInitialized() const { return true; } -void GetAgentConfigurationRequest::Swap(GetAgentConfigurationRequest* other) { - if (other == this) return; - InternalSwap(other); -} void GetAgentConfigurationRequest::InternalSwap(GetAgentConfigurationRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); } -::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]; +::PROTOBUF_NAMESPACE_ID::Metadata GetAgentConfigurationRequest::GetMetadata() const { + return GetMetadataStatic(); } @@ -2648,13 +2269,13 @@ void GetAgentConfigurationResponse::InitAsDefaultInstance() { ::v1::agent::_GetAgentConfigurationResponse_default_instance_._instance.get_mutable()->configuration_ = const_cast< ::v1::model::AgentConfiguration*>( ::v1::model::AgentConfiguration::internal_default_instance()); } -class GetAgentConfigurationResponse::HasBitSetters { +class GetAgentConfigurationResponse::_Internal { public: static const ::v1::model::AgentConfiguration& configuration(const GetAgentConfigurationResponse* msg); }; const ::v1::model::AgentConfiguration& -GetAgentConfigurationResponse::HasBitSetters::configuration(const GetAgentConfigurationResponse* msg) { +GetAgentConfigurationResponse::_Internal::configuration(const GetAgentConfigurationResponse* msg) { return *msg->configuration_; } void GetAgentConfigurationResponse::clear_configuration() { @@ -2663,20 +2284,16 @@ void GetAgentConfigurationResponse::clear_configuration() { } configuration_ = nullptr; } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetAgentConfigurationResponse::kConfigurationFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - GetAgentConfigurationResponse::GetAgentConfigurationResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.agent.GetAgentConfigurationResponse) } GetAgentConfigurationResponse::GetAgentConfigurationResponse(const GetAgentConfigurationResponse& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_configuration()) { + if (from._internal_has_configuration()) { configuration_ = new ::v1::model::AgentConfiguration(*from.configuration_); } else { configuration_ = nullptr; @@ -2685,8 +2302,7 @@ GetAgentConfigurationResponse::GetAgentConfigurationResponse(const GetAgentConfi } void GetAgentConfigurationResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); configuration_ = nullptr; } @@ -2703,14 +2319,14 @@ void GetAgentConfigurationResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } const GetAgentConfigurationResponse& GetAgentConfigurationResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetAgentConfigurationResponse_protos_2fagent_2fv1_2fagent_2eproto.base); return *internal_default_instance(); } void GetAgentConfigurationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:v1.agent.GetAgentConfigurationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2721,129 +2337,57 @@ void GetAgentConfigurationResponse::Clear() { _internal_metadata_.Clear(); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetAgentConfigurationResponse::_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); +const char* GetAgentConfigurationResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { - // .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); - 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; - } + // .v1.model.AgentConfiguration configuration = 1[json_name = "configuration"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_configuration(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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 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.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)) { - // .v1.model.AgentConfiguration configuration = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_configuration())); - } 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.agent.GetAgentConfigurationResponse) - return true; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.GetAgentConfigurationResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetAgentConfigurationResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.agent.GetAgentConfigurationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .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.GetAgentConfigurationResponse) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* GetAgentConfigurationResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* GetAgentConfigurationResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetAgentConfigurationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .v1.model.AgentConfiguration configuration = 1; + // .v1.model.AgentConfiguration configuration = 1[json_name = "configuration"]; if (this->has_configuration()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::configuration(this), target); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::configuration(this), target, stream); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetAgentConfigurationResponse) return target; @@ -2853,36 +2397,35 @@ 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()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .v1.model.AgentConfiguration configuration = 1; + // .v1.model.AgentConfiguration configuration = 1[json_name = "configuration"]; if (this->has_configuration()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *configuration_); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void GetAgentConfigurationResponse::MergeFrom(const ::google::protobuf::Message& from) { +void GetAgentConfigurationResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetAgentConfigurationResponse) GOOGLE_DCHECK_NE(&from, this); const GetAgentConfigurationResponse* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetAgentConfigurationResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetAgentConfigurationResponse) MergeFrom(*source); @@ -2893,15 +2436,15 @@ void GetAgentConfigurationResponse::MergeFrom(const GetAgentConfigurationRespons // @@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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_configuration()) { - mutable_configuration()->::v1::model::AgentConfiguration::MergeFrom(from.configuration()); + _internal_mutable_configuration()->::v1::model::AgentConfiguration::MergeFrom(from._internal_configuration()); } } -void GetAgentConfigurationResponse::CopyFrom(const ::google::protobuf::Message& from) { +void GetAgentConfigurationResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetAgentConfigurationResponse) if (&from == this) return; Clear(); @@ -2919,19 +2462,14 @@ bool GetAgentConfigurationResponse::IsInitialized() const { return true; } -void GetAgentConfigurationResponse::Swap(GetAgentConfigurationResponse* other) { - if (other == this) return; - InternalSwap(other); -} void GetAgentConfigurationResponse::InternalSwap(GetAgentConfigurationResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); swap(configuration_, other->configuration_); } -::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]; +::PROTOBUF_NAMESPACE_ID::Metadata GetAgentConfigurationResponse::GetMetadata() const { + return GetMetadataStatic(); } @@ -2939,20 +2477,17 @@ ::google::protobuf::Metadata GetAgentConfigurationResponse::GetMetadata() const void HealthRequest::InitAsDefaultInstance() { } -class HealthRequest::HasBitSetters { +class HealthRequest::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - HealthRequest::HealthRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.agent.HealthRequest) } HealthRequest::HealthRequest(const HealthRequest& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:v1.agent.HealthRequest) @@ -2973,97 +2508,51 @@ 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); + ::PROTOBUF_NAMESPACE_ID::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; + ::PROTOBUF_NAMESPACE_ID::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: { +const char* HealthRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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 + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } // 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; + return ptr; 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) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* HealthRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* HealthRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.agent.HealthRequest) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.agent.HealthRequest) return target; @@ -3073,29 +2562,28 @@ 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; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void HealthRequest::MergeFrom(const ::google::protobuf::Message& from) { +void HealthRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.agent.HealthRequest) GOOGLE_DCHECK_NE(&from, this); const HealthRequest* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.HealthRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.HealthRequest) MergeFrom(*source); @@ -3106,12 +2594,12 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; } -void HealthRequest::CopyFrom(const ::google::protobuf::Message& from) { +void HealthRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.agent.HealthRequest) if (&from == this) return; Clear(); @@ -3129,18 +2617,13 @@ 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]; +::PROTOBUF_NAMESPACE_ID::Metadata HealthRequest::GetMetadata() const { + return GetMetadataStatic(); } @@ -3148,20 +2631,17 @@ ::google::protobuf::Metadata HealthRequest::GetMetadata() const { void HealthResponse::InitAsDefaultInstance() { } -class HealthResponse::HasBitSetters { +class HealthResponse::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - HealthResponse::HealthResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.agent.HealthResponse) } HealthResponse::HealthResponse(const HealthResponse& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:v1.agent.HealthResponse) @@ -3182,97 +2662,51 @@ 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); + ::PROTOBUF_NAMESPACE_ID::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; + ::PROTOBUF_NAMESPACE_ID::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: { +const char* HealthResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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 + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } // 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; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.agent.HealthResponse) - return false; -#undef DO_ + ptr = nullptr; + goto success; +#undef CHK_ } -#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 { +::PROTOBUF_NAMESPACE_ID::uint8* HealthResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.agent.HealthResponse) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.agent.HealthResponse) return target; @@ -3282,29 +2716,28 @@ 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; + ::PROTOBUF_NAMESPACE_ID::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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void HealthResponse::MergeFrom(const ::google::protobuf::Message& from) { +void HealthResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.agent.HealthResponse) GOOGLE_DCHECK_NE(&from, this); const HealthResponse* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.HealthResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.HealthResponse) MergeFrom(*source); @@ -3315,12 +2748,12 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; } -void HealthResponse::CopyFrom(const ::google::protobuf::Message& from) { +void HealthResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.agent.HealthResponse) if (&from == this) return; Clear(); @@ -3338,64 +2771,1767 @@ 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]; +::PROTOBUF_NAMESPACE_ID::Metadata HealthResponse::GetMetadata() const { + return GetMetadataStatic(); } -// @@protoc_insertion_point(namespace_scope) -} // namespace agent -} // namespace v1 -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::v1::agent::StreamDataResponse* Arena::CreateMaybeMessage< ::v1::agent::StreamDataResponse >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::StreamDataResponse >(arena); -} -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::GetInterventionRequestRequest* Arena::CreateMaybeMessage< ::v1::agent::GetInterventionRequestRequest >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetInterventionRequestRequest >(arena); +// =================================================================== + +void GetCommandRequestRequest::InitAsDefaultInstance() { } -template<> PROTOBUF_NOINLINE ::v1::agent::GetInterventionResponseRequest* Arena::CreateMaybeMessage< ::v1::agent::GetInterventionResponseRequest >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetInterventionResponseRequest >(arena); +class GetCommandRequestRequest::_Internal { + public: +}; + +GetCommandRequestRequest::GetCommandRequestRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.agent.GetCommandRequestRequest) } -template<> PROTOBUF_NOINLINE ::v1::agent::GetStreamsConfigurationRequest* Arena::CreateMaybeMessage< ::v1::agent::GetStreamsConfigurationRequest >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetStreamsConfigurationRequest >(arena); +GetCommandRequestRequest::GetCommandRequestRequest(const GetCommandRequestRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + command_filter_(from.command_filter_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:v1.agent.GetCommandRequestRequest) } -template<> PROTOBUF_NOINLINE ::v1::agent::GetStreamsConfigurationResponse* Arena::CreateMaybeMessage< ::v1::agent::GetStreamsConfigurationResponse >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetStreamsConfigurationResponse >(arena); + +void GetCommandRequestRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetCommandRequestRequest_protos_2fagent_2fv1_2fagent_2eproto.base); } -template<> PROTOBUF_NOINLINE ::v1::agent::GetApplicationConfigurationRequest* Arena::CreateMaybeMessage< ::v1::agent::GetApplicationConfigurationRequest >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetApplicationConfigurationRequest >(arena); + +GetCommandRequestRequest::~GetCommandRequestRequest() { + // @@protoc_insertion_point(destructor:v1.agent.GetCommandRequestRequest) + SharedDtor(); } -template<> PROTOBUF_NOINLINE ::v1::agent::GetApplicationConfigurationResponse* Arena::CreateMaybeMessage< ::v1::agent::GetApplicationConfigurationResponse >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetApplicationConfigurationResponse >(arena); + +void GetCommandRequestRequest::SharedDtor() { } -template<> PROTOBUF_NOINLINE ::v1::agent::GetAgentConfigurationRequest* Arena::CreateMaybeMessage< ::v1::agent::GetAgentConfigurationRequest >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetAgentConfigurationRequest >(arena); + +void GetCommandRequestRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -template<> PROTOBUF_NOINLINE ::v1::agent::GetAgentConfigurationResponse* Arena::CreateMaybeMessage< ::v1::agent::GetAgentConfigurationResponse >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::GetAgentConfigurationResponse >(arena); +const GetCommandRequestRequest& GetCommandRequestRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetCommandRequestRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + return *internal_default_instance(); } -template<> PROTOBUF_NOINLINE ::v1::agent::HealthRequest* Arena::CreateMaybeMessage< ::v1::agent::HealthRequest >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::HealthRequest >(arena); + + +void GetCommandRequestRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.GetCommandRequestRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + command_filter_.Clear(); + _internal_metadata_.Clear(); } -template<> PROTOBUF_NOINLINE ::v1::agent::HealthResponse* Arena::CreateMaybeMessage< ::v1::agent::HealthResponse >(Arena* arena) { - return Arena::CreateInternal< ::v1::agent::HealthResponse >(arena); + +const char* GetCommandRequestRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated string command_filter = 1[json_name = "commandFilter"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_command_filter(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.agent.GetCommandRequestRequest.command_filter")); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GetCommandRequestRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetCommandRequestRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string command_filter = 1[json_name = "commandFilter"]; + for (int i = 0, n = this->_internal_command_filter_size(); i < n; i++) { + const auto& s = this->_internal_command_filter(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "v1.agent.GetCommandRequestRequest.command_filter"); + target = stream->WriteString(1, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetCommandRequestRequest) + return target; +} + +size_t GetCommandRequestRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetCommandRequestRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string command_filter = 1[json_name = "commandFilter"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(command_filter_.size()); + for (int i = 0, n = command_filter_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + command_filter_.Get(i)); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetCommandRequestRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetCommandRequestRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetCommandRequestRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetCommandRequestRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetCommandRequestRequest) + MergeFrom(*source); + } +} + +void GetCommandRequestRequest::MergeFrom(const GetCommandRequestRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetCommandRequestRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + command_filter_.MergeFrom(from.command_filter_); +} + +void GetCommandRequestRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetCommandRequestRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetCommandRequestRequest::CopyFrom(const GetCommandRequestRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetCommandRequestRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetCommandRequestRequest::IsInitialized() const { + return true; +} + +void GetCommandRequestRequest::InternalSwap(GetCommandRequestRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + command_filter_.InternalSwap(&other->command_filter_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetCommandRequestRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void GetCommandRequestResponse::InitAsDefaultInstance() { + ::v1::agent::_GetCommandRequestResponse_default_instance_._instance.get_mutable()->request_ = const_cast< ::v1::model::CommandRequest*>( + ::v1::model::CommandRequest::internal_default_instance()); +} +class GetCommandRequestResponse::_Internal { + public: + static const ::v1::model::CommandRequest& request(const GetCommandRequestResponse* msg); +}; + +const ::v1::model::CommandRequest& +GetCommandRequestResponse::_Internal::request(const GetCommandRequestResponse* msg) { + return *msg->request_; +} +void GetCommandRequestResponse::clear_request() { + if (GetArenaNoVirtual() == nullptr && request_ != nullptr) { + delete request_; + } + request_ = nullptr; +} +GetCommandRequestResponse::GetCommandRequestResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.agent.GetCommandRequestResponse) +} +GetCommandRequestResponse::GetCommandRequestResponse(const GetCommandRequestResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from._internal_has_request()) { + request_ = new ::v1::model::CommandRequest(*from.request_); + } else { + request_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:v1.agent.GetCommandRequestResponse) +} + +void GetCommandRequestResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetCommandRequestResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + request_ = nullptr; +} + +GetCommandRequestResponse::~GetCommandRequestResponse() { + // @@protoc_insertion_point(destructor:v1.agent.GetCommandRequestResponse) + SharedDtor(); +} + +void GetCommandRequestResponse::SharedDtor() { + if (this != internal_default_instance()) delete request_; +} + +void GetCommandRequestResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetCommandRequestResponse& GetCommandRequestResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetCommandRequestResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void GetCommandRequestResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.GetCommandRequestResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && request_ != nullptr) { + delete request_; + } + request_ = nullptr; + _internal_metadata_.Clear(); +} + +const char* GetCommandRequestResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .v1.model.CommandRequest request = 1[json_name = "request"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_request(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GetCommandRequestResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetCommandRequestResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .v1.model.CommandRequest request = 1[json_name = "request"]; + if (this->has_request()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::request(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetCommandRequestResponse) + return target; +} + +size_t GetCommandRequestResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetCommandRequestResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .v1.model.CommandRequest request = 1[json_name = "request"]; + if (this->has_request()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *request_); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetCommandRequestResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetCommandRequestResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetCommandRequestResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetCommandRequestResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetCommandRequestResponse) + MergeFrom(*source); + } +} + +void GetCommandRequestResponse::MergeFrom(const GetCommandRequestResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetCommandRequestResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_request()) { + _internal_mutable_request()->::v1::model::CommandRequest::MergeFrom(from._internal_request()); + } +} + +void GetCommandRequestResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetCommandRequestResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetCommandRequestResponse::CopyFrom(const GetCommandRequestResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetCommandRequestResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetCommandRequestResponse::IsInitialized() const { + return true; +} + +void GetCommandRequestResponse::InternalSwap(GetCommandRequestResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(request_, other->request_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetCommandRequestResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void SendCommandResponseRequest::InitAsDefaultInstance() { + ::v1::agent::_SendCommandResponseRequest_default_instance_._instance.get_mutable()->response_ = const_cast< ::v1::model::CommandResponse*>( + ::v1::model::CommandResponse::internal_default_instance()); +} +class SendCommandResponseRequest::_Internal { + public: + static const ::v1::model::CommandResponse& response(const SendCommandResponseRequest* msg); +}; + +const ::v1::model::CommandResponse& +SendCommandResponseRequest::_Internal::response(const SendCommandResponseRequest* msg) { + return *msg->response_; +} +void SendCommandResponseRequest::clear_response() { + if (GetArenaNoVirtual() == nullptr && response_ != nullptr) { + delete response_; + } + response_ = nullptr; +} +SendCommandResponseRequest::SendCommandResponseRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.agent.SendCommandResponseRequest) +} +SendCommandResponseRequest::SendCommandResponseRequest(const SendCommandResponseRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from._internal_has_response()) { + response_ = new ::v1::model::CommandResponse(*from.response_); + } else { + response_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:v1.agent.SendCommandResponseRequest) +} + +void SendCommandResponseRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SendCommandResponseRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + response_ = nullptr; +} + +SendCommandResponseRequest::~SendCommandResponseRequest() { + // @@protoc_insertion_point(destructor:v1.agent.SendCommandResponseRequest) + SharedDtor(); +} + +void SendCommandResponseRequest::SharedDtor() { + if (this != internal_default_instance()) delete response_; +} + +void SendCommandResponseRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SendCommandResponseRequest& SendCommandResponseRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendCommandResponseRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void SendCommandResponseRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.SendCommandResponseRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && response_ != nullptr) { + delete response_; + } + response_ = nullptr; + _internal_metadata_.Clear(); +} + +const char* SendCommandResponseRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .v1.model.CommandResponse response = 1[json_name = "response"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_response(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* SendCommandResponseRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.SendCommandResponseRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .v1.model.CommandResponse response = 1[json_name = "response"]; + if (this->has_response()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::response(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.SendCommandResponseRequest) + return target; +} + +size_t SendCommandResponseRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.SendCommandResponseRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .v1.model.CommandResponse response = 1[json_name = "response"]; + if (this->has_response()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *response_); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SendCommandResponseRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.SendCommandResponseRequest) + GOOGLE_DCHECK_NE(&from, this); + const SendCommandResponseRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.SendCommandResponseRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.SendCommandResponseRequest) + MergeFrom(*source); + } +} + +void SendCommandResponseRequest::MergeFrom(const SendCommandResponseRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.SendCommandResponseRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_response()) { + _internal_mutable_response()->::v1::model::CommandResponse::MergeFrom(from._internal_response()); + } +} + +void SendCommandResponseRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.SendCommandResponseRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SendCommandResponseRequest::CopyFrom(const SendCommandResponseRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.SendCommandResponseRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SendCommandResponseRequest::IsInitialized() const { + return true; +} + +void SendCommandResponseRequest::InternalSwap(SendCommandResponseRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(response_, other->response_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SendCommandResponseRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void SendCommandResponseResponse::InitAsDefaultInstance() { +} +class SendCommandResponseResponse::_Internal { + public: +}; + +SendCommandResponseResponse::SendCommandResponseResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.agent.SendCommandResponseResponse) +} +SendCommandResponseResponse::SendCommandResponseResponse(const SendCommandResponseResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:v1.agent.SendCommandResponseResponse) +} + +void SendCommandResponseResponse::SharedCtor() { +} + +SendCommandResponseResponse::~SendCommandResponseResponse() { + // @@protoc_insertion_point(destructor:v1.agent.SendCommandResponseResponse) + SharedDtor(); +} + +void SendCommandResponseResponse::SharedDtor() { +} + +void SendCommandResponseResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SendCommandResponseResponse& SendCommandResponseResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendCommandResponseResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void SendCommandResponseResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.SendCommandResponseResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +const char* SendCommandResponseResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* SendCommandResponseResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.SendCommandResponseResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.SendCommandResponseResponse) + return target; +} + +size_t SendCommandResponseResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.SendCommandResponseResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SendCommandResponseResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.SendCommandResponseResponse) + GOOGLE_DCHECK_NE(&from, this); + const SendCommandResponseResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.SendCommandResponseResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.SendCommandResponseResponse) + MergeFrom(*source); + } +} + +void SendCommandResponseResponse::MergeFrom(const SendCommandResponseResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.SendCommandResponseResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void SendCommandResponseResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.SendCommandResponseResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SendCommandResponseResponse::CopyFrom(const SendCommandResponseResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.SendCommandResponseResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SendCommandResponseResponse::IsInitialized() const { + return true; +} + +void SendCommandResponseResponse::InternalSwap(SendCommandResponseResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SendCommandResponseResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void GetCommandRequestStreamRequest::InitAsDefaultInstance() { +} +class GetCommandRequestStreamRequest::_Internal { + public: +}; + +GetCommandRequestStreamRequest::GetCommandRequestStreamRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.agent.GetCommandRequestStreamRequest) +} +GetCommandRequestStreamRequest::GetCommandRequestStreamRequest(const GetCommandRequestStreamRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + command_filter_(from.command_filter_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:v1.agent.GetCommandRequestStreamRequest) +} + +void GetCommandRequestStreamRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetCommandRequestStreamRequest_protos_2fagent_2fv1_2fagent_2eproto.base); +} + +GetCommandRequestStreamRequest::~GetCommandRequestStreamRequest() { + // @@protoc_insertion_point(destructor:v1.agent.GetCommandRequestStreamRequest) + SharedDtor(); +} + +void GetCommandRequestStreamRequest::SharedDtor() { +} + +void GetCommandRequestStreamRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetCommandRequestStreamRequest& GetCommandRequestStreamRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetCommandRequestStreamRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void GetCommandRequestStreamRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.GetCommandRequestStreamRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + command_filter_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GetCommandRequestStreamRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated string command_filter = 1[json_name = "commandFilter"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_command_filter(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.agent.GetCommandRequestStreamRequest.command_filter")); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GetCommandRequestStreamRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetCommandRequestStreamRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string command_filter = 1[json_name = "commandFilter"]; + for (int i = 0, n = this->_internal_command_filter_size(); i < n; i++) { + const auto& s = this->_internal_command_filter(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "v1.agent.GetCommandRequestStreamRequest.command_filter"); + target = stream->WriteString(1, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetCommandRequestStreamRequest) + return target; +} + +size_t GetCommandRequestStreamRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetCommandRequestStreamRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string command_filter = 1[json_name = "commandFilter"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(command_filter_.size()); + for (int i = 0, n = command_filter_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + command_filter_.Get(i)); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetCommandRequestStreamRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetCommandRequestStreamRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetCommandRequestStreamRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetCommandRequestStreamRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetCommandRequestStreamRequest) + MergeFrom(*source); + } +} + +void GetCommandRequestStreamRequest::MergeFrom(const GetCommandRequestStreamRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetCommandRequestStreamRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + command_filter_.MergeFrom(from.command_filter_); +} + +void GetCommandRequestStreamRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetCommandRequestStreamRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetCommandRequestStreamRequest::CopyFrom(const GetCommandRequestStreamRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetCommandRequestStreamRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetCommandRequestStreamRequest::IsInitialized() const { + return true; +} + +void GetCommandRequestStreamRequest::InternalSwap(GetCommandRequestStreamRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + command_filter_.InternalSwap(&other->command_filter_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetCommandRequestStreamRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void GetCommandRequestStreamResponse::InitAsDefaultInstance() { + ::v1::agent::_GetCommandRequestStreamResponse_default_instance_._instance.get_mutable()->request_ = const_cast< ::v1::model::CommandRequest*>( + ::v1::model::CommandRequest::internal_default_instance()); +} +class GetCommandRequestStreamResponse::_Internal { + public: + static const ::v1::model::CommandRequest& request(const GetCommandRequestStreamResponse* msg); +}; + +const ::v1::model::CommandRequest& +GetCommandRequestStreamResponse::_Internal::request(const GetCommandRequestStreamResponse* msg) { + return *msg->request_; +} +void GetCommandRequestStreamResponse::clear_request() { + if (GetArenaNoVirtual() == nullptr && request_ != nullptr) { + delete request_; + } + request_ = nullptr; +} +GetCommandRequestStreamResponse::GetCommandRequestStreamResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.agent.GetCommandRequestStreamResponse) +} +GetCommandRequestStreamResponse::GetCommandRequestStreamResponse(const GetCommandRequestStreamResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from._internal_has_request()) { + request_ = new ::v1::model::CommandRequest(*from.request_); + } else { + request_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:v1.agent.GetCommandRequestStreamResponse) +} + +void GetCommandRequestStreamResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetCommandRequestStreamResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + request_ = nullptr; +} + +GetCommandRequestStreamResponse::~GetCommandRequestStreamResponse() { + // @@protoc_insertion_point(destructor:v1.agent.GetCommandRequestStreamResponse) + SharedDtor(); +} + +void GetCommandRequestStreamResponse::SharedDtor() { + if (this != internal_default_instance()) delete request_; +} + +void GetCommandRequestStreamResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetCommandRequestStreamResponse& GetCommandRequestStreamResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetCommandRequestStreamResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void GetCommandRequestStreamResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.GetCommandRequestStreamResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && request_ != nullptr) { + delete request_; + } + request_ = nullptr; + _internal_metadata_.Clear(); +} + +const char* GetCommandRequestStreamResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .v1.model.CommandRequest request = 1[json_name = "request"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_request(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GetCommandRequestStreamResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.GetCommandRequestStreamResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .v1.model.CommandRequest request = 1[json_name = "request"]; + if (this->has_request()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::request(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.GetCommandRequestStreamResponse) + return target; +} + +size_t GetCommandRequestStreamResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.GetCommandRequestStreamResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .v1.model.CommandRequest request = 1[json_name = "request"]; + if (this->has_request()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *request_); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetCommandRequestStreamResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.GetCommandRequestStreamResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetCommandRequestStreamResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.GetCommandRequestStreamResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.GetCommandRequestStreamResponse) + MergeFrom(*source); + } +} + +void GetCommandRequestStreamResponse::MergeFrom(const GetCommandRequestStreamResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.GetCommandRequestStreamResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_request()) { + _internal_mutable_request()->::v1::model::CommandRequest::MergeFrom(from._internal_request()); + } +} + +void GetCommandRequestStreamResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.GetCommandRequestStreamResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetCommandRequestStreamResponse::CopyFrom(const GetCommandRequestStreamResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.GetCommandRequestStreamResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetCommandRequestStreamResponse::IsInitialized() const { + return true; +} + +void GetCommandRequestStreamResponse::InternalSwap(GetCommandRequestStreamResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(request_, other->request_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetCommandRequestStreamResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void PostTransformFrameResponse::InitAsDefaultInstance() { +} +class PostTransformFrameResponse::_Internal { + public: +}; + +PostTransformFrameResponse::PostTransformFrameResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.agent.PostTransformFrameResponse) +} +PostTransformFrameResponse::PostTransformFrameResponse(const PostTransformFrameResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:v1.agent.PostTransformFrameResponse) +} + +void PostTransformFrameResponse::SharedCtor() { +} + +PostTransformFrameResponse::~PostTransformFrameResponse() { + // @@protoc_insertion_point(destructor:v1.agent.PostTransformFrameResponse) + SharedDtor(); +} + +void PostTransformFrameResponse::SharedDtor() { +} + +void PostTransformFrameResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PostTransformFrameResponse& PostTransformFrameResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PostTransformFrameResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void PostTransformFrameResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.PostTransformFrameResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +const char* PostTransformFrameResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PostTransformFrameResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.PostTransformFrameResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.PostTransformFrameResponse) + return target; +} + +size_t PostTransformFrameResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.PostTransformFrameResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PostTransformFrameResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.PostTransformFrameResponse) + GOOGLE_DCHECK_NE(&from, this); + const PostTransformFrameResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.PostTransformFrameResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.PostTransformFrameResponse) + MergeFrom(*source); + } +} + +void PostTransformFrameResponse::MergeFrom(const PostTransformFrameResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.PostTransformFrameResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void PostTransformFrameResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.PostTransformFrameResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PostTransformFrameResponse::CopyFrom(const PostTransformFrameResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.PostTransformFrameResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PostTransformFrameResponse::IsInitialized() const { + return true; +} + +void PostTransformFrameResponse::InternalSwap(PostTransformFrameResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PostTransformFrameResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void SetBaseFrameIDRequest::InitAsDefaultInstance() { +} +class SetBaseFrameIDRequest::_Internal { + public: +}; + +SetBaseFrameIDRequest::SetBaseFrameIDRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.agent.SetBaseFrameIDRequest) +} +SetBaseFrameIDRequest::SetBaseFrameIDRequest(const SetBaseFrameIDRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_id().empty()) { + id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.id_); + } + // @@protoc_insertion_point(copy_constructor:v1.agent.SetBaseFrameIDRequest) +} + +void SetBaseFrameIDRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SetBaseFrameIDRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +SetBaseFrameIDRequest::~SetBaseFrameIDRequest() { + // @@protoc_insertion_point(destructor:v1.agent.SetBaseFrameIDRequest) + SharedDtor(); +} + +void SetBaseFrameIDRequest::SharedDtor() { + id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void SetBaseFrameIDRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SetBaseFrameIDRequest& SetBaseFrameIDRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SetBaseFrameIDRequest_protos_2fagent_2fv1_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void SetBaseFrameIDRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.SetBaseFrameIDRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +const char* SetBaseFrameIDRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string id = 1[json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.agent.SetBaseFrameIDRequest.id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* SetBaseFrameIDRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.SetBaseFrameIDRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1[json_name = "id"]; + if (this->id().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "v1.agent.SetBaseFrameIDRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.SetBaseFrameIDRequest) + return target; +} + +size_t SetBaseFrameIDRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.SetBaseFrameIDRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1[json_name = "id"]; + if (this->id().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SetBaseFrameIDRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.SetBaseFrameIDRequest) + GOOGLE_DCHECK_NE(&from, this); + const SetBaseFrameIDRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.SetBaseFrameIDRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.SetBaseFrameIDRequest) + MergeFrom(*source); + } +} + +void SetBaseFrameIDRequest::MergeFrom(const SetBaseFrameIDRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.SetBaseFrameIDRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.id().size() > 0) { + + id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.id_); + } +} + +void SetBaseFrameIDRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.SetBaseFrameIDRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SetBaseFrameIDRequest::CopyFrom(const SetBaseFrameIDRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.SetBaseFrameIDRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetBaseFrameIDRequest::IsInitialized() const { + return true; +} + +void SetBaseFrameIDRequest::InternalSwap(SetBaseFrameIDRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetBaseFrameIDRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void SetBaseFrameIDResponse::InitAsDefaultInstance() { +} +class SetBaseFrameIDResponse::_Internal { + public: +}; + +SetBaseFrameIDResponse::SetBaseFrameIDResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.agent.SetBaseFrameIDResponse) +} +SetBaseFrameIDResponse::SetBaseFrameIDResponse(const SetBaseFrameIDResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:v1.agent.SetBaseFrameIDResponse) +} + +void SetBaseFrameIDResponse::SharedCtor() { +} + +SetBaseFrameIDResponse::~SetBaseFrameIDResponse() { + // @@protoc_insertion_point(destructor:v1.agent.SetBaseFrameIDResponse) + SharedDtor(); +} + +void SetBaseFrameIDResponse::SharedDtor() { +} + +void SetBaseFrameIDResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SetBaseFrameIDResponse& SetBaseFrameIDResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SetBaseFrameIDResponse_protos_2fagent_2fv1_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void SetBaseFrameIDResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.agent.SetBaseFrameIDResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +const char* SetBaseFrameIDResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* SetBaseFrameIDResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.agent.SetBaseFrameIDResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.agent.SetBaseFrameIDResponse) + return target; +} + +size_t SetBaseFrameIDResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.agent.SetBaseFrameIDResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SetBaseFrameIDResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.agent.SetBaseFrameIDResponse) + GOOGLE_DCHECK_NE(&from, this); + const SetBaseFrameIDResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.agent.SetBaseFrameIDResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.agent.SetBaseFrameIDResponse) + MergeFrom(*source); + } +} + +void SetBaseFrameIDResponse::MergeFrom(const SetBaseFrameIDResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.agent.SetBaseFrameIDResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void SetBaseFrameIDResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.agent.SetBaseFrameIDResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SetBaseFrameIDResponse::CopyFrom(const SetBaseFrameIDResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.agent.SetBaseFrameIDResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetBaseFrameIDResponse::IsInitialized() const { + return true; +} + +void SetBaseFrameIDResponse::InternalSwap(SetBaseFrameIDResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetBaseFrameIDResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace agent +} // namespace v1 +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::v1::agent::StreamDataResponse* Arena::CreateMaybeMessage< ::v1::agent::StreamDataResponse >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::StreamDataResponse >(arena); +} +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::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::GetStreamsConfigurationRequest* Arena::CreateMaybeMessage< ::v1::agent::GetStreamsConfigurationRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetStreamsConfigurationRequest >(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::GetApplicationConfigurationRequest* Arena::CreateMaybeMessage< ::v1::agent::GetApplicationConfigurationRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetApplicationConfigurationRequest >(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::GetAgentConfigurationRequest* Arena::CreateMaybeMessage< ::v1::agent::GetAgentConfigurationRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetAgentConfigurationRequest >(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::HealthRequest* Arena::CreateMaybeMessage< ::v1::agent::HealthRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::HealthRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::agent::HealthResponse* Arena::CreateMaybeMessage< ::v1::agent::HealthResponse >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::HealthResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::agent::GetCommandRequestRequest* Arena::CreateMaybeMessage< ::v1::agent::GetCommandRequestRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetCommandRequestRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::agent::GetCommandRequestResponse* Arena::CreateMaybeMessage< ::v1::agent::GetCommandRequestResponse >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetCommandRequestResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::agent::SendCommandResponseRequest* Arena::CreateMaybeMessage< ::v1::agent::SendCommandResponseRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::SendCommandResponseRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::agent::SendCommandResponseResponse* Arena::CreateMaybeMessage< ::v1::agent::SendCommandResponseResponse >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::SendCommandResponseResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::agent::GetCommandRequestStreamRequest* Arena::CreateMaybeMessage< ::v1::agent::GetCommandRequestStreamRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetCommandRequestStreamRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::agent::GetCommandRequestStreamResponse* Arena::CreateMaybeMessage< ::v1::agent::GetCommandRequestStreamResponse >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::GetCommandRequestStreamResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::agent::PostTransformFrameResponse* Arena::CreateMaybeMessage< ::v1::agent::PostTransformFrameResponse >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::PostTransformFrameResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::agent::SetBaseFrameIDRequest* Arena::CreateMaybeMessage< ::v1::agent::SetBaseFrameIDRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::SetBaseFrameIDRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::agent::SetBaseFrameIDResponse* Arena::CreateMaybeMessage< ::v1::agent::SetBaseFrameIDResponse >(Arena* arena) { + return Arena::CreateInternal< ::v1::agent::SetBaseFrameIDResponse >(arena); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include diff --git a/examples/cpp/protos/agent/v1/agent.pb.h b/examples/cpp/protos/agent/v1/agent.pb.h index 684b674..df6e6e7 100755 --- a/examples/cpp/protos/agent/v1/agent.pb.h +++ b/examples/cpp/protos/agent/v1/agent.pb.h @@ -1,19 +1,19 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: protos/agent/v1/agent.proto -#ifndef PROTOBUF_INCLUDED_protos_2fagent_2fv1_2fagent_2eproto -#define PROTOBUF_INCLUDED_protos_2fagent_2fv1_2fagent_2eproto +#ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fagent_2fv1_2fagent_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_protos_2fagent_2fv1_2fagent_2eproto #include #include #include -#if PROTOBUF_VERSION < 3007000 +#if PROTOBUF_VERSION < 3011000 #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 +#if 3011000 < 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. @@ -27,30 +27,38 @@ #include #include #include +#include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include "protos/model/v1/datapoint.pb.h" #include "protos/model/v1/intervention.pb.h" +#include "protos/model/v1/commands.pb.h" #include "protos/model/v1/config.pb.h" +#include "protos/model/v1/math.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_protos_2fagent_2fv1_2fagent_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_protos_2fagent_2fv1_2fagent_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[12] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[21] 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[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; -void AddDescriptors_protos_2fagent_2fv1_2fagent_2eproto(); +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fagent_2fv1_2fagent_2eproto; namespace v1 { namespace agent { class GetAgentConfigurationRequest; @@ -65,6 +73,18 @@ extern GetApplicationConfigurationRequestDefaultTypeInternal _GetApplicationConf class GetApplicationConfigurationResponse; class GetApplicationConfigurationResponseDefaultTypeInternal; extern GetApplicationConfigurationResponseDefaultTypeInternal _GetApplicationConfigurationResponse_default_instance_; +class GetCommandRequestRequest; +class GetCommandRequestRequestDefaultTypeInternal; +extern GetCommandRequestRequestDefaultTypeInternal _GetCommandRequestRequest_default_instance_; +class GetCommandRequestResponse; +class GetCommandRequestResponseDefaultTypeInternal; +extern GetCommandRequestResponseDefaultTypeInternal _GetCommandRequestResponse_default_instance_; +class GetCommandRequestStreamRequest; +class GetCommandRequestStreamRequestDefaultTypeInternal; +extern GetCommandRequestStreamRequestDefaultTypeInternal _GetCommandRequestStreamRequest_default_instance_; +class GetCommandRequestStreamResponse; +class GetCommandRequestStreamResponseDefaultTypeInternal; +extern GetCommandRequestStreamResponseDefaultTypeInternal _GetCommandRequestStreamResponse_default_instance_; class GetInterventionRequestRequest; class GetInterventionRequestRequestDefaultTypeInternal; extern GetInterventionRequestRequestDefaultTypeInternal _GetInterventionRequestRequest_default_instance_; @@ -86,17 +106,35 @@ extern HealthResponseDefaultTypeInternal _HealthResponse_default_instance_; class PostDataResponse; class PostDataResponseDefaultTypeInternal; extern PostDataResponseDefaultTypeInternal _PostDataResponse_default_instance_; +class PostTransformFrameResponse; +class PostTransformFrameResponseDefaultTypeInternal; +extern PostTransformFrameResponseDefaultTypeInternal _PostTransformFrameResponse_default_instance_; +class SendCommandResponseRequest; +class SendCommandResponseRequestDefaultTypeInternal; +extern SendCommandResponseRequestDefaultTypeInternal _SendCommandResponseRequest_default_instance_; +class SendCommandResponseResponse; +class SendCommandResponseResponseDefaultTypeInternal; +extern SendCommandResponseResponseDefaultTypeInternal _SendCommandResponseResponse_default_instance_; +class SetBaseFrameIDRequest; +class SetBaseFrameIDRequestDefaultTypeInternal; +extern SetBaseFrameIDRequestDefaultTypeInternal _SetBaseFrameIDRequest_default_instance_; +class SetBaseFrameIDResponse; +class SetBaseFrameIDResponseDefaultTypeInternal; +extern SetBaseFrameIDResponseDefaultTypeInternal _SetBaseFrameIDResponse_default_instance_; class StreamDataResponse; class StreamDataResponseDefaultTypeInternal; extern StreamDataResponseDefaultTypeInternal _StreamDataResponse_default_instance_; } // namespace agent } // namespace v1 -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN 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::GetCommandRequestRequest* Arena::CreateMaybeMessage<::v1::agent::GetCommandRequestRequest>(Arena*); +template<> ::v1::agent::GetCommandRequestResponse* Arena::CreateMaybeMessage<::v1::agent::GetCommandRequestResponse>(Arena*); +template<> ::v1::agent::GetCommandRequestStreamRequest* Arena::CreateMaybeMessage<::v1::agent::GetCommandRequestStreamRequest>(Arena*); +template<> ::v1::agent::GetCommandRequestStreamResponse* Arena::CreateMaybeMessage<::v1::agent::GetCommandRequestStreamResponse>(Arena*); template<> ::v1::agent::GetInterventionRequestRequest* Arena::CreateMaybeMessage<::v1::agent::GetInterventionRequestRequest>(Arena*); template<> ::v1::agent::GetInterventionResponseRequest* Arena::CreateMaybeMessage<::v1::agent::GetInterventionResponseRequest>(Arena*); template<> ::v1::agent::GetStreamsConfigurationRequest* Arena::CreateMaybeMessage<::v1::agent::GetStreamsConfigurationRequest>(Arena*); @@ -104,32 +142,34 @@ template<> ::v1::agent::GetStreamsConfigurationResponse* Arena::CreateMaybeMessa 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::PostTransformFrameResponse* Arena::CreateMaybeMessage<::v1::agent::PostTransformFrameResponse>(Arena*); +template<> ::v1::agent::SendCommandResponseRequest* Arena::CreateMaybeMessage<::v1::agent::SendCommandResponseRequest>(Arena*); +template<> ::v1::agent::SendCommandResponseResponse* Arena::CreateMaybeMessage<::v1::agent::SendCommandResponseResponse>(Arena*); +template<> ::v1::agent::SetBaseFrameIDRequest* Arena::CreateMaybeMessage<::v1::agent::SetBaseFrameIDRequest>(Arena*); +template<> ::v1::agent::SetBaseFrameIDResponse* Arena::CreateMaybeMessage<::v1::agent::SetBaseFrameIDResponse>(Arena*); template<> ::v1::agent::StreamDataResponse* Arena::CreateMaybeMessage<::v1::agent::StreamDataResponse>(Arena*); -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE namespace v1 { namespace agent { // =================================================================== class StreamDataResponse : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.StreamDataResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.StreamDataResponse) */ { public: StreamDataResponse(); virtual ~StreamDataResponse(); StreamDataResponse(const StreamDataResponse& from); - - inline StreamDataResponse& operator=(const StreamDataResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 StreamDataResponse(StreamDataResponse&& from) noexcept : StreamDataResponse() { *this = ::std::move(from); } + inline StreamDataResponse& operator=(const StreamDataResponse& from) { + CopyFrom(from); + return *this; + } inline StreamDataResponse& operator=(StreamDataResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -138,9 +178,15 @@ class StreamDataResponse : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const StreamDataResponse& default_instance(); @@ -152,10 +198,13 @@ class StreamDataResponse : static constexpr int kIndexInFileMessages = 0; - void Swap(StreamDataResponse* other); friend void swap(StreamDataResponse& a, StreamDataResponse& b) { a.Swap(&b); } + inline void Swap(StreamDataResponse* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -163,37 +212,33 @@ class StreamDataResponse : return CreateMaybeMessage(nullptr); } - StreamDataResponse* New(::google::protobuf::Arena* arena) const final { + StreamDataResponse* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const StreamDataResponse& from); void MergeFrom(const StreamDataResponse& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(StreamDataResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.StreamDataResponse"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -201,7 +246,14 @@ class StreamDataResponse : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -209,32 +261,30 @@ class StreamDataResponse : // @@protoc_insertion_point(class_scope:v1.agent.StreamDataResponse) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- class PostDataResponse : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.PostDataResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.PostDataResponse) */ { public: PostDataResponse(); virtual ~PostDataResponse(); PostDataResponse(const PostDataResponse& from); - - inline PostDataResponse& operator=(const PostDataResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 PostDataResponse(PostDataResponse&& from) noexcept : PostDataResponse() { *this = ::std::move(from); } + inline PostDataResponse& operator=(const PostDataResponse& from) { + CopyFrom(from); + return *this; + } inline PostDataResponse& operator=(PostDataResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -243,9 +293,15 @@ class PostDataResponse : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const PostDataResponse& default_instance(); @@ -257,10 +313,13 @@ class PostDataResponse : static constexpr int kIndexInFileMessages = 1; - void Swap(PostDataResponse* other); friend void swap(PostDataResponse& a, PostDataResponse& b) { a.Swap(&b); } + inline void Swap(PostDataResponse* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -268,37 +327,33 @@ class PostDataResponse : return CreateMaybeMessage(nullptr); } - PostDataResponse* New(::google::protobuf::Arena* arena) const final { + PostDataResponse* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const PostDataResponse& from); void MergeFrom(const PostDataResponse& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(PostDataResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.PostDataResponse"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -306,7 +361,14 @@ class PostDataResponse : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -314,32 +376,30 @@ class PostDataResponse : // @@protoc_insertion_point(class_scope:v1.agent.PostDataResponse) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- class GetInterventionRequestRequest : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetInterventionRequestRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetInterventionRequestRequest) */ { public: GetInterventionRequestRequest(); virtual ~GetInterventionRequestRequest(); GetInterventionRequestRequest(const GetInterventionRequestRequest& from); - - inline GetInterventionRequestRequest& operator=(const GetInterventionRequestRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 GetInterventionRequestRequest(GetInterventionRequestRequest&& from) noexcept : GetInterventionRequestRequest() { *this = ::std::move(from); } + inline GetInterventionRequestRequest& operator=(const GetInterventionRequestRequest& from) { + CopyFrom(from); + return *this; + } inline GetInterventionRequestRequest& operator=(GetInterventionRequestRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -348,9 +408,15 @@ class GetInterventionRequestRequest : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const GetInterventionRequestRequest& default_instance(); @@ -362,10 +428,13 @@ class GetInterventionRequestRequest : static constexpr int kIndexInFileMessages = 2; - void Swap(GetInterventionRequestRequest* other); friend void swap(GetInterventionRequestRequest& a, GetInterventionRequestRequest& b) { a.Swap(&b); } + inline void Swap(GetInterventionRequestRequest* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -373,37 +442,33 @@ class GetInterventionRequestRequest : return CreateMaybeMessage(nullptr); } - GetInterventionRequestRequest* New(::google::protobuf::Arena* arena) const final { + GetInterventionRequestRequest* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const GetInterventionRequestRequest& from); void MergeFrom(const GetInterventionRequestRequest& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetInterventionRequestRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.GetInterventionRequestRequest"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -411,55 +476,65 @@ class GetInterventionRequestRequest : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // string id = 1; + enum : int { + kIdFieldNumber = 1, + }; + // string id = 1[json_name = "id"]; 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 + const std::string& id() const; + void set_id(const std::string& value); + void set_id(std::string&& value); 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); + std::string* mutable_id(); + std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: // @@protoc_insertion_point(class_scope:v1.agent.GetInterventionRequestRequest) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- class GetInterventionResponseRequest : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetInterventionResponseRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetInterventionResponseRequest) */ { public: GetInterventionResponseRequest(); virtual ~GetInterventionResponseRequest(); GetInterventionResponseRequest(const GetInterventionResponseRequest& from); - - inline GetInterventionResponseRequest& operator=(const GetInterventionResponseRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 GetInterventionResponseRequest(GetInterventionResponseRequest&& from) noexcept : GetInterventionResponseRequest() { *this = ::std::move(from); } + inline GetInterventionResponseRequest& operator=(const GetInterventionResponseRequest& from) { + CopyFrom(from); + return *this; + } inline GetInterventionResponseRequest& operator=(GetInterventionResponseRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -468,9 +543,15 @@ class GetInterventionResponseRequest : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const GetInterventionResponseRequest& default_instance(); @@ -482,10 +563,13 @@ class GetInterventionResponseRequest : static constexpr int kIndexInFileMessages = 3; - void Swap(GetInterventionResponseRequest* other); friend void swap(GetInterventionResponseRequest& a, GetInterventionResponseRequest& b) { a.Swap(&b); } + inline void Swap(GetInterventionResponseRequest* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -493,37 +577,33 @@ class GetInterventionResponseRequest : return CreateMaybeMessage(nullptr); } - GetInterventionResponseRequest* New(::google::protobuf::Arena* arena) const final { + GetInterventionResponseRequest* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const GetInterventionResponseRequest& from); void MergeFrom(const GetInterventionResponseRequest& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetInterventionResponseRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.GetInterventionResponseRequest"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -531,55 +611,65 @@ class GetInterventionResponseRequest : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // string request_id = 1; + enum : int { + kRequestIdFieldNumber = 1, + }; + // string request_id = 1[json_name = "requestId"]; 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 + const std::string& request_id() const; + void set_request_id(const std::string& value); + void set_request_id(std::string&& value); 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); + std::string* mutable_request_id(); + std::string* release_request_id(); + void set_allocated_request_id(std::string* request_id); + private: + const std::string& _internal_request_id() const; + void _internal_set_request_id(const std::string& value); + std::string* _internal_mutable_request_id(); + public: // @@protoc_insertion_point(class_scope:v1.agent.GetInterventionResponseRequest) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr request_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr request_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- class GetStreamsConfigurationRequest : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetStreamsConfigurationRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetStreamsConfigurationRequest) */ { public: GetStreamsConfigurationRequest(); virtual ~GetStreamsConfigurationRequest(); GetStreamsConfigurationRequest(const GetStreamsConfigurationRequest& from); - - inline GetStreamsConfigurationRequest& operator=(const GetStreamsConfigurationRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 GetStreamsConfigurationRequest(GetStreamsConfigurationRequest&& from) noexcept : GetStreamsConfigurationRequest() { *this = ::std::move(from); } + inline GetStreamsConfigurationRequest& operator=(const GetStreamsConfigurationRequest& from) { + CopyFrom(from); + return *this; + } inline GetStreamsConfigurationRequest& operator=(GetStreamsConfigurationRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -588,9 +678,15 @@ class GetStreamsConfigurationRequest : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const GetStreamsConfigurationRequest& default_instance(); @@ -602,10 +698,13 @@ class GetStreamsConfigurationRequest : static constexpr int kIndexInFileMessages = 4; - void Swap(GetStreamsConfigurationRequest* other); friend void swap(GetStreamsConfigurationRequest& a, GetStreamsConfigurationRequest& b) { a.Swap(&b); } + inline void Swap(GetStreamsConfigurationRequest* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -613,37 +712,33 @@ class GetStreamsConfigurationRequest : return CreateMaybeMessage(nullptr); } - GetStreamsConfigurationRequest* New(::google::protobuf::Arena* arena) const final { + GetStreamsConfigurationRequest* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const GetStreamsConfigurationRequest& from); void MergeFrom(const GetStreamsConfigurationRequest& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetStreamsConfigurationRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.GetStreamsConfigurationRequest"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -651,7 +746,14 @@ class GetStreamsConfigurationRequest : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -659,32 +761,30 @@ class GetStreamsConfigurationRequest : // @@protoc_insertion_point(class_scope:v1.agent.GetStreamsConfigurationRequest) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- class GetStreamsConfigurationResponse : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetStreamsConfigurationResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetStreamsConfigurationResponse) */ { public: GetStreamsConfigurationResponse(); virtual ~GetStreamsConfigurationResponse(); GetStreamsConfigurationResponse(const GetStreamsConfigurationResponse& from); - - inline GetStreamsConfigurationResponse& operator=(const GetStreamsConfigurationResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 GetStreamsConfigurationResponse(GetStreamsConfigurationResponse&& from) noexcept : GetStreamsConfigurationResponse() { *this = ::std::move(from); } + inline GetStreamsConfigurationResponse& operator=(const GetStreamsConfigurationResponse& from) { + CopyFrom(from); + return *this; + } inline GetStreamsConfigurationResponse& operator=(GetStreamsConfigurationResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -693,9 +793,15 @@ class GetStreamsConfigurationResponse : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const GetStreamsConfigurationResponse& default_instance(); @@ -707,10 +813,13 @@ class GetStreamsConfigurationResponse : static constexpr int kIndexInFileMessages = 5; - void Swap(GetStreamsConfigurationResponse* other); friend void swap(GetStreamsConfigurationResponse& a, GetStreamsConfigurationResponse& b) { a.Swap(&b); } + inline void Swap(GetStreamsConfigurationResponse* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -718,37 +827,33 @@ class GetStreamsConfigurationResponse : return CreateMaybeMessage(nullptr); } - GetStreamsConfigurationResponse* New(::google::protobuf::Arena* arena) const final { + GetStreamsConfigurationResponse* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const GetStreamsConfigurationResponse& from); void MergeFrom(const GetStreamsConfigurationResponse& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetStreamsConfigurationResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.GetStreamsConfigurationResponse"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -756,53 +861,67 @@ class GetStreamsConfigurationResponse : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // repeated .v1.model.StreamConfiguration streams = 1; + enum : int { + kStreamsFieldNumber = 1, + }; + // repeated .v1.model.StreamConfiguration streams = 1[json_name = "streams"]; int streams_size() const; + private: + int _internal_streams_size() const; + public: void clear_streams(); - static const int kStreamsFieldNumber = 1; ::v1::model::StreamConfiguration* mutable_streams(int index); - ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::v1::model::StreamConfiguration >* mutable_streams(); + private: + const ::v1::model::StreamConfiguration& _internal_streams(int index) const; + ::v1::model::StreamConfiguration* _internal_add_streams(); + public: const ::v1::model::StreamConfiguration& streams(int index) const; ::v1::model::StreamConfiguration* add_streams(); - const ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::v1::model::StreamConfiguration >& streams() const; // @@protoc_insertion_point(class_scope:v1.agent.GetStreamsConfigurationResponse) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration > streams_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::v1::model::StreamConfiguration > streams_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- class GetApplicationConfigurationRequest : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetApplicationConfigurationRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetApplicationConfigurationRequest) */ { public: GetApplicationConfigurationRequest(); virtual ~GetApplicationConfigurationRequest(); GetApplicationConfigurationRequest(const GetApplicationConfigurationRequest& from); - - inline GetApplicationConfigurationRequest& operator=(const GetApplicationConfigurationRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 GetApplicationConfigurationRequest(GetApplicationConfigurationRequest&& from) noexcept : GetApplicationConfigurationRequest() { *this = ::std::move(from); } + inline GetApplicationConfigurationRequest& operator=(const GetApplicationConfigurationRequest& from) { + CopyFrom(from); + return *this; + } inline GetApplicationConfigurationRequest& operator=(GetApplicationConfigurationRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -811,9 +930,15 @@ class GetApplicationConfigurationRequest : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const GetApplicationConfigurationRequest& default_instance(); @@ -825,10 +950,13 @@ class GetApplicationConfigurationRequest : static constexpr int kIndexInFileMessages = 6; - void Swap(GetApplicationConfigurationRequest* other); friend void swap(GetApplicationConfigurationRequest& a, GetApplicationConfigurationRequest& b) { a.Swap(&b); } + inline void Swap(GetApplicationConfigurationRequest* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -836,37 +964,33 @@ class GetApplicationConfigurationRequest : return CreateMaybeMessage(nullptr); } - GetApplicationConfigurationRequest* New(::google::protobuf::Arena* arena) const final { + GetApplicationConfigurationRequest* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const GetApplicationConfigurationRequest& from); void MergeFrom(const GetApplicationConfigurationRequest& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetApplicationConfigurationRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.GetApplicationConfigurationRequest"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -874,7 +998,14 @@ class GetApplicationConfigurationRequest : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -882,32 +1013,30 @@ class GetApplicationConfigurationRequest : // @@protoc_insertion_point(class_scope:v1.agent.GetApplicationConfigurationRequest) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- class GetApplicationConfigurationResponse : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetApplicationConfigurationResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetApplicationConfigurationResponse) */ { public: GetApplicationConfigurationResponse(); virtual ~GetApplicationConfigurationResponse(); GetApplicationConfigurationResponse(const GetApplicationConfigurationResponse& from); - - inline GetApplicationConfigurationResponse& operator=(const GetApplicationConfigurationResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 GetApplicationConfigurationResponse(GetApplicationConfigurationResponse&& from) noexcept : GetApplicationConfigurationResponse() { *this = ::std::move(from); } + inline GetApplicationConfigurationResponse& operator=(const GetApplicationConfigurationResponse& from) { + CopyFrom(from); + return *this; + } inline GetApplicationConfigurationResponse& operator=(GetApplicationConfigurationResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -916,9 +1045,15 @@ class GetApplicationConfigurationResponse : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const GetApplicationConfigurationResponse& default_instance(); @@ -930,10 +1065,13 @@ class GetApplicationConfigurationResponse : static constexpr int kIndexInFileMessages = 7; - void Swap(GetApplicationConfigurationResponse* other); friend void swap(GetApplicationConfigurationResponse& a, GetApplicationConfigurationResponse& b) { a.Swap(&b); } + inline void Swap(GetApplicationConfigurationResponse* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -941,37 +1079,33 @@ class GetApplicationConfigurationResponse : return CreateMaybeMessage(nullptr); } - GetApplicationConfigurationResponse* New(::google::protobuf::Arena* arena) const final { + GetApplicationConfigurationResponse* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const GetApplicationConfigurationResponse& from); void MergeFrom(const GetApplicationConfigurationResponse& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetApplicationConfigurationResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.GetApplicationConfigurationResponse"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -979,50 +1113,64 @@ class GetApplicationConfigurationResponse : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // .v1.model.ApplicationConfiguration configuration = 1; + enum : int { + kConfigurationFieldNumber = 1, + }; + // .v1.model.ApplicationConfiguration configuration = 1[json_name = "configuration"]; bool has_configuration() const; + private: + bool _internal_has_configuration() const; + public: 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); + private: + const ::v1::model::ApplicationConfiguration& _internal_configuration() const; + ::v1::model::ApplicationConfiguration* _internal_mutable_configuration(); + public: // @@protoc_insertion_point(class_scope:v1.agent.GetApplicationConfigurationResponse) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::v1::model::ApplicationConfiguration* configuration_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- class GetAgentConfigurationRequest : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetAgentConfigurationRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetAgentConfigurationRequest) */ { public: GetAgentConfigurationRequest(); virtual ~GetAgentConfigurationRequest(); GetAgentConfigurationRequest(const GetAgentConfigurationRequest& from); - - inline GetAgentConfigurationRequest& operator=(const GetAgentConfigurationRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 GetAgentConfigurationRequest(GetAgentConfigurationRequest&& from) noexcept : GetAgentConfigurationRequest() { *this = ::std::move(from); } + inline GetAgentConfigurationRequest& operator=(const GetAgentConfigurationRequest& from) { + CopyFrom(from); + return *this; + } inline GetAgentConfigurationRequest& operator=(GetAgentConfigurationRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1031,9 +1179,15 @@ class GetAgentConfigurationRequest : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const GetAgentConfigurationRequest& default_instance(); @@ -1045,10 +1199,13 @@ class GetAgentConfigurationRequest : static constexpr int kIndexInFileMessages = 8; - void Swap(GetAgentConfigurationRequest* other); friend void swap(GetAgentConfigurationRequest& a, GetAgentConfigurationRequest& b) { a.Swap(&b); } + inline void Swap(GetAgentConfigurationRequest* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1056,37 +1213,33 @@ class GetAgentConfigurationRequest : return CreateMaybeMessage(nullptr); } - GetAgentConfigurationRequest* New(::google::protobuf::Arena* arena) const final { + GetAgentConfigurationRequest* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const GetAgentConfigurationRequest& from); void MergeFrom(const GetAgentConfigurationRequest& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetAgentConfigurationRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.GetAgentConfigurationRequest"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1094,7 +1247,14 @@ class GetAgentConfigurationRequest : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -1102,32 +1262,30 @@ class GetAgentConfigurationRequest : // @@protoc_insertion_point(class_scope:v1.agent.GetAgentConfigurationRequest) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- class GetAgentConfigurationResponse : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetAgentConfigurationResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetAgentConfigurationResponse) */ { public: GetAgentConfigurationResponse(); virtual ~GetAgentConfigurationResponse(); GetAgentConfigurationResponse(const GetAgentConfigurationResponse& from); - - inline GetAgentConfigurationResponse& operator=(const GetAgentConfigurationResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 GetAgentConfigurationResponse(GetAgentConfigurationResponse&& from) noexcept : GetAgentConfigurationResponse() { *this = ::std::move(from); } + inline GetAgentConfigurationResponse& operator=(const GetAgentConfigurationResponse& from) { + CopyFrom(from); + return *this; + } inline GetAgentConfigurationResponse& operator=(GetAgentConfigurationResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1136,9 +1294,15 @@ class GetAgentConfigurationResponse : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const GetAgentConfigurationResponse& default_instance(); @@ -1150,10 +1314,13 @@ class GetAgentConfigurationResponse : static constexpr int kIndexInFileMessages = 9; - void Swap(GetAgentConfigurationResponse* other); friend void swap(GetAgentConfigurationResponse& a, GetAgentConfigurationResponse& b) { a.Swap(&b); } + inline void Swap(GetAgentConfigurationResponse* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1161,37 +1328,33 @@ class GetAgentConfigurationResponse : return CreateMaybeMessage(nullptr); } - GetAgentConfigurationResponse* New(::google::protobuf::Arena* arena) const final { + GetAgentConfigurationResponse* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const GetAgentConfigurationResponse& from); void MergeFrom(const GetAgentConfigurationResponse& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetAgentConfigurationResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.GetAgentConfigurationResponse"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1199,50 +1362,64 @@ class GetAgentConfigurationResponse : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // .v1.model.AgentConfiguration configuration = 1; + enum : int { + kConfigurationFieldNumber = 1, + }; + // .v1.model.AgentConfiguration configuration = 1[json_name = "configuration"]; bool has_configuration() const; + private: + bool _internal_has_configuration() const; + public: 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); + private: + const ::v1::model::AgentConfiguration& _internal_configuration() const; + ::v1::model::AgentConfiguration* _internal_mutable_configuration(); + public: // @@protoc_insertion_point(class_scope:v1.agent.GetAgentConfigurationResponse) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::v1::model::AgentConfiguration* configuration_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; // ------------------------------------------------------------------- class HealthRequest : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.agent.HealthRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.HealthRequest) */ { public: HealthRequest(); virtual ~HealthRequest(); HealthRequest(const HealthRequest& from); - - inline HealthRequest& operator=(const HealthRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 HealthRequest(HealthRequest&& from) noexcept : HealthRequest() { *this = ::std::move(from); } + inline HealthRequest& operator=(const HealthRequest& from) { + CopyFrom(from); + return *this; + } inline HealthRequest& operator=(HealthRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1251,9 +1428,15 @@ class HealthRequest : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const HealthRequest& default_instance(); @@ -1265,10 +1448,13 @@ class HealthRequest : static constexpr int kIndexInFileMessages = 10; - void Swap(HealthRequest* other); friend void swap(HealthRequest& a, HealthRequest& b) { a.Swap(&b); } + inline void Swap(HealthRequest* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1276,37 +1462,33 @@ class HealthRequest : return CreateMaybeMessage(nullptr); } - HealthRequest* New(::google::protobuf::Arena* arena) const final { + HealthRequest* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const HealthRequest& from); void MergeFrom(const HealthRequest& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HealthRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.HealthRequest"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1314,7 +1496,14 @@ class HealthRequest : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -1322,32 +1511,30 @@ class HealthRequest : // @@protoc_insertion_point(class_scope:v1.agent.HealthRequest) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.HealthResponse) */ { public: HealthResponse(); virtual ~HealthResponse(); HealthResponse(const HealthResponse& from); - - 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=(const HealthResponse& from) { + CopyFrom(from); + return *this; + } inline HealthResponse& operator=(HealthResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1356,9 +1543,15 @@ class HealthResponse : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const HealthResponse& default_instance(); @@ -1370,10 +1563,13 @@ class HealthResponse : static constexpr int kIndexInFileMessages = 11; - void Swap(HealthResponse* other); friend void swap(HealthResponse& a, HealthResponse& b) { a.Swap(&b); } + inline void Swap(HealthResponse* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1381,37 +1577,33 @@ class HealthResponse : return CreateMaybeMessage(nullptr); } - HealthResponse* New(::google::protobuf::Arena* arena) const final { + HealthResponse* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HealthResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.HealthResponse"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1419,7 +1611,14 @@ class HealthResponse : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -1427,81 +1626,1256 @@ class HealthResponse : // @@protoc_insertion_point(class_scope:v1.agent.HealthResponse) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; }; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// StreamDataResponse - // ------------------------------------------------------------------- -// PostDataResponse - -// ------------------------------------------------------------------- +class GetCommandRequestRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetCommandRequestRequest) */ { + public: + GetCommandRequestRequest(); + virtual ~GetCommandRequestRequest(); -// GetInterventionRequestRequest + GetCommandRequestRequest(const GetCommandRequestRequest& from); + GetCommandRequestRequest(GetCommandRequestRequest&& from) noexcept + : GetCommandRequestRequest() { + *this = ::std::move(from); + } -// string id = 1; -inline void GetInterventionRequestRequest::clear_id() { - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetInterventionRequestRequest::id() const { - // @@protoc_insertion_point(field_get:v1.agent.GetInterventionRequestRequest.id) - return id_.GetNoArena(); -} -inline void GetInterventionRequestRequest::set_id(const ::std::string& value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + inline GetCommandRequestRequest& operator=(const GetCommandRequestRequest& from) { + CopyFrom(from); + return *this; + } + inline GetCommandRequestRequest& operator=(GetCommandRequestRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const GetCommandRequestRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetCommandRequestRequest* internal_default_instance() { + return reinterpret_cast( + &_GetCommandRequestRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(GetCommandRequestRequest& a, GetCommandRequestRequest& b) { + a.Swap(&b); + } + inline void Swap(GetCommandRequestRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline GetCommandRequestRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetCommandRequestRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const GetCommandRequestRequest& from); + void MergeFrom(const GetCommandRequestRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetCommandRequestRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.GetCommandRequestRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCommandFilterFieldNumber = 1, + }; + // repeated string command_filter = 1[json_name = "commandFilter"]; + int command_filter_size() const; + private: + int _internal_command_filter_size() const; + public: + void clear_command_filter(); + const std::string& command_filter(int index) const; + std::string* mutable_command_filter(int index); + void set_command_filter(int index, const std::string& value); + void set_command_filter(int index, std::string&& value); + void set_command_filter(int index, const char* value); + void set_command_filter(int index, const char* value, size_t size); + std::string* add_command_filter(); + void add_command_filter(const std::string& value); + void add_command_filter(std::string&& value); + void add_command_filter(const char* value); + void add_command_filter(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& command_filter() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_command_filter(); + private: + const std::string& _internal_command_filter(int index) const; + std::string* _internal_add_command_filter(); + public: + + // @@protoc_insertion_point(class_scope:v1.agent.GetCommandRequestRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField command_filter_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class GetCommandRequestResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetCommandRequestResponse) */ { + public: + GetCommandRequestResponse(); + virtual ~GetCommandRequestResponse(); + + GetCommandRequestResponse(const GetCommandRequestResponse& from); + GetCommandRequestResponse(GetCommandRequestResponse&& from) noexcept + : GetCommandRequestResponse() { + *this = ::std::move(from); + } + + inline GetCommandRequestResponse& operator=(const GetCommandRequestResponse& from) { + CopyFrom(from); + return *this; + } + inline GetCommandRequestResponse& operator=(GetCommandRequestResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const GetCommandRequestResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetCommandRequestResponse* internal_default_instance() { + return reinterpret_cast( + &_GetCommandRequestResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(GetCommandRequestResponse& a, GetCommandRequestResponse& b) { + a.Swap(&b); + } + inline void Swap(GetCommandRequestResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline GetCommandRequestResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetCommandRequestResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const GetCommandRequestResponse& from); + void MergeFrom(const GetCommandRequestResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetCommandRequestResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.GetCommandRequestResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kRequestFieldNumber = 1, + }; + // .v1.model.CommandRequest request = 1[json_name = "request"]; + bool has_request() const; + private: + bool _internal_has_request() const; + public: + void clear_request(); + const ::v1::model::CommandRequest& request() const; + ::v1::model::CommandRequest* release_request(); + ::v1::model::CommandRequest* mutable_request(); + void set_allocated_request(::v1::model::CommandRequest* request); + private: + const ::v1::model::CommandRequest& _internal_request() const; + ::v1::model::CommandRequest* _internal_mutable_request(); + public: + + // @@protoc_insertion_point(class_scope:v1.agent.GetCommandRequestResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::v1::model::CommandRequest* request_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class SendCommandResponseRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.SendCommandResponseRequest) */ { + public: + SendCommandResponseRequest(); + virtual ~SendCommandResponseRequest(); + + SendCommandResponseRequest(const SendCommandResponseRequest& from); + SendCommandResponseRequest(SendCommandResponseRequest&& from) noexcept + : SendCommandResponseRequest() { + *this = ::std::move(from); + } + + inline SendCommandResponseRequest& operator=(const SendCommandResponseRequest& from) { + CopyFrom(from); + return *this; + } + inline SendCommandResponseRequest& operator=(SendCommandResponseRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const SendCommandResponseRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SendCommandResponseRequest* internal_default_instance() { + return reinterpret_cast( + &_SendCommandResponseRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(SendCommandResponseRequest& a, SendCommandResponseRequest& b) { + a.Swap(&b); + } + inline void Swap(SendCommandResponseRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SendCommandResponseRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + SendCommandResponseRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const SendCommandResponseRequest& from); + void MergeFrom(const SendCommandResponseRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SendCommandResponseRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.SendCommandResponseRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kResponseFieldNumber = 1, + }; + // .v1.model.CommandResponse response = 1[json_name = "response"]; + bool has_response() const; + private: + bool _internal_has_response() const; + public: + void clear_response(); + const ::v1::model::CommandResponse& response() const; + ::v1::model::CommandResponse* release_response(); + ::v1::model::CommandResponse* mutable_response(); + void set_allocated_response(::v1::model::CommandResponse* response); + private: + const ::v1::model::CommandResponse& _internal_response() const; + ::v1::model::CommandResponse* _internal_mutable_response(); + public: + + // @@protoc_insertion_point(class_scope:v1.agent.SendCommandResponseRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::v1::model::CommandResponse* response_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class SendCommandResponseResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.SendCommandResponseResponse) */ { + public: + SendCommandResponseResponse(); + virtual ~SendCommandResponseResponse(); + + SendCommandResponseResponse(const SendCommandResponseResponse& from); + SendCommandResponseResponse(SendCommandResponseResponse&& from) noexcept + : SendCommandResponseResponse() { + *this = ::std::move(from); + } + + inline SendCommandResponseResponse& operator=(const SendCommandResponseResponse& from) { + CopyFrom(from); + return *this; + } + inline SendCommandResponseResponse& operator=(SendCommandResponseResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const SendCommandResponseResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SendCommandResponseResponse* internal_default_instance() { + return reinterpret_cast( + &_SendCommandResponseResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(SendCommandResponseResponse& a, SendCommandResponseResponse& b) { + a.Swap(&b); + } + inline void Swap(SendCommandResponseResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SendCommandResponseResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + SendCommandResponseResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const SendCommandResponseResponse& from); + void MergeFrom(const SendCommandResponseResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SendCommandResponseResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.SendCommandResponseResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:v1.agent.SendCommandResponseResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class GetCommandRequestStreamRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetCommandRequestStreamRequest) */ { + public: + GetCommandRequestStreamRequest(); + virtual ~GetCommandRequestStreamRequest(); + + GetCommandRequestStreamRequest(const GetCommandRequestStreamRequest& from); + GetCommandRequestStreamRequest(GetCommandRequestStreamRequest&& from) noexcept + : GetCommandRequestStreamRequest() { + *this = ::std::move(from); + } + + inline GetCommandRequestStreamRequest& operator=(const GetCommandRequestStreamRequest& from) { + CopyFrom(from); + return *this; + } + inline GetCommandRequestStreamRequest& operator=(GetCommandRequestStreamRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const GetCommandRequestStreamRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetCommandRequestStreamRequest* internal_default_instance() { + return reinterpret_cast( + &_GetCommandRequestStreamRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(GetCommandRequestStreamRequest& a, GetCommandRequestStreamRequest& b) { + a.Swap(&b); + } + inline void Swap(GetCommandRequestStreamRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline GetCommandRequestStreamRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetCommandRequestStreamRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const GetCommandRequestStreamRequest& from); + void MergeFrom(const GetCommandRequestStreamRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetCommandRequestStreamRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.GetCommandRequestStreamRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCommandFilterFieldNumber = 1, + }; + // repeated string command_filter = 1[json_name = "commandFilter"]; + int command_filter_size() const; + private: + int _internal_command_filter_size() const; + public: + void clear_command_filter(); + const std::string& command_filter(int index) const; + std::string* mutable_command_filter(int index); + void set_command_filter(int index, const std::string& value); + void set_command_filter(int index, std::string&& value); + void set_command_filter(int index, const char* value); + void set_command_filter(int index, const char* value, size_t size); + std::string* add_command_filter(); + void add_command_filter(const std::string& value); + void add_command_filter(std::string&& value); + void add_command_filter(const char* value); + void add_command_filter(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& command_filter() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_command_filter(); + private: + const std::string& _internal_command_filter(int index) const; + std::string* _internal_add_command_filter(); + public: + + // @@protoc_insertion_point(class_scope:v1.agent.GetCommandRequestStreamRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField command_filter_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class GetCommandRequestStreamResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.GetCommandRequestStreamResponse) */ { + public: + GetCommandRequestStreamResponse(); + virtual ~GetCommandRequestStreamResponse(); + + GetCommandRequestStreamResponse(const GetCommandRequestStreamResponse& from); + GetCommandRequestStreamResponse(GetCommandRequestStreamResponse&& from) noexcept + : GetCommandRequestStreamResponse() { + *this = ::std::move(from); + } + + inline GetCommandRequestStreamResponse& operator=(const GetCommandRequestStreamResponse& from) { + CopyFrom(from); + return *this; + } + inline GetCommandRequestStreamResponse& operator=(GetCommandRequestStreamResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const GetCommandRequestStreamResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetCommandRequestStreamResponse* internal_default_instance() { + return reinterpret_cast( + &_GetCommandRequestStreamResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(GetCommandRequestStreamResponse& a, GetCommandRequestStreamResponse& b) { + a.Swap(&b); + } + inline void Swap(GetCommandRequestStreamResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline GetCommandRequestStreamResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetCommandRequestStreamResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const GetCommandRequestStreamResponse& from); + void MergeFrom(const GetCommandRequestStreamResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetCommandRequestStreamResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.GetCommandRequestStreamResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kRequestFieldNumber = 1, + }; + // .v1.model.CommandRequest request = 1[json_name = "request"]; + bool has_request() const; + private: + bool _internal_has_request() const; + public: + void clear_request(); + const ::v1::model::CommandRequest& request() const; + ::v1::model::CommandRequest* release_request(); + ::v1::model::CommandRequest* mutable_request(); + void set_allocated_request(::v1::model::CommandRequest* request); + private: + const ::v1::model::CommandRequest& _internal_request() const; + ::v1::model::CommandRequest* _internal_mutable_request(); + public: + + // @@protoc_insertion_point(class_scope:v1.agent.GetCommandRequestStreamResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::v1::model::CommandRequest* request_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class PostTransformFrameResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.PostTransformFrameResponse) */ { + public: + PostTransformFrameResponse(); + virtual ~PostTransformFrameResponse(); + + PostTransformFrameResponse(const PostTransformFrameResponse& from); + PostTransformFrameResponse(PostTransformFrameResponse&& from) noexcept + : PostTransformFrameResponse() { + *this = ::std::move(from); + } + + inline PostTransformFrameResponse& operator=(const PostTransformFrameResponse& from) { + CopyFrom(from); + return *this; + } + inline PostTransformFrameResponse& operator=(PostTransformFrameResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const PostTransformFrameResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PostTransformFrameResponse* internal_default_instance() { + return reinterpret_cast( + &_PostTransformFrameResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(PostTransformFrameResponse& a, PostTransformFrameResponse& b) { + a.Swap(&b); + } + inline void Swap(PostTransformFrameResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PostTransformFrameResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + PostTransformFrameResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const PostTransformFrameResponse& from); + void MergeFrom(const PostTransformFrameResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PostTransformFrameResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.PostTransformFrameResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:v1.agent.PostTransformFrameResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class SetBaseFrameIDRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.SetBaseFrameIDRequest) */ { + public: + SetBaseFrameIDRequest(); + virtual ~SetBaseFrameIDRequest(); + + SetBaseFrameIDRequest(const SetBaseFrameIDRequest& from); + SetBaseFrameIDRequest(SetBaseFrameIDRequest&& from) noexcept + : SetBaseFrameIDRequest() { + *this = ::std::move(from); + } + + inline SetBaseFrameIDRequest& operator=(const SetBaseFrameIDRequest& from) { + CopyFrom(from); + return *this; + } + inline SetBaseFrameIDRequest& operator=(SetBaseFrameIDRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const SetBaseFrameIDRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SetBaseFrameIDRequest* internal_default_instance() { + return reinterpret_cast( + &_SetBaseFrameIDRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(SetBaseFrameIDRequest& a, SetBaseFrameIDRequest& b) { + a.Swap(&b); + } + inline void Swap(SetBaseFrameIDRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SetBaseFrameIDRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + SetBaseFrameIDRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const SetBaseFrameIDRequest& from); + void MergeFrom(const SetBaseFrameIDRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SetBaseFrameIDRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.SetBaseFrameIDRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIdFieldNumber = 1, + }; + // string id = 1[json_name = "id"]; + void clear_id(); + const std::string& id() const; + void set_id(const std::string& value); + void set_id(std::string&& value); + 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); + private: + const std::string& _internal_id() const; + void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:v1.agent.SetBaseFrameIDRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class SetBaseFrameIDResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.agent.SetBaseFrameIDResponse) */ { + public: + SetBaseFrameIDResponse(); + virtual ~SetBaseFrameIDResponse(); + + SetBaseFrameIDResponse(const SetBaseFrameIDResponse& from); + SetBaseFrameIDResponse(SetBaseFrameIDResponse&& from) noexcept + : SetBaseFrameIDResponse() { + *this = ::std::move(from); + } + + inline SetBaseFrameIDResponse& operator=(const SetBaseFrameIDResponse& from) { + CopyFrom(from); + return *this; + } + inline SetBaseFrameIDResponse& operator=(SetBaseFrameIDResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const SetBaseFrameIDResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SetBaseFrameIDResponse* internal_default_instance() { + return reinterpret_cast( + &_SetBaseFrameIDResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(SetBaseFrameIDResponse& a, SetBaseFrameIDResponse& b) { + a.Swap(&b); + } + inline void Swap(SetBaseFrameIDResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SetBaseFrameIDResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + SetBaseFrameIDResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const SetBaseFrameIDResponse& from); + void MergeFrom(const SetBaseFrameIDResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SetBaseFrameIDResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.agent.SetBaseFrameIDResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto); + return ::descriptor_table_protos_2fagent_2fv1_2fagent_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:v1.agent.SetBaseFrameIDResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fagent_2fv1_2fagent_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StreamDataResponse + +// ------------------------------------------------------------------- + +// PostDataResponse + +// ------------------------------------------------------------------- + +// GetInterventionRequestRequest + +// string id = 1[json_name = "id"]; +inline void GetInterventionRequestRequest::clear_id() { + id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& GetInterventionRequestRequest::id() const { + // @@protoc_insertion_point(field_get:v1.agent.GetInterventionRequestRequest.id) + return _internal_id(); +} +inline void GetInterventionRequestRequest::set_id(const std::string& value) { + _internal_set_id(value); // @@protoc_insertion_point(field_set:v1.agent.GetInterventionRequestRequest.id) } -#if LANG_CXX11 -inline void GetInterventionRequestRequest::set_id(::std::string&& value) { +inline std::string* GetInterventionRequestRequest::mutable_id() { + // @@protoc_insertion_point(field_mutable:v1.agent.GetInterventionRequestRequest.id) + return _internal_mutable_id(); +} +inline const std::string& GetInterventionRequestRequest::_internal_id() const { + return id_.GetNoArena(); +} +inline void GetInterventionRequestRequest::_internal_set_id(const std::string& value) { + + id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +} +inline void GetInterventionRequestRequest::set_id(std::string&& value) { id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:v1.agent.GetInterventionRequestRequest.id) } -#endif inline void GetInterventionRequestRequest::set_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:v1.agent.GetInterventionRequestRequest.id) } inline void GetInterventionRequestRequest::set_id(const char* value, size_t size) { - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:v1.agent.GetInterventionRequestRequest.id) } -inline ::std::string* GetInterventionRequestRequest::mutable_id() { +inline std::string* GetInterventionRequestRequest::_internal_mutable_id() { - // @@protoc_insertion_point(field_mutable:v1.agent.GetInterventionRequestRequest.id) - return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* GetInterventionRequestRequest::release_id() { +inline std::string* GetInterventionRequestRequest::release_id() { // @@protoc_insertion_point(field_release:v1.agent.GetInterventionRequestRequest.id) - return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void GetInterventionRequestRequest::set_allocated_id(::std::string* id) { +inline void GetInterventionRequestRequest::set_allocated_id(std::string* id) { if (id != nullptr) { } else { } - id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); + id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id); // @@protoc_insertion_point(field_set_allocated:v1.agent.GetInterventionRequestRequest.id) } @@ -1509,56 +2883,63 @@ inline void GetInterventionRequestRequest::set_allocated_id(::std::string* id) { // GetInterventionResponseRequest -// string request_id = 1; +// string request_id = 1[json_name = "requestId"]; inline void GetInterventionResponseRequest::clear_request_id() { - request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + request_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& GetInterventionResponseRequest::request_id() const { +inline const std::string& GetInterventionResponseRequest::request_id() const { // @@protoc_insertion_point(field_get:v1.agent.GetInterventionResponseRequest.request_id) + return _internal_request_id(); +} +inline void GetInterventionResponseRequest::set_request_id(const std::string& value) { + _internal_set_request_id(value); + // @@protoc_insertion_point(field_set:v1.agent.GetInterventionResponseRequest.request_id) +} +inline std::string* GetInterventionResponseRequest::mutable_request_id() { + // @@protoc_insertion_point(field_mutable:v1.agent.GetInterventionResponseRequest.request_id) + return _internal_mutable_request_id(); +} +inline const std::string& GetInterventionResponseRequest::_internal_request_id() const { return request_id_.GetNoArena(); } -inline void GetInterventionResponseRequest::set_request_id(const ::std::string& value) { +inline void GetInterventionResponseRequest::_internal_set_request_id(const std::string& value) { - request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.agent.GetInterventionResponseRequest.request_id) + request_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void GetInterventionResponseRequest::set_request_id(::std::string&& value) { +inline void GetInterventionResponseRequest::set_request_id(std::string&& value) { request_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:v1.agent.GetInterventionResponseRequest.request_id) } -#endif inline void GetInterventionResponseRequest::set_request_id(const char* value) { GOOGLE_DCHECK(value != nullptr); - request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + request_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:v1.agent.GetInterventionResponseRequest.request_id) } inline void GetInterventionResponseRequest::set_request_id(const char* value, size_t size) { - request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + request_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:v1.agent.GetInterventionResponseRequest.request_id) } -inline ::std::string* GetInterventionResponseRequest::mutable_request_id() { +inline std::string* GetInterventionResponseRequest::_internal_mutable_request_id() { - // @@protoc_insertion_point(field_mutable:v1.agent.GetInterventionResponseRequest.request_id) - return request_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return request_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* GetInterventionResponseRequest::release_request_id() { +inline std::string* GetInterventionResponseRequest::release_request_id() { // @@protoc_insertion_point(field_release:v1.agent.GetInterventionResponseRequest.request_id) - return request_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return request_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void GetInterventionResponseRequest::set_allocated_request_id(::std::string* request_id) { +inline void GetInterventionResponseRequest::set_allocated_request_id(std::string* request_id) { if (request_id != nullptr) { } else { } - request_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_id); + request_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), request_id); // @@protoc_insertion_point(field_set_allocated:v1.agent.GetInterventionResponseRequest.request_id) } @@ -1570,28 +2951,37 @@ inline void GetInterventionResponseRequest::set_allocated_request_id(::std::stri // GetStreamsConfigurationResponse -// repeated .v1.model.StreamConfiguration streams = 1; -inline int GetStreamsConfigurationResponse::streams_size() const { +// repeated .v1.model.StreamConfiguration streams = 1[json_name = "streams"]; +inline int GetStreamsConfigurationResponse::_internal_streams_size() const { return streams_.size(); } +inline int GetStreamsConfigurationResponse::streams_size() const { + return _internal_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 >* +inline ::PROTOBUF_NAMESPACE_ID::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::_internal_streams(int index) const { + return streams_.Get(index); +} inline const ::v1::model::StreamConfiguration& GetStreamsConfigurationResponse::streams(int index) const { // @@protoc_insertion_point(field_get:v1.agent.GetStreamsConfigurationResponse.streams) - return streams_.Get(index); + return _internal_streams(index); +} +inline ::v1::model::StreamConfiguration* GetStreamsConfigurationResponse::_internal_add_streams() { + return streams_.Add(); } inline ::v1::model::StreamConfiguration* GetStreamsConfigurationResponse::add_streams() { // @@protoc_insertion_point(field_add:v1.agent.GetStreamsConfigurationResponse.streams) - return streams_.Add(); + return _internal_add_streams(); } -inline const ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::v1::model::StreamConfiguration >& GetStreamsConfigurationResponse::streams() const { // @@protoc_insertion_point(field_list:v1.agent.GetStreamsConfigurationResponse.streams) return streams_; @@ -1605,16 +2995,22 @@ GetStreamsConfigurationResponse::streams() const { // GetApplicationConfigurationResponse -// .v1.model.ApplicationConfiguration configuration = 1; -inline bool GetApplicationConfigurationResponse::has_configuration() const { +// .v1.model.ApplicationConfiguration configuration = 1[json_name = "configuration"]; +inline bool GetApplicationConfigurationResponse::_internal_has_configuration() const { return this != internal_default_instance() && configuration_ != nullptr; } -inline const ::v1::model::ApplicationConfiguration& GetApplicationConfigurationResponse::configuration() const { +inline bool GetApplicationConfigurationResponse::has_configuration() const { + return _internal_has_configuration(); +} +inline const ::v1::model::ApplicationConfiguration& GetApplicationConfigurationResponse::_internal_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 const ::v1::model::ApplicationConfiguration& GetApplicationConfigurationResponse::configuration() const { + // @@protoc_insertion_point(field_get:v1.agent.GetApplicationConfigurationResponse.configuration) + return _internal_configuration(); +} inline ::v1::model::ApplicationConfiguration* GetApplicationConfigurationResponse::release_configuration() { // @@protoc_insertion_point(field_release:v1.agent.GetApplicationConfigurationResponse.configuration) @@ -1622,24 +3018,27 @@ inline ::v1::model::ApplicationConfiguration* GetApplicationConfigurationRespons configuration_ = nullptr; return temp; } -inline ::v1::model::ApplicationConfiguration* GetApplicationConfigurationResponse::mutable_configuration() { +inline ::v1::model::ApplicationConfiguration* GetApplicationConfigurationResponse::_internal_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 ::v1::model::ApplicationConfiguration* GetApplicationConfigurationResponse::mutable_configuration() { + // @@protoc_insertion_point(field_mutable:v1.agent.GetApplicationConfigurationResponse.configuration) + return _internal_mutable_configuration(); +} inline void GetApplicationConfigurationResponse::set_allocated_configuration(::v1::model::ApplicationConfiguration* configuration) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(configuration_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(configuration_); } if (configuration) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - configuration = ::google::protobuf::internal::GetOwnedMessage( + configuration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, configuration, submessage_arena); } @@ -1658,16 +3057,22 @@ inline void GetApplicationConfigurationResponse::set_allocated_configuration(::v // GetAgentConfigurationResponse -// .v1.model.AgentConfiguration configuration = 1; -inline bool GetAgentConfigurationResponse::has_configuration() const { +// .v1.model.AgentConfiguration configuration = 1[json_name = "configuration"]; +inline bool GetAgentConfigurationResponse::_internal_has_configuration() const { return this != internal_default_instance() && configuration_ != nullptr; } -inline const ::v1::model::AgentConfiguration& GetAgentConfigurationResponse::configuration() const { +inline bool GetAgentConfigurationResponse::has_configuration() const { + return _internal_has_configuration(); +} +inline const ::v1::model::AgentConfiguration& GetAgentConfigurationResponse::_internal_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 const ::v1::model::AgentConfiguration& GetAgentConfigurationResponse::configuration() const { + // @@protoc_insertion_point(field_get:v1.agent.GetAgentConfigurationResponse.configuration) + return _internal_configuration(); +} inline ::v1::model::AgentConfiguration* GetAgentConfigurationResponse::release_configuration() { // @@protoc_insertion_point(field_release:v1.agent.GetAgentConfigurationResponse.configuration) @@ -1675,24 +3080,27 @@ inline ::v1::model::AgentConfiguration* GetAgentConfigurationResponse::release_c configuration_ = nullptr; return temp; } -inline ::v1::model::AgentConfiguration* GetAgentConfigurationResponse::mutable_configuration() { +inline ::v1::model::AgentConfiguration* GetAgentConfigurationResponse::_internal_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 ::v1::model::AgentConfiguration* GetAgentConfigurationResponse::mutable_configuration() { + // @@protoc_insertion_point(field_mutable:v1.agent.GetAgentConfigurationResponse.configuration) + return _internal_mutable_configuration(); +} inline void GetAgentConfigurationResponse::set_allocated_configuration(::v1::model::AgentConfiguration* configuration) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(configuration_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(configuration_); } if (configuration) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - configuration = ::google::protobuf::internal::GetOwnedMessage( + configuration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, configuration, submessage_arena); } @@ -1711,6 +3119,412 @@ inline void GetAgentConfigurationResponse::set_allocated_configuration(::v1::mod // HealthResponse +// ------------------------------------------------------------------- + +// GetCommandRequestRequest + +// repeated string command_filter = 1[json_name = "commandFilter"]; +inline int GetCommandRequestRequest::_internal_command_filter_size() const { + return command_filter_.size(); +} +inline int GetCommandRequestRequest::command_filter_size() const { + return _internal_command_filter_size(); +} +inline void GetCommandRequestRequest::clear_command_filter() { + command_filter_.Clear(); +} +inline std::string* GetCommandRequestRequest::add_command_filter() { + // @@protoc_insertion_point(field_add_mutable:v1.agent.GetCommandRequestRequest.command_filter) + return _internal_add_command_filter(); +} +inline const std::string& GetCommandRequestRequest::_internal_command_filter(int index) const { + return command_filter_.Get(index); +} +inline const std::string& GetCommandRequestRequest::command_filter(int index) const { + // @@protoc_insertion_point(field_get:v1.agent.GetCommandRequestRequest.command_filter) + return _internal_command_filter(index); +} +inline std::string* GetCommandRequestRequest::mutable_command_filter(int index) { + // @@protoc_insertion_point(field_mutable:v1.agent.GetCommandRequestRequest.command_filter) + return command_filter_.Mutable(index); +} +inline void GetCommandRequestRequest::set_command_filter(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:v1.agent.GetCommandRequestRequest.command_filter) + command_filter_.Mutable(index)->assign(value); +} +inline void GetCommandRequestRequest::set_command_filter(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:v1.agent.GetCommandRequestRequest.command_filter) + command_filter_.Mutable(index)->assign(std::move(value)); +} +inline void GetCommandRequestRequest::set_command_filter(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + command_filter_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:v1.agent.GetCommandRequestRequest.command_filter) +} +inline void GetCommandRequestRequest::set_command_filter(int index, const char* value, size_t size) { + command_filter_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:v1.agent.GetCommandRequestRequest.command_filter) +} +inline std::string* GetCommandRequestRequest::_internal_add_command_filter() { + return command_filter_.Add(); +} +inline void GetCommandRequestRequest::add_command_filter(const std::string& value) { + command_filter_.Add()->assign(value); + // @@protoc_insertion_point(field_add:v1.agent.GetCommandRequestRequest.command_filter) +} +inline void GetCommandRequestRequest::add_command_filter(std::string&& value) { + command_filter_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:v1.agent.GetCommandRequestRequest.command_filter) +} +inline void GetCommandRequestRequest::add_command_filter(const char* value) { + GOOGLE_DCHECK(value != nullptr); + command_filter_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:v1.agent.GetCommandRequestRequest.command_filter) +} +inline void GetCommandRequestRequest::add_command_filter(const char* value, size_t size) { + command_filter_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:v1.agent.GetCommandRequestRequest.command_filter) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetCommandRequestRequest::command_filter() const { + // @@protoc_insertion_point(field_list:v1.agent.GetCommandRequestRequest.command_filter) + return command_filter_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetCommandRequestRequest::mutable_command_filter() { + // @@protoc_insertion_point(field_mutable_list:v1.agent.GetCommandRequestRequest.command_filter) + return &command_filter_; +} + +// ------------------------------------------------------------------- + +// GetCommandRequestResponse + +// .v1.model.CommandRequest request = 1[json_name = "request"]; +inline bool GetCommandRequestResponse::_internal_has_request() const { + return this != internal_default_instance() && request_ != nullptr; +} +inline bool GetCommandRequestResponse::has_request() const { + return _internal_has_request(); +} +inline const ::v1::model::CommandRequest& GetCommandRequestResponse::_internal_request() const { + const ::v1::model::CommandRequest* p = request_; + return p != nullptr ? *p : *reinterpret_cast( + &::v1::model::_CommandRequest_default_instance_); +} +inline const ::v1::model::CommandRequest& GetCommandRequestResponse::request() const { + // @@protoc_insertion_point(field_get:v1.agent.GetCommandRequestResponse.request) + return _internal_request(); +} +inline ::v1::model::CommandRequest* GetCommandRequestResponse::release_request() { + // @@protoc_insertion_point(field_release:v1.agent.GetCommandRequestResponse.request) + + ::v1::model::CommandRequest* temp = request_; + request_ = nullptr; + return temp; +} +inline ::v1::model::CommandRequest* GetCommandRequestResponse::_internal_mutable_request() { + + if (request_ == nullptr) { + auto* p = CreateMaybeMessage<::v1::model::CommandRequest>(GetArenaNoVirtual()); + request_ = p; + } + return request_; +} +inline ::v1::model::CommandRequest* GetCommandRequestResponse::mutable_request() { + // @@protoc_insertion_point(field_mutable:v1.agent.GetCommandRequestResponse.request) + return _internal_mutable_request(); +} +inline void GetCommandRequestResponse::set_allocated_request(::v1::model::CommandRequest* request) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(request_); + } + if (request) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, request, submessage_arena); + } + + } else { + + } + request_ = request; + // @@protoc_insertion_point(field_set_allocated:v1.agent.GetCommandRequestResponse.request) +} + +// ------------------------------------------------------------------- + +// SendCommandResponseRequest + +// .v1.model.CommandResponse response = 1[json_name = "response"]; +inline bool SendCommandResponseRequest::_internal_has_response() const { + return this != internal_default_instance() && response_ != nullptr; +} +inline bool SendCommandResponseRequest::has_response() const { + return _internal_has_response(); +} +inline const ::v1::model::CommandResponse& SendCommandResponseRequest::_internal_response() const { + const ::v1::model::CommandResponse* p = response_; + return p != nullptr ? *p : *reinterpret_cast( + &::v1::model::_CommandResponse_default_instance_); +} +inline const ::v1::model::CommandResponse& SendCommandResponseRequest::response() const { + // @@protoc_insertion_point(field_get:v1.agent.SendCommandResponseRequest.response) + return _internal_response(); +} +inline ::v1::model::CommandResponse* SendCommandResponseRequest::release_response() { + // @@protoc_insertion_point(field_release:v1.agent.SendCommandResponseRequest.response) + + ::v1::model::CommandResponse* temp = response_; + response_ = nullptr; + return temp; +} +inline ::v1::model::CommandResponse* SendCommandResponseRequest::_internal_mutable_response() { + + if (response_ == nullptr) { + auto* p = CreateMaybeMessage<::v1::model::CommandResponse>(GetArenaNoVirtual()); + response_ = p; + } + return response_; +} +inline ::v1::model::CommandResponse* SendCommandResponseRequest::mutable_response() { + // @@protoc_insertion_point(field_mutable:v1.agent.SendCommandResponseRequest.response) + return _internal_mutable_response(); +} +inline void SendCommandResponseRequest::set_allocated_response(::v1::model::CommandResponse* response) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(response_); + } + if (response) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + response = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, response, submessage_arena); + } + + } else { + + } + response_ = response; + // @@protoc_insertion_point(field_set_allocated:v1.agent.SendCommandResponseRequest.response) +} + +// ------------------------------------------------------------------- + +// SendCommandResponseResponse + +// ------------------------------------------------------------------- + +// GetCommandRequestStreamRequest + +// repeated string command_filter = 1[json_name = "commandFilter"]; +inline int GetCommandRequestStreamRequest::_internal_command_filter_size() const { + return command_filter_.size(); +} +inline int GetCommandRequestStreamRequest::command_filter_size() const { + return _internal_command_filter_size(); +} +inline void GetCommandRequestStreamRequest::clear_command_filter() { + command_filter_.Clear(); +} +inline std::string* GetCommandRequestStreamRequest::add_command_filter() { + // @@protoc_insertion_point(field_add_mutable:v1.agent.GetCommandRequestStreamRequest.command_filter) + return _internal_add_command_filter(); +} +inline const std::string& GetCommandRequestStreamRequest::_internal_command_filter(int index) const { + return command_filter_.Get(index); +} +inline const std::string& GetCommandRequestStreamRequest::command_filter(int index) const { + // @@protoc_insertion_point(field_get:v1.agent.GetCommandRequestStreamRequest.command_filter) + return _internal_command_filter(index); +} +inline std::string* GetCommandRequestStreamRequest::mutable_command_filter(int index) { + // @@protoc_insertion_point(field_mutable:v1.agent.GetCommandRequestStreamRequest.command_filter) + return command_filter_.Mutable(index); +} +inline void GetCommandRequestStreamRequest::set_command_filter(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:v1.agent.GetCommandRequestStreamRequest.command_filter) + command_filter_.Mutable(index)->assign(value); +} +inline void GetCommandRequestStreamRequest::set_command_filter(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:v1.agent.GetCommandRequestStreamRequest.command_filter) + command_filter_.Mutable(index)->assign(std::move(value)); +} +inline void GetCommandRequestStreamRequest::set_command_filter(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + command_filter_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:v1.agent.GetCommandRequestStreamRequest.command_filter) +} +inline void GetCommandRequestStreamRequest::set_command_filter(int index, const char* value, size_t size) { + command_filter_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:v1.agent.GetCommandRequestStreamRequest.command_filter) +} +inline std::string* GetCommandRequestStreamRequest::_internal_add_command_filter() { + return command_filter_.Add(); +} +inline void GetCommandRequestStreamRequest::add_command_filter(const std::string& value) { + command_filter_.Add()->assign(value); + // @@protoc_insertion_point(field_add:v1.agent.GetCommandRequestStreamRequest.command_filter) +} +inline void GetCommandRequestStreamRequest::add_command_filter(std::string&& value) { + command_filter_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:v1.agent.GetCommandRequestStreamRequest.command_filter) +} +inline void GetCommandRequestStreamRequest::add_command_filter(const char* value) { + GOOGLE_DCHECK(value != nullptr); + command_filter_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:v1.agent.GetCommandRequestStreamRequest.command_filter) +} +inline void GetCommandRequestStreamRequest::add_command_filter(const char* value, size_t size) { + command_filter_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:v1.agent.GetCommandRequestStreamRequest.command_filter) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetCommandRequestStreamRequest::command_filter() const { + // @@protoc_insertion_point(field_list:v1.agent.GetCommandRequestStreamRequest.command_filter) + return command_filter_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetCommandRequestStreamRequest::mutable_command_filter() { + // @@protoc_insertion_point(field_mutable_list:v1.agent.GetCommandRequestStreamRequest.command_filter) + return &command_filter_; +} + +// ------------------------------------------------------------------- + +// GetCommandRequestStreamResponse + +// .v1.model.CommandRequest request = 1[json_name = "request"]; +inline bool GetCommandRequestStreamResponse::_internal_has_request() const { + return this != internal_default_instance() && request_ != nullptr; +} +inline bool GetCommandRequestStreamResponse::has_request() const { + return _internal_has_request(); +} +inline const ::v1::model::CommandRequest& GetCommandRequestStreamResponse::_internal_request() const { + const ::v1::model::CommandRequest* p = request_; + return p != nullptr ? *p : *reinterpret_cast( + &::v1::model::_CommandRequest_default_instance_); +} +inline const ::v1::model::CommandRequest& GetCommandRequestStreamResponse::request() const { + // @@protoc_insertion_point(field_get:v1.agent.GetCommandRequestStreamResponse.request) + return _internal_request(); +} +inline ::v1::model::CommandRequest* GetCommandRequestStreamResponse::release_request() { + // @@protoc_insertion_point(field_release:v1.agent.GetCommandRequestStreamResponse.request) + + ::v1::model::CommandRequest* temp = request_; + request_ = nullptr; + return temp; +} +inline ::v1::model::CommandRequest* GetCommandRequestStreamResponse::_internal_mutable_request() { + + if (request_ == nullptr) { + auto* p = CreateMaybeMessage<::v1::model::CommandRequest>(GetArenaNoVirtual()); + request_ = p; + } + return request_; +} +inline ::v1::model::CommandRequest* GetCommandRequestStreamResponse::mutable_request() { + // @@protoc_insertion_point(field_mutable:v1.agent.GetCommandRequestStreamResponse.request) + return _internal_mutable_request(); +} +inline void GetCommandRequestStreamResponse::set_allocated_request(::v1::model::CommandRequest* request) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(request_); + } + if (request) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, request, submessage_arena); + } + + } else { + + } + request_ = request; + // @@protoc_insertion_point(field_set_allocated:v1.agent.GetCommandRequestStreamResponse.request) +} + +// ------------------------------------------------------------------- + +// PostTransformFrameResponse + +// ------------------------------------------------------------------- + +// SetBaseFrameIDRequest + +// string id = 1[json_name = "id"]; +inline void SetBaseFrameIDRequest::clear_id() { + id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& SetBaseFrameIDRequest::id() const { + // @@protoc_insertion_point(field_get:v1.agent.SetBaseFrameIDRequest.id) + return _internal_id(); +} +inline void SetBaseFrameIDRequest::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:v1.agent.SetBaseFrameIDRequest.id) +} +inline std::string* SetBaseFrameIDRequest::mutable_id() { + // @@protoc_insertion_point(field_mutable:v1.agent.SetBaseFrameIDRequest.id) + return _internal_mutable_id(); +} +inline const std::string& SetBaseFrameIDRequest::_internal_id() const { + return id_.GetNoArena(); +} +inline void SetBaseFrameIDRequest::_internal_set_id(const std::string& value) { + + id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +} +inline void SetBaseFrameIDRequest::set_id(std::string&& value) { + + id_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.agent.SetBaseFrameIDRequest.id) +} +inline void SetBaseFrameIDRequest::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.agent.SetBaseFrameIDRequest.id) +} +inline void SetBaseFrameIDRequest::set_id(const char* value, size_t size) { + + id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.agent.SetBaseFrameIDRequest.id) +} +inline std::string* SetBaseFrameIDRequest::_internal_mutable_id() { + + return id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* SetBaseFrameIDRequest::release_id() { + // @@protoc_insertion_point(field_release:v1.agent.SetBaseFrameIDRequest.id) + + return id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void SetBaseFrameIDRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id); + // @@protoc_insertion_point(field_set_allocated:v1.agent.SetBaseFrameIDRequest.id) +} + +// ------------------------------------------------------------------- + +// SetBaseFrameIDResponse + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -1736,6 +3550,24 @@ inline void GetAgentConfigurationResponse::set_allocated_configuration(::v1::mod // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -1745,4 +3577,4 @@ inline void GetAgentConfigurationResponse::set_allocated_configuration(::v1::mod // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_protos_2fagent_2fv1_2fagent_2eproto +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fagent_2fv1_2fagent_2eproto diff --git a/examples/cpp/protos/agent/v1/agent_mock.grpc.pb.h b/examples/cpp/protos/agent/v1/agent_mock.grpc.pb.h index eb5c923..7098a22 100755 --- a/examples/cpp/protos/agent/v1/agent_mock.grpc.pb.h +++ b/examples/cpp/protos/agent/v1/agent_mock.grpc.pb.h @@ -40,6 +40,21 @@ class MockAgentStub : public Agent::StubInterface { 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)); + MOCK_METHOD3(GetCommandRequest, ::grpc::Status(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::v1::agent::GetCommandRequestResponse* response)); + MOCK_METHOD3(AsyncGetCommandRequestRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetCommandRequestResponse>*(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetCommandRequestRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::GetCommandRequestResponse>*(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD2(GetCommandRequestStreamRaw, ::grpc::ClientReaderInterface< ::v1::agent::GetCommandRequestStreamResponse>*(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request)); + MOCK_METHOD4(AsyncGetCommandRequestStreamRaw, ::grpc::ClientAsyncReaderInterface< ::v1::agent::GetCommandRequestStreamResponse>*(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request, ::grpc::CompletionQueue* cq, void* tag)); + MOCK_METHOD3(PrepareAsyncGetCommandRequestStreamRaw, ::grpc::ClientAsyncReaderInterface< ::v1::agent::GetCommandRequestStreamResponse>*(::grpc::ClientContext* context, const ::v1::agent::GetCommandRequestStreamRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(SendCommandResponse, ::grpc::Status(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::v1::agent::SendCommandResponseResponse* response)); + MOCK_METHOD3(AsyncSendCommandResponseRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SendCommandResponseResponse>*(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncSendCommandResponseRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SendCommandResponseResponse>*(::grpc::ClientContext* context, const ::v1::agent::SendCommandResponseRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PostTransformFrame, ::grpc::Status(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::v1::agent::PostTransformFrameResponse* response)); + MOCK_METHOD3(AsyncPostTransformFrameRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostTransformFrameResponse>*(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncPostTransformFrameRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::PostTransformFrameResponse>*(::grpc::ClientContext* context, const ::v1::model::TransformFrame& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(SetBaseFrameID, ::grpc::Status(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::v1::agent::SetBaseFrameIDResponse* response)); + MOCK_METHOD3(AsyncSetBaseFrameIDRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SetBaseFrameIDResponse>*(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncSetBaseFrameIDRaw, ::grpc::ClientAsyncResponseReaderInterface< ::v1::agent::SetBaseFrameIDResponse>*(::grpc::ClientContext* context, const ::v1::agent::SetBaseFrameIDRequest& request, ::grpc::CompletionQueue* cq)); }; } // namespace v1 diff --git a/examples/cpp/protos/model/v1/commands.grpc.pb.cc b/examples/cpp/protos/model/v1/commands.grpc.pb.cc new file mode 100755 index 0000000..44e8748 --- /dev/null +++ b/examples/cpp/protos/model/v1/commands.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/commands.proto + +#include "protos/model/v1/commands.pb.h" +#include "protos/model/v1/commands.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace v1 { +namespace model { + +} // namespace v1 +} // namespace model + diff --git a/examples/cpp/protos/model/v1/commands.grpc.pb.h b/examples/cpp/protos/model/v1/commands.grpc.pb.h new file mode 100755 index 0000000..ae5f9ad --- /dev/null +++ b/examples/cpp/protos/model/v1/commands.grpc.pb.h @@ -0,0 +1,46 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/commands.proto +#ifndef GRPC_protos_2fmodel_2fv1_2fcommands_2eproto__INCLUDED +#define GRPC_protos_2fmodel_2fv1_2fcommands_2eproto__INCLUDED + +#include "protos/model/v1/commands.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class CompletionQueue; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc + +namespace v1 { +namespace model { + +} // namespace model +} // namespace v1 + + +#endif // GRPC_protos_2fmodel_2fv1_2fcommands_2eproto__INCLUDED diff --git a/examples/cpp/protos/model/v1/commands.pb.cc b/examples/cpp/protos/model/v1/commands.pb.cc new file mode 100755 index 0000000..ff2c710 --- /dev/null +++ b/examples/cpp/protos/model/v1/commands.pb.cc @@ -0,0 +1,828 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: protos/model/v1/commands.proto + +#include "protos/model/v1/commands.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fdatapoint_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<11> scc_info_Datapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto; +namespace v1 { +namespace model { +class CommandRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr text_; +} _CommandRequest_default_instance_; +class CommandResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + const ::v1::model::Datapoint* datapoint_; +} _CommandResponse_default_instance_; +} // namespace model +} // namespace v1 +static void InitDefaultsscc_info_CommandRequest_protos_2fmodel_2fv1_2fcommands_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_CommandRequest_default_instance_; + new (ptr) ::v1::model::CommandRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::CommandRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CommandRequest_protos_2fmodel_2fv1_2fcommands_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CommandRequest_protos_2fmodel_2fv1_2fcommands_2eproto}, { + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; + +static void InitDefaultsscc_info_CommandResponse_protos_2fmodel_2fv1_2fcommands_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_CommandResponse_default_instance_; + new (ptr) ::v1::model::CommandResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::CommandResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CommandResponse_protos_2fmodel_2fv1_2fcommands_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CommandResponse_protos_2fmodel_2fv1_2fcommands_2eproto}, { + &scc_info_Datapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto.base,}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protos_2fmodel_2fv1_2fcommands_2eproto[2]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_protos_2fmodel_2fv1_2fcommands_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protos_2fmodel_2fv1_2fcommands_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_protos_2fmodel_2fv1_2fcommands_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::CommandRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::v1::model::CommandRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::CommandRequest, id_), + PROTOBUF_FIELD_OFFSET(::v1::model::CommandRequest, command_), + offsetof(::v1::model::CommandRequestDefaultTypeInternal, text_), + PROTOBUF_FIELD_OFFSET(::v1::model::CommandRequest, scrubber_time_), + PROTOBUF_FIELD_OFFSET(::v1::model::CommandRequest, parameter_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::CommandResponse, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::v1::model::CommandResponse, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::CommandResponse, request_id_), + PROTOBUF_FIELD_OFFSET(::v1::model::CommandResponse, success_), + offsetof(::v1::model::CommandResponseDefaultTypeInternal, datapoint_), + PROTOBUF_FIELD_OFFSET(::v1::model::CommandResponse, result_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::v1::model::CommandRequest)}, + { 10, -1, sizeof(::v1::model::CommandResponse)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::v1::model::_CommandRequest_default_instance_), + reinterpret_cast(&::v1::model::_CommandResponse_default_instance_), +}; + +const char descriptor_table_protodef_protos_2fmodel_2fv1_2fcommands_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036protos/model/v1/commands.proto\022\010v1.mod" + "el\032\037google/protobuf/timestamp.proto\032\037pro" + "tos/model/v1/datapoint.proto\"\236\001\n\016Command" + "Request\022\016\n\002id\030\001 \001(\tR\002id\022\030\n\007command\030\002 \001(\t" + "R\007command\022\024\n\004text\030\003 \001(\tH\000R\004text\022\?\n\rscrub" + "ber_time\030\004 \001(\0132\032.google.protobuf.Timesta" + "mpR\014scrubberTimeB\013\n\tparameter\"\211\001\n\017Comman" + "dResponse\022\035\n\nrequest_id\030\001 \001(\tR\trequestId" + "\022\030\n\007success\030\002 \001(\010R\007success\0223\n\tdatapoint\030" + "\003 \001(\0132\023.v1.model.DatapointH\000R\tdatapointB" + "\010\n\006resultB+Z)github.com/FormantIO/genpro" + "to/go/v1/modelb\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto_deps[2] = { + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + &::descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto_sccs[2] = { + &scc_info_CommandRequest_protos_2fmodel_2fv1_2fcommands_2eproto.base, + &scc_info_CommandResponse_protos_2fmodel_2fv1_2fcommands_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto_once; +static bool descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto_initialized = false; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto = { + &descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto_initialized, descriptor_table_protodef_protos_2fmodel_2fv1_2fcommands_2eproto, "protos/model/v1/commands.proto", 462, + &descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto_once, descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto_sccs, descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto_deps, 2, 2, + schemas, file_default_instances, TableStruct_protos_2fmodel_2fv1_2fcommands_2eproto::offsets, + file_level_metadata_protos_2fmodel_2fv1_2fcommands_2eproto, 2, file_level_enum_descriptors_protos_2fmodel_2fv1_2fcommands_2eproto, file_level_service_descriptors_protos_2fmodel_2fv1_2fcommands_2eproto, +}; + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_protos_2fmodel_2fv1_2fcommands_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto), true); +namespace v1 { +namespace model { + +// =================================================================== + +void CommandRequest::InitAsDefaultInstance() { + ::v1::model::_CommandRequest_default_instance_.text_.UnsafeSetDefault( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::v1::model::_CommandRequest_default_instance_._instance.get_mutable()->scrubber_time_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>( + PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance()); +} +class CommandRequest::_Internal { + public: + static const PROTOBUF_NAMESPACE_ID::Timestamp& scrubber_time(const CommandRequest* msg); +}; + +const PROTOBUF_NAMESPACE_ID::Timestamp& +CommandRequest::_Internal::scrubber_time(const CommandRequest* msg) { + return *msg->scrubber_time_; +} +void CommandRequest::clear_scrubber_time() { + if (GetArenaNoVirtual() == nullptr && scrubber_time_ != nullptr) { + delete scrubber_time_; + } + scrubber_time_ = nullptr; +} +CommandRequest::CommandRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.CommandRequest) +} +CommandRequest::CommandRequest(const CommandRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_id().empty()) { + id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.id_); + } + command_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_command().empty()) { + command_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.command_); + } + if (from._internal_has_scrubber_time()) { + scrubber_time_ = new PROTOBUF_NAMESPACE_ID::Timestamp(*from.scrubber_time_); + } else { + scrubber_time_ = nullptr; + } + clear_has_parameter(); + switch (from.parameter_case()) { + case kText: { + _internal_set_text(from._internal_text()); + break; + } + case PARAMETER_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:v1.model.CommandRequest) +} + +void CommandRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CommandRequest_protos_2fmodel_2fv1_2fcommands_2eproto.base); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + command_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + scrubber_time_ = nullptr; + clear_has_parameter(); +} + +CommandRequest::~CommandRequest() { + // @@protoc_insertion_point(destructor:v1.model.CommandRequest) + SharedDtor(); +} + +void CommandRequest::SharedDtor() { + id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + command_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete scrubber_time_; + if (has_parameter()) { + clear_parameter(); + } +} + +void CommandRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CommandRequest& CommandRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CommandRequest_protos_2fmodel_2fv1_2fcommands_2eproto.base); + return *internal_default_instance(); +} + + +void CommandRequest::clear_parameter() { +// @@protoc_insertion_point(one_of_clear_start:v1.model.CommandRequest) + switch (parameter_case()) { + case kText: { + parameter_.text_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + break; + } + case PARAMETER_NOT_SET: { + break; + } + } + _oneof_case_[0] = PARAMETER_NOT_SET; +} + + +void CommandRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.CommandRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + command_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && scrubber_time_ != nullptr) { + delete scrubber_time_; + } + scrubber_time_ = nullptr; + clear_parameter(); + _internal_metadata_.Clear(); +} + +const char* CommandRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string id = 1[json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.CommandRequest.id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string command = 2[json_name = "command"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_command(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.CommandRequest.command")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string text = 3[json_name = "text"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_text(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.CommandRequest.text")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .google.protobuf.Timestamp scrubber_time = 4[json_name = "scrubberTime"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_scrubber_time(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* CommandRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.CommandRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1[json_name = "id"]; + if (this->id().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "v1.model.CommandRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string command = 2[json_name = "command"]; + if (this->command().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_command().data(), static_cast(this->_internal_command().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "v1.model.CommandRequest.command"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_command(), target); + } + + // string text = 3[json_name = "text"]; + if (_internal_has_text()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_text().data(), static_cast(this->_internal_text().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "v1.model.CommandRequest.text"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_text(), target); + } + + // .google.protobuf.Timestamp scrubber_time = 4[json_name = "scrubberTime"]; + if (this->has_scrubber_time()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::scrubber_time(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.CommandRequest) + return target; +} + +size_t CommandRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.CommandRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1[json_name = "id"]; + if (this->id().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string command = 2[json_name = "command"]; + if (this->command().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_command()); + } + + // .google.protobuf.Timestamp scrubber_time = 4[json_name = "scrubberTime"]; + if (this->has_scrubber_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *scrubber_time_); + } + + switch (parameter_case()) { + // string text = 3[json_name = "text"]; + case kText: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_text()); + break; + } + case PARAMETER_NOT_SET: { + break; + } + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CommandRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.CommandRequest) + GOOGLE_DCHECK_NE(&from, this); + const CommandRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.CommandRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.CommandRequest) + MergeFrom(*source); + } +} + +void CommandRequest::MergeFrom(const CommandRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.CommandRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.id().size() > 0) { + + id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.command().size() > 0) { + + command_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.command_); + } + if (from.has_scrubber_time()) { + _internal_mutable_scrubber_time()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_scrubber_time()); + } + switch (from.parameter_case()) { + case kText: { + _internal_set_text(from._internal_text()); + break; + } + case PARAMETER_NOT_SET: { + break; + } + } +} + +void CommandRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.CommandRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CommandRequest::CopyFrom(const CommandRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.CommandRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CommandRequest::IsInitialized() const { + return true; +} + +void CommandRequest::InternalSwap(CommandRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + command_.Swap(&other->command_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(scrubber_time_, other->scrubber_time_); + swap(parameter_, other->parameter_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CommandRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void CommandResponse::InitAsDefaultInstance() { + ::v1::model::_CommandResponse_default_instance_.datapoint_ = const_cast< ::v1::model::Datapoint*>( + ::v1::model::Datapoint::internal_default_instance()); +} +class CommandResponse::_Internal { + public: + static const ::v1::model::Datapoint& datapoint(const CommandResponse* msg); +}; + +const ::v1::model::Datapoint& +CommandResponse::_Internal::datapoint(const CommandResponse* msg) { + return *msg->result_.datapoint_; +} +void CommandResponse::set_allocated_datapoint(::v1::model::Datapoint* datapoint) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_result(); + if (datapoint) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + datapoint = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, datapoint, submessage_arena); + } + set_has_datapoint(); + result_.datapoint_ = datapoint; + } + // @@protoc_insertion_point(field_set_allocated:v1.model.CommandResponse.datapoint) +} +void CommandResponse::clear_datapoint() { + if (_internal_has_datapoint()) { + delete result_.datapoint_; + clear_has_result(); + } +} +CommandResponse::CommandResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.CommandResponse) +} +CommandResponse::CommandResponse(const CommandResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + request_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_request_id().empty()) { + request_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + success_ = from.success_; + clear_has_result(); + switch (from.result_case()) { + case kDatapoint: { + _internal_mutable_datapoint()->::v1::model::Datapoint::MergeFrom(from._internal_datapoint()); + break; + } + case RESULT_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:v1.model.CommandResponse) +} + +void CommandResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CommandResponse_protos_2fmodel_2fv1_2fcommands_2eproto.base); + request_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + success_ = false; + clear_has_result(); +} + +CommandResponse::~CommandResponse() { + // @@protoc_insertion_point(destructor:v1.model.CommandResponse) + SharedDtor(); +} + +void CommandResponse::SharedDtor() { + request_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (has_result()) { + clear_result(); + } +} + +void CommandResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CommandResponse& CommandResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CommandResponse_protos_2fmodel_2fv1_2fcommands_2eproto.base); + return *internal_default_instance(); +} + + +void CommandResponse::clear_result() { +// @@protoc_insertion_point(one_of_clear_start:v1.model.CommandResponse) + switch (result_case()) { + case kDatapoint: { + delete result_.datapoint_; + break; + } + case RESULT_NOT_SET: { + break; + } + } + _oneof_case_[0] = RESULT_NOT_SET; +} + + +void CommandResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.CommandResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + request_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + success_ = false; + clear_result(); + _internal_metadata_.Clear(); +} + +const char* CommandResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string request_id = 1[json_name = "requestId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_request_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.CommandResponse.request_id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bool success = 2[json_name = "success"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.Datapoint datapoint = 3[json_name = "datapoint"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_datapoint(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* CommandResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.CommandResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1[json_name = "requestId"]; + if (this->request_id().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_request_id().data(), static_cast(this->_internal_request_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "v1.model.CommandResponse.request_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_request_id(), target); + } + + // bool success = 2[json_name = "success"]; + if (this->success() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_success(), target); + } + + // .v1.model.Datapoint datapoint = 3[json_name = "datapoint"]; + if (_internal_has_datapoint()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::datapoint(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.CommandResponse) + return target; +} + +size_t CommandResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.CommandResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string request_id = 1[json_name = "requestId"]; + if (this->request_id().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_request_id()); + } + + // bool success = 2[json_name = "success"]; + if (this->success() != 0) { + total_size += 1 + 1; + } + + switch (result_case()) { + // .v1.model.Datapoint datapoint = 3[json_name = "datapoint"]; + case kDatapoint: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *result_.datapoint_); + break; + } + case RESULT_NOT_SET: { + break; + } + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CommandResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.CommandResponse) + GOOGLE_DCHECK_NE(&from, this); + const CommandResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.CommandResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.CommandResponse) + MergeFrom(*source); + } +} + +void CommandResponse::MergeFrom(const CommandResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.CommandResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.request_id().size() > 0) { + + request_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + if (from.success() != 0) { + _internal_set_success(from._internal_success()); + } + switch (from.result_case()) { + case kDatapoint: { + _internal_mutable_datapoint()->::v1::model::Datapoint::MergeFrom(from._internal_datapoint()); + break; + } + case RESULT_NOT_SET: { + break; + } + } +} + +void CommandResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.CommandResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CommandResponse::CopyFrom(const CommandResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.CommandResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CommandResponse::IsInitialized() const { + return true; +} + +void CommandResponse::InternalSwap(CommandResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + request_id_.Swap(&other->request_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(success_, other->success_); + swap(result_, other->result_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CommandResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace model +} // namespace v1 +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::v1::model::CommandRequest* Arena::CreateMaybeMessage< ::v1::model::CommandRequest >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::CommandRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::CommandResponse* Arena::CreateMaybeMessage< ::v1::model::CommandResponse >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::CommandResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/examples/cpp/protos/model/v1/commands.pb.h b/examples/cpp/protos/model/v1/commands.pb.h new file mode 100755 index 0000000..0bca2d3 --- /dev/null +++ b/examples/cpp/protos/model/v1/commands.pb.h @@ -0,0 +1,906 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: protos/model/v1/commands.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fcommands_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fcommands_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3011000 +#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 3011000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "protos/model/v1/datapoint.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fcommands_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_protos_2fmodel_2fv1_2fcommands_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto; +namespace v1 { +namespace model { +class CommandRequest; +class CommandRequestDefaultTypeInternal; +extern CommandRequestDefaultTypeInternal _CommandRequest_default_instance_; +class CommandResponse; +class CommandResponseDefaultTypeInternal; +extern CommandResponseDefaultTypeInternal _CommandResponse_default_instance_; +} // namespace model +} // namespace v1 +PROTOBUF_NAMESPACE_OPEN +template<> ::v1::model::CommandRequest* Arena::CreateMaybeMessage<::v1::model::CommandRequest>(Arena*); +template<> ::v1::model::CommandResponse* Arena::CreateMaybeMessage<::v1::model::CommandResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace v1 { +namespace model { + +// =================================================================== + +class CommandRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.model.CommandRequest) */ { + public: + CommandRequest(); + virtual ~CommandRequest(); + + CommandRequest(const CommandRequest& from); + CommandRequest(CommandRequest&& from) noexcept + : CommandRequest() { + *this = ::std::move(from); + } + + inline CommandRequest& operator=(const CommandRequest& from) { + CopyFrom(from); + return *this; + } + inline CommandRequest& operator=(CommandRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const CommandRequest& default_instance(); + + enum ParameterCase { + kText = 3, + PARAMETER_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CommandRequest* internal_default_instance() { + return reinterpret_cast( + &_CommandRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(CommandRequest& a, CommandRequest& b) { + a.Swap(&b); + } + inline void Swap(CommandRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CommandRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + CommandRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const CommandRequest& from); + void MergeFrom(const CommandRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CommandRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.CommandRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIdFieldNumber = 1, + kCommandFieldNumber = 2, + kScrubberTimeFieldNumber = 4, + kTextFieldNumber = 3, + }; + // string id = 1[json_name = "id"]; + void clear_id(); + const std::string& id() const; + void set_id(const std::string& value); + void set_id(std::string&& value); + 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); + private: + const std::string& _internal_id() const; + void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string command = 2[json_name = "command"]; + void clear_command(); + const std::string& command() const; + void set_command(const std::string& value); + void set_command(std::string&& value); + void set_command(const char* value); + void set_command(const char* value, size_t size); + std::string* mutable_command(); + std::string* release_command(); + void set_allocated_command(std::string* command); + private: + const std::string& _internal_command() const; + void _internal_set_command(const std::string& value); + std::string* _internal_mutable_command(); + public: + + // .google.protobuf.Timestamp scrubber_time = 4[json_name = "scrubberTime"]; + bool has_scrubber_time() const; + private: + bool _internal_has_scrubber_time() const; + public: + void clear_scrubber_time(); + const PROTOBUF_NAMESPACE_ID::Timestamp& scrubber_time() const; + PROTOBUF_NAMESPACE_ID::Timestamp* release_scrubber_time(); + PROTOBUF_NAMESPACE_ID::Timestamp* mutable_scrubber_time(); + void set_allocated_scrubber_time(PROTOBUF_NAMESPACE_ID::Timestamp* scrubber_time); + private: + const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_scrubber_time() const; + PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_scrubber_time(); + public: + + // string text = 3[json_name = "text"]; + private: + bool _internal_has_text() const; + public: + void clear_text(); + const std::string& text() const; + void set_text(const std::string& value); + void set_text(std::string&& value); + void set_text(const char* value); + void set_text(const char* value, size_t size); + std::string* mutable_text(); + std::string* release_text(); + void set_allocated_text(std::string* text); + private: + const std::string& _internal_text() const; + void _internal_set_text(const std::string& value); + std::string* _internal_mutable_text(); + public: + + void clear_parameter(); + ParameterCase parameter_case() const; + // @@protoc_insertion_point(class_scope:v1.model.CommandRequest) + private: + class _Internal; + void set_has_text(); + + inline bool has_parameter() const; + inline void clear_has_parameter(); + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr command_; + PROTOBUF_NAMESPACE_ID::Timestamp* scrubber_time_; + union ParameterUnion { + ParameterUnion() {} + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr text_; + } parameter_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_protos_2fmodel_2fv1_2fcommands_2eproto; +}; +// ------------------------------------------------------------------- + +class CommandResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.model.CommandResponse) */ { + public: + CommandResponse(); + virtual ~CommandResponse(); + + CommandResponse(const CommandResponse& from); + CommandResponse(CommandResponse&& from) noexcept + : CommandResponse() { + *this = ::std::move(from); + } + + inline CommandResponse& operator=(const CommandResponse& from) { + CopyFrom(from); + return *this; + } + inline CommandResponse& operator=(CommandResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const CommandResponse& default_instance(); + + enum ResultCase { + kDatapoint = 3, + RESULT_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CommandResponse* internal_default_instance() { + return reinterpret_cast( + &_CommandResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(CommandResponse& a, CommandResponse& b) { + a.Swap(&b); + } + inline void Swap(CommandResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CommandResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + CommandResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const CommandResponse& from); + void MergeFrom(const CommandResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CommandResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.CommandResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fcommands_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kRequestIdFieldNumber = 1, + kSuccessFieldNumber = 2, + kDatapointFieldNumber = 3, + }; + // string request_id = 1[json_name = "requestId"]; + void clear_request_id(); + const std::string& request_id() const; + void set_request_id(const std::string& value); + void set_request_id(std::string&& value); + 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); + private: + const std::string& _internal_request_id() const; + void _internal_set_request_id(const std::string& value); + std::string* _internal_mutable_request_id(); + public: + + // bool success = 2[json_name = "success"]; + void clear_success(); + bool success() const; + void set_success(bool value); + private: + bool _internal_success() const; + void _internal_set_success(bool value); + public: + + // .v1.model.Datapoint datapoint = 3[json_name = "datapoint"]; + bool has_datapoint() const; + private: + bool _internal_has_datapoint() const; + public: + void clear_datapoint(); + const ::v1::model::Datapoint& datapoint() const; + ::v1::model::Datapoint* release_datapoint(); + ::v1::model::Datapoint* mutable_datapoint(); + void set_allocated_datapoint(::v1::model::Datapoint* datapoint); + private: + const ::v1::model::Datapoint& _internal_datapoint() const; + ::v1::model::Datapoint* _internal_mutable_datapoint(); + public: + + void clear_result(); + ResultCase result_case() const; + // @@protoc_insertion_point(class_scope:v1.model.CommandResponse) + private: + class _Internal; + void set_has_datapoint(); + + inline bool has_result() const; + inline void clear_has_result(); + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr request_id_; + bool success_; + union ResultUnion { + ResultUnion() {} + ::v1::model::Datapoint* datapoint_; + } result_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_protos_2fmodel_2fv1_2fcommands_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// CommandRequest + +// string id = 1[json_name = "id"]; +inline void CommandRequest::clear_id() { + id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CommandRequest::id() const { + // @@protoc_insertion_point(field_get:v1.model.CommandRequest.id) + return _internal_id(); +} +inline void CommandRequest::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:v1.model.CommandRequest.id) +} +inline std::string* CommandRequest::mutable_id() { + // @@protoc_insertion_point(field_mutable:v1.model.CommandRequest.id) + return _internal_mutable_id(); +} +inline const std::string& CommandRequest::_internal_id() const { + return id_.GetNoArena(); +} +inline void CommandRequest::_internal_set_id(const std::string& value) { + + id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +} +inline void CommandRequest::set_id(std::string&& value) { + + id_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.CommandRequest.id) +} +inline void CommandRequest::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.CommandRequest.id) +} +inline void CommandRequest::set_id(const char* value, size_t size) { + + id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.CommandRequest.id) +} +inline std::string* CommandRequest::_internal_mutable_id() { + + return id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CommandRequest::release_id() { + // @@protoc_insertion_point(field_release:v1.model.CommandRequest.id) + + return id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CommandRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id); + // @@protoc_insertion_point(field_set_allocated:v1.model.CommandRequest.id) +} + +// string command = 2[json_name = "command"]; +inline void CommandRequest::clear_command() { + command_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CommandRequest::command() const { + // @@protoc_insertion_point(field_get:v1.model.CommandRequest.command) + return _internal_command(); +} +inline void CommandRequest::set_command(const std::string& value) { + _internal_set_command(value); + // @@protoc_insertion_point(field_set:v1.model.CommandRequest.command) +} +inline std::string* CommandRequest::mutable_command() { + // @@protoc_insertion_point(field_mutable:v1.model.CommandRequest.command) + return _internal_mutable_command(); +} +inline const std::string& CommandRequest::_internal_command() const { + return command_.GetNoArena(); +} +inline void CommandRequest::_internal_set_command(const std::string& value) { + + command_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +} +inline void CommandRequest::set_command(std::string&& value) { + + command_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.CommandRequest.command) +} +inline void CommandRequest::set_command(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + command_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.CommandRequest.command) +} +inline void CommandRequest::set_command(const char* value, size_t size) { + + command_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.CommandRequest.command) +} +inline std::string* CommandRequest::_internal_mutable_command() { + + return command_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CommandRequest::release_command() { + // @@protoc_insertion_point(field_release:v1.model.CommandRequest.command) + + return command_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CommandRequest::set_allocated_command(std::string* command) { + if (command != nullptr) { + + } else { + + } + command_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), command); + // @@protoc_insertion_point(field_set_allocated:v1.model.CommandRequest.command) +} + +// string text = 3[json_name = "text"]; +inline bool CommandRequest::_internal_has_text() const { + return parameter_case() == kText; +} +inline void CommandRequest::set_has_text() { + _oneof_case_[0] = kText; +} +inline void CommandRequest::clear_text() { + if (_internal_has_text()) { + parameter_.text_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + clear_has_parameter(); + } +} +inline const std::string& CommandRequest::text() const { + // @@protoc_insertion_point(field_get:v1.model.CommandRequest.text) + return _internal_text(); +} +inline void CommandRequest::set_text(const std::string& value) { + _internal_set_text(value); + // @@protoc_insertion_point(field_set:v1.model.CommandRequest.text) +} +inline std::string* CommandRequest::mutable_text() { + // @@protoc_insertion_point(field_mutable:v1.model.CommandRequest.text) + return _internal_mutable_text(); +} +inline const std::string& CommandRequest::_internal_text() const { + if (_internal_has_text()) { + return parameter_.text_.GetNoArena(); + } + return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void CommandRequest::_internal_set_text(const std::string& value) { + if (!_internal_has_text()) { + clear_parameter(); + set_has_text(); + parameter_.text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + parameter_.text_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +} +inline void CommandRequest::set_text(std::string&& value) { + // @@protoc_insertion_point(field_set:v1.model.CommandRequest.text) + if (!_internal_has_text()) { + clear_parameter(); + set_has_text(); + parameter_.text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + parameter_.text_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.CommandRequest.text) +} +inline void CommandRequest::set_text(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!_internal_has_text()) { + clear_parameter(); + set_has_text(); + parameter_.text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + parameter_.text_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.CommandRequest.text) +} +inline void CommandRequest::set_text(const char* value, size_t size) { + if (!_internal_has_text()) { + clear_parameter(); + set_has_text(); + parameter_.text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + parameter_.text_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.CommandRequest.text) +} +inline std::string* CommandRequest::_internal_mutable_text() { + if (!_internal_has_text()) { + clear_parameter(); + set_has_text(); + parameter_.text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + return parameter_.text_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CommandRequest::release_text() { + // @@protoc_insertion_point(field_release:v1.model.CommandRequest.text) + if (_internal_has_text()) { + clear_has_parameter(); + return parameter_.text_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void CommandRequest::set_allocated_text(std::string* text) { + if (has_parameter()) { + clear_parameter(); + } + if (text != nullptr) { + set_has_text(); + parameter_.text_.UnsafeSetDefault(text); + } + // @@protoc_insertion_point(field_set_allocated:v1.model.CommandRequest.text) +} + +// .google.protobuf.Timestamp scrubber_time = 4[json_name = "scrubberTime"]; +inline bool CommandRequest::_internal_has_scrubber_time() const { + return this != internal_default_instance() && scrubber_time_ != nullptr; +} +inline bool CommandRequest::has_scrubber_time() const { + return _internal_has_scrubber_time(); +} +inline const PROTOBUF_NAMESPACE_ID::Timestamp& CommandRequest::_internal_scrubber_time() const { + const PROTOBUF_NAMESPACE_ID::Timestamp* p = scrubber_time_; + return p != nullptr ? *p : *reinterpret_cast( + &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const PROTOBUF_NAMESPACE_ID::Timestamp& CommandRequest::scrubber_time() const { + // @@protoc_insertion_point(field_get:v1.model.CommandRequest.scrubber_time) + return _internal_scrubber_time(); +} +inline PROTOBUF_NAMESPACE_ID::Timestamp* CommandRequest::release_scrubber_time() { + // @@protoc_insertion_point(field_release:v1.model.CommandRequest.scrubber_time) + + PROTOBUF_NAMESPACE_ID::Timestamp* temp = scrubber_time_; + scrubber_time_ = nullptr; + return temp; +} +inline PROTOBUF_NAMESPACE_ID::Timestamp* CommandRequest::_internal_mutable_scrubber_time() { + + if (scrubber_time_ == nullptr) { + auto* p = CreateMaybeMessage(GetArenaNoVirtual()); + scrubber_time_ = p; + } + return scrubber_time_; +} +inline PROTOBUF_NAMESPACE_ID::Timestamp* CommandRequest::mutable_scrubber_time() { + // @@protoc_insertion_point(field_mutable:v1.model.CommandRequest.scrubber_time) + return _internal_mutable_scrubber_time(); +} +inline void CommandRequest::set_allocated_scrubber_time(PROTOBUF_NAMESPACE_ID::Timestamp* scrubber_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(scrubber_time_); + } + if (scrubber_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(scrubber_time)->GetArena(); + if (message_arena != submessage_arena) { + scrubber_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, scrubber_time, submessage_arena); + } + + } else { + + } + scrubber_time_ = scrubber_time; + // @@protoc_insertion_point(field_set_allocated:v1.model.CommandRequest.scrubber_time) +} + +inline bool CommandRequest::has_parameter() const { + return parameter_case() != PARAMETER_NOT_SET; +} +inline void CommandRequest::clear_has_parameter() { + _oneof_case_[0] = PARAMETER_NOT_SET; +} +inline CommandRequest::ParameterCase CommandRequest::parameter_case() const { + return CommandRequest::ParameterCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// CommandResponse + +// string request_id = 1[json_name = "requestId"]; +inline void CommandResponse::clear_request_id() { + request_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CommandResponse::request_id() const { + // @@protoc_insertion_point(field_get:v1.model.CommandResponse.request_id) + return _internal_request_id(); +} +inline void CommandResponse::set_request_id(const std::string& value) { + _internal_set_request_id(value); + // @@protoc_insertion_point(field_set:v1.model.CommandResponse.request_id) +} +inline std::string* CommandResponse::mutable_request_id() { + // @@protoc_insertion_point(field_mutable:v1.model.CommandResponse.request_id) + return _internal_mutable_request_id(); +} +inline const std::string& CommandResponse::_internal_request_id() const { + return request_id_.GetNoArena(); +} +inline void CommandResponse::_internal_set_request_id(const std::string& value) { + + request_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +} +inline void CommandResponse::set_request_id(std::string&& value) { + + request_id_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.CommandResponse.request_id) +} +inline void CommandResponse::set_request_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + request_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.CommandResponse.request_id) +} +inline void CommandResponse::set_request_id(const char* value, size_t size) { + + request_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.CommandResponse.request_id) +} +inline std::string* CommandResponse::_internal_mutable_request_id() { + + return request_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CommandResponse::release_request_id() { + // @@protoc_insertion_point(field_release:v1.model.CommandResponse.request_id) + + return request_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CommandResponse::set_allocated_request_id(std::string* request_id) { + if (request_id != nullptr) { + + } else { + + } + request_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), request_id); + // @@protoc_insertion_point(field_set_allocated:v1.model.CommandResponse.request_id) +} + +// bool success = 2[json_name = "success"]; +inline void CommandResponse::clear_success() { + success_ = false; +} +inline bool CommandResponse::_internal_success() const { + return success_; +} +inline bool CommandResponse::success() const { + // @@protoc_insertion_point(field_get:v1.model.CommandResponse.success) + return _internal_success(); +} +inline void CommandResponse::_internal_set_success(bool value) { + + success_ = value; +} +inline void CommandResponse::set_success(bool value) { + _internal_set_success(value); + // @@protoc_insertion_point(field_set:v1.model.CommandResponse.success) +} + +// .v1.model.Datapoint datapoint = 3[json_name = "datapoint"]; +inline bool CommandResponse::_internal_has_datapoint() const { + return result_case() == kDatapoint; +} +inline bool CommandResponse::has_datapoint() const { + return _internal_has_datapoint(); +} +inline void CommandResponse::set_has_datapoint() { + _oneof_case_[0] = kDatapoint; +} +inline ::v1::model::Datapoint* CommandResponse::release_datapoint() { + // @@protoc_insertion_point(field_release:v1.model.CommandResponse.datapoint) + if (_internal_has_datapoint()) { + clear_has_result(); + ::v1::model::Datapoint* temp = result_.datapoint_; + result_.datapoint_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::v1::model::Datapoint& CommandResponse::_internal_datapoint() const { + return _internal_has_datapoint() + ? *result_.datapoint_ + : *reinterpret_cast< ::v1::model::Datapoint*>(&::v1::model::_Datapoint_default_instance_); +} +inline const ::v1::model::Datapoint& CommandResponse::datapoint() const { + // @@protoc_insertion_point(field_get:v1.model.CommandResponse.datapoint) + return _internal_datapoint(); +} +inline ::v1::model::Datapoint* CommandResponse::_internal_mutable_datapoint() { + if (!_internal_has_datapoint()) { + clear_result(); + set_has_datapoint(); + result_.datapoint_ = CreateMaybeMessage< ::v1::model::Datapoint >( + GetArenaNoVirtual()); + } + return result_.datapoint_; +} +inline ::v1::model::Datapoint* CommandResponse::mutable_datapoint() { + // @@protoc_insertion_point(field_mutable:v1.model.CommandResponse.datapoint) + return _internal_mutable_datapoint(); +} + +inline bool CommandResponse::has_result() const { + return result_case() != RESULT_NOT_SET; +} +inline void CommandResponse::clear_has_result() { + _oneof_case_[0] = RESULT_NOT_SET; +} +inline CommandResponse::ResultCase CommandResponse::result_case() const { + return CommandResponse::ResultCase(_oneof_case_[0]); +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace model +} // namespace v1 + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fcommands_2eproto diff --git a/examples/cpp/protos/model/v1/commands_mock.grpc.pb.h b/examples/cpp/protos/model/v1/commands_mock.grpc.pb.h new file mode 100755 index 0000000..2755125 --- /dev/null +++ b/examples/cpp/protos/model/v1/commands_mock.grpc.pb.h @@ -0,0 +1,16 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/commands.proto + +#include "protos/model/v1/commands.pb.h" +#include "protos/model/v1/commands.grpc.pb.h" + +#include +#include +#include +namespace v1 { +namespace model { + +} // namespace v1 +} // namespace model + diff --git a/examples/cpp/protos/model/v1/config.grpc.pb.cc b/examples/cpp/protos/model/v1/config.grpc.pb.cc new file mode 100755 index 0000000..c598f75 --- /dev/null +++ b/examples/cpp/protos/model/v1/config.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/config.proto + +#include "protos/model/v1/config.pb.h" +#include "protos/model/v1/config.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace v1 { +namespace model { + +} // namespace v1 +} // namespace model + diff --git a/examples/cpp/protos/model/v1/config.grpc.pb.h b/examples/cpp/protos/model/v1/config.grpc.pb.h new file mode 100755 index 0000000..302d5ac --- /dev/null +++ b/examples/cpp/protos/model/v1/config.grpc.pb.h @@ -0,0 +1,46 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/config.proto +#ifndef GRPC_protos_2fmodel_2fv1_2fconfig_2eproto__INCLUDED +#define GRPC_protos_2fmodel_2fv1_2fconfig_2eproto__INCLUDED + +#include "protos/model/v1/config.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class CompletionQueue; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc + +namespace v1 { +namespace model { + +} // namespace model +} // namespace v1 + + +#endif // GRPC_protos_2fmodel_2fv1_2fconfig_2eproto__INCLUDED diff --git a/examples/cpp/protos/model/v1/config.pb.cc b/examples/cpp/protos/model/v1/config.pb.cc index d6f7abb..33b0f29 100755 --- a/examples/cpp/protos/model/v1/config.pb.cc +++ b/examples/cpp/protos/model/v1/config.pb.cc @@ -5,154 +5,165 @@ #include -#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; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fwrappers_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DoubleValue_google_2fprotobuf_2fwrappers_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_AgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AgentConfigurationDocument_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DirectoryWatch_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DiskConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FileTail_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fros_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ROSLocalization_protos_2fmodel_2fv1_2fros_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fros_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ROSTopic_protos_2fmodel_2fv1_2fros_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fros_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ROSTransformTree_protos_2fmodel_2fv1_2fros_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<6> scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StreamConfiguration_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TeleopConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TeleopRosStreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto; namespace v1 { namespace model { class AgentConfigurationDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _AgentConfiguration_default_instance_; class AgentConfigurationDocument_TagsEntry_DoNotUseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _AgentConfigurationDocument_TagsEntry_DoNotUse_default_instance_; class AgentConfigurationDocumentDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _AgentConfigurationDocument_default_instance_; +class TeleopConfigurationDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _TeleopConfiguration_default_instance_; +class TeleopRosStreamConfigurationDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _TeleopRosStreamConfiguration_default_instance_; class TelemetryConfigurationDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _TelemetryConfiguration_default_instance_; class ApplicationConfiguration_ConfigurationMapEntry_DoNotUseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_default_instance_; class ApplicationConfigurationDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _ApplicationConfiguration_default_instance_; class ResourcesConfigurationDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _ResourcesConfiguration_default_instance_; class DiskConfigurationDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _DiskConfiguration_default_instance_; class ROSConfigurationDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _ROSConfiguration_default_instance_; class StreamConfiguration_TagsEntry_DoNotUseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _StreamConfiguration_TagsEntry_DoNotUse_default_instance_; class StreamConfigurationDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; const ::v1::model::ROSTopic* ros_topic_; const ::v1::model::ROSLocalization* ros_localization_; + const ::v1::model::ROSTransformTree* ros_transform_tree_; const ::v1::model::DirectoryWatch* directory_watch_; const ::v1::model::FileTail* file_tail_; } _StreamConfiguration_default_instance_; class DirectoryWatchDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _DirectoryWatch_default_instance_; class FileTailDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _FileTail_default_instance_; } // namespace model } // namespace v1 -static void InitDefaultsAgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { +static void InitDefaultsscc_info_AgentConfiguration_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); + ::PROTOBUF_NAMESPACE_ID::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}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_AgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, { &scc_info_AgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; -static void InitDefaultsAgentConfigurationDocument_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto() { +static void InitDefaultsscc_info_AgentConfigurationDocument_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(); + void* ptr = &::v1::model::_AgentConfigurationDocument_default_instance_; + new (ptr) ::v1::model::AgentConfigurationDocument(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse::InitAsDefaultInstance(); + ::v1::model::AgentConfigurationDocument::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_AgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 5, 0, InitDefaultsscc_info_AgentConfigurationDocument_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, + &scc_info_TeleopConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; -static void InitDefaultsAgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto() { +static void InitDefaultsscc_info_AgentConfigurationDocument_TagsEntry_DoNotUse_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); + void* ptr = &::v1::model::_AgentConfigurationDocument_TagsEntry_DoNotUse_default_instance_; + new (ptr) ::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse(); } - ::v1::model::AgentConfigurationDocument::InitAsDefaultInstance(); + ::v1::model::AgentConfigurationDocument_TagsEntry_DoNotUse::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,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AgentConfigurationDocument_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AgentConfigurationDocument_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; -static void InitDefaultsTelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { +static void InitDefaultsscc_info_ApplicationConfiguration_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); + void* ptr = &::v1::model::_ApplicationConfiguration_default_instance_; + new (ptr) ::v1::model::ApplicationConfiguration(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::model::TelemetryConfiguration::InitAsDefaultInstance(); + ::v1::model::ApplicationConfiguration::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,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, { + &scc_info_ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; -static void InitDefaultsApplicationConfiguration_ConfigurationMapEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto() { +static void InitDefaultsscc_info_ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { @@ -162,148 +173,164 @@ static void InitDefaultsApplicationConfiguration_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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; -static void InitDefaultsApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { +static void InitDefaultsscc_info_DirectoryWatch_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); + void* ptr = &::v1::model::_DirectoryWatch_default_instance_; + new (ptr) ::v1::model::DirectoryWatch(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::model::ApplicationConfiguration::InitAsDefaultInstance(); + ::v1::model::DirectoryWatch::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,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DirectoryWatch_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DirectoryWatch_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; -static void InitDefaultsResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { +static void InitDefaultsscc_info_DiskConfiguration_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); + void* ptr = &::v1::model::_DiskConfiguration_default_instance_; + new (ptr) ::v1::model::DiskConfiguration(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::model::ResourcesConfiguration::InitAsDefaultInstance(); + ::v1::model::DiskConfiguration::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,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DiskConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DiskConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; -static void InitDefaultsDiskConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { +static void InitDefaultsscc_info_FileTail_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); + void* ptr = &::v1::model::_FileTail_default_instance_; + new (ptr) ::v1::model::FileTail(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::model::DiskConfiguration::InitAsDefaultInstance(); + ::v1::model::FileTail::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FileTail_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_FileTail_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; -static void InitDefaultsROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { +static void InitDefaultsscc_info_ROSConfiguration_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); + ::PROTOBUF_NAMESPACE_ID::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; -static void InitDefaultsStreamConfiguration_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto() { +static void InitDefaultsscc_info_ResourcesConfiguration_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(); + void* ptr = &::v1::model::_ResourcesConfiguration_default_instance_; + new (ptr) ::v1::model::ResourcesConfiguration(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::model::StreamConfiguration_TagsEntry_DoNotUse::InitAsDefaultInstance(); + ::v1::model::ResourcesConfiguration::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_ResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, { + &scc_info_DiskConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_DoubleValue_google_2fprotobuf_2fwrappers_2eproto.base,}}; -static void InitDefaultsStreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { +static void InitDefaultsscc_info_StreamConfiguration_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); + ::PROTOBUF_NAMESPACE_ID::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}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<6> scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 6, 0, InitDefaultsscc_info_StreamConfiguration_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_ROSTransformTree_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() { +static void InitDefaultsscc_info_StreamConfiguration_TagsEntry_DoNotUse_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); + void* ptr = &::v1::model::_StreamConfiguration_TagsEntry_DoNotUse_default_instance_; + new (ptr) ::v1::model::StreamConfiguration_TagsEntry_DoNotUse(); } - ::v1::model::DirectoryWatch::InitAsDefaultInstance(); + ::v1::model::StreamConfiguration_TagsEntry_DoNotUse::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StreamConfiguration_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_StreamConfiguration_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; -static void InitDefaultsFileTail_protos_2fmodel_2fv1_2fconfig_2eproto() { +static void InitDefaultsscc_info_TelemetryConfiguration_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); + void* ptr = &::v1::model::_TelemetryConfiguration_default_instance_; + new (ptr) ::v1::model::TelemetryConfiguration(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::v1::model::FileTail::InitAsDefaultInstance(); + ::v1::model::TelemetryConfiguration::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_TelemetryConfiguration_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 InitDefaultsscc_info_TeleopConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_TeleopConfiguration_default_instance_; + new (ptr) ::v1::model::TeleopConfiguration(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::TeleopConfiguration::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}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TeleopConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_TeleopConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, { + &scc_info_TeleopRosStreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base,}}; + +static void InitDefaultsscc_info_TeleopRosStreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; -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); + { + void* ptr = &::v1::model::_TeleopRosStreamConfiguration_default_instance_; + new (ptr) ::v1::model::TeleopRosStreamConfiguration(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::v1::model::TeleopRosStreamConfiguration::InitAsDefaultInstance(); } -::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; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TeleopRosStreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_TeleopRosStreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto}, {}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto[15]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_protos_2fmodel_2fv1_2fconfig_2eproto[4]; +static constexpr ::PROTOBUF_NAMESPACE_ID::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) = { +const ::PROTOBUF_NAMESPACE_ID::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_ @@ -331,6 +358,21 @@ const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2fconfig_2eprot PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument, telemetry_), PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument, resources_), PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument, application_), + PROTOBUF_FIELD_OFFSET(::v1::model::AgentConfigurationDocument, teleop_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::TeleopConfiguration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::TeleopConfiguration, ros_streams_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::v1::model::TeleopRosStreamConfiguration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::v1::model::TeleopRosStreamConfiguration, topic_name_), + PROTOBUF_FIELD_OFFSET(::v1::model::TeleopRosStreamConfiguration, topic_type_), + PROTOBUF_FIELD_OFFSET(::v1::model::TeleopRosStreamConfiguration, mode_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::v1::model::TelemetryConfiguration, _internal_metadata_), ~0u, // no _extensions_ @@ -359,6 +401,7 @@ const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2fconfig_2eprot ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::v1::model::ResourcesConfiguration, disk_), + PROTOBUF_FIELD_OFFSET(::v1::model::ResourcesConfiguration, stream_throttle_hz_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::v1::model::DiskConfiguration, _internal_metadata_), ~0u, // no _extensions_ @@ -389,6 +432,7 @@ const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2fconfig_2eprot PROTOBUF_FIELD_OFFSET(::v1::model::StreamConfiguration, tags_), offsetof(::v1::model::StreamConfigurationDefaultTypeInternal, ros_topic_), offsetof(::v1::model::StreamConfigurationDefaultTypeInternal, ros_localization_), + offsetof(::v1::model::StreamConfigurationDefaultTypeInternal, ros_transform_tree_), offsetof(::v1::model::StreamConfigurationDefaultTypeInternal, directory_watch_), offsetof(::v1::model::StreamConfigurationDefaultTypeInternal, file_tail_), PROTOBUF_FIELD_OFFSET(::v1::model::StreamConfiguration, configuration_), @@ -412,124 +456,197 @@ const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2fconfig_2eprot 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) = { +static const ::PROTOBUF_NAMESPACE_ID::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_), + { 28, -1, sizeof(::v1::model::TeleopConfiguration)}, + { 34, -1, sizeof(::v1::model::TeleopRosStreamConfiguration)}, + { 42, -1, sizeof(::v1::model::TelemetryConfiguration)}, + { 49, 56, sizeof(::v1::model::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse)}, + { 58, -1, sizeof(::v1::model::ApplicationConfiguration)}, + { 64, -1, sizeof(::v1::model::ResourcesConfiguration)}, + { 71, -1, sizeof(::v1::model::DiskConfiguration)}, + { 77, -1, sizeof(::v1::model::ROSConfiguration)}, + { 83, 90, sizeof(::v1::model::StreamConfiguration_TagsEntry_DoNotUse)}, + { 92, -1, sizeof(::v1::model::StreamConfiguration)}, + { 105, -1, sizeof(::v1::model::DirectoryWatch)}, + { 114, -1, sizeof(::v1::model::FileTail)}, }; -::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, +static ::PROTOBUF_NAMESPACE_ID::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::_TeleopConfiguration_default_instance_), + reinterpret_cast(&::v1::model::_TeleopRosStreamConfiguration_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_), }; -const char descriptor_table_protodef_protos_2fmodel_2fv1_2fconfig_2eproto[] = +const char descriptor_table_protodef_protos_2fmodel_2fv1_2fconfig_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\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" + "\032\031protos/model/v1/ros.proto\032\036google/prot" + "obuf/wrappers.proto\"z\n\022AgentConfiguratio" + "n\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022@\n" + "\010document\030\003 \001(\0132$.v1.model.AgentConfigur" + "ationDocumentR\010document\"\260\003\n\032AgentConfigu" + "rationDocument\022\030\n\007version\030\001 \001(\003R\007version" + "\022B\n\004tags\030\002 \003(\0132..v1.model.AgentConfigura" + "tionDocument.TagsEntryR\004tags\022>\n\ttelemetr" + "y\030\003 \001(\0132 .v1.model.TelemetryConfiguratio" + "nR\ttelemetry\022>\n\tresources\030\004 \001(\0132 .v1.mod" + "el.ResourcesConfigurationR\tresources\022D\n\013" + "application\030\005 \001(\0132\".v1.model.Application" + "ConfigurationR\013application\0225\n\006teleop\030\006 \001" + "(\0132\035.v1.model.TeleopConfigurationR\006teleo" + "p\0327\n\tTagsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005valu" + "e\030\002 \001(\tR\005value:\0028\001\"^\n\023TeleopConfiguratio" + "n\022G\n\013ros_streams\030\001 \003(\0132&.v1.model.Teleop" + "RosStreamConfigurationR\nrosStreams\"\315\001\n\034T" + "eleopRosStreamConfiguration\022\035\n\ntopic_nam" + "e\030\001 \001(\tR\ttopicName\022N\n\ntopic_type\030\002 \001(\0162/" + ".v1.model.TeleopRosStreamConfigurationTo" + "picTypeR\ttopicType\022>\n\004mode\030\003 \001(\0162*.v1.mo" + "del.TeleopRosStreamConfigurationModeR\004mo" + "de\"\177\n\026TelemetryConfiguration\0227\n\007streams\030" + "\001 \003(\0132\035.v1.model.StreamConfigurationR\007st" + "reams\022,\n\003ros\030\002 \001(\0132\032.v1.model.ROSConfigu" + "rationR\003ros\"\306\001\n\030ApplicationConfiguration" + "\022e\n\021configuration_map\030\001 \003(\01328.v1.model.A" + "pplicationConfiguration.ConfigurationMap" + "EntryR\020configurationMap\032C\n\025Configuration" + "MapEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(" + "\tR\005value:\0028\001\"\225\001\n\026ResourcesConfiguration\022" + "/\n\004disk\030\001 \001(\0132\033.v1.model.DiskConfigurati" + "onR\004disk\022J\n\022stream_throttle_hz\030\002 \001(\0132\034.g" + "oogle.protobuf.DoubleValueR\020streamThrott" + "leHz\"4\n\021DiskConfiguration\022\037\n\013buffer_size" + "\030\001 \001(\003R\nbufferSize\"K\n\020ROSConfiguration\0227" + "\n\030world_reference_frame_id\030\001 \001(\tR\025worldR" + "eferenceFrameId\"\357\003\n\023StreamConfiguration\022" + "\022\n\004name\030\001 \001(\tR\004name\022;\n\004tags\030\002 \003(\0132\'.v1.m" + "odel.StreamConfiguration.TagsEntryR\004tags" + "\0221\n\tros_topic\030\003 \001(\0132\022.v1.model.ROSTopicH" + "\000R\010rosTopic\022F\n\020ros_localization\030\004 \001(\0132\031." + "v1.model.ROSLocalizationH\000R\017rosLocalizat" + "ion\022J\n\022ros_transform_tree\030\007 \001(\0132\032.v1.mod" + "el.ROSTransformTreeH\000R\020rosTransformTree\022" + "C\n\017directory_watch\030\005 \001(\0132\030.v1.model.Dire" + "ctoryWatchH\000R\016directoryWatch\0221\n\tfile_tai" + "l\030\006 \001(\0132\022.v1.model.FileTailH\000R\010fileTail\032" + "7\n\tTagsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030" + "\002 \001(\tR\005value:\0028\001B\017\n\rconfiguration\"\240\001\n\016Di" + "rectoryWatch\022\034\n\tdirectory\030\001 \001(\tR\tdirecto" + "ry\022\034\n\textension\030\002 \001(\tR\textension\022/\n\tfile" + "_type\030\003 \001(\0162\022.v1.model.FileTypeR\010fileTyp" + "e\022!\n\014remote_agent\030\004 \001(\010R\013remoteAgent\"\257\001\n" + "\010FileTail\022\032\n\010filename\030\001 \001(\tR\010filename\0225\n" + "\013file_format\030\002 \001(\0162\024.v1.model.FileFormat" + "R\nfileFormat\022\031\n\010time_key\030\003 \001(\tR\007timeKey\022" + "\037\n\013time_format\030\004 \001(\tR\ntimeFormat\022\024\n\005rege" + "x\030\005 \001(\tR\005regex*\242\001\n%TeleopRosStreamConfig" + "urationTopicType\022\027\n\023GEOMETRY_MSGS_TWIST\020" + "\000\022\021\n\rSTD_MSGS_BOOL\020\001\022 \n\034SENSOR_MSGS_COMP" + "RESSED_IMAGE\020\002\022\023\n\017STD_MSGS_STRING\020\003\022\026\n\022G" + "EOMETRY_MSGS_POSE\020\004*<\n TeleopRosStreamCo" + "nfigurationMode\022\013\n\007COMMAND\020\000\022\013\n\007OBSERVE\020" + "\001*&\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\013PO" + "INT_CLOUD\020\004B+Z)github.com/FormantIO/genp" + "roto/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, +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto_deps[2] = { + &::descriptor_table_google_2fprotobuf_2fwrappers_2eproto, + &::descriptor_table_protos_2fmodel_2fv1_2fros_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto_sccs[15] = { + &scc_info_AgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_AgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_AgentConfigurationDocument_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_ApplicationConfiguration_ConfigurationMapEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_DirectoryWatch_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_DiskConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_FileTail_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_ROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_ResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_StreamConfiguration_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_TelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_TeleopConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base, + &scc_info_TeleopRosStreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto_once; +static bool descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto_initialized = false; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto = { + &descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto_initialized, descriptor_table_protodef_protos_2fmodel_2fv1_2fconfig_2eproto, "protos/model/v1/config.proto", 2784, + &descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto_once, descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto_sccs, descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto_deps, 15, 2, + schemas, file_default_instances, TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto::offsets, + file_level_metadata_protos_2fmodel_2fv1_2fconfig_2eproto, 15, file_level_enum_descriptors_protos_2fmodel_2fv1_2fconfig_2eproto, file_level_service_descriptors_protos_2fmodel_2fv1_2fconfig_2eproto, }; - -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; }(); +static bool dynamic_init_dummy_protos_2fmodel_2fv1_2fconfig_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto), true); namespace v1 { namespace model { -const ::google::protobuf::EnumDescriptor* FileFormat_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TeleopRosStreamConfigurationTopicType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); return file_level_enum_descriptors_protos_2fmodel_2fv1_2fconfig_2eproto[0]; } -bool FileFormat_IsValid(int value) { +bool TeleopRosStreamConfigurationTopicType_IsValid(int value) { switch (value) { case 0: case 1: + case 2: + case 3: + case 4: return true; default: return false; } } -const ::google::protobuf::EnumDescriptor* FileType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_protos_2fmodel_2fv1_2fconfig_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TeleopRosStreamConfigurationMode_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); return file_level_enum_descriptors_protos_2fmodel_2fv1_2fconfig_2eproto[1]; } +bool TeleopRosStreamConfigurationMode_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileFormat_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return file_level_enum_descriptors_protos_2fmodel_2fv1_2fconfig_2eproto[2]; +} +bool FileFormat_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return file_level_enum_descriptors_protos_2fmodel_2fv1_2fconfig_2eproto[3]; +} bool FileType_IsValid(int value) { switch (value) { case 0: @@ -548,39 +665,33 @@ 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 { +class AgentConfiguration::_Internal { public: static const ::v1::model::AgentConfigurationDocument& document(const AgentConfiguration* msg); }; const ::v1::model::AgentConfigurationDocument& -AgentConfiguration::HasBitSetters::document(const AgentConfiguration* msg) { +AgentConfiguration::_Internal::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) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.model.AgentConfiguration) } AgentConfiguration::AgentConfiguration(const AgentConfiguration& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::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_); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_id().empty()) { + id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.id_); } - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_name().empty()) { + name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); } - if (from.has_document()) { + if (from._internal_has_document()) { document_ = new ::v1::model::AgentConfigurationDocument(*from.document_); } else { document_ = nullptr; @@ -589,10 +700,9 @@ AgentConfiguration::AgentConfiguration(const AgentConfiguration& from) } 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()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AgentConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); document_ = nullptr; } @@ -602,8 +712,8 @@ AgentConfiguration::~AgentConfiguration() { } void AgentConfiguration::SharedDtor() { - id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete document_; } @@ -611,19 +721,19 @@ 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); + ::PROTOBUF_NAMESPACE_ID::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; + ::PROTOBUF_NAMESPACE_ID::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()); + id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && document_ != nullptr) { delete document_; } @@ -631,237 +741,95 @@ void AgentConfiguration::Clear() { _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); +const char* AgentConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(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; - } + // string id = 1[json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.AgentConfiguration.id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string name = 2[json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.AgentConfiguration.name")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.AgentConfigurationDocument document = 3[json_name = "document"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_document(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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; + return ptr; 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) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* AgentConfiguration::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* AgentConfiguration::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.model.AgentConfiguration) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string id = 1; + // string id = 1[json_name = "id"]; if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.AgentConfiguration.id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->id(), target); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } - // string name = 2; + // string name = 2[json_name = "name"]; if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.AgentConfiguration.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } - // .v1.model.AgentConfigurationDocument document = 3; + // .v1.model.AgentConfigurationDocument document = 3[json_name = "document"]; if (this->has_document()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::document(this), target); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::document(this), target, stream); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.model.AgentConfiguration) return target; @@ -871,50 +839,49 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1; + // string id = 1[json_name = "id"]; if (this->id().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->id()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - // string name = 2; + // string name = 2[json_name = "name"]; if (this->name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - // .v1.model.AgentConfigurationDocument document = 3; + // .v1.model.AgentConfigurationDocument document = 3[json_name = "document"]; if (this->has_document()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *document_); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void AgentConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +void AgentConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.model.AgentConfiguration) GOOGLE_DCHECK_NE(&from, this); const AgentConfiguration* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.AgentConfiguration) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.AgentConfiguration) MergeFrom(*source); @@ -925,23 +892,23 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.id().size() > 0) { - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.id_); } if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); } if (from.has_document()) { - mutable_document()->::v1::model::AgentConfigurationDocument::MergeFrom(from.document()); + _internal_mutable_document()->::v1::model::AgentConfigurationDocument::MergeFrom(from._internal_document()); } } -void AgentConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +void AgentConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.model.AgentConfiguration) if (&from == this) return; Clear(); @@ -959,65 +926,36 @@ 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(), + id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::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]; +::PROTOBUF_NAMESPACE_ID::Metadata AgentConfiguration::GetMetadata() const { + return GetMetadataStatic(); } // =================================================================== AgentConfigurationDocument_TagsEntry_DoNotUse::AgentConfigurationDocument_TagsEntry_DoNotUse() {} -AgentConfigurationDocument_TagsEntry_DoNotUse::AgentConfigurationDocument_TagsEntry_DoNotUse(::google::protobuf::Arena* arena) +AgentConfigurationDocument_TagsEntry_DoNotUse::AgentConfigurationDocument_TagsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::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]; +::PROTOBUF_NAMESPACE_ID::Metadata AgentConfigurationDocument_TagsEntry_DoNotUse::GetMetadata() const { + return GetMetadataStatic(); } 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; + const ::PROTOBUF_NAMESPACE_ID::Message& other) { + ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER // =================================================================== @@ -1029,66 +967,69 @@ void AgentConfigurationDocument::InitAsDefaultInstance() { ::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()); + ::v1::model::_AgentConfigurationDocument_default_instance_._instance.get_mutable()->teleop_ = const_cast< ::v1::model::TeleopConfiguration*>( + ::v1::model::TeleopConfiguration::internal_default_instance()); } -class AgentConfigurationDocument::HasBitSetters { +class AgentConfigurationDocument::_Internal { 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); + static const ::v1::model::TeleopConfiguration& teleop(const AgentConfigurationDocument* msg); }; const ::v1::model::TelemetryConfiguration& -AgentConfigurationDocument::HasBitSetters::telemetry(const AgentConfigurationDocument* msg) { +AgentConfigurationDocument::_Internal::telemetry(const AgentConfigurationDocument* msg) { return *msg->telemetry_; } const ::v1::model::ResourcesConfiguration& -AgentConfigurationDocument::HasBitSetters::resources(const AgentConfigurationDocument* msg) { +AgentConfigurationDocument::_Internal::resources(const AgentConfigurationDocument* msg) { return *msg->resources_; } const ::v1::model::ApplicationConfiguration& -AgentConfigurationDocument::HasBitSetters::application(const AgentConfigurationDocument* msg) { +AgentConfigurationDocument::_Internal::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 - +const ::v1::model::TeleopConfiguration& +AgentConfigurationDocument::_Internal::teleop(const AgentConfigurationDocument* msg) { + return *msg->teleop_; +} AgentConfigurationDocument::AgentConfigurationDocument() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.model.AgentConfigurationDocument) } AgentConfigurationDocument::AgentConfigurationDocument(const AgentConfigurationDocument& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); tags_.MergeFrom(from.tags_); - if (from.has_telemetry()) { + if (from._internal_has_telemetry()) { telemetry_ = new ::v1::model::TelemetryConfiguration(*from.telemetry_); } else { telemetry_ = nullptr; } - if (from.has_resources()) { + if (from._internal_has_resources()) { resources_ = new ::v1::model::ResourcesConfiguration(*from.resources_); } else { resources_ = nullptr; } - if (from.has_application()) { + if (from._internal_has_application()) { application_ = new ::v1::model::ApplicationConfiguration(*from.application_); } else { application_ = nullptr; } + if (from._internal_has_teleop()) { + teleop_ = new ::v1::model::TeleopConfiguration(*from.teleop_); + } else { + teleop_ = 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); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AgentConfigurationDocument_protos_2fmodel_2fv1_2fconfig_2eproto.base); ::memset(&telemetry_, 0, static_cast( reinterpret_cast(&version_) - reinterpret_cast(&telemetry_)) + sizeof(version_)); @@ -1103,20 +1044,21 @@ void AgentConfigurationDocument::SharedDtor() { if (this != internal_default_instance()) delete telemetry_; if (this != internal_default_instance()) delete resources_; if (this != internal_default_instance()) delete application_; + if (this != internal_default_instance()) delete teleop_; } 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); + ::PROTOBUF_NAMESPACE_ID::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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1133,517 +1075,766 @@ void AgentConfigurationDocument::Clear() { delete application_; } application_ = nullptr; - version_ = 0; + if (GetArenaNoVirtual() == nullptr && teleop_ != nullptr) { + delete teleop_; + } + teleop_ = nullptr; + version_ = PROTOBUF_LONGLONG(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); +const char* AgentConfigurationDocument::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(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; - } + // int64 version = 1[json_name = "version"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // map tags = 2[json_name = "tags"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&tags_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else goto handle_unusual; + continue; + // .v1.model.TelemetryConfiguration telemetry = 3[json_name = "telemetry"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_telemetry(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.ResourcesConfiguration resources = 4[json_name = "resources"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_resources(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.ApplicationConfiguration application = 5[json_name = "application"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_application(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.TeleopConfiguration teleop = 6[json_name = "teleop"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_teleop(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.model.AgentConfigurationDocument) - return false; -#undef DO_ + ptr = nullptr; + goto success; +#undef CHK_ } -#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; +::PROTOBUF_NAMESPACE_ID::uint8* AgentConfigurationDocument::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.AgentConfigurationDocument) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // int32 version = 1; + // int64 version = 1[json_name = "version"]; if (this->version() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->version(), output); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_version(), target); } - // map tags = 2; - if (!this->tags().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + // map tags = 2[json_name = "tags"]; + if (!this->_internal_tags().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer ConstPtr; typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; + typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; struct Utf8Check { static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.AgentConfigurationDocument.TagsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.AgentConfigurationDocument.TagsEntry.value"); } }; - if (output->IsSerializationDeterministic() && - this->tags().size() > 1) { + if (stream->IsSerializationDeterministic() && + this->_internal_tags().size() > 1) { ::std::unique_ptr items( - new SortItem[this->tags().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + new SortItem[this->_internal_tags().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::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) { + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_tags().begin(); + it != this->_internal_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); + target = AgentConfigurationDocument_TagsEntry_DoNotUse::Funcs::InternalSerialize(2, items[static_cast(i)]->first, items[static_cast(i)]->second, target, stream); 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); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_tags().begin(); + it != this->_internal_tags().end(); ++it) { + target = AgentConfigurationDocument_TagsEntry_DoNotUse::Funcs::InternalSerialize(2, it->first, it->second, target, stream); Utf8Check::Check(&(*it)); } } } - // .v1.model.TelemetryConfiguration telemetry = 3; + // .v1.model.TelemetryConfiguration telemetry = 3[json_name = "telemetry"]; if (this->has_telemetry()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::telemetry(this), output); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::telemetry(this), target, stream); } - // .v1.model.ResourcesConfiguration resources = 4; + // .v1.model.ResourcesConfiguration resources = 4[json_name = "resources"]; if (this->has_resources()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::resources(this), output); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::resources(this), target, stream); } - // .v1.model.ApplicationConfiguration application = 5; + // .v1.model.ApplicationConfiguration application = 5[json_name = "application"]; if (this->has_application()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::application(this), output); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 5, _Internal::application(this), target, stream); } - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); + // .v1.model.TeleopConfiguration teleop = 6[json_name = "teleop"]; + if (this->has_teleop()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 6, _Internal::teleop(this), target, stream); } - // @@protoc_insertion_point(serialize_end:v1.model.AgentConfigurationDocument) + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.AgentConfigurationDocument) + return target; } -::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; +size_t AgentConfigurationDocument::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.AgentConfigurationDocument) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // int32 version = 1; + // map tags = 2[json_name = "tags"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_tags_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_tags().begin(); + it != this->_internal_tags().end(); ++it) { + total_size += AgentConfigurationDocument_TagsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // .v1.model.TelemetryConfiguration telemetry = 3[json_name = "telemetry"]; + if (this->has_telemetry()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *telemetry_); + } + + // .v1.model.ResourcesConfiguration resources = 4[json_name = "resources"]; + if (this->has_resources()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *resources_); + } + + // .v1.model.ApplicationConfiguration application = 5[json_name = "application"]; + if (this->has_application()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *application_); + } + + // .v1.model.TeleopConfiguration teleop = 6[json_name = "teleop"]; + if (this->has_teleop()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *teleop_); + } + + // int64 version = 1[json_name = "version"]; if (this->version() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->version(), target); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_version()); } - // 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 (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AgentConfigurationDocument::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.AgentConfigurationDocument) + GOOGLE_DCHECK_NE(&from, this); + const AgentConfigurationDocument* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.AgentConfigurationDocument) + ::PROTOBUF_NAMESPACE_ID::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_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tags_.MergeFrom(from.tags_); + if (from.has_telemetry()) { + _internal_mutable_telemetry()->::v1::model::TelemetryConfiguration::MergeFrom(from._internal_telemetry()); + } + if (from.has_resources()) { + _internal_mutable_resources()->::v1::model::ResourcesConfiguration::MergeFrom(from._internal_resources()); + } + if (from.has_application()) { + _internal_mutable_application()->::v1::model::ApplicationConfiguration::MergeFrom(from._internal_application()); + } + if (from.has_teleop()) { + _internal_mutable_teleop()->::v1::model::TeleopConfiguration::MergeFrom(from._internal_teleop()); + } + if (from.version() != 0) { + _internal_set_version(from._internal_version()); + } +} + +void AgentConfigurationDocument::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::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::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(teleop_, other->teleop_); + swap(version_, other->version_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AgentConfigurationDocument::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void TeleopConfiguration::InitAsDefaultInstance() { +} +class TeleopConfiguration::_Internal { + public: +}; + +TeleopConfiguration::TeleopConfiguration() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.TeleopConfiguration) +} +TeleopConfiguration::TeleopConfiguration(const TeleopConfiguration& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + ros_streams_(from.ros_streams_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:v1.model.TeleopConfiguration) +} + +void TeleopConfiguration::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TeleopConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); +} + +TeleopConfiguration::~TeleopConfiguration() { + // @@protoc_insertion_point(destructor:v1.model.TeleopConfiguration) + SharedDtor(); +} + +void TeleopConfiguration::SharedDtor() { +} + +void TeleopConfiguration::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TeleopConfiguration& TeleopConfiguration::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TeleopConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + return *internal_default_instance(); +} + + +void TeleopConfiguration::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.TeleopConfiguration) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ros_streams_.Clear(); + _internal_metadata_.Clear(); +} + +const char* TeleopConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .v1.model.TeleopRosStreamConfiguration ros_streams = 1[json_name = "rosStreams"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_ros_streams(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } - }; + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* TeleopConfiguration::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.TeleopConfiguration) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .v1.model.TeleopRosStreamConfiguration ros_streams = 1[json_name = "rosStreams"]; + for (unsigned int i = 0, + n = static_cast(this->_internal_ros_streams_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_ros_streams(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:v1.model.TeleopConfiguration) + return target; +} + +size_t TeleopConfiguration::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.TeleopConfiguration) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .v1.model.TeleopRosStreamConfiguration ros_streams = 1[json_name = "rosStreams"]; + total_size += 1UL * this->_internal_ros_streams_size(); + for (const auto& msg : this->ros_streams_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TeleopConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.TeleopConfiguration) + GOOGLE_DCHECK_NE(&from, this); + const TeleopConfiguration* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.TeleopConfiguration) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.TeleopConfiguration) + MergeFrom(*source); + } +} + +void TeleopConfiguration::MergeFrom(const TeleopConfiguration& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.TeleopConfiguration) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + ros_streams_.MergeFrom(from.ros_streams_); +} + +void TeleopConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.TeleopConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TeleopConfiguration::CopyFrom(const TeleopConfiguration& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.TeleopConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TeleopConfiguration::IsInitialized() const { + return true; +} + +void TeleopConfiguration::InternalSwap(TeleopConfiguration* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + ros_streams_.InternalSwap(&other->ros_streams_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TeleopConfiguration::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void TeleopRosStreamConfiguration::InitAsDefaultInstance() { +} +class TeleopRosStreamConfiguration::_Internal { + public: +}; + +TeleopRosStreamConfiguration::TeleopRosStreamConfiguration() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:v1.model.TeleopRosStreamConfiguration) +} +TeleopRosStreamConfiguration::TeleopRosStreamConfiguration(const TeleopRosStreamConfiguration& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + topic_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_topic_name().empty()) { + topic_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.topic_name_); + } + ::memcpy(&topic_type_, &from.topic_type_, + static_cast(reinterpret_cast(&mode_) - + reinterpret_cast(&topic_type_)) + sizeof(mode_)); + // @@protoc_insertion_point(copy_constructor:v1.model.TeleopRosStreamConfiguration) +} + +void TeleopRosStreamConfiguration::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TeleopRosStreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + topic_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&topic_type_, 0, static_cast( + reinterpret_cast(&mode_) - + reinterpret_cast(&topic_type_)) + sizeof(mode_)); +} + +TeleopRosStreamConfiguration::~TeleopRosStreamConfiguration() { + // @@protoc_insertion_point(destructor:v1.model.TeleopRosStreamConfiguration) + SharedDtor(); +} + +void TeleopRosStreamConfiguration::SharedDtor() { + topic_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void TeleopRosStreamConfiguration::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TeleopRosStreamConfiguration& TeleopRosStreamConfiguration::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TeleopRosStreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + return *internal_default_instance(); +} + + +void TeleopRosStreamConfiguration::Clear() { +// @@protoc_insertion_point(message_clear_start:v1.model.TeleopRosStreamConfiguration) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + topic_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&topic_type_, 0, static_cast( + reinterpret_cast(&mode_) - + reinterpret_cast(&topic_type_)) + sizeof(mode_)); + _internal_metadata_.Clear(); +} - 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)); +const char* TeleopRosStreamConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string topic_name = 1[json_name = "topicName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_topic_name(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.TeleopRosStreamConfiguration.topic_name")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.TeleopRosStreamConfigurationTopicType topic_type = 2[json_name = "topicType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + _internal_set_topic_type(static_cast<::v1::model::TeleopRosStreamConfigurationTopicType>(val)); + } else goto handle_unusual; + continue; + // .v1.model.TeleopRosStreamConfigurationMode mode = 3[json_name = "mode"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + _internal_set_mode(static_cast<::v1::model::TeleopRosStreamConfigurationMode>(val)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } - } - } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} - // .v1.model.TelemetryConfiguration telemetry = 3; - if (this->has_telemetry()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::telemetry(this), target); +::PROTOBUF_NAMESPACE_ID::uint8* TeleopRosStreamConfiguration::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.TeleopRosStreamConfiguration) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string topic_name = 1[json_name = "topicName"]; + if (this->topic_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_topic_name().data(), static_cast(this->_internal_topic_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "v1.model.TeleopRosStreamConfiguration.topic_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_topic_name(), target); } - // .v1.model.ResourcesConfiguration resources = 4; - if (this->has_resources()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::resources(this), target); + // .v1.model.TeleopRosStreamConfigurationTopicType topic_type = 2[json_name = "topicType"]; + if (this->topic_type() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_topic_type(), target); } - // .v1.model.ApplicationConfiguration application = 5; - if (this->has_application()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::application(this), target); + // .v1.model.TeleopRosStreamConfigurationMode mode = 3[json_name = "mode"]; + if (this->mode() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_mode(), target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:v1.model.AgentConfigurationDocument) + // @@protoc_insertion_point(serialize_to_array_end:v1.model.TeleopRosStreamConfiguration) return target; } -size_t AgentConfigurationDocument::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:v1.model.AgentConfigurationDocument) +size_t TeleopRosStreamConfiguration::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:v1.model.TeleopRosStreamConfiguration) 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; + ::PROTOBUF_NAMESPACE_ID::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()) { + // string topic_name = 1[json_name = "topicName"]; + if (this->topic_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *telemetry_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_topic_name()); } - // .v1.model.ResourcesConfiguration resources = 4; - if (this->has_resources()) { + // .v1.model.TeleopRosStreamConfigurationTopicType topic_type = 2[json_name = "topicType"]; + if (this->topic_type() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *resources_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_topic_type()); } - // .v1.model.ApplicationConfiguration application = 5; - if (this->has_application()) { + // .v1.model.TeleopRosStreamConfigurationMode mode = 3[json_name = "mode"]; + if (this->mode() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *application_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_mode()); } - // int32 version = 1; - if (this->version() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->version()); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::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) +void TeleopRosStreamConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:v1.model.TeleopRosStreamConfiguration) GOOGLE_DCHECK_NE(&from, this); - const AgentConfigurationDocument* source = - ::google::protobuf::DynamicCastToGenerated( + const TeleopRosStreamConfiguration* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.AgentConfigurationDocument) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.TeleopRosStreamConfiguration) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.AgentConfigurationDocument) + // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.TeleopRosStreamConfiguration) MergeFrom(*source); } } -void AgentConfigurationDocument::MergeFrom(const AgentConfigurationDocument& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.AgentConfigurationDocument) +void TeleopRosStreamConfiguration::MergeFrom(const TeleopRosStreamConfiguration& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:v1.model.TeleopRosStreamConfiguration) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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.topic_name().size() > 0) { + + topic_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.topic_name_); } - if (from.has_application()) { - mutable_application()->::v1::model::ApplicationConfiguration::MergeFrom(from.application()); + if (from.topic_type() != 0) { + _internal_set_topic_type(from._internal_topic_type()); } - if (from.version() != 0) { - set_version(from.version()); + if (from.mode() != 0) { + _internal_set_mode(from._internal_mode()); } } -void AgentConfigurationDocument::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:v1.model.AgentConfigurationDocument) +void TeleopRosStreamConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:v1.model.TeleopRosStreamConfiguration) if (&from == this) return; Clear(); MergeFrom(from); } -void AgentConfigurationDocument::CopyFrom(const AgentConfigurationDocument& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.AgentConfigurationDocument) +void TeleopRosStreamConfiguration::CopyFrom(const TeleopRosStreamConfiguration& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:v1.model.TeleopRosStreamConfiguration) if (&from == this) return; Clear(); MergeFrom(from); } -bool AgentConfigurationDocument::IsInitialized() const { +bool TeleopRosStreamConfiguration::IsInitialized() const { return true; } -void AgentConfigurationDocument::Swap(AgentConfigurationDocument* other) { - if (other == this) return; - InternalSwap(other); -} -void AgentConfigurationDocument::InternalSwap(AgentConfigurationDocument* other) { +void TeleopRosStreamConfiguration::InternalSwap(TeleopRosStreamConfiguration* 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_); + topic_name_.Swap(&other->topic_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(topic_type_, other->topic_type_); + swap(mode_, other->mode_); } -::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]; +::PROTOBUF_NAMESPACE_ID::Metadata TeleopRosStreamConfiguration::GetMetadata() const { + return GetMetadataStatic(); } @@ -1653,31 +1844,26 @@ 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 { +class TelemetryConfiguration::_Internal { public: static const ::v1::model::ROSConfiguration& ros(const TelemetryConfiguration* msg); }; const ::v1::model::ROSConfiguration& -TelemetryConfiguration::HasBitSetters::ros(const TelemetryConfiguration* msg) { +TelemetryConfiguration::_Internal::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) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.model.TelemetryConfiguration) } TelemetryConfiguration::TelemetryConfiguration(const TelemetryConfiguration& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), streams_(from.streams_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_ros()) { + if (from._internal_has_ros()) { ros_ = new ::v1::model::ROSConfiguration(*from.ros_); } else { ros_ = nullptr; @@ -1686,8 +1872,7 @@ TelemetryConfiguration::TelemetryConfiguration(const TelemetryConfiguration& fro } void TelemetryConfiguration::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TelemetryConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); ros_ = nullptr; } @@ -1704,14 +1889,14 @@ 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); + ::PROTOBUF_NAMESPACE_ID::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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1723,173 +1908,77 @@ void TelemetryConfiguration::Clear() { _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); +const char* TelemetryConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(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; - } + // repeated .v1.model.StreamConfiguration streams = 1[json_name = "streams"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_streams(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + // .v1.model.ROSConfiguration ros = 2[json_name = "ros"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_ros(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.model.TelemetryConfiguration) - return false; -#undef DO_ + ptr = nullptr; + goto success; +#undef CHK_ } -#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 { +::PROTOBUF_NAMESPACE_ID::uint8* TelemetryConfiguration::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.model.TelemetryConfiguration) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .v1.model.StreamConfiguration streams = 1; + // repeated .v1.model.StreamConfiguration streams = 1[json_name = "streams"]; 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); + n = static_cast(this->_internal_streams_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_streams(i), target, stream); } - // .v1.model.ROSConfiguration ros = 2; + // .v1.model.ROSConfiguration ros = 2[json_name = "ros"]; if (this->has_ros()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::ros(this), target); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::ros(this), target, stream); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.model.TelemetryConfiguration) return target; @@ -1899,47 +1988,42 @@ 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; + ::PROTOBUF_NAMESPACE_ID::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))); - } + // repeated .v1.model.StreamConfiguration streams = 1[json_name = "streams"]; + total_size += 1UL * this->_internal_streams_size(); + for (const auto& msg : this->streams_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - // .v1.model.ROSConfiguration ros = 2; + // .v1.model.ROSConfiguration ros = 2[json_name = "ros"]; if (this->has_ros()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *ros_); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void TelemetryConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +void TelemetryConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.model.TelemetryConfiguration) GOOGLE_DCHECK_NE(&from, this); const TelemetryConfiguration* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.TelemetryConfiguration) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.TelemetryConfiguration) MergeFrom(*source); @@ -1950,16 +2034,16 @@ 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; + ::PROTOBUF_NAMESPACE_ID::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()); + _internal_mutable_ros()->::v1::model::ROSConfiguration::MergeFrom(from._internal_ros()); } } -void TelemetryConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +void TelemetryConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.model.TelemetryConfiguration) if (&from == this) return; Clear(); @@ -1977,83 +2061,50 @@ 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_)); + streams_.InternalSwap(&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]; +::PROTOBUF_NAMESPACE_ID::Metadata TelemetryConfiguration::GetMetadata() const { + return GetMetadataStatic(); } // =================================================================== ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse() {} -ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse(::google::protobuf::Arena* arena) +ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::ApplicationConfiguration_ConfigurationMapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::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]; +::PROTOBUF_NAMESPACE_ID::Metadata ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::GetMetadata() const { + return GetMetadataStatic(); } 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; + const ::PROTOBUF_NAMESPACE_ID::Message& other) { + ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER // =================================================================== void ApplicationConfiguration::InitAsDefaultInstance() { } -class ApplicationConfiguration::HasBitSetters { +class ApplicationConfiguration::_Internal { 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) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.model.ApplicationConfiguration) } ApplicationConfiguration::ApplicationConfiguration(const ApplicationConfiguration& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); configuration_map_.MergeFrom(from.configuration_map_); @@ -2061,8 +2112,7 @@ ApplicationConfiguration::ApplicationConfiguration(const ApplicationConfiguratio } void ApplicationConfiguration::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ApplicationConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); } ApplicationConfiguration::~ApplicationConfiguration() { @@ -2077,14 +2127,14 @@ 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); + ::PROTOBUF_NAMESPACE_ID::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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2092,235 +2142,99 @@ void ApplicationConfiguration::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); +const char* ApplicationConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(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; - } + // map configuration_map = 1[json_name = "configurationMap"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&configuration_map_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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; + return ptr; 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) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* ApplicationConfiguration::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* ApplicationConfiguration::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.model.ApplicationConfiguration) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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 + // map configuration_map = 1[json_name = "configurationMap"]; + if (!this->_internal_configuration_map().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer ConstPtr; typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; + typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; struct Utf8Check { static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.ApplicationConfiguration.ConfigurationMapEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.ApplicationConfiguration.ConfigurationMapEntry.value"); } }; - if (false && - this->configuration_map().size() > 1) { + if (stream->IsSerializationDeterministic() && + this->_internal_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; + new SortItem[this->_internal_configuration_map().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::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) { + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_configuration_map().begin(); + it != this->_internal_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); + target = ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::Funcs::InternalSerialize(1, items[static_cast(i)]->first, items[static_cast(i)]->second, target, stream); 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); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_configuration_map().begin(); + it != this->_internal_configuration_map().end(); ++it) { + target = ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::Funcs::InternalSerialize(1, it->first, it->second, target, stream); Utf8Check::Check(&(*it)); } } } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.model.ApplicationConfiguration) return target; @@ -2330,43 +2244,37 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // map configuration_map = 1; + // map configuration_map = 1[json_name = "configurationMap"]; 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); - } + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_configuration_map_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_configuration_map().begin(); + it != this->_internal_configuration_map().end(); ++it) { + total_size += ApplicationConfiguration_ConfigurationMapEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void ApplicationConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +void ApplicationConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.model.ApplicationConfiguration) GOOGLE_DCHECK_NE(&from, this); const ApplicationConfiguration* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.ApplicationConfiguration) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.ApplicationConfiguration) MergeFrom(*source); @@ -2377,13 +2285,13 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; configuration_map_.MergeFrom(from.configuration_map_); } -void ApplicationConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +void ApplicationConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.model.ApplicationConfiguration) if (&from == this) return; Clear(); @@ -2401,19 +2309,14 @@ 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]; +::PROTOBUF_NAMESPACE_ID::Metadata ApplicationConfiguration::GetMetadata() const { + return GetMetadataStatic(); } @@ -2422,41 +2325,56 @@ ::google::protobuf::Metadata ApplicationConfiguration::GetMetadata() const { void ResourcesConfiguration::InitAsDefaultInstance() { ::v1::model::_ResourcesConfiguration_default_instance_._instance.get_mutable()->disk_ = const_cast< ::v1::model::DiskConfiguration*>( ::v1::model::DiskConfiguration::internal_default_instance()); + ::v1::model::_ResourcesConfiguration_default_instance_._instance.get_mutable()->stream_throttle_hz_ = const_cast< PROTOBUF_NAMESPACE_ID::DoubleValue*>( + PROTOBUF_NAMESPACE_ID::DoubleValue::internal_default_instance()); } -class ResourcesConfiguration::HasBitSetters { +class ResourcesConfiguration::_Internal { public: static const ::v1::model::DiskConfiguration& disk(const ResourcesConfiguration* msg); + static const PROTOBUF_NAMESPACE_ID::DoubleValue& stream_throttle_hz(const ResourcesConfiguration* msg); }; const ::v1::model::DiskConfiguration& -ResourcesConfiguration::HasBitSetters::disk(const ResourcesConfiguration* msg) { +ResourcesConfiguration::_Internal::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 - +const PROTOBUF_NAMESPACE_ID::DoubleValue& +ResourcesConfiguration::_Internal::stream_throttle_hz(const ResourcesConfiguration* msg) { + return *msg->stream_throttle_hz_; +} +void ResourcesConfiguration::clear_stream_throttle_hz() { + if (GetArenaNoVirtual() == nullptr && stream_throttle_hz_ != nullptr) { + delete stream_throttle_hz_; + } + stream_throttle_hz_ = nullptr; +} ResourcesConfiguration::ResourcesConfiguration() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.model.ResourcesConfiguration) } ResourcesConfiguration::ResourcesConfiguration(const ResourcesConfiguration& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_disk()) { + if (from._internal_has_disk()) { disk_ = new ::v1::model::DiskConfiguration(*from.disk_); } else { disk_ = nullptr; } + if (from._internal_has_stream_throttle_hz()) { + stream_throttle_hz_ = new PROTOBUF_NAMESPACE_ID::DoubleValue(*from.stream_throttle_hz_); + } else { + stream_throttle_hz_ = 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; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ResourcesConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + ::memset(&disk_, 0, static_cast( + reinterpret_cast(&stream_throttle_hz_) - + reinterpret_cast(&disk_)) + sizeof(stream_throttle_hz_)); } ResourcesConfiguration::~ResourcesConfiguration() { @@ -2466,20 +2384,21 @@ ResourcesConfiguration::~ResourcesConfiguration() { void ResourcesConfiguration::SharedDtor() { if (this != internal_default_instance()) delete disk_; + if (this != internal_default_instance()) delete stream_throttle_hz_; } 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); + ::PROTOBUF_NAMESPACE_ID::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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2487,132 +2406,79 @@ void ResourcesConfiguration::Clear() { delete disk_; } disk_ = nullptr; + if (GetArenaNoVirtual() == nullptr && stream_throttle_hz_ != nullptr) { + delete stream_throttle_hz_; + } + stream_throttle_hz_ = 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); +const char* ResourcesConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(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; - } + // .v1.model.DiskConfiguration disk = 1[json_name = "disk"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_disk(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .google.protobuf.DoubleValue stream_throttle_hz = 2[json_name = "streamThrottleHz"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_stream_throttle_hz(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.model.ResourcesConfiguration) - return false; -#undef DO_ + ptr = nullptr; + goto success; +#undef CHK_ } -#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; +::PROTOBUF_NAMESPACE_ID::uint8* ResourcesConfiguration::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.ResourcesConfiguration) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .v1.model.DiskConfiguration disk = 1; + // .v1.model.DiskConfiguration disk = 1[json_name = "disk"]; if (this->has_disk()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::disk(this), output); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::disk(this), target, stream); } - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); + // .google.protobuf.DoubleValue stream_throttle_hz = 2[json_name = "streamThrottleHz"]; + if (this->has_stream_throttle_hz()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::stream_throttle_hz(this), target, stream); } - // @@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); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.model.ResourcesConfiguration) return target; @@ -2622,36 +2488,42 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .v1.model.DiskConfiguration disk = 1; + // .v1.model.DiskConfiguration disk = 1[json_name = "disk"]; if (this->has_disk()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *disk_); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + // .google.protobuf.DoubleValue stream_throttle_hz = 2[json_name = "streamThrottleHz"]; + if (this->has_stream_throttle_hz()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stream_throttle_hz_); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void ResourcesConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +void ResourcesConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.model.ResourcesConfiguration) GOOGLE_DCHECK_NE(&from, this); const ResourcesConfiguration* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.ResourcesConfiguration) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.ResourcesConfiguration) MergeFrom(*source); @@ -2662,15 +2534,18 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_disk()) { - mutable_disk()->::v1::model::DiskConfiguration::MergeFrom(from.disk()); + _internal_mutable_disk()->::v1::model::DiskConfiguration::MergeFrom(from._internal_disk()); + } + if (from.has_stream_throttle_hz()) { + _internal_mutable_stream_throttle_hz()->PROTOBUF_NAMESPACE_ID::DoubleValue::MergeFrom(from._internal_stream_throttle_hz()); } } -void ResourcesConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +void ResourcesConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.model.ResourcesConfiguration) if (&from == this) return; Clear(); @@ -2688,19 +2563,15 @@ 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_); + swap(stream_throttle_hz_, other->stream_throttle_hz_); } -::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]; +::PROTOBUF_NAMESPACE_ID::Metadata ResourcesConfiguration::GetMetadata() const { + return GetMetadataStatic(); } @@ -2708,21 +2579,17 @@ ::google::protobuf::Metadata ResourcesConfiguration::GetMetadata() const { void DiskConfiguration::InitAsDefaultInstance() { } -class DiskConfiguration::HasBitSetters { +class DiskConfiguration::_Internal { 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) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.model.DiskConfiguration) } DiskConfiguration::DiskConfiguration(const DiskConfiguration& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); buffer_size_ = from.buffer_size_; @@ -2745,14 +2612,14 @@ 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); + ::PROTOBUF_NAMESPACE_ID::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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2760,119 +2627,55 @@ void DiskConfiguration::Clear() { _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); +const char* DiskConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(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; - } + // int64 buffer_size = 1[json_name = "bufferSize"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + buffer_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.model.DiskConfiguration) - return false; -#undef DO_ + ptr = nullptr; + goto success; +#undef CHK_ } -#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 { +::PROTOBUF_NAMESPACE_ID::uint8* DiskConfiguration::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.model.DiskConfiguration) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // int64 buffer_size = 1; + // int64 buffer_size = 1[json_name = "bufferSize"]; if (this->buffer_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->buffer_size(), target); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_buffer_size(), target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.model.DiskConfiguration) return target; @@ -2882,36 +2685,35 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // int64 buffer_size = 1; + // int64 buffer_size = 1[json_name = "bufferSize"]; if (this->buffer_size() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->buffer_size()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_buffer_size()); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void DiskConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +void DiskConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.model.DiskConfiguration) GOOGLE_DCHECK_NE(&from, this); const DiskConfiguration* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.DiskConfiguration) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.DiskConfiguration) MergeFrom(*source); @@ -2922,15 +2724,15 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.buffer_size() != 0) { - set_buffer_size(from.buffer_size()); + _internal_set_buffer_size(from._internal_buffer_size()); } } -void DiskConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +void DiskConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.model.DiskConfiguration) if (&from == this) return; Clear(); @@ -2948,19 +2750,14 @@ 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]; +::PROTOBUF_NAMESPACE_ID::Metadata DiskConfiguration::GetMetadata() const { + return GetMetadataStatic(); } @@ -2968,34 +2765,29 @@ ::google::protobuf::Metadata DiskConfiguration::GetMetadata() const { void ROSConfiguration::InitAsDefaultInstance() { } -class ROSConfiguration::HasBitSetters { +class ROSConfiguration::_Internal { 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) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.model.ROSConfiguration) } ROSConfiguration::ROSConfiguration(const ROSConfiguration& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::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_); + world_reference_frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_world_reference_frame_id().empty()) { + world_reference_frame_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::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()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ROSConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + world_reference_frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } ROSConfiguration::~ROSConfiguration() { @@ -3004,170 +2796,83 @@ ROSConfiguration::~ROSConfiguration() { } void ROSConfiguration::SharedDtor() { - world_reference_frame_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + world_reference_frame_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::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); + ::PROTOBUF_NAMESPACE_ID::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; + ::PROTOBUF_NAMESPACE_ID::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; - } + (void) cached_has_bits; + + world_reference_frame_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} +const char* ROSConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // string world_reference_frame_id = 1[json_name = "worldReferenceFrameId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_world_reference_frame_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.ROSConfiguration.world_reference_frame_id")); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: - if (tag == 0) { + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } - } - } + } // switch + } // while success: - // @@protoc_insertion_point(parse_success:v1.model.ROSConfiguration) - return true; + return ptr; 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) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* ROSConfiguration::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* ROSConfiguration::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.model.ROSConfiguration) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string world_reference_frame_id = 1; + // string world_reference_frame_id = 1[json_name = "worldReferenceFrameId"]; 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, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_world_reference_frame_id().data(), static_cast(this->_internal_world_reference_frame_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.ROSConfiguration.world_reference_frame_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->world_reference_frame_id(), target); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_world_reference_frame_id(), target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.model.ROSConfiguration) return target; @@ -3177,36 +2882,35 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string world_reference_frame_id = 1; + // string world_reference_frame_id = 1[json_name = "worldReferenceFrameId"]; if (this->world_reference_frame_id().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->world_reference_frame_id()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_world_reference_frame_id()); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void ROSConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +void ROSConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.model.ROSConfiguration) GOOGLE_DCHECK_NE(&from, this); const ROSConfiguration* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.ROSConfiguration) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.ROSConfiguration) MergeFrom(*source); @@ -3217,16 +2921,16 @@ 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; + ::PROTOBUF_NAMESPACE_ID::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_); + world_reference_frame_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.world_reference_frame_id_); } } -void ROSConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +void ROSConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.model.ROSConfiguration) if (&from == this) return; Clear(); @@ -3244,62 +2948,33 @@ 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(), + world_reference_frame_id_.Swap(&other->world_reference_frame_id_, &::PROTOBUF_NAMESPACE_ID::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]; +::PROTOBUF_NAMESPACE_ID::Metadata ROSConfiguration::GetMetadata() const { + return GetMetadataStatic(); } // =================================================================== StreamConfiguration_TagsEntry_DoNotUse::StreamConfiguration_TagsEntry_DoNotUse() {} -StreamConfiguration_TagsEntry_DoNotUse::StreamConfiguration_TagsEntry_DoNotUse(::google::protobuf::Arena* arena) +StreamConfiguration_TagsEntry_DoNotUse::StreamConfiguration_TagsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::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]; +::PROTOBUF_NAMESPACE_ID::Metadata StreamConfiguration_TagsEntry_DoNotUse::GetMetadata() const { + return GetMetadataStatic(); } 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; + const ::PROTOBUF_NAMESPACE_ID::Message& other) { + ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER // =================================================================== @@ -3309,42 +2984,49 @@ void StreamConfiguration::InitAsDefaultInstance() { ::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_.ros_transform_tree_ = const_cast< ::v1::model::ROSTransformTree*>( + ::v1::model::ROSTransformTree::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 { +class StreamConfiguration::_Internal { 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::ROSTransformTree& ros_transform_tree(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) { +StreamConfiguration::_Internal::ros_topic(const StreamConfiguration* msg) { return *msg->configuration_.ros_topic_; } const ::v1::model::ROSLocalization& -StreamConfiguration::HasBitSetters::ros_localization(const StreamConfiguration* msg) { +StreamConfiguration::_Internal::ros_localization(const StreamConfiguration* msg) { return *msg->configuration_.ros_localization_; } +const ::v1::model::ROSTransformTree& +StreamConfiguration::_Internal::ros_transform_tree(const StreamConfiguration* msg) { + return *msg->configuration_.ros_transform_tree_; +} const ::v1::model::DirectoryWatch& -StreamConfiguration::HasBitSetters::directory_watch(const StreamConfiguration* msg) { +StreamConfiguration::_Internal::directory_watch(const StreamConfiguration* msg) { return *msg->configuration_.directory_watch_; } const ::v1::model::FileTail& -StreamConfiguration::HasBitSetters::file_tail(const StreamConfiguration* msg) { +StreamConfiguration::_Internal::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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_configuration(); if (ros_topic) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - ros_topic = ::google::protobuf::internal::GetOwnedMessage( + ros_topic = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, ros_topic, submessage_arena); } set_has_ros_topic(); @@ -3353,18 +3035,18 @@ void StreamConfiguration::set_allocated_ros_topic(::v1::model::ROSTopic* ros_top // @@protoc_insertion_point(field_set_allocated:v1.model.StreamConfiguration.ros_topic) } void StreamConfiguration::clear_ros_topic() { - if (has_ros_topic()) { + if (_internal_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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_configuration(); if (ros_localization) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - ros_localization = ::google::protobuf::internal::GetOwnedMessage( + ros_localization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, ros_localization, submessage_arena); } set_has_ros_localization(); @@ -3373,18 +3055,38 @@ void StreamConfiguration::set_allocated_ros_localization(::v1::model::ROSLocaliz // @@protoc_insertion_point(field_set_allocated:v1.model.StreamConfiguration.ros_localization) } void StreamConfiguration::clear_ros_localization() { - if (has_ros_localization()) { + if (_internal_has_ros_localization()) { delete configuration_.ros_localization_; clear_has_configuration(); } } +void StreamConfiguration::set_allocated_ros_transform_tree(::v1::model::ROSTransformTree* ros_transform_tree) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_configuration(); + if (ros_transform_tree) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + ros_transform_tree = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ros_transform_tree, submessage_arena); + } + set_has_ros_transform_tree(); + configuration_.ros_transform_tree_ = ros_transform_tree; + } + // @@protoc_insertion_point(field_set_allocated:v1.model.StreamConfiguration.ros_transform_tree) +} +void StreamConfiguration::clear_ros_transform_tree() { + if (_internal_has_ros_transform_tree()) { + delete configuration_.ros_transform_tree_; + clear_has_configuration(); + } +} void StreamConfiguration::set_allocated_directory_watch(::v1::model::DirectoryWatch* directory_watch) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_configuration(); if (directory_watch) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - directory_watch = ::google::protobuf::internal::GetOwnedMessage( + directory_watch = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, directory_watch, submessage_arena); } set_has_directory_watch(); @@ -3393,12 +3095,12 @@ void StreamConfiguration::set_allocated_directory_watch(::v1::model::DirectoryWa // @@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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_configuration(); if (file_tail) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - file_tail = ::google::protobuf::internal::GetOwnedMessage( + file_tail = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, file_tail, submessage_arena); } set_has_file_tail(); @@ -3406,45 +3108,40 @@ void StreamConfiguration::set_allocated_file_tail(::v1::model::FileTail* file_ta } // @@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) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.model.StreamConfiguration) } StreamConfiguration::StreamConfiguration(const StreamConfiguration& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::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_); + name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_name().empty()) { + name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); } clear_has_configuration(); switch (from.configuration_case()) { case kRosTopic: { - mutable_ros_topic()->::v1::model::ROSTopic::MergeFrom(from.ros_topic()); + _internal_mutable_ros_topic()->::v1::model::ROSTopic::MergeFrom(from._internal_ros_topic()); break; } case kRosLocalization: { - mutable_ros_localization()->::v1::model::ROSLocalization::MergeFrom(from.ros_localization()); + _internal_mutable_ros_localization()->::v1::model::ROSLocalization::MergeFrom(from._internal_ros_localization()); + break; + } + case kRosTransformTree: { + _internal_mutable_ros_transform_tree()->::v1::model::ROSTransformTree::MergeFrom(from._internal_ros_transform_tree()); break; } case kDirectoryWatch: { - mutable_directory_watch()->::v1::model::DirectoryWatch::MergeFrom(from.directory_watch()); + _internal_mutable_directory_watch()->::v1::model::DirectoryWatch::MergeFrom(from._internal_directory_watch()); break; } case kFileTail: { - mutable_file_tail()->::v1::model::FileTail::MergeFrom(from.file_tail()); + _internal_mutable_file_tail()->::v1::model::FileTail::MergeFrom(from._internal_file_tail()); break; } case CONFIGURATION_NOT_SET: { @@ -3455,9 +3152,8 @@ StreamConfiguration::StreamConfiguration(const StreamConfiguration& from) } void StreamConfiguration::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); + name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); clear_has_configuration(); } @@ -3467,7 +3163,7 @@ StreamConfiguration::~StreamConfiguration() { } void StreamConfiguration::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (has_configuration()) { clear_configuration(); } @@ -3477,7 +3173,7 @@ 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); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StreamConfiguration_protos_2fmodel_2fv1_2fconfig_2eproto.base); return *internal_default_instance(); } @@ -3493,6 +3189,10 @@ void StreamConfiguration::clear_configuration() { delete configuration_.ros_localization_; break; } + case kRosTransformTree: { + delete configuration_.ros_transform_tree_; + break; + } case kDirectoryWatch: { delete configuration_.directory_watch_; break; @@ -3511,449 +3211,203 @@ void StreamConfiguration::clear_configuration() { void StreamConfiguration::Clear() { // @@protoc_insertion_point(message_clear_start:v1.model.StreamConfiguration) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::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()); + name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::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); +const char* StreamConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(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; - } + // string name = 1[json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.StreamConfiguration.name")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // map tags = 2[json_name = "tags"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&tags_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else goto handle_unusual; + continue; + // .v1.model.ROSTopic ros_topic = 3[json_name = "rosTopic"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_ros_topic(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.ROSLocalization ros_localization = 4[json_name = "rosLocalization"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_ros_localization(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.DirectoryWatch directory_watch = 5[json_name = "directoryWatch"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_directory_watch(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.FileTail file_tail = 6[json_name = "fileTail"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_file_tail(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.ROSTransformTree ros_transform_tree = 7[json_name = "rosTransformTree"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_ros_transform_tree(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.model.StreamConfiguration) - return false; -#undef DO_ + ptr = nullptr; + goto success; +#undef CHK_ } -#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; +::PROTOBUF_NAMESPACE_ID::uint8* StreamConfiguration::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:v1.model.StreamConfiguration) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string name = 1; + // string name = 1[json_name = "name"]; if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.StreamConfiguration.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - // map tags = 2; - if (!this->tags().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + // map tags = 2[json_name = "tags"]; + if (!this->_internal_tags().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer ConstPtr; typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; + typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; struct Utf8Check { static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.StreamConfiguration.TagsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.StreamConfiguration.TagsEntry.value"); } }; - if (output->IsSerializationDeterministic() && - this->tags().size() > 1) { + if (stream->IsSerializationDeterministic() && + this->_internal_tags().size() > 1) { ::std::unique_ptr items( - new SortItem[this->tags().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + new SortItem[this->_internal_tags().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::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) { + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_tags().begin(); + it != this->_internal_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); + target = StreamConfiguration_TagsEntry_DoNotUse::Funcs::InternalSerialize(2, items[static_cast(i)]->first, items[static_cast(i)]->second, target, stream); 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); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_tags().begin(); + it != this->_internal_tags().end(); ++it) { + target = StreamConfiguration_TagsEntry_DoNotUse::Funcs::InternalSerialize(2, it->first, it->second, target, stream); 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[json_name = "rosTopic"]; + if (_internal_has_ros_topic()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::ros_topic(this), target, stream); } - // .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[json_name = "rosLocalization"]; + if (_internal_has_ros_localization()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::ros_localization(this), target, stream); } - // .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[json_name = "directoryWatch"]; + if (_internal_has_directory_watch()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 5, _Internal::directory_watch(this), target, stream); } - // .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[json_name = "fileTail"]; + if (_internal_has_file_tail()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 6, _Internal::file_tail(this), target, stream); } - // .v1.model.FileTail file_tail = 6; - if (has_file_tail()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::file_tail(this), target); + // .v1.model.ROSTransformTree ros_transform_tree = 7[json_name = "rosTransformTree"]; + if (_internal_has_ros_transform_tree()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 7, _Internal::ros_transform_tree(this), target, stream); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.model.StreamConfiguration) return target; @@ -3963,62 +3417,59 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // map tags = 2; + // map tags = 2[json_name = "tags"]; 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); - } + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_tags_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_tags().begin(); + it != this->_internal_tags().end(); ++it) { + total_size += StreamConfiguration_TagsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } - // string name = 1; + // string name = 1[json_name = "name"]; if (this->name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } switch (configuration_case()) { - // .v1.model.ROSTopic ros_topic = 3; + // .v1.model.ROSTopic ros_topic = 3[json_name = "rosTopic"]; case kRosTopic: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *configuration_.ros_topic_); break; } - // .v1.model.ROSLocalization ros_localization = 4; + // .v1.model.ROSLocalization ros_localization = 4[json_name = "rosLocalization"]; case kRosLocalization: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *configuration_.ros_localization_); break; } - // .v1.model.DirectoryWatch directory_watch = 5; + // .v1.model.ROSTransformTree ros_transform_tree = 7[json_name = "rosTransformTree"]; + case kRosTransformTree: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *configuration_.ros_transform_tree_); + break; + } + // .v1.model.DirectoryWatch directory_watch = 5[json_name = "directoryWatch"]; case kDirectoryWatch: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *configuration_.directory_watch_); break; } - // .v1.model.FileTail file_tail = 6; + // .v1.model.FileTail file_tail = 6[json_name = "fileTail"]; case kFileTail: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *configuration_.file_tail_); break; } @@ -4026,20 +3477,24 @@ size_t StreamConfiguration::ByteSizeLong() const { break; } } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void StreamConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +void StreamConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.model.StreamConfiguration) GOOGLE_DCHECK_NE(&from, this); const StreamConfiguration* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.StreamConfiguration) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.StreamConfiguration) MergeFrom(*source); @@ -4050,29 +3505,33 @@ 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; + ::PROTOBUF_NAMESPACE_ID::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_); + name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_); } switch (from.configuration_case()) { case kRosTopic: { - mutable_ros_topic()->::v1::model::ROSTopic::MergeFrom(from.ros_topic()); + _internal_mutable_ros_topic()->::v1::model::ROSTopic::MergeFrom(from._internal_ros_topic()); break; } case kRosLocalization: { - mutable_ros_localization()->::v1::model::ROSLocalization::MergeFrom(from.ros_localization()); + _internal_mutable_ros_localization()->::v1::model::ROSLocalization::MergeFrom(from._internal_ros_localization()); + break; + } + case kRosTransformTree: { + _internal_mutable_ros_transform_tree()->::v1::model::ROSTransformTree::MergeFrom(from._internal_ros_transform_tree()); break; } case kDirectoryWatch: { - mutable_directory_watch()->::v1::model::DirectoryWatch::MergeFrom(from.directory_watch()); + _internal_mutable_directory_watch()->::v1::model::DirectoryWatch::MergeFrom(from._internal_directory_watch()); break; } case kFileTail: { - mutable_file_tail()->::v1::model::FileTail::MergeFrom(from.file_tail()); + _internal_mutable_file_tail()->::v1::model::FileTail::MergeFrom(from._internal_file_tail()); break; } case CONFIGURATION_NOT_SET: { @@ -4081,7 +3540,7 @@ void StreamConfiguration::MergeFrom(const StreamConfiguration& from) { } } -void StreamConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +void StreamConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.model.StreamConfiguration) if (&from == this) return; Clear(); @@ -4099,23 +3558,18 @@ 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(), + name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::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]; +::PROTOBUF_NAMESPACE_ID::Metadata StreamConfiguration::GetMetadata() const { + return GetMetadataStatic(); } @@ -4123,33 +3577,26 @@ ::google::protobuf::Metadata StreamConfiguration::GetMetadata() const { void DirectoryWatch::InitAsDefaultInstance() { } -class DirectoryWatch::HasBitSetters { +class DirectoryWatch::_Internal { 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) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.model.DirectoryWatch) } DirectoryWatch::DirectoryWatch(const DirectoryWatch& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::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_); + directory_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_directory().empty()) { + directory_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.directory_); } - extension_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.extension().size() > 0) { - extension_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extension_); + extension_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_extension().empty()) { + extension_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.extension_); } ::memcpy(&file_type_, &from.file_type_, static_cast(reinterpret_cast(&remote_agent_) - @@ -4158,10 +3605,9 @@ DirectoryWatch::DirectoryWatch(const DirectoryWatch& from) } 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()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DirectoryWatch_protos_2fmodel_2fv1_2fconfig_2eproto.base); + directory_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + extension_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(&file_type_, 0, static_cast( reinterpret_cast(&remote_agent_) - reinterpret_cast(&file_type_)) + sizeof(remote_agent_)); @@ -4173,291 +3619,135 @@ DirectoryWatch::~DirectoryWatch() { } void DirectoryWatch::SharedDtor() { - directory_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - extension_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + directory_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + extension_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::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); + ::PROTOBUF_NAMESPACE_ID::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; + ::PROTOBUF_NAMESPACE_ID::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()); + directory_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + extension_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::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); +const char* DirectoryWatch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(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; - } + // string directory = 1[json_name = "directory"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_directory(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.DirectoryWatch.directory")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string extension = 2[json_name = "extension"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_extension(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.DirectoryWatch.extension")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.FileType file_type = 3[json_name = "fileType"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + _internal_set_file_type(static_cast<::v1::model::FileType>(val)); + } else goto handle_unusual; + continue; + // bool remote_agent = 4[json_name = "remoteAgent"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + remote_agent_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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; + return ptr; 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) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* DirectoryWatch::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* DirectoryWatch::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.model.DirectoryWatch) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string directory = 1; + // string directory = 1[json_name = "directory"]; if (this->directory().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->directory().data(), static_cast(this->directory().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_directory().data(), static_cast(this->_internal_directory().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.DirectoryWatch.directory"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->directory(), target); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_directory(), target); } - // string extension = 2; + // string extension = 2[json_name = "extension"]; if (this->extension().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->extension().data(), static_cast(this->extension().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_extension().data(), static_cast(this->_internal_extension().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.DirectoryWatch.extension"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->extension(), target); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_extension(), target); } - // .v1.model.FileType file_type = 3; + // .v1.model.FileType file_type = 3[json_name = "fileType"]; if (this->file_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->file_type(), target); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_file_type(), target); } - // bool remote_agent = 4; + // bool remote_agent = 4[json_name = "remoteAgent"]; if (this->remote_agent() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->remote_agent(), target); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_remote_agent(), target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.model.DirectoryWatch) return target; @@ -4467,54 +3757,53 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string directory = 1; + // string directory = 1[json_name = "directory"]; if (this->directory().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->directory()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_directory()); } - // string extension = 2; + // string extension = 2[json_name = "extension"]; if (this->extension().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->extension()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_extension()); } - // .v1.model.FileType file_type = 3; + // .v1.model.FileType file_type = 3[json_name = "fileType"]; if (this->file_type() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->file_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_file_type()); } - // bool remote_agent = 4; + // bool remote_agent = 4[json_name = "remoteAgent"]; if (this->remote_agent() != 0) { total_size += 1 + 1; } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void DirectoryWatch::MergeFrom(const ::google::protobuf::Message& from) { +void DirectoryWatch::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.model.DirectoryWatch) GOOGLE_DCHECK_NE(&from, this); const DirectoryWatch* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.DirectoryWatch) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.DirectoryWatch) MergeFrom(*source); @@ -4525,26 +3814,26 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.directory().size() > 0) { - directory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.directory_); + directory_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.directory_); } if (from.extension().size() > 0) { - extension_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extension_); + extension_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.extension_); } if (from.file_type() != 0) { - set_file_type(from.file_type()); + _internal_set_file_type(from._internal_file_type()); } if (from.remote_agent() != 0) { - set_remote_agent(from.remote_agent()); + _internal_set_remote_agent(from._internal_remote_agent()); } } -void DirectoryWatch::CopyFrom(const ::google::protobuf::Message& from) { +void DirectoryWatch::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.model.DirectoryWatch) if (&from == this) return; Clear(); @@ -4562,24 +3851,19 @@ 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(), + directory_.Swap(&other->directory_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - extension_.Swap(&other->extension_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + extension_.Swap(&other->extension_, &::PROTOBUF_NAMESPACE_ID::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]; +::PROTOBUF_NAMESPACE_ID::Metadata DirectoryWatch::GetMetadata() const { + return GetMetadataStatic(); } @@ -4587,54 +3871,45 @@ ::google::protobuf::Metadata DirectoryWatch::GetMetadata() const { void FileTail::InitAsDefaultInstance() { } -class FileTail::HasBitSetters { +class FileTail::_Internal { 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) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.model.FileTail) } FileTail::FileTail(const FileTail& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::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_); + filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_filename().empty()) { + filename_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::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_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_time_key().empty()) { + time_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::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_); + time_format_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_time_format().empty()) { + time_format_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.time_format_); } - regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.regex().size() > 0) { - regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); + regex_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_regex().empty()) { + regex_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::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()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FileTail_protos_2fmodel_2fv1_2fconfig_2eproto.base); + filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + time_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + time_format_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + regex_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); file_format_ = 0; } @@ -4644,367 +3919,162 @@ FileTail::~FileTail() { } 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()); + filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + time_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + time_format_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + regex_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::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); + ::PROTOBUF_NAMESPACE_ID::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; + ::PROTOBUF_NAMESPACE_ID::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()); + filename_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + time_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + time_format_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + regex_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::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); +const char* FileTail::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(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; - } + // string filename = 1[json_name = "filename"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_filename(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.FileTail.filename")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.FileFormat file_format = 2[json_name = "fileFormat"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + _internal_set_file_format(static_cast<::v1::model::FileFormat>(val)); + } else goto handle_unusual; + continue; + // string time_key = 3[json_name = "timeKey"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_time_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.FileTail.time_key")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string time_format = 4[json_name = "timeFormat"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_time_format(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.FileTail.time_format")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string regex = 5[json_name = "regex"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_regex(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.FileTail.regex")); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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; + return ptr; 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) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* FileTail::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* FileTail::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.model.FileTail) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string filename = 1; + // string filename = 1[json_name = "filename"]; if (this->filename().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), static_cast(this->filename().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_filename().data(), static_cast(this->_internal_filename().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.FileTail.filename"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->filename(), target); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_filename(), target); } - // .v1.model.FileFormat file_format = 2; + // .v1.model.FileFormat file_format = 2[json_name = "fileFormat"]; if (this->file_format() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->file_format(), target); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_file_format(), target); } - // string time_key = 3; + // string time_key = 3[json_name = "timeKey"]; 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, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_time_key().data(), static_cast(this->_internal_time_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.FileTail.time_key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->time_key(), target); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_time_key(), target); } - // string time_format = 4; + // string time_format = 4[json_name = "timeFormat"]; 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, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_time_format().data(), static_cast(this->_internal_time_format().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.FileTail.time_format"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->time_format(), target); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_time_format(), target); } - // string regex = 5; + // string regex = 5[json_name = "regex"]; if (this->regex().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->regex().data(), static_cast(this->regex().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_regex().data(), static_cast(this->_internal_regex().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.FileTail.regex"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->regex(), target); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_regex(), target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.model.FileTail) return target; @@ -5014,63 +4084,62 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string filename = 1; + // string filename = 1[json_name = "filename"]; if (this->filename().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filename()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_filename()); } - // string time_key = 3; + // string time_key = 3[json_name = "timeKey"]; if (this->time_key().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->time_key()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_time_key()); } - // string time_format = 4; + // string time_format = 4[json_name = "timeFormat"]; if (this->time_format().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->time_format()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_time_format()); } - // string regex = 5; + // string regex = 5[json_name = "regex"]; if (this->regex().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->regex()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_regex()); } - // .v1.model.FileFormat file_format = 2; + // .v1.model.FileFormat file_format = 2[json_name = "fileFormat"]; if (this->file_format() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->file_format()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_file_format()); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void FileTail::MergeFrom(const ::google::protobuf::Message& from) { +void FileTail::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.model.FileTail) GOOGLE_DCHECK_NE(&from, this); const FileTail* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.FileTail) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.FileTail) MergeFrom(*source); @@ -5081,31 +4150,31 @@ 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.filename().size() > 0) { - filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); + filename_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.filename_); } if (from.time_key().size() > 0) { - time_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_key_); + time_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.time_key_); } if (from.time_format().size() > 0) { - time_format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_format_); + time_format_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.time_format_); } if (from.regex().size() > 0) { - regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); + regex_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.regex_); } if (from.file_format() != 0) { - set_file_format(from.file_format()); + _internal_set_file_format(from._internal_file_format()); } } -void FileTail::CopyFrom(const ::google::protobuf::Message& from) { +void FileTail::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.model.FileTail) if (&from == this) return; Clear(); @@ -5123,35 +4192,29 @@ 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(), + filename_.Swap(&other->filename_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - time_key_.Swap(&other->time_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + time_key_.Swap(&other->time_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - time_format_.Swap(&other->time_format_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + time_format_.Swap(&other->time_format_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - regex_.Swap(&other->regex_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + regex_.Swap(&other->regex_, &::PROTOBUF_NAMESPACE_ID::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]; +::PROTOBUF_NAMESPACE_ID::Metadata FileTail::GetMetadata() const { + return GetMetadataStatic(); } // @@protoc_insertion_point(namespace_scope) } // namespace model } // namespace v1 -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::v1::model::AgentConfiguration* Arena::CreateMaybeMessage< ::v1::model::AgentConfiguration >(Arena* arena) { return Arena::CreateInternal< ::v1::model::AgentConfiguration >(arena); } @@ -5161,6 +4224,12 @@ template<> PROTOBUF_NOINLINE ::v1::model::AgentConfigurationDocument_TagsEntry_D 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::TeleopConfiguration* Arena::CreateMaybeMessage< ::v1::model::TeleopConfiguration >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::TeleopConfiguration >(arena); +} +template<> PROTOBUF_NOINLINE ::v1::model::TeleopRosStreamConfiguration* Arena::CreateMaybeMessage< ::v1::model::TeleopRosStreamConfiguration >(Arena* arena) { + return Arena::CreateInternal< ::v1::model::TeleopRosStreamConfiguration >(arena); +} template<> PROTOBUF_NOINLINE ::v1::model::TelemetryConfiguration* Arena::CreateMaybeMessage< ::v1::model::TelemetryConfiguration >(Arena* arena) { return Arena::CreateInternal< ::v1::model::TelemetryConfiguration >(arena); } @@ -5191,8 +4260,7 @@ template<> PROTOBUF_NOINLINE ::v1::model::DirectoryWatch* Arena::CreateMaybeMess template<> PROTOBUF_NOINLINE ::v1::model::FileTail* Arena::CreateMaybeMessage< ::v1::model::FileTail >(Arena* arena) { return Arena::CreateInternal< ::v1::model::FileTail >(arena); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@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 index 7702d15..bd52d46 100755 --- a/examples/cpp/protos/model/v1/config.pb.h +++ b/examples/cpp/protos/model/v1/config.pb.h @@ -1,19 +1,19 @@ // 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 +#ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fconfig_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fconfig_2eproto #include #include #include -#if PROTOBUF_VERSION < 3007000 +#if PROTOBUF_VERSION < 3011000 #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 +#if 3011000 < 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. @@ -27,6 +27,7 @@ #include #include #include +#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -36,23 +37,29 @@ #include #include #include "protos/model/v1/ros.pb.h" +#include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fconfig_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[13] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[15] 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[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; -void AddDescriptors_protos_2fmodel_2fv1_2fconfig_2eproto(); +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto; namespace v1 { namespace model { class AgentConfiguration; @@ -94,10 +101,15 @@ extern StreamConfiguration_TagsEntry_DoNotUseDefaultTypeInternal _StreamConfigur class TelemetryConfiguration; class TelemetryConfigurationDefaultTypeInternal; extern TelemetryConfigurationDefaultTypeInternal _TelemetryConfiguration_default_instance_; +class TeleopConfiguration; +class TeleopConfigurationDefaultTypeInternal; +extern TeleopConfigurationDefaultTypeInternal _TeleopConfiguration_default_instance_; +class TeleopRosStreamConfiguration; +class TeleopRosStreamConfigurationDefaultTypeInternal; +extern TeleopRosStreamConfigurationDefaultTypeInternal _TeleopRosStreamConfiguration_default_instance_; } // namespace model } // namespace v1 -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN 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*); @@ -111,74 +123,134 @@ template<> ::v1::model::ResourcesConfiguration* Arena::CreateMaybeMessage<::v1:: 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 +template<> ::v1::model::TeleopConfiguration* Arena::CreateMaybeMessage<::v1::model::TeleopConfiguration>(Arena*); +template<> ::v1::model::TeleopRosStreamConfiguration* Arena::CreateMaybeMessage<::v1::model::TeleopRosStreamConfiguration>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace v1 { namespace model { -enum FileFormat { +enum TeleopRosStreamConfigurationTopicType : int { + GEOMETRY_MSGS_TWIST = 0, + STD_MSGS_BOOL = 1, + SENSOR_MSGS_COMPRESSED_IMAGE = 2, + STD_MSGS_STRING = 3, + GEOMETRY_MSGS_POSE = 4, + TeleopRosStreamConfigurationTopicType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + TeleopRosStreamConfigurationTopicType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() +}; +bool TeleopRosStreamConfigurationTopicType_IsValid(int value); +constexpr TeleopRosStreamConfigurationTopicType TeleopRosStreamConfigurationTopicType_MIN = GEOMETRY_MSGS_TWIST; +constexpr TeleopRosStreamConfigurationTopicType TeleopRosStreamConfigurationTopicType_MAX = GEOMETRY_MSGS_POSE; +constexpr int TeleopRosStreamConfigurationTopicType_ARRAYSIZE = TeleopRosStreamConfigurationTopicType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TeleopRosStreamConfigurationTopicType_descriptor(); +template +inline const std::string& TeleopRosStreamConfigurationTopicType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function TeleopRosStreamConfigurationTopicType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + TeleopRosStreamConfigurationTopicType_descriptor(), enum_t_value); +} +inline bool TeleopRosStreamConfigurationTopicType_Parse( + const std::string& name, TeleopRosStreamConfigurationTopicType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + TeleopRosStreamConfigurationTopicType_descriptor(), name, value); +} +enum TeleopRosStreamConfigurationMode : int { + COMMAND = 0, + OBSERVE = 1, + TeleopRosStreamConfigurationMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + TeleopRosStreamConfigurationMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() +}; +bool TeleopRosStreamConfigurationMode_IsValid(int value); +constexpr TeleopRosStreamConfigurationMode TeleopRosStreamConfigurationMode_MIN = COMMAND; +constexpr TeleopRosStreamConfigurationMode TeleopRosStreamConfigurationMode_MAX = OBSERVE; +constexpr int TeleopRosStreamConfigurationMode_ARRAYSIZE = TeleopRosStreamConfigurationMode_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TeleopRosStreamConfigurationMode_descriptor(); +template +inline const std::string& TeleopRosStreamConfigurationMode_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function TeleopRosStreamConfigurationMode_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + TeleopRosStreamConfigurationMode_descriptor(), enum_t_value); +} +inline bool TeleopRosStreamConfigurationMode_Parse( + const std::string& name, TeleopRosStreamConfigurationMode* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + TeleopRosStreamConfigurationMode_descriptor(), name, value); +} +enum FileFormat : int { 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() + FileFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + FileFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::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); +constexpr FileFormat FileFormat_MIN = PLAIN_TEXT; +constexpr FileFormat FileFormat_MAX = JSON; +constexpr int FileFormat_ARRAYSIZE = FileFormat_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileFormat_descriptor(); +template +inline const std::string& FileFormat_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function FileFormat_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + FileFormat_descriptor(), enum_t_value); } inline bool FileFormat_Parse( - const ::std::string& name, FileFormat* value) { - return ::google::protobuf::internal::ParseNamedEnum( + const std::string& name, FileFormat* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( FileFormat_descriptor(), name, value); } -enum FileType { +enum FileType : int { 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() + FileType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + FileType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::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); +constexpr FileType FileType_MIN = FILE; +constexpr FileType FileType_MAX = POINT_CLOUD; +constexpr int FileType_ARRAYSIZE = FileType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileType_descriptor(); +template +inline const std::string& FileType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function FileType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + FileType_descriptor(), enum_t_value); } inline bool FileType_Parse( - const ::std::string& name, FileType* value) { - return ::google::protobuf::internal::ParseNamedEnum( + const std::string& name, FileType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( FileType_descriptor(), name, value); } // =================================================================== class AgentConfiguration : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.AgentConfiguration) */ { + public ::PROTOBUF_NAMESPACE_ID::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=(const AgentConfiguration& from) { + CopyFrom(from); + return *this; + } inline AgentConfiguration& operator=(AgentConfiguration&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -187,9 +259,15 @@ class AgentConfiguration : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const AgentConfiguration& default_instance(); @@ -201,10 +279,13 @@ class AgentConfiguration : static constexpr int kIndexInFileMessages = 0; - void Swap(AgentConfiguration* other); friend void swap(AgentConfiguration& a, AgentConfiguration& b) { a.Swap(&b); } + inline void Swap(AgentConfiguration* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -212,37 +293,33 @@ class AgentConfiguration : return CreateMaybeMessage(nullptr); } - AgentConfiguration* New(::google::protobuf::Arena* arena) const final { + AgentConfiguration* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AgentConfiguration* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.AgentConfiguration"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -250,104 +327,134 @@ class AgentConfiguration : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // string id = 1; + enum : int { + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kDocumentFieldNumber = 3, + }; + // string id = 1[json_name = "id"]; 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 + const std::string& id() const; + void set_id(const std::string& value); + void set_id(std::string&& value); 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); + std::string* mutable_id(); + std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: - // string name = 2; + // string name = 2[json_name = "name"]; 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 + const std::string& name() const; + void set_name(const std::string& value); + void set_name(std::string&& value); 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); + std::string* mutable_name(); + std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: - // .v1.model.AgentConfigurationDocument document = 3; + // .v1.model.AgentConfigurationDocument document = 3[json_name = "document"]; bool has_document() const; + private: + bool _internal_has_document() const; + public: 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); + private: + const ::v1::model::AgentConfigurationDocument& _internal_document() const; + ::v1::model::AgentConfigurationDocument* _internal_mutable_document(); + public: // @@protoc_insertion_point(class_scope:v1.model.AgentConfiguration) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::v1::model::AgentConfigurationDocument* document_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::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); + AgentConfigurationDocument_TagsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::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; + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "v1.model.AgentConfigurationDocument.TagsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "v1.model.AgentConfigurationDocument.TagsEntry.value"); + } + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[1]; + } + + public: }; // ------------------------------------------------------------------- class AgentConfigurationDocument : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.AgentConfigurationDocument) */ { + public ::PROTOBUF_NAMESPACE_ID::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=(const AgentConfigurationDocument& from) { + CopyFrom(from); + return *this; + } inline AgentConfigurationDocument& operator=(AgentConfigurationDocument&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -356,9 +463,15 @@ class AgentConfigurationDocument : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const AgentConfigurationDocument& default_instance(); @@ -370,10 +483,13 @@ class AgentConfigurationDocument : static constexpr int kIndexInFileMessages = 2; - void Swap(AgentConfigurationDocument* other); friend void swap(AgentConfigurationDocument& a, AgentConfigurationDocument& b) { a.Swap(&b); } + inline void Swap(AgentConfigurationDocument* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -381,37 +497,33 @@ class AgentConfigurationDocument : return CreateMaybeMessage(nullptr); } - AgentConfigurationDocument* New(::google::protobuf::Arena* arena) const final { + AgentConfigurationDocument* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AgentConfigurationDocument* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.AgentConfigurationDocument"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -419,93 +531,445 @@ class AgentConfigurationDocument : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // map tags = 2; + enum : int { + kTagsFieldNumber = 2, + kTelemetryFieldNumber = 3, + kResourcesFieldNumber = 4, + kApplicationFieldNumber = 5, + kTeleopFieldNumber = 6, + kVersionFieldNumber = 1, + }; + // map tags = 2[json_name = "tags"]; int tags_size() const; + private: + int _internal_tags_size() const; + public: void clear_tags(); - static const int kTagsFieldNumber = 2; - const ::google::protobuf::Map< ::std::string, ::std::string >& + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_tags() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_tags(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& tags() const; - ::google::protobuf::Map< ::std::string, ::std::string >* + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* mutable_tags(); - // .v1.model.TelemetryConfiguration telemetry = 3; + // .v1.model.TelemetryConfiguration telemetry = 3[json_name = "telemetry"]; bool has_telemetry() const; + private: + bool _internal_has_telemetry() const; + public: 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); + private: + const ::v1::model::TelemetryConfiguration& _internal_telemetry() const; + ::v1::model::TelemetryConfiguration* _internal_mutable_telemetry(); + public: - // .v1.model.ResourcesConfiguration resources = 4; + // .v1.model.ResourcesConfiguration resources = 4[json_name = "resources"]; bool has_resources() const; + private: + bool _internal_has_resources() const; + public: 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); + private: + const ::v1::model::ResourcesConfiguration& _internal_resources() const; + ::v1::model::ResourcesConfiguration* _internal_mutable_resources(); + public: - // .v1.model.ApplicationConfiguration application = 5; + // .v1.model.ApplicationConfiguration application = 5[json_name = "application"]; bool has_application() const; + private: + bool _internal_has_application() const; + public: 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); + private: + const ::v1::model::ApplicationConfiguration& _internal_application() const; + ::v1::model::ApplicationConfiguration* _internal_mutable_application(); + public: - // int32 version = 1; + // .v1.model.TeleopConfiguration teleop = 6[json_name = "teleop"]; + bool has_teleop() const; + private: + bool _internal_has_teleop() const; + public: + void clear_teleop(); + const ::v1::model::TeleopConfiguration& teleop() const; + ::v1::model::TeleopConfiguration* release_teleop(); + ::v1::model::TeleopConfiguration* mutable_teleop(); + void set_allocated_teleop(::v1::model::TeleopConfiguration* teleop); + private: + const ::v1::model::TeleopConfiguration& _internal_teleop() const; + ::v1::model::TeleopConfiguration* _internal_mutable_teleop(); + public: + + // int64 version = 1[json_name = "version"]; void clear_version(); - static const int kVersionFieldNumber = 1; - ::google::protobuf::int32 version() const; - void set_version(::google::protobuf::int32 value); + ::PROTOBUF_NAMESPACE_ID::int64 version() const; + void set_version(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_version() const; + void _internal_set_version(::PROTOBUF_NAMESPACE_ID::int64 value); + public: // @@protoc_insertion_point(class_scope:v1.model.AgentConfigurationDocument) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< AgentConfigurationDocument_TagsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::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_; + ::v1::model::TeleopConfiguration* teleop_; + ::PROTOBUF_NAMESPACE_ID::int64 version_; + mutable ::PROTOBUF_NAMESPACE_ID::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) */ { +class TeleopConfiguration : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.model.TeleopConfiguration) */ { public: - TelemetryConfiguration(); - virtual ~TelemetryConfiguration(); + TeleopConfiguration(); + virtual ~TeleopConfiguration(); - TelemetryConfiguration(const TelemetryConfiguration& from); + TeleopConfiguration(const TeleopConfiguration& from); + TeleopConfiguration(TeleopConfiguration&& from) noexcept + : TeleopConfiguration() { + *this = ::std::move(from); + } - inline TelemetryConfiguration& operator=(const TelemetryConfiguration& from) { + inline TeleopConfiguration& operator=(const TeleopConfiguration& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 + inline TeleopConfiguration& operator=(TeleopConfiguration&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const TeleopConfiguration& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TeleopConfiguration* internal_default_instance() { + return reinterpret_cast( + &_TeleopConfiguration_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(TeleopConfiguration& a, TeleopConfiguration& b) { + a.Swap(&b); + } + inline void Swap(TeleopConfiguration* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline TeleopConfiguration* New() const final { + return CreateMaybeMessage(nullptr); + } + + TeleopConfiguration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const TeleopConfiguration& from); + void MergeFrom(const TeleopConfiguration& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TeleopConfiguration* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.TeleopConfiguration"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kRosStreamsFieldNumber = 1, + }; + // repeated .v1.model.TeleopRosStreamConfiguration ros_streams = 1[json_name = "rosStreams"]; + int ros_streams_size() const; + private: + int _internal_ros_streams_size() const; + public: + void clear_ros_streams(); + ::v1::model::TeleopRosStreamConfiguration* mutable_ros_streams(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::v1::model::TeleopRosStreamConfiguration >* + mutable_ros_streams(); + private: + const ::v1::model::TeleopRosStreamConfiguration& _internal_ros_streams(int index) const; + ::v1::model::TeleopRosStreamConfiguration* _internal_add_ros_streams(); + public: + const ::v1::model::TeleopRosStreamConfiguration& ros_streams(int index) const; + ::v1::model::TeleopRosStreamConfiguration* add_ros_streams(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::v1::model::TeleopRosStreamConfiguration >& + ros_streams() const; + + // @@protoc_insertion_point(class_scope:v1.model.TeleopConfiguration) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::v1::model::TeleopRosStreamConfiguration > ros_streams_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto; +}; +// ------------------------------------------------------------------- + +class TeleopRosStreamConfiguration : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.model.TeleopRosStreamConfiguration) */ { + public: + TeleopRosStreamConfiguration(); + virtual ~TeleopRosStreamConfiguration(); + + TeleopRosStreamConfiguration(const TeleopRosStreamConfiguration& from); + TeleopRosStreamConfiguration(TeleopRosStreamConfiguration&& from) noexcept + : TeleopRosStreamConfiguration() { + *this = ::std::move(from); + } + + inline TeleopRosStreamConfiguration& operator=(const TeleopRosStreamConfiguration& from) { + CopyFrom(from); + return *this; + } + inline TeleopRosStreamConfiguration& operator=(TeleopRosStreamConfiguration&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const TeleopRosStreamConfiguration& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TeleopRosStreamConfiguration* internal_default_instance() { + return reinterpret_cast( + &_TeleopRosStreamConfiguration_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(TeleopRosStreamConfiguration& a, TeleopRosStreamConfiguration& b) { + a.Swap(&b); + } + inline void Swap(TeleopRosStreamConfiguration* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline TeleopRosStreamConfiguration* New() const final { + return CreateMaybeMessage(nullptr); + } + + TeleopRosStreamConfiguration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const TeleopRosStreamConfiguration& from); + void MergeFrom(const TeleopRosStreamConfiguration& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TeleopRosStreamConfiguration* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.TeleopRosStreamConfiguration"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTopicNameFieldNumber = 1, + kTopicTypeFieldNumber = 2, + kModeFieldNumber = 3, + }; + // string topic_name = 1[json_name = "topicName"]; + void clear_topic_name(); + const std::string& topic_name() const; + void set_topic_name(const std::string& value); + void set_topic_name(std::string&& value); + void set_topic_name(const char* value); + void set_topic_name(const char* value, size_t size); + std::string* mutable_topic_name(); + std::string* release_topic_name(); + void set_allocated_topic_name(std::string* topic_name); + private: + const std::string& _internal_topic_name() const; + void _internal_set_topic_name(const std::string& value); + std::string* _internal_mutable_topic_name(); + public: + + // .v1.model.TeleopRosStreamConfigurationTopicType topic_type = 2[json_name = "topicType"]; + void clear_topic_type(); + ::v1::model::TeleopRosStreamConfigurationTopicType topic_type() const; + void set_topic_type(::v1::model::TeleopRosStreamConfigurationTopicType value); + private: + ::v1::model::TeleopRosStreamConfigurationTopicType _internal_topic_type() const; + void _internal_set_topic_type(::v1::model::TeleopRosStreamConfigurationTopicType value); + public: + + // .v1.model.TeleopRosStreamConfigurationMode mode = 3[json_name = "mode"]; + void clear_mode(); + ::v1::model::TeleopRosStreamConfigurationMode mode() const; + void set_mode(::v1::model::TeleopRosStreamConfigurationMode value); + private: + ::v1::model::TeleopRosStreamConfigurationMode _internal_mode() const; + void _internal_set_mode(::v1::model::TeleopRosStreamConfigurationMode value); + public: + + // @@protoc_insertion_point(class_scope:v1.model.TeleopRosStreamConfiguration) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr topic_name_; + int topic_type_; + int mode_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto; +}; +// ------------------------------------------------------------------- + +class TelemetryConfiguration : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.model.TelemetryConfiguration) */ { + public: + TelemetryConfiguration(); + virtual ~TelemetryConfiguration(); + + TelemetryConfiguration(const TelemetryConfiguration& from); TelemetryConfiguration(TelemetryConfiguration&& from) noexcept : TelemetryConfiguration() { *this = ::std::move(from); } + inline TelemetryConfiguration& operator=(const TelemetryConfiguration& from) { + CopyFrom(from); + return *this; + } inline TelemetryConfiguration& operator=(TelemetryConfiguration&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -514,9 +978,15 @@ class TelemetryConfiguration : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const TelemetryConfiguration& default_instance(); @@ -526,12 +996,15 @@ class TelemetryConfiguration : &_TelemetryConfiguration_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 5; - void Swap(TelemetryConfiguration* other); friend void swap(TelemetryConfiguration& a, TelemetryConfiguration& b) { a.Swap(&b); } + inline void Swap(TelemetryConfiguration* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -539,37 +1012,33 @@ class TelemetryConfiguration : return CreateMaybeMessage(nullptr); } - TelemetryConfiguration* New(::google::protobuf::Arena* arena) const final { + TelemetryConfiguration* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TelemetryConfiguration* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.TelemetryConfiguration"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -577,87 +1046,118 @@ class TelemetryConfiguration : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // repeated .v1.model.StreamConfiguration streams = 1; + enum : int { + kStreamsFieldNumber = 1, + kRosFieldNumber = 2, + }; + // repeated .v1.model.StreamConfiguration streams = 1[json_name = "streams"]; int streams_size() const; + private: + int _internal_streams_size() const; + public: void clear_streams(); - static const int kStreamsFieldNumber = 1; ::v1::model::StreamConfiguration* mutable_streams(int index); - ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::v1::model::StreamConfiguration >* mutable_streams(); + private: + const ::v1::model::StreamConfiguration& _internal_streams(int index) const; + ::v1::model::StreamConfiguration* _internal_add_streams(); + public: const ::v1::model::StreamConfiguration& streams(int index) const; ::v1::model::StreamConfiguration* add_streams(); - const ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::v1::model::StreamConfiguration >& streams() const; - // .v1.model.ROSConfiguration ros = 2; + // .v1.model.ROSConfiguration ros = 2[json_name = "ros"]; bool has_ros() const; + private: + bool _internal_has_ros() const; + public: 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); + private: + const ::v1::model::ROSConfiguration& _internal_ros() const; + ::v1::model::ROSConfiguration* _internal_mutable_ros(); + public: // @@protoc_insertion_point(class_scope:v1.model.TelemetryConfiguration) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration > streams_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::v1::model::StreamConfiguration > streams_; ::v1::model::ROSConfiguration* ros_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::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); + ApplicationConfiguration_ConfigurationMapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::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; + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "v1.model.ApplicationConfiguration.ConfigurationMapEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "v1.model.ApplicationConfiguration.ConfigurationMapEntry.value"); + } + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[6]; + } + + public: }; // ------------------------------------------------------------------- class ApplicationConfiguration : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.ApplicationConfiguration) */ { + public ::PROTOBUF_NAMESPACE_ID::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=(const ApplicationConfiguration& from) { + CopyFrom(from); + return *this; + } inline ApplicationConfiguration& operator=(ApplicationConfiguration&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -666,9 +1166,15 @@ class ApplicationConfiguration : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const ApplicationConfiguration& default_instance(); @@ -678,12 +1184,15 @@ class ApplicationConfiguration : &_ApplicationConfiguration_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 7; - void Swap(ApplicationConfiguration* other); friend void swap(ApplicationConfiguration& a, ApplicationConfiguration& b) { a.Swap(&b); } + inline void Swap(ApplicationConfiguration* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -691,37 +1200,33 @@ class ApplicationConfiguration : return CreateMaybeMessage(nullptr); } - ApplicationConfiguration* New(::google::protobuf::Arena* arena) const final { + ApplicationConfiguration* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ApplicationConfiguration* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.ApplicationConfiguration"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -729,56 +1234,72 @@ class ApplicationConfiguration : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // map configuration_map = 1; + enum : int { + kConfigurationMapFieldNumber = 1, + }; + // map configuration_map = 1[json_name = "configurationMap"]; int configuration_map_size() const; + private: + int _internal_configuration_map_size() const; + public: void clear_configuration_map(); - static const int kConfigurationMapFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::std::string >& + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_configuration_map() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_configuration_map(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& configuration_map() const; - ::google::protobuf::Map< ::std::string, ::std::string >* + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* mutable_configuration_map(); // @@protoc_insertion_point(class_scope:v1.model.ApplicationConfiguration) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< ApplicationConfiguration_ConfigurationMapEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, 0 > configuration_map_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::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=(const ResourcesConfiguration& from) { + CopyFrom(from); + return *this; + } inline ResourcesConfiguration& operator=(ResourcesConfiguration&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -787,9 +1308,15 @@ class ResourcesConfiguration : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const ResourcesConfiguration& default_instance(); @@ -799,12 +1326,15 @@ class ResourcesConfiguration : &_ResourcesConfiguration_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 8; - void Swap(ResourcesConfiguration* other); friend void swap(ResourcesConfiguration& a, ResourcesConfiguration& b) { a.Swap(&b); } + inline void Swap(ResourcesConfiguration* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -812,37 +1342,33 @@ class ResourcesConfiguration : return CreateMaybeMessage(nullptr); } - ResourcesConfiguration* New(::google::protobuf::Arena* arena) const final { + ResourcesConfiguration* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ResourcesConfiguration* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.ResourcesConfiguration"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -850,50 +1376,81 @@ class ResourcesConfiguration : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // .v1.model.DiskConfiguration disk = 1; + enum : int { + kDiskFieldNumber = 1, + kStreamThrottleHzFieldNumber = 2, + }; + // .v1.model.DiskConfiguration disk = 1[json_name = "disk"]; bool has_disk() const; + private: + bool _internal_has_disk() const; + public: 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); + private: + const ::v1::model::DiskConfiguration& _internal_disk() const; + ::v1::model::DiskConfiguration* _internal_mutable_disk(); + public: + + // .google.protobuf.DoubleValue stream_throttle_hz = 2[json_name = "streamThrottleHz"]; + bool has_stream_throttle_hz() const; + private: + bool _internal_has_stream_throttle_hz() const; + public: + void clear_stream_throttle_hz(); + const PROTOBUF_NAMESPACE_ID::DoubleValue& stream_throttle_hz() const; + PROTOBUF_NAMESPACE_ID::DoubleValue* release_stream_throttle_hz(); + PROTOBUF_NAMESPACE_ID::DoubleValue* mutable_stream_throttle_hz(); + void set_allocated_stream_throttle_hz(PROTOBUF_NAMESPACE_ID::DoubleValue* stream_throttle_hz); + private: + const PROTOBUF_NAMESPACE_ID::DoubleValue& _internal_stream_throttle_hz() const; + PROTOBUF_NAMESPACE_ID::DoubleValue* _internal_mutable_stream_throttle_hz(); + public: // @@protoc_insertion_point(class_scope:v1.model.ResourcesConfiguration) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::v1::model::DiskConfiguration* disk_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_NAMESPACE_ID::DoubleValue* stream_throttle_hz_; + mutable ::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::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=(const DiskConfiguration& from) { + CopyFrom(from); + return *this; + } inline DiskConfiguration& operator=(DiskConfiguration&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -902,9 +1459,15 @@ class DiskConfiguration : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const DiskConfiguration& default_instance(); @@ -914,12 +1477,15 @@ class DiskConfiguration : &_DiskConfiguration_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 9; - void Swap(DiskConfiguration* other); friend void swap(DiskConfiguration& a, DiskConfiguration& b) { a.Swap(&b); } + inline void Swap(DiskConfiguration* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -927,37 +1493,33 @@ class DiskConfiguration : return CreateMaybeMessage(nullptr); } - DiskConfiguration* New(::google::protobuf::Arena* arena) const final { + DiskConfiguration* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(DiskConfiguration* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.DiskConfiguration"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -965,47 +1527,58 @@ class DiskConfiguration : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // int64 buffer_size = 1; + enum : int { + kBufferSizeFieldNumber = 1, + }; + // int64 buffer_size = 1[json_name = "bufferSize"]; void clear_buffer_size(); - static const int kBufferSizeFieldNumber = 1; - ::google::protobuf::int64 buffer_size() const; - void set_buffer_size(::google::protobuf::int64 value); + ::PROTOBUF_NAMESPACE_ID::int64 buffer_size() const; + void set_buffer_size(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_buffer_size() const; + void _internal_set_buffer_size(::PROTOBUF_NAMESPACE_ID::int64 value); + public: // @@protoc_insertion_point(class_scope:v1.model.DiskConfiguration) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int64 buffer_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::int64 buffer_size_; + mutable ::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::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=(const ROSConfiguration& from) { + CopyFrom(from); + return *this; + } inline ROSConfiguration& operator=(ROSConfiguration&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1014,9 +1587,15 @@ class ROSConfiguration : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const ROSConfiguration& default_instance(); @@ -1026,12 +1605,15 @@ class ROSConfiguration : &_ROSConfiguration_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 10; - void Swap(ROSConfiguration* other); friend void swap(ROSConfiguration& a, ROSConfiguration& b) { a.Swap(&b); } + inline void Swap(ROSConfiguration* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1039,37 +1621,33 @@ class ROSConfiguration : return CreateMaybeMessage(nullptr); } - ROSConfiguration* New(::google::protobuf::Arena* arena) const final { + ROSConfiguration* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ROSConfiguration* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.ROSConfiguration"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1077,79 +1655,99 @@ class ROSConfiguration : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // string world_reference_frame_id = 1; + enum : int { + kWorldReferenceFrameIdFieldNumber = 1, + }; + // string world_reference_frame_id = 1[json_name = "worldReferenceFrameId"]; 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 + const std::string& world_reference_frame_id() const; + void set_world_reference_frame_id(const std::string& value); + void set_world_reference_frame_id(std::string&& value); 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); + 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); + private: + const std::string& _internal_world_reference_frame_id() const; + void _internal_set_world_reference_frame_id(const std::string& value); + std::string* _internal_mutable_world_reference_frame_id(); + public: // @@protoc_insertion_point(class_scope:v1.model.ROSConfiguration) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr world_reference_frame_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr world_reference_frame_id_; + mutable ::PROTOBUF_NAMESPACE_ID::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); + StreamConfiguration_TagsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::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; + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "v1.model.StreamConfiguration.TagsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "v1.model.StreamConfiguration.TagsEntry.value"); + } + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[11]; + } + + public: }; // ------------------------------------------------------------------- class StreamConfiguration : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.StreamConfiguration) */ { + public ::PROTOBUF_NAMESPACE_ID::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=(const StreamConfiguration& from) { + CopyFrom(from); + return *this; + } inline StreamConfiguration& operator=(StreamConfiguration&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1158,15 +1756,22 @@ class StreamConfiguration : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const StreamConfiguration& default_instance(); enum ConfigurationCase { kRosTopic = 3, kRosLocalization = 4, + kRosTransformTree = 7, kDirectoryWatch = 5, kFileTail = 6, CONFIGURATION_NOT_SET = 0, @@ -1178,12 +1783,15 @@ class StreamConfiguration : &_StreamConfiguration_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 12; - void Swap(StreamConfiguration* other); friend void swap(StreamConfiguration& a, StreamConfiguration& b) { a.Swap(&b); } + inline void Swap(StreamConfiguration* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1191,37 +1799,33 @@ class StreamConfiguration : return CreateMaybeMessage(nullptr); } - StreamConfiguration* New(::google::protobuf::Arena* arena) const final { + StreamConfiguration* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(StreamConfiguration* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.StreamConfiguration"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1229,125 +1833,190 @@ class StreamConfiguration : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // map tags = 2; + enum : int { + kTagsFieldNumber = 2, + kNameFieldNumber = 1, + kRosTopicFieldNumber = 3, + kRosLocalizationFieldNumber = 4, + kRosTransformTreeFieldNumber = 7, + kDirectoryWatchFieldNumber = 5, + kFileTailFieldNumber = 6, + }; + // map tags = 2[json_name = "tags"]; int tags_size() const; + private: + int _internal_tags_size() const; + public: void clear_tags(); - static const int kTagsFieldNumber = 2; - const ::google::protobuf::Map< ::std::string, ::std::string >& + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_tags() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_tags(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& tags() const; - ::google::protobuf::Map< ::std::string, ::std::string >* + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* mutable_tags(); - // string name = 1; + // string name = 1[json_name = "name"]; 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 + const std::string& name() const; + void set_name(const std::string& value); + void set_name(std::string&& value); 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); + std::string* mutable_name(); + std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: - // .v1.model.ROSTopic ros_topic = 3; + // .v1.model.ROSTopic ros_topic = 3[json_name = "rosTopic"]; bool has_ros_topic() const; + private: + bool _internal_has_ros_topic() const; + public: 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); + private: + const ::v1::model::ROSTopic& _internal_ros_topic() const; + ::v1::model::ROSTopic* _internal_mutable_ros_topic(); + public: - // .v1.model.ROSLocalization ros_localization = 4; + // .v1.model.ROSLocalization ros_localization = 4[json_name = "rosLocalization"]; bool has_ros_localization() const; + private: + bool _internal_has_ros_localization() const; + public: 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); + private: + const ::v1::model::ROSLocalization& _internal_ros_localization() const; + ::v1::model::ROSLocalization* _internal_mutable_ros_localization(); + public: + + // .v1.model.ROSTransformTree ros_transform_tree = 7[json_name = "rosTransformTree"]; + bool has_ros_transform_tree() const; + private: + bool _internal_has_ros_transform_tree() const; + public: + void clear_ros_transform_tree(); + const ::v1::model::ROSTransformTree& ros_transform_tree() const; + ::v1::model::ROSTransformTree* release_ros_transform_tree(); + ::v1::model::ROSTransformTree* mutable_ros_transform_tree(); + void set_allocated_ros_transform_tree(::v1::model::ROSTransformTree* ros_transform_tree); + private: + const ::v1::model::ROSTransformTree& _internal_ros_transform_tree() const; + ::v1::model::ROSTransformTree* _internal_mutable_ros_transform_tree(); + public: - // .v1.model.DirectoryWatch directory_watch = 5; + // .v1.model.DirectoryWatch directory_watch = 5[json_name = "directoryWatch"]; bool has_directory_watch() const; + private: + bool _internal_has_directory_watch() const; + public: 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); + private: + const ::v1::model::DirectoryWatch& _internal_directory_watch() const; + ::v1::model::DirectoryWatch* _internal_mutable_directory_watch(); + public: - // .v1.model.FileTail file_tail = 6; + // .v1.model.FileTail file_tail = 6[json_name = "fileTail"]; bool has_file_tail() const; + private: + bool _internal_has_file_tail() const; + public: 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); + private: + const ::v1::model::FileTail& _internal_file_tail() const; + ::v1::model::FileTail* _internal_mutable_file_tail(); + public: void clear_configuration(); ConfigurationCase configuration_case() const; // @@protoc_insertion_point(class_scope:v1.model.StreamConfiguration) private: - class HasBitSetters; + class _Internal; void set_has_ros_topic(); void set_has_ros_localization(); + void set_has_ros_transform_tree(); 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< + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< StreamConfiguration_TagsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, 0 > tags_; - ::google::protobuf::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; union ConfigurationUnion { ConfigurationUnion() {} ::v1::model::ROSTopic* ros_topic_; ::v1::model::ROSLocalization* ros_localization_; + ::v1::model::ROSTransformTree* ros_transform_tree_; ::v1::model::DirectoryWatch* directory_watch_; ::v1::model::FileTail* file_tail_; } configuration_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::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=(const DirectoryWatch& from) { + CopyFrom(from); + return *this; + } inline DirectoryWatch& operator=(DirectoryWatch&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1356,9 +2025,15 @@ class DirectoryWatch : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const DirectoryWatch& default_instance(); @@ -1368,12 +2043,15 @@ class DirectoryWatch : &_DirectoryWatch_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 13; - void Swap(DirectoryWatch* other); friend void swap(DirectoryWatch& a, DirectoryWatch& b) { a.Swap(&b); } + inline void Swap(DirectoryWatch* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1381,37 +2059,33 @@ class DirectoryWatch : return CreateMaybeMessage(nullptr); } - DirectoryWatch* New(::google::protobuf::Arena* arena) const final { + DirectoryWatch* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(DirectoryWatch* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.DirectoryWatch"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1419,84 +2093,105 @@ class DirectoryWatch : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // string directory = 1; + enum : int { + kDirectoryFieldNumber = 1, + kExtensionFieldNumber = 2, + kFileTypeFieldNumber = 3, + kRemoteAgentFieldNumber = 4, + }; + // string directory = 1[json_name = "directory"]; 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 + const std::string& directory() const; + void set_directory(const std::string& value); + void set_directory(std::string&& value); 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); + std::string* mutable_directory(); + std::string* release_directory(); + void set_allocated_directory(std::string* directory); + private: + const std::string& _internal_directory() const; + void _internal_set_directory(const std::string& value); + std::string* _internal_mutable_directory(); + public: - // string extension = 2; + // string extension = 2[json_name = "extension"]; 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 + const std::string& extension() const; + void set_extension(const std::string& value); + void set_extension(std::string&& value); 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); + std::string* mutable_extension(); + std::string* release_extension(); + void set_allocated_extension(std::string* extension); + private: + const std::string& _internal_extension() const; + void _internal_set_extension(const std::string& value); + std::string* _internal_mutable_extension(); + public: - // .v1.model.FileType file_type = 3; + // .v1.model.FileType file_type = 3[json_name = "fileType"]; void clear_file_type(); - static const int kFileTypeFieldNumber = 3; ::v1::model::FileType file_type() const; void set_file_type(::v1::model::FileType value); + private: + ::v1::model::FileType _internal_file_type() const; + void _internal_set_file_type(::v1::model::FileType value); + public: - // bool remote_agent = 4; + // bool remote_agent = 4[json_name = "remoteAgent"]; void clear_remote_agent(); - static const int kRemoteAgentFieldNumber = 4; bool remote_agent() const; void set_remote_agent(bool value); + private: + bool _internal_remote_agent() const; + void _internal_set_remote_agent(bool value); + public: // @@protoc_insertion_point(class_scope:v1.model.DirectoryWatch) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr directory_; - ::google::protobuf::internal::ArenaStringPtr extension_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr directory_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extension_; int file_type_; bool remote_agent_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::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=(const FileTail& from) { + CopyFrom(from); + return *this; + } inline FileTail& operator=(FileTail&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1505,9 +2200,15 @@ class FileTail : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const FileTail& default_instance(); @@ -1517,12 +2218,15 @@ class FileTail : &_FileTail_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 14; - void Swap(FileTail* other); friend void swap(FileTail& a, FileTail& b) { a.Swap(&b); } + inline void Swap(FileTail* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1530,37 +2234,33 @@ class FileTail : return CreateMaybeMessage(nullptr); } - FileTail* New(::google::protobuf::Arena* arena) const final { + FileTail* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(FileTail* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.FileTail"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1568,85 +2268,110 @@ class FileTail : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // string filename = 1; + enum : int { + kFilenameFieldNumber = 1, + kTimeKeyFieldNumber = 3, + kTimeFormatFieldNumber = 4, + kRegexFieldNumber = 5, + kFileFormatFieldNumber = 2, + }; + // string filename = 1[json_name = "filename"]; 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 + const std::string& filename() const; + void set_filename(const std::string& value); + void set_filename(std::string&& value); 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); + std::string* mutable_filename(); + std::string* release_filename(); + void set_allocated_filename(std::string* filename); + private: + const std::string& _internal_filename() const; + void _internal_set_filename(const std::string& value); + std::string* _internal_mutable_filename(); + public: - // string time_key = 3; + // string time_key = 3[json_name = "timeKey"]; 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 + const std::string& time_key() const; + void set_time_key(const std::string& value); + void set_time_key(std::string&& value); 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); + std::string* mutable_time_key(); + std::string* release_time_key(); + void set_allocated_time_key(std::string* time_key); + private: + const std::string& _internal_time_key() const; + void _internal_set_time_key(const std::string& value); + std::string* _internal_mutable_time_key(); + public: - // string time_format = 4; + // string time_format = 4[json_name = "timeFormat"]; 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 + const std::string& time_format() const; + void set_time_format(const std::string& value); + void set_time_format(std::string&& value); 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); + std::string* mutable_time_format(); + std::string* release_time_format(); + void set_allocated_time_format(std::string* time_format); + private: + const std::string& _internal_time_format() const; + void _internal_set_time_format(const std::string& value); + std::string* _internal_mutable_time_format(); + public: - // string regex = 5; + // string regex = 5[json_name = "regex"]; 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 + const std::string& regex() const; + void set_regex(const std::string& value); + void set_regex(std::string&& value); 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); + std::string* mutable_regex(); + std::string* release_regex(); + void set_allocated_regex(std::string* regex); + private: + const std::string& _internal_regex() const; + void _internal_set_regex(const std::string& value); + std::string* _internal_mutable_regex(); + public: - // .v1.model.FileFormat file_format = 2; + // .v1.model.FileFormat file_format = 2[json_name = "fileFormat"]; void clear_file_format(); - static const int kFileFormatFieldNumber = 2; ::v1::model::FileFormat file_format() const; void set_file_format(::v1::model::FileFormat value); + private: + ::v1::model::FileFormat _internal_file_format() const; + void _internal_set_file_format(::v1::model::FileFormat value); + public: // @@protoc_insertion_point(class_scope:v1.model.FileTail) private: - class HasBitSetters; + class _Internal; - ::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_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filename_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr time_key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr time_format_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr regex_; int file_format_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fmodel_2fv1_2fconfig_2eproto; }; // =================================================================== @@ -1660,128 +2385,148 @@ class FileTail : #endif // __GNUC__ // AgentConfiguration -// string id = 1; +// string id = 1[json_name = "id"]; inline void AgentConfiguration::clear_id() { - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& AgentConfiguration::id() const { +inline const std::string& AgentConfiguration::id() const { // @@protoc_insertion_point(field_get:v1.model.AgentConfiguration.id) + return _internal_id(); +} +inline void AgentConfiguration::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:v1.model.AgentConfiguration.id) +} +inline std::string* AgentConfiguration::mutable_id() { + // @@protoc_insertion_point(field_mutable:v1.model.AgentConfiguration.id) + return _internal_mutable_id(); +} +inline const std::string& AgentConfiguration::_internal_id() const { return id_.GetNoArena(); } -inline void AgentConfiguration::set_id(const ::std::string& value) { +inline void AgentConfiguration::_internal_set_id(const std::string& value) { - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.model.AgentConfiguration.id) + id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void AgentConfiguration::set_id(::std::string&& value) { +inline void AgentConfiguration::set_id(std::string&& value) { id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::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)); + id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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(), + id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:v1.model.AgentConfiguration.id) } -inline ::std::string* AgentConfiguration::mutable_id() { +inline std::string* AgentConfiguration::_internal_mutable_id() { - // @@protoc_insertion_point(field_mutable:v1.model.AgentConfiguration.id) - return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* AgentConfiguration::release_id() { +inline std::string* AgentConfiguration::release_id() { // @@protoc_insertion_point(field_release:v1.model.AgentConfiguration.id) - return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void AgentConfiguration::set_allocated_id(::std::string* id) { +inline void AgentConfiguration::set_allocated_id(std::string* id) { if (id != nullptr) { } else { } - id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); + id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id); // @@protoc_insertion_point(field_set_allocated:v1.model.AgentConfiguration.id) } -// string name = 2; +// string name = 2[json_name = "name"]; inline void AgentConfiguration::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& AgentConfiguration::name() const { +inline const std::string& AgentConfiguration::name() const { // @@protoc_insertion_point(field_get:v1.model.AgentConfiguration.name) + return _internal_name(); +} +inline void AgentConfiguration::set_name(const std::string& value) { + _internal_set_name(value); + // @@protoc_insertion_point(field_set:v1.model.AgentConfiguration.name) +} +inline std::string* AgentConfiguration::mutable_name() { + // @@protoc_insertion_point(field_mutable:v1.model.AgentConfiguration.name) + return _internal_mutable_name(); +} +inline const std::string& AgentConfiguration::_internal_name() const { return name_.GetNoArena(); } -inline void AgentConfiguration::set_name(const ::std::string& value) { +inline void AgentConfiguration::_internal_set_name(const std::string& value) { - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.model.AgentConfiguration.name) + name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void AgentConfiguration::set_name(::std::string&& value) { +inline void AgentConfiguration::set_name(std::string&& value) { name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::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)); + name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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(), + name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:v1.model.AgentConfiguration.name) } -inline ::std::string* AgentConfiguration::mutable_name() { +inline std::string* AgentConfiguration::_internal_mutable_name() { - // @@protoc_insertion_point(field_mutable:v1.model.AgentConfiguration.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* AgentConfiguration::release_name() { +inline std::string* AgentConfiguration::release_name() { // @@protoc_insertion_point(field_release:v1.model.AgentConfiguration.name) - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void AgentConfiguration::set_allocated_name(::std::string* name) { +inline void AgentConfiguration::set_allocated_name(std::string* name) { if (name != nullptr) { } else { } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); // @@protoc_insertion_point(field_set_allocated:v1.model.AgentConfiguration.name) } -// .v1.model.AgentConfigurationDocument document = 3; -inline bool AgentConfiguration::has_document() const { +// .v1.model.AgentConfigurationDocument document = 3[json_name = "document"]; +inline bool AgentConfiguration::_internal_has_document() const { return this != internal_default_instance() && document_ != nullptr; } +inline bool AgentConfiguration::has_document() const { + return _internal_has_document(); +} inline void AgentConfiguration::clear_document() { if (GetArenaNoVirtual() == nullptr && document_ != nullptr) { delete document_; } document_ = nullptr; } -inline const ::v1::model::AgentConfigurationDocument& AgentConfiguration::document() const { +inline const ::v1::model::AgentConfigurationDocument& AgentConfiguration::_internal_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 const ::v1::model::AgentConfigurationDocument& AgentConfiguration::document() const { + // @@protoc_insertion_point(field_get:v1.model.AgentConfiguration.document) + return _internal_document(); +} inline ::v1::model::AgentConfigurationDocument* AgentConfiguration::release_document() { // @@protoc_insertion_point(field_release:v1.model.AgentConfiguration.document) @@ -1789,24 +2534,27 @@ inline ::v1::model::AgentConfigurationDocument* AgentConfiguration::release_docu document_ = nullptr; return temp; } -inline ::v1::model::AgentConfigurationDocument* AgentConfiguration::mutable_document() { +inline ::v1::model::AgentConfigurationDocument* AgentConfiguration::_internal_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 ::v1::model::AgentConfigurationDocument* AgentConfiguration::mutable_document() { + // @@protoc_insertion_point(field_mutable:v1.model.AgentConfiguration.document) + return _internal_mutable_document(); +} inline void AgentConfiguration::set_allocated_document(::v1::model::AgentConfigurationDocument* document) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete document_; } if (document) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - document = ::google::protobuf::internal::GetOwnedMessage( + document = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, document, submessage_arena); } @@ -1823,54 +2571,77 @@ inline void AgentConfiguration::set_allocated_document(::v1::model::AgentConfigu // AgentConfigurationDocument -// int32 version = 1; +// int64 version = 1[json_name = "version"]; inline void AgentConfigurationDocument::clear_version() { - version_ = 0; + version_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int32 AgentConfigurationDocument::version() const { - // @@protoc_insertion_point(field_get:v1.model.AgentConfigurationDocument.version) +inline ::PROTOBUF_NAMESPACE_ID::int64 AgentConfigurationDocument::_internal_version() const { return version_; } -inline void AgentConfigurationDocument::set_version(::google::protobuf::int32 value) { +inline ::PROTOBUF_NAMESPACE_ID::int64 AgentConfigurationDocument::version() const { + // @@protoc_insertion_point(field_get:v1.model.AgentConfigurationDocument.version) + return _internal_version(); +} +inline void AgentConfigurationDocument::_internal_set_version(::PROTOBUF_NAMESPACE_ID::int64 value) { version_ = value; +} +inline void AgentConfigurationDocument::set_version(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_version(value); // @@protoc_insertion_point(field_set:v1.model.AgentConfigurationDocument.version) } -// map tags = 2; -inline int AgentConfigurationDocument::tags_size() const { +// map tags = 2[json_name = "tags"]; +inline int AgentConfigurationDocument::_internal_tags_size() const { return tags_.size(); } +inline int AgentConfigurationDocument::tags_size() const { + return _internal_tags_size(); +} inline void AgentConfigurationDocument::clear_tags() { tags_.Clear(); } -inline const ::google::protobuf::Map< ::std::string, ::std::string >& +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AgentConfigurationDocument::_internal_tags() const { + return tags_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& AgentConfigurationDocument::tags() const { // @@protoc_insertion_point(field_map:v1.model.AgentConfigurationDocument.tags) - return tags_.GetMap(); + return _internal_tags(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AgentConfigurationDocument::_internal_mutable_tags() { + return tags_.MutableMap(); } -inline ::google::protobuf::Map< ::std::string, ::std::string >* +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* AgentConfigurationDocument::mutable_tags() { // @@protoc_insertion_point(field_mutable_map:v1.model.AgentConfigurationDocument.tags) - return tags_.MutableMap(); + return _internal_mutable_tags(); } -// .v1.model.TelemetryConfiguration telemetry = 3; -inline bool AgentConfigurationDocument::has_telemetry() const { +// .v1.model.TelemetryConfiguration telemetry = 3[json_name = "telemetry"]; +inline bool AgentConfigurationDocument::_internal_has_telemetry() const { return this != internal_default_instance() && telemetry_ != nullptr; } +inline bool AgentConfigurationDocument::has_telemetry() const { + return _internal_has_telemetry(); +} inline void AgentConfigurationDocument::clear_telemetry() { if (GetArenaNoVirtual() == nullptr && telemetry_ != nullptr) { delete telemetry_; } telemetry_ = nullptr; } -inline const ::v1::model::TelemetryConfiguration& AgentConfigurationDocument::telemetry() const { +inline const ::v1::model::TelemetryConfiguration& AgentConfigurationDocument::_internal_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 const ::v1::model::TelemetryConfiguration& AgentConfigurationDocument::telemetry() const { + // @@protoc_insertion_point(field_get:v1.model.AgentConfigurationDocument.telemetry) + return _internal_telemetry(); +} inline ::v1::model::TelemetryConfiguration* AgentConfigurationDocument::release_telemetry() { // @@protoc_insertion_point(field_release:v1.model.AgentConfigurationDocument.telemetry) @@ -1878,24 +2649,27 @@ inline ::v1::model::TelemetryConfiguration* AgentConfigurationDocument::release_ telemetry_ = nullptr; return temp; } -inline ::v1::model::TelemetryConfiguration* AgentConfigurationDocument::mutable_telemetry() { +inline ::v1::model::TelemetryConfiguration* AgentConfigurationDocument::_internal_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 ::v1::model::TelemetryConfiguration* AgentConfigurationDocument::mutable_telemetry() { + // @@protoc_insertion_point(field_mutable:v1.model.AgentConfigurationDocument.telemetry) + return _internal_mutable_telemetry(); +} inline void AgentConfigurationDocument::set_allocated_telemetry(::v1::model::TelemetryConfiguration* telemetry) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete telemetry_; } if (telemetry) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - telemetry = ::google::protobuf::internal::GetOwnedMessage( + telemetry = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, telemetry, submessage_arena); } @@ -1906,22 +2680,28 @@ inline void AgentConfigurationDocument::set_allocated_telemetry(::v1::model::Tel // @@protoc_insertion_point(field_set_allocated:v1.model.AgentConfigurationDocument.telemetry) } -// .v1.model.ResourcesConfiguration resources = 4; -inline bool AgentConfigurationDocument::has_resources() const { +// .v1.model.ResourcesConfiguration resources = 4[json_name = "resources"]; +inline bool AgentConfigurationDocument::_internal_has_resources() const { return this != internal_default_instance() && resources_ != nullptr; } +inline bool AgentConfigurationDocument::has_resources() const { + return _internal_has_resources(); +} inline void AgentConfigurationDocument::clear_resources() { if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { delete resources_; } resources_ = nullptr; } -inline const ::v1::model::ResourcesConfiguration& AgentConfigurationDocument::resources() const { +inline const ::v1::model::ResourcesConfiguration& AgentConfigurationDocument::_internal_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 const ::v1::model::ResourcesConfiguration& AgentConfigurationDocument::resources() const { + // @@protoc_insertion_point(field_get:v1.model.AgentConfigurationDocument.resources) + return _internal_resources(); +} inline ::v1::model::ResourcesConfiguration* AgentConfigurationDocument::release_resources() { // @@protoc_insertion_point(field_release:v1.model.AgentConfigurationDocument.resources) @@ -1929,24 +2709,27 @@ inline ::v1::model::ResourcesConfiguration* AgentConfigurationDocument::release_ resources_ = nullptr; return temp; } -inline ::v1::model::ResourcesConfiguration* AgentConfigurationDocument::mutable_resources() { +inline ::v1::model::ResourcesConfiguration* AgentConfigurationDocument::_internal_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 ::v1::model::ResourcesConfiguration* AgentConfigurationDocument::mutable_resources() { + // @@protoc_insertion_point(field_mutable:v1.model.AgentConfigurationDocument.resources) + return _internal_mutable_resources(); +} inline void AgentConfigurationDocument::set_allocated_resources(::v1::model::ResourcesConfiguration* resources) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete resources_; } if (resources) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - resources = ::google::protobuf::internal::GetOwnedMessage( + resources = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, resources, submessage_arena); } @@ -1957,22 +2740,28 @@ inline void AgentConfigurationDocument::set_allocated_resources(::v1::model::Res // @@protoc_insertion_point(field_set_allocated:v1.model.AgentConfigurationDocument.resources) } -// .v1.model.ApplicationConfiguration application = 5; -inline bool AgentConfigurationDocument::has_application() const { +// .v1.model.ApplicationConfiguration application = 5[json_name = "application"]; +inline bool AgentConfigurationDocument::_internal_has_application() const { return this != internal_default_instance() && application_ != nullptr; } +inline bool AgentConfigurationDocument::has_application() const { + return _internal_has_application(); +} inline void AgentConfigurationDocument::clear_application() { if (GetArenaNoVirtual() == nullptr && application_ != nullptr) { delete application_; } application_ = nullptr; } -inline const ::v1::model::ApplicationConfiguration& AgentConfigurationDocument::application() const { +inline const ::v1::model::ApplicationConfiguration& AgentConfigurationDocument::_internal_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 const ::v1::model::ApplicationConfiguration& AgentConfigurationDocument::application() const { + // @@protoc_insertion_point(field_get:v1.model.AgentConfigurationDocument.application) + return _internal_application(); +} inline ::v1::model::ApplicationConfiguration* AgentConfigurationDocument::release_application() { // @@protoc_insertion_point(field_release:v1.model.AgentConfigurationDocument.application) @@ -1980,42 +2769,255 @@ inline ::v1::model::ApplicationConfiguration* AgentConfigurationDocument::releas application_ = nullptr; return temp; } -inline ::v1::model::ApplicationConfiguration* AgentConfigurationDocument::mutable_application() { +inline ::v1::model::ApplicationConfiguration* AgentConfigurationDocument::_internal_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 ::v1::model::ApplicationConfiguration* AgentConfigurationDocument::mutable_application() { + // @@protoc_insertion_point(field_mutable:v1.model.AgentConfigurationDocument.application) + return _internal_mutable_application(); +} inline void AgentConfigurationDocument::set_allocated_application(::v1::model::ApplicationConfiguration* application) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete application_; } if (application) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - application = ::google::protobuf::internal::GetOwnedMessage( + application = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, application, submessage_arena); } } else { } - application_ = application; - // @@protoc_insertion_point(field_set_allocated:v1.model.AgentConfigurationDocument.application) + application_ = application; + // @@protoc_insertion_point(field_set_allocated:v1.model.AgentConfigurationDocument.application) +} + +// .v1.model.TeleopConfiguration teleop = 6[json_name = "teleop"]; +inline bool AgentConfigurationDocument::_internal_has_teleop() const { + return this != internal_default_instance() && teleop_ != nullptr; +} +inline bool AgentConfigurationDocument::has_teleop() const { + return _internal_has_teleop(); +} +inline void AgentConfigurationDocument::clear_teleop() { + if (GetArenaNoVirtual() == nullptr && teleop_ != nullptr) { + delete teleop_; + } + teleop_ = nullptr; +} +inline const ::v1::model::TeleopConfiguration& AgentConfigurationDocument::_internal_teleop() const { + const ::v1::model::TeleopConfiguration* p = teleop_; + return p != nullptr ? *p : *reinterpret_cast( + &::v1::model::_TeleopConfiguration_default_instance_); +} +inline const ::v1::model::TeleopConfiguration& AgentConfigurationDocument::teleop() const { + // @@protoc_insertion_point(field_get:v1.model.AgentConfigurationDocument.teleop) + return _internal_teleop(); +} +inline ::v1::model::TeleopConfiguration* AgentConfigurationDocument::release_teleop() { + // @@protoc_insertion_point(field_release:v1.model.AgentConfigurationDocument.teleop) + + ::v1::model::TeleopConfiguration* temp = teleop_; + teleop_ = nullptr; + return temp; +} +inline ::v1::model::TeleopConfiguration* AgentConfigurationDocument::_internal_mutable_teleop() { + + if (teleop_ == nullptr) { + auto* p = CreateMaybeMessage<::v1::model::TeleopConfiguration>(GetArenaNoVirtual()); + teleop_ = p; + } + return teleop_; +} +inline ::v1::model::TeleopConfiguration* AgentConfigurationDocument::mutable_teleop() { + // @@protoc_insertion_point(field_mutable:v1.model.AgentConfigurationDocument.teleop) + return _internal_mutable_teleop(); +} +inline void AgentConfigurationDocument::set_allocated_teleop(::v1::model::TeleopConfiguration* teleop) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete teleop_; + } + if (teleop) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + teleop = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, teleop, submessage_arena); + } + + } else { + + } + teleop_ = teleop; + // @@protoc_insertion_point(field_set_allocated:v1.model.AgentConfigurationDocument.teleop) +} + +// ------------------------------------------------------------------- + +// TeleopConfiguration + +// repeated .v1.model.TeleopRosStreamConfiguration ros_streams = 1[json_name = "rosStreams"]; +inline int TeleopConfiguration::_internal_ros_streams_size() const { + return ros_streams_.size(); +} +inline int TeleopConfiguration::ros_streams_size() const { + return _internal_ros_streams_size(); +} +inline void TeleopConfiguration::clear_ros_streams() { + ros_streams_.Clear(); +} +inline ::v1::model::TeleopRosStreamConfiguration* TeleopConfiguration::mutable_ros_streams(int index) { + // @@protoc_insertion_point(field_mutable:v1.model.TeleopConfiguration.ros_streams) + return ros_streams_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::v1::model::TeleopRosStreamConfiguration >* +TeleopConfiguration::mutable_ros_streams() { + // @@protoc_insertion_point(field_mutable_list:v1.model.TeleopConfiguration.ros_streams) + return &ros_streams_; +} +inline const ::v1::model::TeleopRosStreamConfiguration& TeleopConfiguration::_internal_ros_streams(int index) const { + return ros_streams_.Get(index); +} +inline const ::v1::model::TeleopRosStreamConfiguration& TeleopConfiguration::ros_streams(int index) const { + // @@protoc_insertion_point(field_get:v1.model.TeleopConfiguration.ros_streams) + return _internal_ros_streams(index); +} +inline ::v1::model::TeleopRosStreamConfiguration* TeleopConfiguration::_internal_add_ros_streams() { + return ros_streams_.Add(); +} +inline ::v1::model::TeleopRosStreamConfiguration* TeleopConfiguration::add_ros_streams() { + // @@protoc_insertion_point(field_add:v1.model.TeleopConfiguration.ros_streams) + return _internal_add_ros_streams(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::v1::model::TeleopRosStreamConfiguration >& +TeleopConfiguration::ros_streams() const { + // @@protoc_insertion_point(field_list:v1.model.TeleopConfiguration.ros_streams) + return ros_streams_; +} + +// ------------------------------------------------------------------- + +// TeleopRosStreamConfiguration + +// string topic_name = 1[json_name = "topicName"]; +inline void TeleopRosStreamConfiguration::clear_topic_name() { + topic_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& TeleopRosStreamConfiguration::topic_name() const { + // @@protoc_insertion_point(field_get:v1.model.TeleopRosStreamConfiguration.topic_name) + return _internal_topic_name(); +} +inline void TeleopRosStreamConfiguration::set_topic_name(const std::string& value) { + _internal_set_topic_name(value); + // @@protoc_insertion_point(field_set:v1.model.TeleopRosStreamConfiguration.topic_name) +} +inline std::string* TeleopRosStreamConfiguration::mutable_topic_name() { + // @@protoc_insertion_point(field_mutable:v1.model.TeleopRosStreamConfiguration.topic_name) + return _internal_mutable_topic_name(); +} +inline const std::string& TeleopRosStreamConfiguration::_internal_topic_name() const { + return topic_name_.GetNoArena(); +} +inline void TeleopRosStreamConfiguration::_internal_set_topic_name(const std::string& value) { + + topic_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); +} +inline void TeleopRosStreamConfiguration::set_topic_name(std::string&& value) { + + topic_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:v1.model.TeleopRosStreamConfiguration.topic_name) +} +inline void TeleopRosStreamConfiguration::set_topic_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + topic_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:v1.model.TeleopRosStreamConfiguration.topic_name) +} +inline void TeleopRosStreamConfiguration::set_topic_name(const char* value, size_t size) { + + topic_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:v1.model.TeleopRosStreamConfiguration.topic_name) +} +inline std::string* TeleopRosStreamConfiguration::_internal_mutable_topic_name() { + + return topic_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* TeleopRosStreamConfiguration::release_topic_name() { + // @@protoc_insertion_point(field_release:v1.model.TeleopRosStreamConfiguration.topic_name) + + return topic_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void TeleopRosStreamConfiguration::set_allocated_topic_name(std::string* topic_name) { + if (topic_name != nullptr) { + + } else { + + } + topic_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), topic_name); + // @@protoc_insertion_point(field_set_allocated:v1.model.TeleopRosStreamConfiguration.topic_name) +} + +// .v1.model.TeleopRosStreamConfigurationTopicType topic_type = 2[json_name = "topicType"]; +inline void TeleopRosStreamConfiguration::clear_topic_type() { + topic_type_ = 0; +} +inline ::v1::model::TeleopRosStreamConfigurationTopicType TeleopRosStreamConfiguration::_internal_topic_type() const { + return static_cast< ::v1::model::TeleopRosStreamConfigurationTopicType >(topic_type_); +} +inline ::v1::model::TeleopRosStreamConfigurationTopicType TeleopRosStreamConfiguration::topic_type() const { + // @@protoc_insertion_point(field_get:v1.model.TeleopRosStreamConfiguration.topic_type) + return _internal_topic_type(); +} +inline void TeleopRosStreamConfiguration::_internal_set_topic_type(::v1::model::TeleopRosStreamConfigurationTopicType value) { + + topic_type_ = value; +} +inline void TeleopRosStreamConfiguration::set_topic_type(::v1::model::TeleopRosStreamConfigurationTopicType value) { + _internal_set_topic_type(value); + // @@protoc_insertion_point(field_set:v1.model.TeleopRosStreamConfiguration.topic_type) +} + +// .v1.model.TeleopRosStreamConfigurationMode mode = 3[json_name = "mode"]; +inline void TeleopRosStreamConfiguration::clear_mode() { + mode_ = 0; +} +inline ::v1::model::TeleopRosStreamConfigurationMode TeleopRosStreamConfiguration::_internal_mode() const { + return static_cast< ::v1::model::TeleopRosStreamConfigurationMode >(mode_); +} +inline ::v1::model::TeleopRosStreamConfigurationMode TeleopRosStreamConfiguration::mode() const { + // @@protoc_insertion_point(field_get:v1.model.TeleopRosStreamConfiguration.mode) + return _internal_mode(); +} +inline void TeleopRosStreamConfiguration::_internal_set_mode(::v1::model::TeleopRosStreamConfigurationMode value) { + + mode_ = value; +} +inline void TeleopRosStreamConfiguration::set_mode(::v1::model::TeleopRosStreamConfigurationMode value) { + _internal_set_mode(value); + // @@protoc_insertion_point(field_set:v1.model.TeleopRosStreamConfiguration.mode) } // ------------------------------------------------------------------- // TelemetryConfiguration -// repeated .v1.model.StreamConfiguration streams = 1; -inline int TelemetryConfiguration::streams_size() const { +// repeated .v1.model.StreamConfiguration streams = 1[json_name = "streams"]; +inline int TelemetryConfiguration::_internal_streams_size() const { return streams_.size(); } +inline int TelemetryConfiguration::streams_size() const { + return _internal_streams_size(); +} inline void TelemetryConfiguration::clear_streams() { streams_.Clear(); } @@ -2023,41 +3025,53 @@ inline ::v1::model::StreamConfiguration* TelemetryConfiguration::mutable_streams // @@protoc_insertion_point(field_mutable:v1.model.TelemetryConfiguration.streams) return streams_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >* +inline ::PROTOBUF_NAMESPACE_ID::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::_internal_streams(int index) const { + return streams_.Get(index); +} inline const ::v1::model::StreamConfiguration& TelemetryConfiguration::streams(int index) const { // @@protoc_insertion_point(field_get:v1.model.TelemetryConfiguration.streams) - return streams_.Get(index); + return _internal_streams(index); +} +inline ::v1::model::StreamConfiguration* TelemetryConfiguration::_internal_add_streams() { + return streams_.Add(); } inline ::v1::model::StreamConfiguration* TelemetryConfiguration::add_streams() { // @@protoc_insertion_point(field_add:v1.model.TelemetryConfiguration.streams) - return streams_.Add(); + return _internal_add_streams(); } -inline const ::google::protobuf::RepeatedPtrField< ::v1::model::StreamConfiguration >& +inline const ::PROTOBUF_NAMESPACE_ID::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 { +// .v1.model.ROSConfiguration ros = 2[json_name = "ros"]; +inline bool TelemetryConfiguration::_internal_has_ros() const { return this != internal_default_instance() && ros_ != nullptr; } +inline bool TelemetryConfiguration::has_ros() const { + return _internal_has_ros(); +} inline void TelemetryConfiguration::clear_ros() { if (GetArenaNoVirtual() == nullptr && ros_ != nullptr) { delete ros_; } ros_ = nullptr; } -inline const ::v1::model::ROSConfiguration& TelemetryConfiguration::ros() const { +inline const ::v1::model::ROSConfiguration& TelemetryConfiguration::_internal_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 const ::v1::model::ROSConfiguration& TelemetryConfiguration::ros() const { + // @@protoc_insertion_point(field_get:v1.model.TelemetryConfiguration.ros) + return _internal_ros(); +} inline ::v1::model::ROSConfiguration* TelemetryConfiguration::release_ros() { // @@protoc_insertion_point(field_release:v1.model.TelemetryConfiguration.ros) @@ -2065,24 +3079,27 @@ inline ::v1::model::ROSConfiguration* TelemetryConfiguration::release_ros() { ros_ = nullptr; return temp; } -inline ::v1::model::ROSConfiguration* TelemetryConfiguration::mutable_ros() { +inline ::v1::model::ROSConfiguration* TelemetryConfiguration::_internal_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 ::v1::model::ROSConfiguration* TelemetryConfiguration::mutable_ros() { + // @@protoc_insertion_point(field_mutable:v1.model.TelemetryConfiguration.ros) + return _internal_mutable_ros(); +} inline void TelemetryConfiguration::set_allocated_ros(::v1::model::ROSConfiguration* ros) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete ros_; } if (ros) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - ros = ::google::protobuf::internal::GetOwnedMessage( + ros = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, ros, submessage_arena); } @@ -2099,44 +3116,61 @@ inline void TelemetryConfiguration::set_allocated_ros(::v1::model::ROSConfigurat // ApplicationConfiguration -// map configuration_map = 1; -inline int ApplicationConfiguration::configuration_map_size() const { +// map configuration_map = 1[json_name = "configurationMap"]; +inline int ApplicationConfiguration::_internal_configuration_map_size() const { return configuration_map_.size(); } +inline int ApplicationConfiguration::configuration_map_size() const { + return _internal_configuration_map_size(); +} inline void ApplicationConfiguration::clear_configuration_map() { configuration_map_.Clear(); } -inline const ::google::protobuf::Map< ::std::string, ::std::string >& +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ApplicationConfiguration::_internal_configuration_map() const { + return configuration_map_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& ApplicationConfiguration::configuration_map() const { // @@protoc_insertion_point(field_map:v1.model.ApplicationConfiguration.configuration_map) - return configuration_map_.GetMap(); + return _internal_configuration_map(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ApplicationConfiguration::_internal_mutable_configuration_map() { + return configuration_map_.MutableMap(); } -inline ::google::protobuf::Map< ::std::string, ::std::string >* +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* ApplicationConfiguration::mutable_configuration_map() { // @@protoc_insertion_point(field_mutable_map:v1.model.ApplicationConfiguration.configuration_map) - return configuration_map_.MutableMap(); + return _internal_mutable_configuration_map(); } // ------------------------------------------------------------------- // ResourcesConfiguration -// .v1.model.DiskConfiguration disk = 1; -inline bool ResourcesConfiguration::has_disk() const { +// .v1.model.DiskConfiguration disk = 1[json_name = "disk"]; +inline bool ResourcesConfiguration::_internal_has_disk() const { return this != internal_default_instance() && disk_ != nullptr; } +inline bool ResourcesConfiguration::has_disk() const { + return _internal_has_disk(); +} inline void ResourcesConfiguration::clear_disk() { if (GetArenaNoVirtual() == nullptr && disk_ != nullptr) { delete disk_; } disk_ = nullptr; } -inline const ::v1::model::DiskConfiguration& ResourcesConfiguration::disk() const { +inline const ::v1::model::DiskConfiguration& ResourcesConfiguration::_internal_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 const ::v1::model::DiskConfiguration& ResourcesConfiguration::disk() const { + // @@protoc_insertion_point(field_get:v1.model.ResourcesConfiguration.disk) + return _internal_disk(); +} inline ::v1::model::DiskConfiguration* ResourcesConfiguration::release_disk() { // @@protoc_insertion_point(field_release:v1.model.ResourcesConfiguration.disk) @@ -2144,24 +3178,27 @@ inline ::v1::model::DiskConfiguration* ResourcesConfiguration::release_disk() { disk_ = nullptr; return temp; } -inline ::v1::model::DiskConfiguration* ResourcesConfiguration::mutable_disk() { +inline ::v1::model::DiskConfiguration* ResourcesConfiguration::_internal_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 ::v1::model::DiskConfiguration* ResourcesConfiguration::mutable_disk() { + // @@protoc_insertion_point(field_mutable:v1.model.ResourcesConfiguration.disk) + return _internal_mutable_disk(); +} inline void ResourcesConfiguration::set_allocated_disk(::v1::model::DiskConfiguration* disk) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete disk_; } if (disk) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - disk = ::google::protobuf::internal::GetOwnedMessage( + disk = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, disk, submessage_arena); } @@ -2172,21 +3209,82 @@ inline void ResourcesConfiguration::set_allocated_disk(::v1::model::DiskConfigur // @@protoc_insertion_point(field_set_allocated:v1.model.ResourcesConfiguration.disk) } +// .google.protobuf.DoubleValue stream_throttle_hz = 2[json_name = "streamThrottleHz"]; +inline bool ResourcesConfiguration::_internal_has_stream_throttle_hz() const { + return this != internal_default_instance() && stream_throttle_hz_ != nullptr; +} +inline bool ResourcesConfiguration::has_stream_throttle_hz() const { + return _internal_has_stream_throttle_hz(); +} +inline const PROTOBUF_NAMESPACE_ID::DoubleValue& ResourcesConfiguration::_internal_stream_throttle_hz() const { + const PROTOBUF_NAMESPACE_ID::DoubleValue* p = stream_throttle_hz_; + return p != nullptr ? *p : *reinterpret_cast( + &PROTOBUF_NAMESPACE_ID::_DoubleValue_default_instance_); +} +inline const PROTOBUF_NAMESPACE_ID::DoubleValue& ResourcesConfiguration::stream_throttle_hz() const { + // @@protoc_insertion_point(field_get:v1.model.ResourcesConfiguration.stream_throttle_hz) + return _internal_stream_throttle_hz(); +} +inline PROTOBUF_NAMESPACE_ID::DoubleValue* ResourcesConfiguration::release_stream_throttle_hz() { + // @@protoc_insertion_point(field_release:v1.model.ResourcesConfiguration.stream_throttle_hz) + + PROTOBUF_NAMESPACE_ID::DoubleValue* temp = stream_throttle_hz_; + stream_throttle_hz_ = nullptr; + return temp; +} +inline PROTOBUF_NAMESPACE_ID::DoubleValue* ResourcesConfiguration::_internal_mutable_stream_throttle_hz() { + + if (stream_throttle_hz_ == nullptr) { + auto* p = CreateMaybeMessage(GetArenaNoVirtual()); + stream_throttle_hz_ = p; + } + return stream_throttle_hz_; +} +inline PROTOBUF_NAMESPACE_ID::DoubleValue* ResourcesConfiguration::mutable_stream_throttle_hz() { + // @@protoc_insertion_point(field_mutable:v1.model.ResourcesConfiguration.stream_throttle_hz) + return _internal_mutable_stream_throttle_hz(); +} +inline void ResourcesConfiguration::set_allocated_stream_throttle_hz(PROTOBUF_NAMESPACE_ID::DoubleValue* stream_throttle_hz) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(stream_throttle_hz_); + } + if (stream_throttle_hz) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(stream_throttle_hz)->GetArena(); + if (message_arena != submessage_arena) { + stream_throttle_hz = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, stream_throttle_hz, submessage_arena); + } + + } else { + + } + stream_throttle_hz_ = stream_throttle_hz; + // @@protoc_insertion_point(field_set_allocated:v1.model.ResourcesConfiguration.stream_throttle_hz) +} + // ------------------------------------------------------------------- // DiskConfiguration -// int64 buffer_size = 1; +// int64 buffer_size = 1[json_name = "bufferSize"]; 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) +inline ::PROTOBUF_NAMESPACE_ID::int64 DiskConfiguration::_internal_buffer_size() const { return buffer_size_; } -inline void DiskConfiguration::set_buffer_size(::google::protobuf::int64 value) { +inline ::PROTOBUF_NAMESPACE_ID::int64 DiskConfiguration::buffer_size() const { + // @@protoc_insertion_point(field_get:v1.model.DiskConfiguration.buffer_size) + return _internal_buffer_size(); +} +inline void DiskConfiguration::_internal_set_buffer_size(::PROTOBUF_NAMESPACE_ID::int64 value) { buffer_size_ = value; +} +inline void DiskConfiguration::set_buffer_size(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_buffer_size(value); // @@protoc_insertion_point(field_set:v1.model.DiskConfiguration.buffer_size) } @@ -2194,56 +3292,63 @@ inline void DiskConfiguration::set_buffer_size(::google::protobuf::int64 value) // ROSConfiguration -// string world_reference_frame_id = 1; +// string world_reference_frame_id = 1[json_name = "worldReferenceFrameId"]; inline void ROSConfiguration::clear_world_reference_frame_id() { - world_reference_frame_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + world_reference_frame_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& ROSConfiguration::world_reference_frame_id() const { +inline const std::string& ROSConfiguration::world_reference_frame_id() const { // @@protoc_insertion_point(field_get:v1.model.ROSConfiguration.world_reference_frame_id) + return _internal_world_reference_frame_id(); +} +inline void ROSConfiguration::set_world_reference_frame_id(const std::string& value) { + _internal_set_world_reference_frame_id(value); + // @@protoc_insertion_point(field_set: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 _internal_mutable_world_reference_frame_id(); +} +inline const std::string& ROSConfiguration::_internal_world_reference_frame_id() const { return world_reference_frame_id_.GetNoArena(); } -inline void ROSConfiguration::set_world_reference_frame_id(const ::std::string& value) { +inline void ROSConfiguration::_internal_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) + world_reference_frame_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void ROSConfiguration::set_world_reference_frame_id(::std::string&& value) { +inline void ROSConfiguration::set_world_reference_frame_id(std::string&& value) { world_reference_frame_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::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)); + world_reference_frame_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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(), + world_reference_frame_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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() { +inline std::string* ROSConfiguration::_internal_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()); + return world_reference_frame_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* ROSConfiguration::release_world_reference_frame_id() { +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()); + return world_reference_frame_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void ROSConfiguration::set_allocated_world_reference_frame_id(::std::string* world_reference_frame_id) { +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); + world_reference_frame_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), world_reference_frame_id); // @@protoc_insertion_point(field_set_allocated:v1.model.ROSConfiguration.world_reference_frame_id) } @@ -2253,87 +3358,108 @@ inline void ROSConfiguration::set_allocated_world_reference_frame_id(::std::stri // StreamConfiguration -// string name = 1; +// string name = 1[json_name = "name"]; inline void StreamConfiguration::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& StreamConfiguration::name() const { +inline const std::string& StreamConfiguration::name() const { // @@protoc_insertion_point(field_get:v1.model.StreamConfiguration.name) + return _internal_name(); +} +inline void StreamConfiguration::set_name(const std::string& value) { + _internal_set_name(value); + // @@protoc_insertion_point(field_set:v1.model.StreamConfiguration.name) +} +inline std::string* StreamConfiguration::mutable_name() { + // @@protoc_insertion_point(field_mutable:v1.model.StreamConfiguration.name) + return _internal_mutable_name(); +} +inline const std::string& StreamConfiguration::_internal_name() const { return name_.GetNoArena(); } -inline void StreamConfiguration::set_name(const ::std::string& value) { +inline void StreamConfiguration::_internal_set_name(const std::string& value) { - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.model.StreamConfiguration.name) + name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void StreamConfiguration::set_name(::std::string&& value) { +inline void StreamConfiguration::set_name(std::string&& value) { name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::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)); + name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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(), + name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:v1.model.StreamConfiguration.name) } -inline ::std::string* StreamConfiguration::mutable_name() { +inline std::string* StreamConfiguration::_internal_mutable_name() { - // @@protoc_insertion_point(field_mutable:v1.model.StreamConfiguration.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* StreamConfiguration::release_name() { +inline std::string* StreamConfiguration::release_name() { // @@protoc_insertion_point(field_release:v1.model.StreamConfiguration.name) - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void StreamConfiguration::set_allocated_name(::std::string* name) { +inline void StreamConfiguration::set_allocated_name(std::string* name) { if (name != nullptr) { } else { } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); // @@protoc_insertion_point(field_set_allocated:v1.model.StreamConfiguration.name) } -// map tags = 2; -inline int StreamConfiguration::tags_size() const { +// map tags = 2[json_name = "tags"]; +inline int StreamConfiguration::_internal_tags_size() const { return tags_.size(); } +inline int StreamConfiguration::tags_size() const { + return _internal_tags_size(); +} inline void StreamConfiguration::clear_tags() { tags_.Clear(); } -inline const ::google::protobuf::Map< ::std::string, ::std::string >& +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +StreamConfiguration::_internal_tags() const { + return tags_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& StreamConfiguration::tags() const { // @@protoc_insertion_point(field_map:v1.model.StreamConfiguration.tags) - return tags_.GetMap(); + return _internal_tags(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +StreamConfiguration::_internal_mutable_tags() { + return tags_.MutableMap(); } -inline ::google::protobuf::Map< ::std::string, ::std::string >* +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* StreamConfiguration::mutable_tags() { // @@protoc_insertion_point(field_mutable_map:v1.model.StreamConfiguration.tags) - return tags_.MutableMap(); + return _internal_mutable_tags(); } -// .v1.model.ROSTopic ros_topic = 3; -inline bool StreamConfiguration::has_ros_topic() const { +// .v1.model.ROSTopic ros_topic = 3[json_name = "rosTopic"]; +inline bool StreamConfiguration::_internal_has_ros_topic() const { return configuration_case() == kRosTopic; } +inline bool StreamConfiguration::has_ros_topic() const { + return _internal_has_ros_topic(); +} 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()) { + if (_internal_has_ros_topic()) { clear_has_configuration(); ::v1::model::ROSTopic* temp = configuration_.ros_topic_; configuration_.ros_topic_ = nullptr; @@ -2342,33 +3468,42 @@ inline ::v1::model::ROSTopic* StreamConfiguration::release_ros_topic() { 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() +inline const ::v1::model::ROSTopic& StreamConfiguration::_internal_ros_topic() const { + return _internal_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()) { +inline const ::v1::model::ROSTopic& StreamConfiguration::ros_topic() const { + // @@protoc_insertion_point(field_get:v1.model.StreamConfiguration.ros_topic) + return _internal_ros_topic(); +} +inline ::v1::model::ROSTopic* StreamConfiguration::_internal_mutable_ros_topic() { + if (!_internal_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_; } +inline ::v1::model::ROSTopic* StreamConfiguration::mutable_ros_topic() { + // @@protoc_insertion_point(field_mutable:v1.model.StreamConfiguration.ros_topic) + return _internal_mutable_ros_topic(); +} -// .v1.model.ROSLocalization ros_localization = 4; -inline bool StreamConfiguration::has_ros_localization() const { +// .v1.model.ROSLocalization ros_localization = 4[json_name = "rosLocalization"]; +inline bool StreamConfiguration::_internal_has_ros_localization() const { return configuration_case() == kRosLocalization; } +inline bool StreamConfiguration::has_ros_localization() const { + return _internal_has_ros_localization(); +} 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()) { + if (_internal_has_ros_localization()) { clear_has_configuration(); ::v1::model::ROSLocalization* temp = configuration_.ros_localization_; configuration_.ros_localization_ = nullptr; @@ -2377,39 +3512,92 @@ inline ::v1::model::ROSLocalization* StreamConfiguration::release_ros_localizati 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() +inline const ::v1::model::ROSLocalization& StreamConfiguration::_internal_ros_localization() const { + return _internal_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()) { +inline const ::v1::model::ROSLocalization& StreamConfiguration::ros_localization() const { + // @@protoc_insertion_point(field_get:v1.model.StreamConfiguration.ros_localization) + return _internal_ros_localization(); +} +inline ::v1::model::ROSLocalization* StreamConfiguration::_internal_mutable_ros_localization() { + if (!_internal_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_; } +inline ::v1::model::ROSLocalization* StreamConfiguration::mutable_ros_localization() { + // @@protoc_insertion_point(field_mutable:v1.model.StreamConfiguration.ros_localization) + return _internal_mutable_ros_localization(); +} -// .v1.model.DirectoryWatch directory_watch = 5; -inline bool StreamConfiguration::has_directory_watch() const { +// .v1.model.ROSTransformTree ros_transform_tree = 7[json_name = "rosTransformTree"]; +inline bool StreamConfiguration::_internal_has_ros_transform_tree() const { + return configuration_case() == kRosTransformTree; +} +inline bool StreamConfiguration::has_ros_transform_tree() const { + return _internal_has_ros_transform_tree(); +} +inline void StreamConfiguration::set_has_ros_transform_tree() { + _oneof_case_[0] = kRosTransformTree; +} +inline ::v1::model::ROSTransformTree* StreamConfiguration::release_ros_transform_tree() { + // @@protoc_insertion_point(field_release:v1.model.StreamConfiguration.ros_transform_tree) + if (_internal_has_ros_transform_tree()) { + clear_has_configuration(); + ::v1::model::ROSTransformTree* temp = configuration_.ros_transform_tree_; + configuration_.ros_transform_tree_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::v1::model::ROSTransformTree& StreamConfiguration::_internal_ros_transform_tree() const { + return _internal_has_ros_transform_tree() + ? *configuration_.ros_transform_tree_ + : *reinterpret_cast< ::v1::model::ROSTransformTree*>(&::v1::model::_ROSTransformTree_default_instance_); +} +inline const ::v1::model::ROSTransformTree& StreamConfiguration::ros_transform_tree() const { + // @@protoc_insertion_point(field_get:v1.model.StreamConfiguration.ros_transform_tree) + return _internal_ros_transform_tree(); +} +inline ::v1::model::ROSTransformTree* StreamConfiguration::_internal_mutable_ros_transform_tree() { + if (!_internal_has_ros_transform_tree()) { + clear_configuration(); + set_has_ros_transform_tree(); + configuration_.ros_transform_tree_ = CreateMaybeMessage< ::v1::model::ROSTransformTree >( + GetArenaNoVirtual()); + } + return configuration_.ros_transform_tree_; +} +inline ::v1::model::ROSTransformTree* StreamConfiguration::mutable_ros_transform_tree() { + // @@protoc_insertion_point(field_mutable:v1.model.StreamConfiguration.ros_transform_tree) + return _internal_mutable_ros_transform_tree(); +} + +// .v1.model.DirectoryWatch directory_watch = 5[json_name = "directoryWatch"]; +inline bool StreamConfiguration::_internal_has_directory_watch() const { return configuration_case() == kDirectoryWatch; } +inline bool StreamConfiguration::has_directory_watch() const { + return _internal_has_directory_watch(); +} inline void StreamConfiguration::set_has_directory_watch() { _oneof_case_[0] = kDirectoryWatch; } inline void StreamConfiguration::clear_directory_watch() { - if (has_directory_watch()) { + if (_internal_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()) { + if (_internal_has_directory_watch()) { clear_has_configuration(); ::v1::model::DirectoryWatch* temp = configuration_.directory_watch_; configuration_.directory_watch_ = nullptr; @@ -2418,39 +3606,48 @@ inline ::v1::model::DirectoryWatch* StreamConfiguration::release_directory_watch 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() +inline const ::v1::model::DirectoryWatch& StreamConfiguration::_internal_directory_watch() const { + return _internal_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()) { +inline const ::v1::model::DirectoryWatch& StreamConfiguration::directory_watch() const { + // @@protoc_insertion_point(field_get:v1.model.StreamConfiguration.directory_watch) + return _internal_directory_watch(); +} +inline ::v1::model::DirectoryWatch* StreamConfiguration::_internal_mutable_directory_watch() { + if (!_internal_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_; } +inline ::v1::model::DirectoryWatch* StreamConfiguration::mutable_directory_watch() { + // @@protoc_insertion_point(field_mutable:v1.model.StreamConfiguration.directory_watch) + return _internal_mutable_directory_watch(); +} -// .v1.model.FileTail file_tail = 6; -inline bool StreamConfiguration::has_file_tail() const { +// .v1.model.FileTail file_tail = 6[json_name = "fileTail"]; +inline bool StreamConfiguration::_internal_has_file_tail() const { return configuration_case() == kFileTail; } +inline bool StreamConfiguration::has_file_tail() const { + return _internal_has_file_tail(); +} inline void StreamConfiguration::set_has_file_tail() { _oneof_case_[0] = kFileTail; } inline void StreamConfiguration::clear_file_tail() { - if (has_file_tail()) { + if (_internal_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()) { + if (_internal_has_file_tail()) { clear_has_configuration(); ::v1::model::FileTail* temp = configuration_.file_tail_; configuration_.file_tail_ = nullptr; @@ -2459,22 +3656,28 @@ inline ::v1::model::FileTail* StreamConfiguration::release_file_tail() { 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() +inline const ::v1::model::FileTail& StreamConfiguration::_internal_file_tail() const { + return _internal_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()) { +inline const ::v1::model::FileTail& StreamConfiguration::file_tail() const { + // @@protoc_insertion_point(field_get:v1.model.StreamConfiguration.file_tail) + return _internal_file_tail(); +} +inline ::v1::model::FileTail* StreamConfiguration::_internal_mutable_file_tail() { + if (!_internal_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 ::v1::model::FileTail* StreamConfiguration::mutable_file_tail() { + // @@protoc_insertion_point(field_mutable:v1.model.StreamConfiguration.file_tail) + return _internal_mutable_file_tail(); +} inline bool StreamConfiguration::has_configuration() const { return configuration_case() != CONFIGURATION_NOT_SET; @@ -2489,137 +3692,163 @@ inline StreamConfiguration::ConfigurationCase StreamConfiguration::configuration // DirectoryWatch -// string directory = 1; +// string directory = 1[json_name = "directory"]; inline void DirectoryWatch::clear_directory() { - directory_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + directory_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& DirectoryWatch::directory() const { +inline const std::string& DirectoryWatch::directory() const { // @@protoc_insertion_point(field_get:v1.model.DirectoryWatch.directory) + return _internal_directory(); +} +inline void DirectoryWatch::set_directory(const std::string& value) { + _internal_set_directory(value); + // @@protoc_insertion_point(field_set:v1.model.DirectoryWatch.directory) +} +inline std::string* DirectoryWatch::mutable_directory() { + // @@protoc_insertion_point(field_mutable:v1.model.DirectoryWatch.directory) + return _internal_mutable_directory(); +} +inline const std::string& DirectoryWatch::_internal_directory() const { return directory_.GetNoArena(); } -inline void DirectoryWatch::set_directory(const ::std::string& value) { +inline void DirectoryWatch::_internal_set_directory(const std::string& value) { - directory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.model.DirectoryWatch.directory) + directory_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void DirectoryWatch::set_directory(::std::string&& value) { +inline void DirectoryWatch::set_directory(std::string&& value) { directory_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::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)); + directory_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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(), + directory_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:v1.model.DirectoryWatch.directory) } -inline ::std::string* DirectoryWatch::mutable_directory() { +inline std::string* DirectoryWatch::_internal_mutable_directory() { - // @@protoc_insertion_point(field_mutable:v1.model.DirectoryWatch.directory) - return directory_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return directory_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* DirectoryWatch::release_directory() { +inline std::string* DirectoryWatch::release_directory() { // @@protoc_insertion_point(field_release:v1.model.DirectoryWatch.directory) - return directory_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return directory_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void DirectoryWatch::set_allocated_directory(::std::string* directory) { +inline void DirectoryWatch::set_allocated_directory(std::string* directory) { if (directory != nullptr) { } else { } - directory_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), directory); + directory_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), directory); // @@protoc_insertion_point(field_set_allocated:v1.model.DirectoryWatch.directory) } -// string extension = 2; +// string extension = 2[json_name = "extension"]; inline void DirectoryWatch::clear_extension() { - extension_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + extension_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& DirectoryWatch::extension() const { +inline const std::string& DirectoryWatch::extension() const { // @@protoc_insertion_point(field_get:v1.model.DirectoryWatch.extension) + return _internal_extension(); +} +inline void DirectoryWatch::set_extension(const std::string& value) { + _internal_set_extension(value); + // @@protoc_insertion_point(field_set:v1.model.DirectoryWatch.extension) +} +inline std::string* DirectoryWatch::mutable_extension() { + // @@protoc_insertion_point(field_mutable:v1.model.DirectoryWatch.extension) + return _internal_mutable_extension(); +} +inline const std::string& DirectoryWatch::_internal_extension() const { return extension_.GetNoArena(); } -inline void DirectoryWatch::set_extension(const ::std::string& value) { +inline void DirectoryWatch::_internal_set_extension(const std::string& value) { - extension_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.model.DirectoryWatch.extension) + extension_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void DirectoryWatch::set_extension(::std::string&& value) { +inline void DirectoryWatch::set_extension(std::string&& value) { extension_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::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)); + extension_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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(), + extension_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:v1.model.DirectoryWatch.extension) } -inline ::std::string* DirectoryWatch::mutable_extension() { +inline std::string* DirectoryWatch::_internal_mutable_extension() { - // @@protoc_insertion_point(field_mutable:v1.model.DirectoryWatch.extension) - return extension_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return extension_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* DirectoryWatch::release_extension() { +inline std::string* DirectoryWatch::release_extension() { // @@protoc_insertion_point(field_release:v1.model.DirectoryWatch.extension) - return extension_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return extension_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void DirectoryWatch::set_allocated_extension(::std::string* extension) { +inline void DirectoryWatch::set_allocated_extension(std::string* extension) { if (extension != nullptr) { } else { } - extension_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extension); + extension_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), extension); // @@protoc_insertion_point(field_set_allocated:v1.model.DirectoryWatch.extension) } -// .v1.model.FileType file_type = 3; +// .v1.model.FileType file_type = 3[json_name = "fileType"]; inline void DirectoryWatch::clear_file_type() { file_type_ = 0; } +inline ::v1::model::FileType DirectoryWatch::_internal_file_type() const { + return static_cast< ::v1::model::FileType >(file_type_); +} 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_); + return _internal_file_type(); } -inline void DirectoryWatch::set_file_type(::v1::model::FileType value) { +inline void DirectoryWatch::_internal_set_file_type(::v1::model::FileType value) { file_type_ = value; +} +inline void DirectoryWatch::set_file_type(::v1::model::FileType value) { + _internal_set_file_type(value); // @@protoc_insertion_point(field_set:v1.model.DirectoryWatch.file_type) } -// bool remote_agent = 4; +// bool remote_agent = 4[json_name = "remoteAgent"]; inline void DirectoryWatch::clear_remote_agent() { remote_agent_ = false; } +inline bool DirectoryWatch::_internal_remote_agent() const { + return remote_agent_; +} inline bool DirectoryWatch::remote_agent() const { // @@protoc_insertion_point(field_get:v1.model.DirectoryWatch.remote_agent) - return remote_agent_; + return _internal_remote_agent(); } -inline void DirectoryWatch::set_remote_agent(bool value) { +inline void DirectoryWatch::_internal_set_remote_agent(bool value) { remote_agent_ = value; +} +inline void DirectoryWatch::set_remote_agent(bool value) { + _internal_set_remote_agent(value); // @@protoc_insertion_point(field_set:v1.model.DirectoryWatch.remote_agent) } @@ -2627,229 +3856,263 @@ inline void DirectoryWatch::set_remote_agent(bool value) { // FileTail -// string filename = 1; +// string filename = 1[json_name = "filename"]; inline void FileTail::clear_filename() { - filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filename_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& FileTail::filename() const { +inline const std::string& FileTail::filename() const { // @@protoc_insertion_point(field_get:v1.model.FileTail.filename) + return _internal_filename(); +} +inline void FileTail::set_filename(const std::string& value) { + _internal_set_filename(value); + // @@protoc_insertion_point(field_set:v1.model.FileTail.filename) +} +inline std::string* FileTail::mutable_filename() { + // @@protoc_insertion_point(field_mutable:v1.model.FileTail.filename) + return _internal_mutable_filename(); +} +inline const std::string& FileTail::_internal_filename() const { return filename_.GetNoArena(); } -inline void FileTail::set_filename(const ::std::string& value) { +inline void FileTail::_internal_set_filename(const std::string& value) { - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.model.FileTail.filename) + filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void FileTail::set_filename(::std::string&& value) { +inline void FileTail::set_filename(std::string&& value) { filename_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::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)); + filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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(), + filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:v1.model.FileTail.filename) } -inline ::std::string* FileTail::mutable_filename() { +inline std::string* FileTail::_internal_mutable_filename() { - // @@protoc_insertion_point(field_mutable:v1.model.FileTail.filename) - return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return filename_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* FileTail::release_filename() { +inline std::string* FileTail::release_filename() { // @@protoc_insertion_point(field_release:v1.model.FileTail.filename) - return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return filename_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void FileTail::set_allocated_filename(::std::string* filename) { +inline void FileTail::set_allocated_filename(std::string* filename) { if (filename != nullptr) { } else { } - filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename); + filename_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filename); // @@protoc_insertion_point(field_set_allocated:v1.model.FileTail.filename) } -// .v1.model.FileFormat file_format = 2; +// .v1.model.FileFormat file_format = 2[json_name = "fileFormat"]; inline void FileTail::clear_file_format() { file_format_ = 0; } +inline ::v1::model::FileFormat FileTail::_internal_file_format() const { + return static_cast< ::v1::model::FileFormat >(file_format_); +} 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_); + return _internal_file_format(); } -inline void FileTail::set_file_format(::v1::model::FileFormat value) { +inline void FileTail::_internal_set_file_format(::v1::model::FileFormat value) { file_format_ = value; +} +inline void FileTail::set_file_format(::v1::model::FileFormat value) { + _internal_set_file_format(value); // @@protoc_insertion_point(field_set:v1.model.FileTail.file_format) } -// string time_key = 3; +// string time_key = 3[json_name = "timeKey"]; inline void FileTail::clear_time_key() { - time_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + time_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& FileTail::time_key() const { +inline const std::string& FileTail::time_key() const { // @@protoc_insertion_point(field_get:v1.model.FileTail.time_key) + return _internal_time_key(); +} +inline void FileTail::set_time_key(const std::string& value) { + _internal_set_time_key(value); + // @@protoc_insertion_point(field_set:v1.model.FileTail.time_key) +} +inline std::string* FileTail::mutable_time_key() { + // @@protoc_insertion_point(field_mutable:v1.model.FileTail.time_key) + return _internal_mutable_time_key(); +} +inline const std::string& FileTail::_internal_time_key() const { return time_key_.GetNoArena(); } -inline void FileTail::set_time_key(const ::std::string& value) { +inline void FileTail::_internal_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) + time_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void FileTail::set_time_key(::std::string&& value) { +inline void FileTail::set_time_key(std::string&& value) { time_key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::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)); + time_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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(), + time_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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() { +inline std::string* FileTail::_internal_mutable_time_key() { - // @@protoc_insertion_point(field_mutable:v1.model.FileTail.time_key) - return time_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return time_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* FileTail::release_time_key() { +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()); + return time_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void FileTail::set_allocated_time_key(::std::string* time_key) { +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); + time_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), time_key); // @@protoc_insertion_point(field_set_allocated:v1.model.FileTail.time_key) } -// string time_format = 4; +// string time_format = 4[json_name = "timeFormat"]; inline void FileTail::clear_time_format() { - time_format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + time_format_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& FileTail::time_format() const { +inline const std::string& FileTail::time_format() const { // @@protoc_insertion_point(field_get:v1.model.FileTail.time_format) + return _internal_time_format(); +} +inline void FileTail::set_time_format(const std::string& value) { + _internal_set_time_format(value); + // @@protoc_insertion_point(field_set:v1.model.FileTail.time_format) +} +inline std::string* FileTail::mutable_time_format() { + // @@protoc_insertion_point(field_mutable:v1.model.FileTail.time_format) + return _internal_mutable_time_format(); +} +inline const std::string& FileTail::_internal_time_format() const { return time_format_.GetNoArena(); } -inline void FileTail::set_time_format(const ::std::string& value) { +inline void FileTail::_internal_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) + time_format_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void FileTail::set_time_format(::std::string&& value) { +inline void FileTail::set_time_format(std::string&& value) { time_format_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::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)); + time_format_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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(), + time_format_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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() { +inline std::string* FileTail::_internal_mutable_time_format() { - // @@protoc_insertion_point(field_mutable:v1.model.FileTail.time_format) - return time_format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return time_format_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* FileTail::release_time_format() { +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()); + return time_format_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void FileTail::set_allocated_time_format(::std::string* time_format) { +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); + time_format_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), time_format); // @@protoc_insertion_point(field_set_allocated:v1.model.FileTail.time_format) } -// string regex = 5; +// string regex = 5[json_name = "regex"]; inline void FileTail::clear_regex() { - regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& FileTail::regex() const { +inline const std::string& FileTail::regex() const { // @@protoc_insertion_point(field_get:v1.model.FileTail.regex) + return _internal_regex(); +} +inline void FileTail::set_regex(const std::string& value) { + _internal_set_regex(value); + // @@protoc_insertion_point(field_set:v1.model.FileTail.regex) +} +inline std::string* FileTail::mutable_regex() { + // @@protoc_insertion_point(field_mutable:v1.model.FileTail.regex) + return _internal_mutable_regex(); +} +inline const std::string& FileTail::_internal_regex() const { return regex_.GetNoArena(); } -inline void FileTail::set_regex(const ::std::string& value) { +inline void FileTail::_internal_set_regex(const std::string& value) { - regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.model.FileTail.regex) + regex_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void FileTail::set_regex(::std::string&& value) { +inline void FileTail::set_regex(std::string&& value) { regex_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::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)); + regex_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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(), + regex_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:v1.model.FileTail.regex) } -inline ::std::string* FileTail::mutable_regex() { +inline std::string* FileTail::_internal_mutable_regex() { - // @@protoc_insertion_point(field_mutable:v1.model.FileTail.regex) - return regex_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return regex_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* FileTail::release_regex() { +inline std::string* FileTail::release_regex() { // @@protoc_insertion_point(field_release:v1.model.FileTail.regex) - return regex_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return regex_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void FileTail::set_allocated_regex(::std::string* regex) { +inline void FileTail::set_allocated_regex(std::string* regex) { if (regex != nullptr) { } else { } - regex_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), regex); + regex_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), regex); // @@protoc_insertion_point(field_set_allocated:v1.model.FileTail.regex) } @@ -2880,15 +4143,28 @@ inline void FileTail::set_allocated_regex(::std::string* regex) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) } // namespace model } // namespace v1 -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN +template <> struct is_proto_enum< ::v1::model::TeleopRosStreamConfigurationTopicType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::v1::model::TeleopRosStreamConfigurationTopicType>() { + return ::v1::model::TeleopRosStreamConfigurationTopicType_descriptor(); +} +template <> struct is_proto_enum< ::v1::model::TeleopRosStreamConfigurationMode> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::v1::model::TeleopRosStreamConfigurationMode>() { + return ::v1::model::TeleopRosStreamConfigurationMode_descriptor(); +} template <> struct is_proto_enum< ::v1::model::FileFormat> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::v1::model::FileFormat>() { @@ -2900,10 +4176,9 @@ inline const EnumDescriptor* GetEnumDescriptor< ::v1::model::FileType>() { return ::v1::model::FileType_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fconfig_2eproto +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fconfig_2eproto diff --git a/examples/cpp/protos/model/v1/config_mock.grpc.pb.h b/examples/cpp/protos/model/v1/config_mock.grpc.pb.h new file mode 100755 index 0000000..13dea90 --- /dev/null +++ b/examples/cpp/protos/model/v1/config_mock.grpc.pb.h @@ -0,0 +1,16 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/config.proto + +#include "protos/model/v1/config.pb.h" +#include "protos/model/v1/config.grpc.pb.h" + +#include +#include +#include +namespace v1 { +namespace model { + +} // namespace v1 +} // namespace model + diff --git a/examples/cpp/protos/model/v1/datapoint.grpc.pb.cc b/examples/cpp/protos/model/v1/datapoint.grpc.pb.cc new file mode 100755 index 0000000..28fb1ec --- /dev/null +++ b/examples/cpp/protos/model/v1/datapoint.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/datapoint.proto + +#include "protos/model/v1/datapoint.pb.h" +#include "protos/model/v1/datapoint.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace v1 { +namespace model { + +} // namespace v1 +} // namespace model + diff --git a/examples/cpp/protos/model/v1/datapoint.grpc.pb.h b/examples/cpp/protos/model/v1/datapoint.grpc.pb.h new file mode 100755 index 0000000..b139451 --- /dev/null +++ b/examples/cpp/protos/model/v1/datapoint.grpc.pb.h @@ -0,0 +1,46 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/datapoint.proto +#ifndef GRPC_protos_2fmodel_2fv1_2fdatapoint_2eproto__INCLUDED +#define GRPC_protos_2fmodel_2fv1_2fdatapoint_2eproto__INCLUDED + +#include "protos/model/v1/datapoint.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class CompletionQueue; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc + +namespace v1 { +namespace model { + +} // namespace model +} // namespace v1 + + +#endif // GRPC_protos_2fmodel_2fv1_2fdatapoint_2eproto__INCLUDED diff --git a/examples/cpp/protos/model/v1/datapoint.pb.cc b/examples/cpp/protos/model/v1/datapoint.pb.cc index 8226403..eb8f1f9 100755 --- a/examples/cpp/protos/model/v1/datapoint.pb.cc +++ b/examples/cpp/protos/model/v1/datapoint.pb.cc @@ -5,37 +5,35 @@ #include -#include #include #include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) #include - -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fdatapoint_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Datapoint_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fdatapoint_2eproto; -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_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_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_2ftext_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Text_protos_2fmodel_2fv1_2ftext_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fmath_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Bitset_protos_2fmodel_2fv1_2fmath_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fdatapoint_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Datapoint_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fdatapoint_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2ffile_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_File_protos_2fmodel_2fv1_2ffile_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fhealth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Health_protos_2fmodel_2fv1_2fhealth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fmedia_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Image_protos_2fmodel_2fv1_2fmedia_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fnavigation_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Localization_protos_2fmodel_2fv1_2fnavigation_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fnavigation_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Location_protos_2fmodel_2fv1_2fnavigation_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fmath_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MetricSet_protos_2fmodel_2fv1_2fmath_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fmath_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Numeric_protos_2fmodel_2fv1_2fmath_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fmedia_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PointCloud_protos_2fmodel_2fv1_2fmedia_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2ftext_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Text_protos_2fmodel_2fv1_2ftext_2eproto; namespace v1 { namespace model { class Datapoint_TagsEntry_DoNotUseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _Datapoint_TagsEntry_DoNotUse_default_instance_; class DatapointDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; const ::v1::model::Text* text_; const ::v1::model::Numeric* numeric_; const ::v1::model::MetricSet* metric_set_; @@ -49,32 +47,19 @@ class DatapointDefaultTypeInternal { } _Datapoint_default_instance_; } // namespace model } // namespace v1 -static void InitDefaultsDatapoint_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fdatapoint_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::v1::model::_Datapoint_TagsEntry_DoNotUse_default_instance_; - new (ptr) ::v1::model::Datapoint_TagsEntry_DoNotUse(); - } - ::v1::model::Datapoint_TagsEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Datapoint_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fdatapoint_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDatapoint_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fdatapoint_2eproto}, {}}; - -static void InitDefaultsDatapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto() { +static void InitDefaultsscc_info_Datapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::v1::model::_Datapoint_default_instance_; new (ptr) ::v1::model::Datapoint(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::v1::model::Datapoint::InitAsDefaultInstance(); } -::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}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<11> scc_info_Datapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 11, 0, InitDefaultsscc_info_Datapoint_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, @@ -87,16 +72,24 @@ ::google::protobuf::internal::SCCInfo<11> scc_info_Datapoint_protos_2fmodel_2fv1 &scc_info_Localization_protos_2fmodel_2fv1_2fnavigation_2eproto.base, &scc_info_Health_protos_2fmodel_2fv1_2fhealth_2eproto.base,}}; -void InitDefaults_protos_2fmodel_2fv1_2fdatapoint_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_Datapoint_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fdatapoint_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Datapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto.base); +static void InitDefaultsscc_info_Datapoint_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fdatapoint_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::v1::model::_Datapoint_TagsEntry_DoNotUse_default_instance_; + new (ptr) ::v1::model::Datapoint_TagsEntry_DoNotUse(); + } + ::v1::model::Datapoint_TagsEntry_DoNotUse::InitAsDefaultInstance(); } -::google::protobuf::Metadata file_level_metadata_protos_2fmodel_2fv1_2fdatapoint_2eproto[2]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto = nullptr; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Datapoint_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fdatapoint_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Datapoint_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fdatapoint_2eproto}, {}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protos_2fmodel_2fv1_2fdatapoint_2eproto[2]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2fdatapoint_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_protos_2fmodel_2fv1_2fdatapoint_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { PROTOBUF_FIELD_OFFSET(::v1::model::Datapoint_TagsEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::v1::model::Datapoint_TagsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -126,108 +119,83 @@ const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2fdatapoint_2ep offsetof(::v1::model::DatapointDefaultTypeInternal, health_), PROTOBUF_FIELD_OFFSET(::v1::model::Datapoint, data_), }; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 7, sizeof(::v1::model::Datapoint_TagsEntry_DoNotUse)}, { 9, -1, sizeof(::v1::model::Datapoint)}, }; -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::v1::model::_Datapoint_TagsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::v1::model::_Datapoint_default_instance_), +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::v1::model::_Datapoint_TagsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::v1::model::_Datapoint_default_instance_), }; -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_protos_2fmodel_2fv1_2fdatapoint_2eproto = { - {}, AddDescriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto, "protos/model/v1/datapoint.proto", schemas, - file_default_instances, TableStruct_protos_2fmodel_2fv1_2fdatapoint_2eproto::offsets, - file_level_metadata_protos_2fmodel_2fv1_2fdatapoint_2eproto, 2, file_level_enum_descriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto, file_level_service_descriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto, -}; - -const char descriptor_table_protodef_protos_2fmodel_2fv1_2fdatapoint_2eproto[] = +const char descriptor_table_protodef_protos_2fmodel_2fv1_2fdatapoint_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\037protos/model/v1/datapoint.proto\022\010v1.mo" "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\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" + "model/v1/media.proto\"\220\005\n\tDatapoint\022\026\n\006st" + "ream\030\001 \001(\tR\006stream\022\034\n\ttimestamp\030\002 \001(\003R\tt" + "imestamp\0221\n\004tags\030\003 \003(\0132\035.v1.model.Datapo" + "int.TagsEntryR\004tags\022$\n\004text\030\004 \001(\0132\016.v1.m" + "odel.TextH\000R\004text\022-\n\007numeric\030\005 \001(\0132\021.v1." + "model.NumericH\000R\007numeric\0224\n\nmetric_set\030\006" + " \001(\0132\023.v1.model.MetricSetH\000R\tmetricSet\022*" + "\n\006bitset\030\007 \001(\0132\020.v1.model.BitsetH\000R\006bits" + "et\022$\n\004file\030\010 \001(\0132\016.v1.model.FileH\000R\004file" + "\022\'\n\005image\030\t \001(\0132\017.v1.model.ImageH\000R\005imag" + "e\0227\n\013point_cloud\030\n \001(\0132\024.v1.model.PointC" + "loudH\000R\npointCloud\0220\n\010location\030\013 \001(\0132\022.v" + "1.model.LocationH\000R\010location\022<\n\014localiza" + "tion\030\014 \001(\0132\026.v1.model.LocalizationH\000R\014lo" + "calization\022*\n\006health\030\r \001(\0132\020.v1.model.He" + "althH\000R\006health\0327\n\tTagsEntry\022\020\n\003key\030\001 \001(\t" + "R\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001B\006\n\004dataB" + "+Z)github.com/FormantIO/genproto/go/v1/m" + "odelb\006proto3" ; -::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, 804, +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto_deps[6] = { + &::descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto, + &::descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto, + &::descriptor_table_protos_2fmodel_2fv1_2fmath_2eproto, + &::descriptor_table_protos_2fmodel_2fv1_2fmedia_2eproto, + &::descriptor_table_protos_2fmodel_2fv1_2fnavigation_2eproto, + &::descriptor_table_protos_2fmodel_2fv1_2ftext_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto_sccs[2] = { + &scc_info_Datapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto.base, + &scc_info_Datapoint_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fdatapoint_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto_once; +static bool descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto_initialized = false; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto = { + &descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto_initialized, descriptor_table_protodef_protos_2fmodel_2fv1_2fdatapoint_2eproto, "protos/model/v1/datapoint.proto", 932, + &descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto_once, descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto_sccs, descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto_deps, 2, 6, + schemas, file_default_instances, TableStruct_protos_2fmodel_2fv1_2fdatapoint_2eproto::offsets, + file_level_metadata_protos_2fmodel_2fv1_2fdatapoint_2eproto, 2, file_level_enum_descriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto, file_level_service_descriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto, }; - -void AddDescriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto() { - 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_2ftext_2eproto, - ::AddDescriptors_protos_2fmodel_2fv1_2fmedia_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto, deps, 6); -} // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_protos_2fmodel_2fv1_2fdatapoint_2eproto = []() { AddDescriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto(); return true; }(); +static bool dynamic_init_dummy_protos_2fmodel_2fv1_2fdatapoint_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto), true); namespace v1 { namespace model { // =================================================================== Datapoint_TagsEntry_DoNotUse::Datapoint_TagsEntry_DoNotUse() {} -Datapoint_TagsEntry_DoNotUse::Datapoint_TagsEntry_DoNotUse(::google::protobuf::Arena* arena) +Datapoint_TagsEntry_DoNotUse::Datapoint_TagsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} void Datapoint_TagsEntry_DoNotUse::MergeFrom(const Datapoint_TagsEntry_DoNotUse& other) { MergeFromInternal(other); } -::google::protobuf::Metadata Datapoint_TagsEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fdatapoint_2eproto); - return ::file_level_metadata_protos_2fmodel_2fv1_2fdatapoint_2eproto[0]; +::PROTOBUF_NAMESPACE_ID::Metadata Datapoint_TagsEntry_DoNotUse::GetMetadata() const { + return GetMetadataStatic(); } void Datapoint_TagsEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Datapoint_TagsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - Datapoint_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.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")); -#undef DO_ - return true; + const ::PROTOBUF_NAMESPACE_ID::Message& other) { + ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER // =================================================================== @@ -254,7 +222,7 @@ void Datapoint::InitAsDefaultInstance() { ::v1::model::_Datapoint_default_instance_.health_ = const_cast< ::v1::model::Health*>( ::v1::model::Health::internal_default_instance()); } -class Datapoint::HasBitSetters { +class Datapoint::_Internal { public: static const ::v1::model::Text& text(const Datapoint* msg); static const ::v1::model::Numeric& numeric(const Datapoint* msg); @@ -269,52 +237,52 @@ class Datapoint::HasBitSetters { }; const ::v1::model::Text& -Datapoint::HasBitSetters::text(const Datapoint* msg) { +Datapoint::_Internal::text(const Datapoint* msg) { return *msg->data_.text_; } const ::v1::model::Numeric& -Datapoint::HasBitSetters::numeric(const Datapoint* msg) { +Datapoint::_Internal::numeric(const Datapoint* msg) { return *msg->data_.numeric_; } const ::v1::model::MetricSet& -Datapoint::HasBitSetters::metric_set(const Datapoint* msg) { +Datapoint::_Internal::metric_set(const Datapoint* msg) { return *msg->data_.metric_set_; } const ::v1::model::Bitset& -Datapoint::HasBitSetters::bitset(const Datapoint* msg) { +Datapoint::_Internal::bitset(const Datapoint* msg) { return *msg->data_.bitset_; } const ::v1::model::File& -Datapoint::HasBitSetters::file(const Datapoint* msg) { +Datapoint::_Internal::file(const Datapoint* msg) { return *msg->data_.file_; } const ::v1::model::Image& -Datapoint::HasBitSetters::image(const Datapoint* msg) { +Datapoint::_Internal::image(const Datapoint* msg) { return *msg->data_.image_; } const ::v1::model::PointCloud& -Datapoint::HasBitSetters::point_cloud(const Datapoint* msg) { +Datapoint::_Internal::point_cloud(const Datapoint* msg) { return *msg->data_.point_cloud_; } const ::v1::model::Location& -Datapoint::HasBitSetters::location(const Datapoint* msg) { +Datapoint::_Internal::location(const Datapoint* msg) { return *msg->data_.location_; } const ::v1::model::Localization& -Datapoint::HasBitSetters::localization(const Datapoint* msg) { +Datapoint::_Internal::localization(const Datapoint* msg) { return *msg->data_.localization_; } const ::v1::model::Health& -Datapoint::HasBitSetters::health(const Datapoint* msg) { +Datapoint::_Internal::health(const Datapoint* msg) { return *msg->data_.health_; } void Datapoint::set_allocated_text(::v1::model::Text* text) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (text) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - text = ::google::protobuf::internal::GetOwnedMessage( + text = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, text, submessage_arena); } set_has_text(); @@ -323,18 +291,18 @@ void Datapoint::set_allocated_text(::v1::model::Text* text) { // @@protoc_insertion_point(field_set_allocated:v1.model.Datapoint.text) } void Datapoint::clear_text() { - if (has_text()) { + if (_internal_has_text()) { delete data_.text_; clear_has_data(); } } void Datapoint::set_allocated_numeric(::v1::model::Numeric* numeric) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (numeric) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - numeric = ::google::protobuf::internal::GetOwnedMessage( + numeric = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, numeric, submessage_arena); } set_has_numeric(); @@ -343,18 +311,18 @@ void Datapoint::set_allocated_numeric(::v1::model::Numeric* numeric) { // @@protoc_insertion_point(field_set_allocated:v1.model.Datapoint.numeric) } void Datapoint::clear_numeric() { - if (has_numeric()) { + if (_internal_has_numeric()) { delete data_.numeric_; clear_has_data(); } } void Datapoint::set_allocated_metric_set(::v1::model::MetricSet* metric_set) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (metric_set) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - metric_set = ::google::protobuf::internal::GetOwnedMessage( + metric_set = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, metric_set, submessage_arena); } set_has_metric_set(); @@ -363,18 +331,18 @@ void Datapoint::set_allocated_metric_set(::v1::model::MetricSet* metric_set) { // @@protoc_insertion_point(field_set_allocated:v1.model.Datapoint.metric_set) } void Datapoint::clear_metric_set() { - if (has_metric_set()) { + if (_internal_has_metric_set()) { delete data_.metric_set_; clear_has_data(); } } void Datapoint::set_allocated_bitset(::v1::model::Bitset* bitset) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (bitset) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - bitset = ::google::protobuf::internal::GetOwnedMessage( + bitset = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, bitset, submessage_arena); } set_has_bitset(); @@ -383,18 +351,18 @@ void Datapoint::set_allocated_bitset(::v1::model::Bitset* bitset) { // @@protoc_insertion_point(field_set_allocated:v1.model.Datapoint.bitset) } void Datapoint::clear_bitset() { - if (has_bitset()) { + if (_internal_has_bitset()) { delete data_.bitset_; clear_has_data(); } } void Datapoint::set_allocated_file(::v1::model::File* file) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (file) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - file = ::google::protobuf::internal::GetOwnedMessage( + file = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, file, submessage_arena); } set_has_file(); @@ -403,18 +371,18 @@ void Datapoint::set_allocated_file(::v1::model::File* file) { // @@protoc_insertion_point(field_set_allocated:v1.model.Datapoint.file) } void Datapoint::clear_file() { - if (has_file()) { + if (_internal_has_file()) { delete data_.file_; clear_has_data(); } } void Datapoint::set_allocated_image(::v1::model::Image* image) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (image) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - image = ::google::protobuf::internal::GetOwnedMessage( + image = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, image, submessage_arena); } set_has_image(); @@ -423,18 +391,18 @@ void Datapoint::set_allocated_image(::v1::model::Image* image) { // @@protoc_insertion_point(field_set_allocated:v1.model.Datapoint.image) } void Datapoint::clear_image() { - if (has_image()) { + if (_internal_has_image()) { delete data_.image_; clear_has_data(); } } void Datapoint::set_allocated_point_cloud(::v1::model::PointCloud* point_cloud) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (point_cloud) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - point_cloud = ::google::protobuf::internal::GetOwnedMessage( + point_cloud = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, point_cloud, submessage_arena); } set_has_point_cloud(); @@ -443,18 +411,18 @@ void Datapoint::set_allocated_point_cloud(::v1::model::PointCloud* point_cloud) // @@protoc_insertion_point(field_set_allocated:v1.model.Datapoint.point_cloud) } void Datapoint::clear_point_cloud() { - if (has_point_cloud()) { + if (_internal_has_point_cloud()) { delete data_.point_cloud_; clear_has_data(); } } void Datapoint::set_allocated_location(::v1::model::Location* location) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (location) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - location = ::google::protobuf::internal::GetOwnedMessage( + location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, location, submessage_arena); } set_has_location(); @@ -463,18 +431,18 @@ void Datapoint::set_allocated_location(::v1::model::Location* location) { // @@protoc_insertion_point(field_set_allocated:v1.model.Datapoint.location) } void Datapoint::clear_location() { - if (has_location()) { + if (_internal_has_location()) { delete data_.location_; clear_has_data(); } } void Datapoint::set_allocated_localization(::v1::model::Localization* localization) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (localization) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - localization = ::google::protobuf::internal::GetOwnedMessage( + localization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, localization, submessage_arena); } set_has_localization(); @@ -483,18 +451,18 @@ void Datapoint::set_allocated_localization(::v1::model::Localization* localizati // @@protoc_insertion_point(field_set_allocated:v1.model.Datapoint.localization) } void Datapoint::clear_localization() { - if (has_localization()) { + if (_internal_has_localization()) { delete data_.localization_; clear_has_data(); } } void Datapoint::set_allocated_health(::v1::model::Health* health) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (health) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - health = ::google::protobuf::internal::GetOwnedMessage( + health = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, health, submessage_arena); } set_has_health(); @@ -503,82 +471,66 @@ void Datapoint::set_allocated_health(::v1::model::Health* health) { // @@protoc_insertion_point(field_set_allocated:v1.model.Datapoint.health) } void Datapoint::clear_health() { - if (has_health()) { + if (_internal_has_health()) { delete data_.health_; clear_has_data(); } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Datapoint::kStreamFieldNumber; -const int Datapoint::kTimestampFieldNumber; -const int Datapoint::kTagsFieldNumber; -const int Datapoint::kTextFieldNumber; -const int Datapoint::kNumericFieldNumber; -const int Datapoint::kMetricSetFieldNumber; -const int Datapoint::kBitsetFieldNumber; -const int Datapoint::kFileFieldNumber; -const int Datapoint::kImageFieldNumber; -const int Datapoint::kPointCloudFieldNumber; -const int Datapoint::kLocationFieldNumber; -const int Datapoint::kLocalizationFieldNumber; -const int Datapoint::kHealthFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - Datapoint::Datapoint() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.model.Datapoint) } Datapoint::Datapoint(const Datapoint& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); tags_.MergeFrom(from.tags_); - stream_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.stream().size() > 0) { - stream_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_); + stream_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_stream().empty()) { + stream_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.stream_); } timestamp_ = from.timestamp_; clear_has_data(); switch (from.data_case()) { case kText: { - mutable_text()->::v1::model::Text::MergeFrom(from.text()); + _internal_mutable_text()->::v1::model::Text::MergeFrom(from._internal_text()); break; } case kNumeric: { - mutable_numeric()->::v1::model::Numeric::MergeFrom(from.numeric()); + _internal_mutable_numeric()->::v1::model::Numeric::MergeFrom(from._internal_numeric()); break; } case kMetricSet: { - mutable_metric_set()->::v1::model::MetricSet::MergeFrom(from.metric_set()); + _internal_mutable_metric_set()->::v1::model::MetricSet::MergeFrom(from._internal_metric_set()); break; } case kBitset: { - mutable_bitset()->::v1::model::Bitset::MergeFrom(from.bitset()); + _internal_mutable_bitset()->::v1::model::Bitset::MergeFrom(from._internal_bitset()); break; } case kFile: { - mutable_file()->::v1::model::File::MergeFrom(from.file()); + _internal_mutable_file()->::v1::model::File::MergeFrom(from._internal_file()); break; } case kImage: { - mutable_image()->::v1::model::Image::MergeFrom(from.image()); + _internal_mutable_image()->::v1::model::Image::MergeFrom(from._internal_image()); break; } case kPointCloud: { - mutable_point_cloud()->::v1::model::PointCloud::MergeFrom(from.point_cloud()); + _internal_mutable_point_cloud()->::v1::model::PointCloud::MergeFrom(from._internal_point_cloud()); break; } case kLocation: { - mutable_location()->::v1::model::Location::MergeFrom(from.location()); + _internal_mutable_location()->::v1::model::Location::MergeFrom(from._internal_location()); break; } case kLocalization: { - mutable_localization()->::v1::model::Localization::MergeFrom(from.localization()); + _internal_mutable_localization()->::v1::model::Localization::MergeFrom(from._internal_localization()); break; } case kHealth: { - mutable_health()->::v1::model::Health::MergeFrom(from.health()); + _internal_mutable_health()->::v1::model::Health::MergeFrom(from._internal_health()); break; } case DATA_NOT_SET: { @@ -589,9 +541,8 @@ Datapoint::Datapoint(const Datapoint& from) } void Datapoint::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Datapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto.base); - stream_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Datapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto.base); + stream_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); timestamp_ = PROTOBUF_LONGLONG(0); clear_has_data(); } @@ -602,7 +553,7 @@ Datapoint::~Datapoint() { } void Datapoint::SharedDtor() { - stream_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + stream_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (has_data()) { clear_data(); } @@ -612,7 +563,7 @@ void Datapoint::SetCachedSize(int size) const { _cached_size_.Set(size); } const Datapoint& Datapoint::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Datapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Datapoint_protos_2fmodel_2fv1_2fdatapoint_2eproto.base); return *internal_default_instance(); } @@ -670,702 +621,292 @@ void Datapoint::clear_data() { void Datapoint::Clear() { // @@protoc_insertion_point(message_clear_start:v1.model.Datapoint) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; tags_.Clear(); - stream_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + stream_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); timestamp_ = PROTOBUF_LONGLONG(0); clear_data(); _internal_metadata_.Clear(); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Datapoint::_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); +const char* Datapoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { - // string stream = 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.Datapoint.stream"); - object = msg->mutable_stream(); - 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; - } - // int64 timestamp = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_timestamp(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // map tags = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) 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) == 26 && (ptr += 1)); - break; - } - // .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::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.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::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.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::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.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::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.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::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.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::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.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::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.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::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.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::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.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::Health::_InternalParse; - object = msg->mutable_health(); - 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; - } + // string stream = 1[json_name = "stream"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_stream(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.Datapoint.stream")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 timestamp = 2[json_name = "timestamp"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // map tags = 3[json_name = "tags"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&tags_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else goto handle_unusual; + continue; + // .v1.model.Text text = 4[json_name = "text"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_text(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.Numeric numeric = 5[json_name = "numeric"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_numeric(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.MetricSet metric_set = 6[json_name = "metricSet"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_metric_set(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.Bitset bitset = 7[json_name = "bitset"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_bitset(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.File file = 8[json_name = "file"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_file(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.Image image = 9[json_name = "image"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_image(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.PointCloud point_cloud = 10[json_name = "pointCloud"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_point_cloud(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.Location location = 11[json_name = "location"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_location(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.Localization localization = 12[json_name = "localization"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_localization(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .v1.model.Health health = 13[json_name = "health"]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_health(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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 Datapoint::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.Datapoint) - 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 stream = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_stream())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->stream().data(), static_cast(this->stream().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "v1.model.Datapoint.stream")); - } else { - goto handle_unusual; - } - break; - } - - // int64 timestamp = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, ×tamp_))); - } else { - goto handle_unusual; - } - break; - } - - // map tags = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 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.Text text = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_text())); - } else { - goto handle_unusual; - } - break; - } - - // .v1.model.Numeric numeric = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_numeric())); - } else { - goto handle_unusual; - } - break; - } - - // .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_metric_set())); - } else { - goto handle_unusual; - } - break; - } - - // .v1.model.Bitset bitset = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_bitset())); - } else { - goto handle_unusual; - } - break; - } - - // .v1.model.File file = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_file())); - } else { - goto handle_unusual; - } - break; - } - - // .v1.model.Image image = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_image())); - } else { - goto handle_unusual; - } - break; - } - - // .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_point_cloud())); - } else { - goto handle_unusual; - } - break; - } - - // .v1.model.Location location = 11; - case 11: { - if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_location())); - } else { - goto handle_unusual; - } - break; - } - - // .v1.model.Localization localization = 12; - case 12: { - if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_localization())); - } else { - goto handle_unusual; - } - break; - } - - // .v1.model.Health health = 13; - case 13: { - if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_health())); - } 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.Datapoint) - return true; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.model.Datapoint) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Datapoint::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.model.Datapoint) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string stream = 1; - if (this->stream().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->stream().data(), static_cast(this->stream().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "v1.model.Datapoint.stream"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->stream(), output); - } - - // int64 timestamp = 2; - if (this->timestamp() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->timestamp(), output); - } - - // map tags = 3; - 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.Datapoint.TagsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "v1.model.Datapoint.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(3, *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(3, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - // .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( - 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()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:v1.model.Datapoint) + ptr = nullptr; + goto success; +#undef CHK_ } -::google::protobuf::uint8* Datapoint::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* Datapoint::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.model.Datapoint) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string stream = 1; + // string stream = 1[json_name = "stream"]; if (this->stream().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->stream().data(), static_cast(this->stream().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_stream().data(), static_cast(this->_internal_stream().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.Datapoint.stream"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->stream(), target); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_stream(), target); } - // int64 timestamp = 2; + // int64 timestamp = 2[json_name = "timestamp"]; if (this->timestamp() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->timestamp(), target); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_timestamp(), target); } - // map tags = 3; - if (!this->tags().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + // map tags = 3[json_name = "tags"]; + if (!this->_internal_tags().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer ConstPtr; typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; + typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; struct Utf8Check { static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.Datapoint.TagsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.Datapoint.TagsEntry.value"); } }; - if (false && - this->tags().size() > 1) { + if (stream->IsSerializationDeterministic() && + this->_internal_tags().size() > 1) { ::std::unique_ptr items( - new SortItem[this->tags().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + new SortItem[this->_internal_tags().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::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) { + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_tags().begin(); + it != this->_internal_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(3, *entry, target); + target = Datapoint_TagsEntry_DoNotUse::Funcs::InternalSerialize(3, items[static_cast(i)]->first, items[static_cast(i)]->second, target, stream); 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(3, *entry, target); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_tags().begin(); + it != this->_internal_tags().end(); ++it) { + target = Datapoint_TagsEntry_DoNotUse::Funcs::InternalSerialize(3, it->first, it->second, target, stream); Utf8Check::Check(&(*it)); } } } - // .v1.model.Text text = 4; - if (has_text()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::text(this), target); + // .v1.model.Text text = 4[json_name = "text"]; + if (_internal_has_text()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::text(this), target, stream); } - // .v1.model.Numeric numeric = 5; - if (has_numeric()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::numeric(this), target); + // .v1.model.Numeric numeric = 5[json_name = "numeric"]; + if (_internal_has_numeric()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 5, _Internal::numeric(this), target, stream); } - // .v1.model.MetricSet metric_set = 6; - if (has_metric_set()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::metric_set(this), target); + // .v1.model.MetricSet metric_set = 6[json_name = "metricSet"]; + if (_internal_has_metric_set()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 6, _Internal::metric_set(this), target, stream); } - // .v1.model.Bitset bitset = 7; - if (has_bitset()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::bitset(this), target); + // .v1.model.Bitset bitset = 7[json_name = "bitset"]; + if (_internal_has_bitset()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 7, _Internal::bitset(this), target, stream); } - // .v1.model.File file = 8; - if (has_file()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::file(this), target); + // .v1.model.File file = 8[json_name = "file"]; + if (_internal_has_file()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 8, _Internal::file(this), target, stream); } - // .v1.model.Image image = 9; - if (has_image()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 9, HasBitSetters::image(this), target); + // .v1.model.Image image = 9[json_name = "image"]; + if (_internal_has_image()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 9, _Internal::image(this), target, stream); } - // .v1.model.PointCloud point_cloud = 10; - if (has_point_cloud()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 10, HasBitSetters::point_cloud(this), target); + // .v1.model.PointCloud point_cloud = 10[json_name = "pointCloud"]; + if (_internal_has_point_cloud()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 10, _Internal::point_cloud(this), target, stream); } - // .v1.model.Location location = 11; - if (has_location()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 11, HasBitSetters::location(this), target); + // .v1.model.Location location = 11[json_name = "location"]; + if (_internal_has_location()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 11, _Internal::location(this), target, stream); } - // .v1.model.Localization localization = 12; - if (has_localization()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 12, HasBitSetters::localization(this), target); + // .v1.model.Localization localization = 12[json_name = "localization"]; + if (_internal_has_localization()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 12, _Internal::localization(this), target, stream); } - // .v1.model.Health health = 13; - if (has_health()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 13, HasBitSetters::health(this), target); + // .v1.model.Health health = 13[json_name = "health"]; + if (_internal_has_health()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 13, _Internal::health(this), target, stream); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.model.Datapoint) return target; @@ -1375,111 +916,101 @@ size_t Datapoint::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:v1.model.Datapoint) 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // map tags = 3; + // map tags = 3[json_name = "tags"]; 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); - } + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_tags_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_tags().begin(); + it != this->_internal_tags().end(); ++it) { + total_size += Datapoint_TagsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } - // string stream = 1; + // string stream = 1[json_name = "stream"]; if (this->stream().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->stream()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_stream()); } - // int64 timestamp = 2; + // int64 timestamp = 2[json_name = "timestamp"]; if (this->timestamp() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->timestamp()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_timestamp()); } switch (data_case()) { - // .v1.model.Text text = 4; + // .v1.model.Text text = 4[json_name = "text"]; case kText: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *data_.text_); break; } - // .v1.model.Numeric numeric = 5; + // .v1.model.Numeric numeric = 5[json_name = "numeric"]; case kNumeric: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *data_.numeric_); break; } - // .v1.model.MetricSet metric_set = 6; + // .v1.model.MetricSet metric_set = 6[json_name = "metricSet"]; case kMetricSet: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *data_.metric_set_); break; } - // .v1.model.Bitset bitset = 7; + // .v1.model.Bitset bitset = 7[json_name = "bitset"]; case kBitset: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *data_.bitset_); break; } - // .v1.model.File file = 8; + // .v1.model.File file = 8[json_name = "file"]; case kFile: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *data_.file_); break; } - // .v1.model.Image image = 9; + // .v1.model.Image image = 9[json_name = "image"]; case kImage: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *data_.image_); break; } - // .v1.model.PointCloud point_cloud = 10; + // .v1.model.PointCloud point_cloud = 10[json_name = "pointCloud"]; case kPointCloud: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *data_.point_cloud_); break; } - // .v1.model.Location location = 11; + // .v1.model.Location location = 11[json_name = "location"]; case kLocation: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *data_.location_); break; } - // .v1.model.Localization localization = 12; + // .v1.model.Localization localization = 12[json_name = "localization"]; case kLocalization: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *data_.localization_); break; } - // .v1.model.Health health = 13; + // .v1.model.Health health = 13[json_name = "health"]; case kHealth: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *data_.health_); break; } @@ -1487,20 +1018,24 @@ size_t Datapoint::ByteSizeLong() const { break; } } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void Datapoint::MergeFrom(const ::google::protobuf::Message& from) { +void Datapoint::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.model.Datapoint) GOOGLE_DCHECK_NE(&from, this); const Datapoint* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.Datapoint) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.Datapoint) MergeFrom(*source); @@ -1511,56 +1046,56 @@ void Datapoint::MergeFrom(const Datapoint& from) { // @@protoc_insertion_point(class_specific_merge_from_start:v1.model.Datapoint) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; tags_.MergeFrom(from.tags_); if (from.stream().size() > 0) { - stream_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_); + stream_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.stream_); } if (from.timestamp() != 0) { - set_timestamp(from.timestamp()); + _internal_set_timestamp(from._internal_timestamp()); } switch (from.data_case()) { case kText: { - mutable_text()->::v1::model::Text::MergeFrom(from.text()); + _internal_mutable_text()->::v1::model::Text::MergeFrom(from._internal_text()); break; } case kNumeric: { - mutable_numeric()->::v1::model::Numeric::MergeFrom(from.numeric()); + _internal_mutable_numeric()->::v1::model::Numeric::MergeFrom(from._internal_numeric()); break; } case kMetricSet: { - mutable_metric_set()->::v1::model::MetricSet::MergeFrom(from.metric_set()); + _internal_mutable_metric_set()->::v1::model::MetricSet::MergeFrom(from._internal_metric_set()); break; } case kBitset: { - mutable_bitset()->::v1::model::Bitset::MergeFrom(from.bitset()); + _internal_mutable_bitset()->::v1::model::Bitset::MergeFrom(from._internal_bitset()); break; } case kFile: { - mutable_file()->::v1::model::File::MergeFrom(from.file()); + _internal_mutable_file()->::v1::model::File::MergeFrom(from._internal_file()); break; } case kImage: { - mutable_image()->::v1::model::Image::MergeFrom(from.image()); + _internal_mutable_image()->::v1::model::Image::MergeFrom(from._internal_image()); break; } case kPointCloud: { - mutable_point_cloud()->::v1::model::PointCloud::MergeFrom(from.point_cloud()); + _internal_mutable_point_cloud()->::v1::model::PointCloud::MergeFrom(from._internal_point_cloud()); break; } case kLocation: { - mutable_location()->::v1::model::Location::MergeFrom(from.location()); + _internal_mutable_location()->::v1::model::Location::MergeFrom(from._internal_location()); break; } case kLocalization: { - mutable_localization()->::v1::model::Localization::MergeFrom(from.localization()); + _internal_mutable_localization()->::v1::model::Localization::MergeFrom(from._internal_localization()); break; } case kHealth: { - mutable_health()->::v1::model::Health::MergeFrom(from.health()); + _internal_mutable_health()->::v1::model::Health::MergeFrom(from._internal_health()); break; } case DATA_NOT_SET: { @@ -1569,7 +1104,7 @@ void Datapoint::MergeFrom(const Datapoint& from) { } } -void Datapoint::CopyFrom(const ::google::protobuf::Message& from) { +void Datapoint::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.model.Datapoint) if (&from == this) return; Clear(); @@ -1587,40 +1122,33 @@ bool Datapoint::IsInitialized() const { return true; } -void Datapoint::Swap(Datapoint* other) { - if (other == this) return; - InternalSwap(other); -} void Datapoint::InternalSwap(Datapoint* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); tags_.Swap(&other->tags_); - stream_.Swap(&other->stream_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + stream_.Swap(&other->stream_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(timestamp_, other->timestamp_); swap(data_, other->data_); swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata Datapoint::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fdatapoint_2eproto); - return ::file_level_metadata_protos_2fmodel_2fv1_2fdatapoint_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata Datapoint::GetMetadata() const { + return GetMetadataStatic(); } // @@protoc_insertion_point(namespace_scope) } // namespace model } // namespace v1 -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::v1::model::Datapoint_TagsEntry_DoNotUse* Arena::CreateMaybeMessage< ::v1::model::Datapoint_TagsEntry_DoNotUse >(Arena* arena) { return Arena::CreateInternal< ::v1::model::Datapoint_TagsEntry_DoNotUse >(arena); } template<> PROTOBUF_NOINLINE ::v1::model::Datapoint* Arena::CreateMaybeMessage< ::v1::model::Datapoint >(Arena* arena) { return Arena::CreateInternal< ::v1::model::Datapoint >(arena); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include diff --git a/examples/cpp/protos/model/v1/datapoint.pb.h b/examples/cpp/protos/model/v1/datapoint.pb.h index 472fb0e..7b87c15 100755 --- a/examples/cpp/protos/model/v1/datapoint.pb.h +++ b/examples/cpp/protos/model/v1/datapoint.pb.h @@ -1,19 +1,19 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: protos/model/v1/datapoint.proto -#ifndef PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fdatapoint_2eproto -#define PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fdatapoint_2eproto +#ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fdatapoint_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fdatapoint_2eproto #include #include #include -#if PROTOBUF_VERSION < 3007000 +#if PROTOBUF_VERSION < 3011000 #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 +#if 3011000 < 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. @@ -27,6 +27,7 @@ #include #include #include +#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -43,20 +44,25 @@ // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fdatapoint_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_protos_2fmodel_2fv1_2fdatapoint_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[2] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] 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[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; -void AddDescriptors_protos_2fmodel_2fv1_2fdatapoint_2eproto(); +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto; namespace v1 { namespace model { class Datapoint; @@ -67,59 +73,65 @@ class Datapoint_TagsEntry_DoNotUseDefaultTypeInternal; extern Datapoint_TagsEntry_DoNotUseDefaultTypeInternal _Datapoint_TagsEntry_DoNotUse_default_instance_; } // namespace model } // namespace v1 -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN template<> ::v1::model::Datapoint* Arena::CreateMaybeMessage<::v1::model::Datapoint>(Arena*); template<> ::v1::model::Datapoint_TagsEntry_DoNotUse* Arena::CreateMaybeMessage<::v1::model::Datapoint_TagsEntry_DoNotUse>(Arena*); -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE namespace v1 { namespace model { // =================================================================== -class Datapoint_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; Datapoint_TagsEntry_DoNotUse(); - Datapoint_TagsEntry_DoNotUse(::google::protobuf::Arena* arena); + Datapoint_TagsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); void MergeFrom(const Datapoint_TagsEntry_DoNotUse& other); static const Datapoint_TagsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Datapoint_TagsEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "v1.model.Datapoint.TagsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "v1.model.Datapoint.TagsEntry.value"); + } + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto.file_level_metadata[0]; + } + + public: }; // ------------------------------------------------------------------- class Datapoint : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Datapoint) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.model.Datapoint) */ { public: Datapoint(); virtual ~Datapoint(); Datapoint(const Datapoint& from); - - inline Datapoint& operator=(const Datapoint& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 Datapoint(Datapoint&& from) noexcept : Datapoint() { *this = ::std::move(from); } + inline Datapoint& operator=(const Datapoint& from) { + CopyFrom(from); + return *this; + } inline Datapoint& operator=(Datapoint&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -128,9 +140,15 @@ class Datapoint : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const Datapoint& default_instance(); @@ -156,10 +174,13 @@ class Datapoint : static constexpr int kIndexInFileMessages = 1; - void Swap(Datapoint* other); friend void swap(Datapoint& a, Datapoint& b) { a.Swap(&b); } + inline void Swap(Datapoint* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -167,37 +188,33 @@ class Datapoint : return CreateMaybeMessage(nullptr); } - Datapoint* New(::google::protobuf::Arena* arena) const final { + Datapoint* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Datapoint& from); void MergeFrom(const Datapoint& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Datapoint* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.Datapoint"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -205,137 +222,232 @@ class Datapoint : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fdatapoint_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // map tags = 3; + enum : int { + kTagsFieldNumber = 3, + kStreamFieldNumber = 1, + kTimestampFieldNumber = 2, + kTextFieldNumber = 4, + kNumericFieldNumber = 5, + kMetricSetFieldNumber = 6, + kBitsetFieldNumber = 7, + kFileFieldNumber = 8, + kImageFieldNumber = 9, + kPointCloudFieldNumber = 10, + kLocationFieldNumber = 11, + kLocalizationFieldNumber = 12, + kHealthFieldNumber = 13, + }; + // map tags = 3[json_name = "tags"]; int tags_size() const; + private: + int _internal_tags_size() const; + public: void clear_tags(); - static const int kTagsFieldNumber = 3; - const ::google::protobuf::Map< ::std::string, ::std::string >& + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_tags() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_tags(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& tags() const; - ::google::protobuf::Map< ::std::string, ::std::string >* + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* mutable_tags(); - // string stream = 1; + // string stream = 1[json_name = "stream"]; void clear_stream(); - static const int kStreamFieldNumber = 1; - const ::std::string& stream() const; - void set_stream(const ::std::string& value); - #if LANG_CXX11 - void set_stream(::std::string&& value); - #endif + const std::string& stream() const; + void set_stream(const std::string& value); + void set_stream(std::string&& value); void set_stream(const char* value); void set_stream(const char* value, size_t size); - ::std::string* mutable_stream(); - ::std::string* release_stream(); - void set_allocated_stream(::std::string* stream); + std::string* mutable_stream(); + std::string* release_stream(); + void set_allocated_stream(std::string* stream); + private: + const std::string& _internal_stream() const; + void _internal_set_stream(const std::string& value); + std::string* _internal_mutable_stream(); + public: - // int64 timestamp = 2; + // int64 timestamp = 2[json_name = "timestamp"]; void clear_timestamp(); - static const int kTimestampFieldNumber = 2; - ::google::protobuf::int64 timestamp() const; - void set_timestamp(::google::protobuf::int64 value); + ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; + void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_timestamp() const; + void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: - // .v1.model.Text text = 4; + // .v1.model.Text text = 4[json_name = "text"]; bool has_text() const; + private: + bool _internal_has_text() const; + public: void clear_text(); - 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); + private: + const ::v1::model::Text& _internal_text() const; + ::v1::model::Text* _internal_mutable_text(); + public: - // .v1.model.Numeric numeric = 5; + // .v1.model.Numeric numeric = 5[json_name = "numeric"]; bool has_numeric() const; + private: + bool _internal_has_numeric() const; + public: void clear_numeric(); - 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); + private: + const ::v1::model::Numeric& _internal_numeric() const; + ::v1::model::Numeric* _internal_mutable_numeric(); + public: - // .v1.model.MetricSet metric_set = 6; + // .v1.model.MetricSet metric_set = 6[json_name = "metricSet"]; bool has_metric_set() const; + private: + bool _internal_has_metric_set() const; + public: void clear_metric_set(); - 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); + private: + const ::v1::model::MetricSet& _internal_metric_set() const; + ::v1::model::MetricSet* _internal_mutable_metric_set(); + public: - // .v1.model.Bitset bitset = 7; + // .v1.model.Bitset bitset = 7[json_name = "bitset"]; bool has_bitset() const; + private: + bool _internal_has_bitset() const; + public: void clear_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); + private: + const ::v1::model::Bitset& _internal_bitset() const; + ::v1::model::Bitset* _internal_mutable_bitset(); + public: - // .v1.model.File file = 8; + // .v1.model.File file = 8[json_name = "file"]; bool has_file() const; + private: + bool _internal_has_file() const; + public: void clear_file(); - 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); + private: + const ::v1::model::File& _internal_file() const; + ::v1::model::File* _internal_mutable_file(); + public: - // .v1.model.Image image = 9; + // .v1.model.Image image = 9[json_name = "image"]; bool has_image() const; + private: + bool _internal_has_image() const; + public: void clear_image(); - 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); + private: + const ::v1::model::Image& _internal_image() const; + ::v1::model::Image* _internal_mutable_image(); + public: - // .v1.model.PointCloud point_cloud = 10; + // .v1.model.PointCloud point_cloud = 10[json_name = "pointCloud"]; bool has_point_cloud() const; + private: + bool _internal_has_point_cloud() const; + public: void clear_point_cloud(); - 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); + private: + const ::v1::model::PointCloud& _internal_point_cloud() const; + ::v1::model::PointCloud* _internal_mutable_point_cloud(); + public: - // .v1.model.Location location = 11; + // .v1.model.Location location = 11[json_name = "location"]; bool has_location() const; + private: + bool _internal_has_location() const; + public: void clear_location(); - 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); + private: + const ::v1::model::Location& _internal_location() const; + ::v1::model::Location* _internal_mutable_location(); + public: - // .v1.model.Localization localization = 12; + // .v1.model.Localization localization = 12[json_name = "localization"]; bool has_localization() const; + private: + bool _internal_has_localization() const; + public: void clear_localization(); - 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); + private: + const ::v1::model::Localization& _internal_localization() const; + ::v1::model::Localization* _internal_mutable_localization(); + public: - // .v1.model.Health health = 13; + // .v1.model.Health health = 13[json_name = "health"]; bool has_health() const; + private: + bool _internal_has_health() const; + public: void clear_health(); - static const int kHealthFieldNumber = 13; const ::v1::model::Health& health() const; ::v1::model::Health* release_health(); ::v1::model::Health* mutable_health(); void set_allocated_health(::v1::model::Health* health); + private: + const ::v1::model::Health& _internal_health() const; + ::v1::model::Health* _internal_mutable_health(); + public: void clear_data(); DataCase data_case() const; // @@protoc_insertion_point(class_scope:v1.model.Datapoint) private: - class HasBitSetters; + class _Internal; void set_has_text(); void set_has_numeric(); void set_has_metric_set(); @@ -350,15 +462,15 @@ class Datapoint : inline bool has_data() const; inline void clear_has_data(); - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< Datapoint_TagsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, 0 > tags_; - ::google::protobuf::internal::ArenaStringPtr stream_; - ::google::protobuf::int64 timestamp_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stream_; + ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; union DataUnion { DataUnion() {} ::v1::model::Text* text_; @@ -372,8 +484,8 @@ class Datapoint : ::v1::model::Localization* localization_; ::v1::model::Health* health_; } data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; friend struct ::TableStruct_protos_2fmodel_2fv1_2fdatapoint_2eproto; }; @@ -390,101 +502,128 @@ class Datapoint : // Datapoint -// string stream = 1; +// string stream = 1[json_name = "stream"]; inline void Datapoint::clear_stream() { - stream_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + stream_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& Datapoint::stream() const { +inline const std::string& Datapoint::stream() const { // @@protoc_insertion_point(field_get:v1.model.Datapoint.stream) + return _internal_stream(); +} +inline void Datapoint::set_stream(const std::string& value) { + _internal_set_stream(value); + // @@protoc_insertion_point(field_set:v1.model.Datapoint.stream) +} +inline std::string* Datapoint::mutable_stream() { + // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.stream) + return _internal_mutable_stream(); +} +inline const std::string& Datapoint::_internal_stream() const { return stream_.GetNoArena(); } -inline void Datapoint::set_stream(const ::std::string& value) { +inline void Datapoint::_internal_set_stream(const std::string& value) { - stream_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.model.Datapoint.stream) + stream_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void Datapoint::set_stream(::std::string&& value) { +inline void Datapoint::set_stream(std::string&& value) { stream_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:v1.model.Datapoint.stream) } -#endif inline void Datapoint::set_stream(const char* value) { GOOGLE_DCHECK(value != nullptr); - stream_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + stream_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:v1.model.Datapoint.stream) } inline void Datapoint::set_stream(const char* value, size_t size) { - stream_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + stream_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:v1.model.Datapoint.stream) } -inline ::std::string* Datapoint::mutable_stream() { +inline std::string* Datapoint::_internal_mutable_stream() { - // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.stream) - return stream_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return stream_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Datapoint::release_stream() { +inline std::string* Datapoint::release_stream() { // @@protoc_insertion_point(field_release:v1.model.Datapoint.stream) - return stream_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return stream_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void Datapoint::set_allocated_stream(::std::string* stream) { +inline void Datapoint::set_allocated_stream(std::string* stream) { if (stream != nullptr) { } else { } - stream_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), stream); + stream_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stream); // @@protoc_insertion_point(field_set_allocated:v1.model.Datapoint.stream) } -// int64 timestamp = 2; +// int64 timestamp = 2[json_name = "timestamp"]; inline void Datapoint::clear_timestamp() { timestamp_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 Datapoint::timestamp() const { - // @@protoc_insertion_point(field_get:v1.model.Datapoint.timestamp) +inline ::PROTOBUF_NAMESPACE_ID::int64 Datapoint::_internal_timestamp() const { return timestamp_; } -inline void Datapoint::set_timestamp(::google::protobuf::int64 value) { +inline ::PROTOBUF_NAMESPACE_ID::int64 Datapoint::timestamp() const { + // @@protoc_insertion_point(field_get:v1.model.Datapoint.timestamp) + return _internal_timestamp(); +} +inline void Datapoint::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { timestamp_ = value; +} +inline void Datapoint::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_timestamp(value); // @@protoc_insertion_point(field_set:v1.model.Datapoint.timestamp) } -// map tags = 3; -inline int Datapoint::tags_size() const { +// map tags = 3[json_name = "tags"]; +inline int Datapoint::_internal_tags_size() const { return tags_.size(); } +inline int Datapoint::tags_size() const { + return _internal_tags_size(); +} inline void Datapoint::clear_tags() { tags_.Clear(); } -inline const ::google::protobuf::Map< ::std::string, ::std::string >& +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +Datapoint::_internal_tags() const { + return tags_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& Datapoint::tags() const { // @@protoc_insertion_point(field_map:v1.model.Datapoint.tags) - return tags_.GetMap(); + return _internal_tags(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +Datapoint::_internal_mutable_tags() { + return tags_.MutableMap(); } -inline ::google::protobuf::Map< ::std::string, ::std::string >* +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* Datapoint::mutable_tags() { // @@protoc_insertion_point(field_mutable_map:v1.model.Datapoint.tags) - return tags_.MutableMap(); + return _internal_mutable_tags(); } -// .v1.model.Text text = 4; -inline bool Datapoint::has_text() const { +// .v1.model.Text text = 4[json_name = "text"]; +inline bool Datapoint::_internal_has_text() const { return data_case() == kText; } +inline bool Datapoint::has_text() const { + return _internal_has_text(); +} inline void Datapoint::set_has_text() { _oneof_case_[0] = kText; } inline ::v1::model::Text* Datapoint::release_text() { // @@protoc_insertion_point(field_release:v1.model.Datapoint.text) - if (has_text()) { + if (_internal_has_text()) { clear_has_data(); ::v1::model::Text* temp = data_.text_; data_.text_ = nullptr; @@ -493,33 +632,42 @@ inline ::v1::model::Text* Datapoint::release_text() { return nullptr; } } -inline const ::v1::model::Text& Datapoint::text() const { - // @@protoc_insertion_point(field_get:v1.model.Datapoint.text) - return has_text() +inline const ::v1::model::Text& Datapoint::_internal_text() const { + return _internal_has_text() ? *data_.text_ : *reinterpret_cast< ::v1::model::Text*>(&::v1::model::_Text_default_instance_); } -inline ::v1::model::Text* Datapoint::mutable_text() { - if (!has_text()) { +inline const ::v1::model::Text& Datapoint::text() const { + // @@protoc_insertion_point(field_get:v1.model.Datapoint.text) + return _internal_text(); +} +inline ::v1::model::Text* Datapoint::_internal_mutable_text() { + if (!_internal_has_text()) { clear_data(); set_has_text(); data_.text_ = CreateMaybeMessage< ::v1::model::Text >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.text) return data_.text_; } +inline ::v1::model::Text* Datapoint::mutable_text() { + // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.text) + return _internal_mutable_text(); +} -// .v1.model.Numeric numeric = 5; -inline bool Datapoint::has_numeric() const { +// .v1.model.Numeric numeric = 5[json_name = "numeric"]; +inline bool Datapoint::_internal_has_numeric() const { return data_case() == kNumeric; } +inline bool Datapoint::has_numeric() const { + return _internal_has_numeric(); +} inline void Datapoint::set_has_numeric() { _oneof_case_[0] = kNumeric; } inline ::v1::model::Numeric* Datapoint::release_numeric() { // @@protoc_insertion_point(field_release:v1.model.Datapoint.numeric) - if (has_numeric()) { + if (_internal_has_numeric()) { clear_has_data(); ::v1::model::Numeric* temp = data_.numeric_; data_.numeric_ = nullptr; @@ -528,33 +676,42 @@ inline ::v1::model::Numeric* Datapoint::release_numeric() { return nullptr; } } -inline const ::v1::model::Numeric& Datapoint::numeric() const { - // @@protoc_insertion_point(field_get:v1.model.Datapoint.numeric) - return has_numeric() +inline const ::v1::model::Numeric& Datapoint::_internal_numeric() const { + return _internal_has_numeric() ? *data_.numeric_ : *reinterpret_cast< ::v1::model::Numeric*>(&::v1::model::_Numeric_default_instance_); } -inline ::v1::model::Numeric* Datapoint::mutable_numeric() { - if (!has_numeric()) { +inline const ::v1::model::Numeric& Datapoint::numeric() const { + // @@protoc_insertion_point(field_get:v1.model.Datapoint.numeric) + return _internal_numeric(); +} +inline ::v1::model::Numeric* Datapoint::_internal_mutable_numeric() { + if (!_internal_has_numeric()) { clear_data(); set_has_numeric(); data_.numeric_ = CreateMaybeMessage< ::v1::model::Numeric >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.numeric) return data_.numeric_; } +inline ::v1::model::Numeric* Datapoint::mutable_numeric() { + // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.numeric) + return _internal_mutable_numeric(); +} -// .v1.model.MetricSet metric_set = 6; -inline bool Datapoint::has_metric_set() const { +// .v1.model.MetricSet metric_set = 6[json_name = "metricSet"]; +inline bool Datapoint::_internal_has_metric_set() const { return data_case() == kMetricSet; } +inline bool Datapoint::has_metric_set() const { + return _internal_has_metric_set(); +} inline void Datapoint::set_has_metric_set() { _oneof_case_[0] = kMetricSet; } inline ::v1::model::MetricSet* Datapoint::release_metric_set() { // @@protoc_insertion_point(field_release:v1.model.Datapoint.metric_set) - if (has_metric_set()) { + if (_internal_has_metric_set()) { clear_has_data(); ::v1::model::MetricSet* temp = data_.metric_set_; data_.metric_set_ = nullptr; @@ -563,33 +720,42 @@ inline ::v1::model::MetricSet* Datapoint::release_metric_set() { return nullptr; } } -inline const ::v1::model::MetricSet& Datapoint::metric_set() const { - // @@protoc_insertion_point(field_get:v1.model.Datapoint.metric_set) - return has_metric_set() +inline const ::v1::model::MetricSet& Datapoint::_internal_metric_set() const { + return _internal_has_metric_set() ? *data_.metric_set_ : *reinterpret_cast< ::v1::model::MetricSet*>(&::v1::model::_MetricSet_default_instance_); } -inline ::v1::model::MetricSet* Datapoint::mutable_metric_set() { - if (!has_metric_set()) { +inline const ::v1::model::MetricSet& Datapoint::metric_set() const { + // @@protoc_insertion_point(field_get:v1.model.Datapoint.metric_set) + return _internal_metric_set(); +} +inline ::v1::model::MetricSet* Datapoint::_internal_mutable_metric_set() { + if (!_internal_has_metric_set()) { clear_data(); set_has_metric_set(); data_.metric_set_ = CreateMaybeMessage< ::v1::model::MetricSet >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.metric_set) return data_.metric_set_; } +inline ::v1::model::MetricSet* Datapoint::mutable_metric_set() { + // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.metric_set) + return _internal_mutable_metric_set(); +} -// .v1.model.Bitset bitset = 7; -inline bool Datapoint::has_bitset() const { +// .v1.model.Bitset bitset = 7[json_name = "bitset"]; +inline bool Datapoint::_internal_has_bitset() const { return data_case() == kBitset; } +inline bool Datapoint::has_bitset() const { + return _internal_has_bitset(); +} inline void Datapoint::set_has_bitset() { _oneof_case_[0] = kBitset; } inline ::v1::model::Bitset* Datapoint::release_bitset() { // @@protoc_insertion_point(field_release:v1.model.Datapoint.bitset) - if (has_bitset()) { + if (_internal_has_bitset()) { clear_has_data(); ::v1::model::Bitset* temp = data_.bitset_; data_.bitset_ = nullptr; @@ -598,33 +764,42 @@ inline ::v1::model::Bitset* Datapoint::release_bitset() { return nullptr; } } -inline const ::v1::model::Bitset& Datapoint::bitset() const { - // @@protoc_insertion_point(field_get:v1.model.Datapoint.bitset) - return has_bitset() +inline const ::v1::model::Bitset& Datapoint::_internal_bitset() const { + return _internal_has_bitset() ? *data_.bitset_ : *reinterpret_cast< ::v1::model::Bitset*>(&::v1::model::_Bitset_default_instance_); } -inline ::v1::model::Bitset* Datapoint::mutable_bitset() { - if (!has_bitset()) { +inline const ::v1::model::Bitset& Datapoint::bitset() const { + // @@protoc_insertion_point(field_get:v1.model.Datapoint.bitset) + return _internal_bitset(); +} +inline ::v1::model::Bitset* Datapoint::_internal_mutable_bitset() { + if (!_internal_has_bitset()) { clear_data(); set_has_bitset(); data_.bitset_ = CreateMaybeMessage< ::v1::model::Bitset >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.bitset) return data_.bitset_; } +inline ::v1::model::Bitset* Datapoint::mutable_bitset() { + // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.bitset) + return _internal_mutable_bitset(); +} -// .v1.model.File file = 8; -inline bool Datapoint::has_file() const { +// .v1.model.File file = 8[json_name = "file"]; +inline bool Datapoint::_internal_has_file() const { return data_case() == kFile; } +inline bool Datapoint::has_file() const { + return _internal_has_file(); +} inline void Datapoint::set_has_file() { _oneof_case_[0] = kFile; } inline ::v1::model::File* Datapoint::release_file() { // @@protoc_insertion_point(field_release:v1.model.Datapoint.file) - if (has_file()) { + if (_internal_has_file()) { clear_has_data(); ::v1::model::File* temp = data_.file_; data_.file_ = nullptr; @@ -633,33 +808,42 @@ inline ::v1::model::File* Datapoint::release_file() { return nullptr; } } -inline const ::v1::model::File& Datapoint::file() const { - // @@protoc_insertion_point(field_get:v1.model.Datapoint.file) - return has_file() +inline const ::v1::model::File& Datapoint::_internal_file() const { + return _internal_has_file() ? *data_.file_ : *reinterpret_cast< ::v1::model::File*>(&::v1::model::_File_default_instance_); } -inline ::v1::model::File* Datapoint::mutable_file() { - if (!has_file()) { +inline const ::v1::model::File& Datapoint::file() const { + // @@protoc_insertion_point(field_get:v1.model.Datapoint.file) + return _internal_file(); +} +inline ::v1::model::File* Datapoint::_internal_mutable_file() { + if (!_internal_has_file()) { clear_data(); set_has_file(); data_.file_ = CreateMaybeMessage< ::v1::model::File >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.file) return data_.file_; } +inline ::v1::model::File* Datapoint::mutable_file() { + // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.file) + return _internal_mutable_file(); +} -// .v1.model.Image image = 9; -inline bool Datapoint::has_image() const { +// .v1.model.Image image = 9[json_name = "image"]; +inline bool Datapoint::_internal_has_image() const { return data_case() == kImage; } +inline bool Datapoint::has_image() const { + return _internal_has_image(); +} inline void Datapoint::set_has_image() { _oneof_case_[0] = kImage; } inline ::v1::model::Image* Datapoint::release_image() { // @@protoc_insertion_point(field_release:v1.model.Datapoint.image) - if (has_image()) { + if (_internal_has_image()) { clear_has_data(); ::v1::model::Image* temp = data_.image_; data_.image_ = nullptr; @@ -668,33 +852,42 @@ inline ::v1::model::Image* Datapoint::release_image() { return nullptr; } } -inline const ::v1::model::Image& Datapoint::image() const { - // @@protoc_insertion_point(field_get:v1.model.Datapoint.image) - return has_image() +inline const ::v1::model::Image& Datapoint::_internal_image() const { + return _internal_has_image() ? *data_.image_ : *reinterpret_cast< ::v1::model::Image*>(&::v1::model::_Image_default_instance_); } -inline ::v1::model::Image* Datapoint::mutable_image() { - if (!has_image()) { +inline const ::v1::model::Image& Datapoint::image() const { + // @@protoc_insertion_point(field_get:v1.model.Datapoint.image) + return _internal_image(); +} +inline ::v1::model::Image* Datapoint::_internal_mutable_image() { + if (!_internal_has_image()) { clear_data(); set_has_image(); data_.image_ = CreateMaybeMessage< ::v1::model::Image >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.image) return data_.image_; } +inline ::v1::model::Image* Datapoint::mutable_image() { + // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.image) + return _internal_mutable_image(); +} -// .v1.model.PointCloud point_cloud = 10; -inline bool Datapoint::has_point_cloud() const { +// .v1.model.PointCloud point_cloud = 10[json_name = "pointCloud"]; +inline bool Datapoint::_internal_has_point_cloud() const { return data_case() == kPointCloud; } +inline bool Datapoint::has_point_cloud() const { + return _internal_has_point_cloud(); +} inline void Datapoint::set_has_point_cloud() { _oneof_case_[0] = kPointCloud; } inline ::v1::model::PointCloud* Datapoint::release_point_cloud() { // @@protoc_insertion_point(field_release:v1.model.Datapoint.point_cloud) - if (has_point_cloud()) { + if (_internal_has_point_cloud()) { clear_has_data(); ::v1::model::PointCloud* temp = data_.point_cloud_; data_.point_cloud_ = nullptr; @@ -703,33 +896,42 @@ inline ::v1::model::PointCloud* Datapoint::release_point_cloud() { return nullptr; } } -inline const ::v1::model::PointCloud& Datapoint::point_cloud() const { - // @@protoc_insertion_point(field_get:v1.model.Datapoint.point_cloud) - return has_point_cloud() +inline const ::v1::model::PointCloud& Datapoint::_internal_point_cloud() const { + return _internal_has_point_cloud() ? *data_.point_cloud_ : *reinterpret_cast< ::v1::model::PointCloud*>(&::v1::model::_PointCloud_default_instance_); } -inline ::v1::model::PointCloud* Datapoint::mutable_point_cloud() { - if (!has_point_cloud()) { +inline const ::v1::model::PointCloud& Datapoint::point_cloud() const { + // @@protoc_insertion_point(field_get:v1.model.Datapoint.point_cloud) + return _internal_point_cloud(); +} +inline ::v1::model::PointCloud* Datapoint::_internal_mutable_point_cloud() { + if (!_internal_has_point_cloud()) { clear_data(); set_has_point_cloud(); data_.point_cloud_ = CreateMaybeMessage< ::v1::model::PointCloud >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.point_cloud) return data_.point_cloud_; } +inline ::v1::model::PointCloud* Datapoint::mutable_point_cloud() { + // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.point_cloud) + return _internal_mutable_point_cloud(); +} -// .v1.model.Location location = 11; -inline bool Datapoint::has_location() const { +// .v1.model.Location location = 11[json_name = "location"]; +inline bool Datapoint::_internal_has_location() const { return data_case() == kLocation; } +inline bool Datapoint::has_location() const { + return _internal_has_location(); +} inline void Datapoint::set_has_location() { _oneof_case_[0] = kLocation; } inline ::v1::model::Location* Datapoint::release_location() { // @@protoc_insertion_point(field_release:v1.model.Datapoint.location) - if (has_location()) { + if (_internal_has_location()) { clear_has_data(); ::v1::model::Location* temp = data_.location_; data_.location_ = nullptr; @@ -738,33 +940,42 @@ inline ::v1::model::Location* Datapoint::release_location() { return nullptr; } } -inline const ::v1::model::Location& Datapoint::location() const { - // @@protoc_insertion_point(field_get:v1.model.Datapoint.location) - return has_location() +inline const ::v1::model::Location& Datapoint::_internal_location() const { + return _internal_has_location() ? *data_.location_ : *reinterpret_cast< ::v1::model::Location*>(&::v1::model::_Location_default_instance_); } -inline ::v1::model::Location* Datapoint::mutable_location() { - if (!has_location()) { +inline const ::v1::model::Location& Datapoint::location() const { + // @@protoc_insertion_point(field_get:v1.model.Datapoint.location) + return _internal_location(); +} +inline ::v1::model::Location* Datapoint::_internal_mutable_location() { + if (!_internal_has_location()) { clear_data(); set_has_location(); data_.location_ = CreateMaybeMessage< ::v1::model::Location >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.location) return data_.location_; } +inline ::v1::model::Location* Datapoint::mutable_location() { + // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.location) + return _internal_mutable_location(); +} -// .v1.model.Localization localization = 12; -inline bool Datapoint::has_localization() const { +// .v1.model.Localization localization = 12[json_name = "localization"]; +inline bool Datapoint::_internal_has_localization() const { return data_case() == kLocalization; } +inline bool Datapoint::has_localization() const { + return _internal_has_localization(); +} inline void Datapoint::set_has_localization() { _oneof_case_[0] = kLocalization; } inline ::v1::model::Localization* Datapoint::release_localization() { // @@protoc_insertion_point(field_release:v1.model.Datapoint.localization) - if (has_localization()) { + if (_internal_has_localization()) { clear_has_data(); ::v1::model::Localization* temp = data_.localization_; data_.localization_ = nullptr; @@ -773,33 +984,42 @@ inline ::v1::model::Localization* Datapoint::release_localization() { return nullptr; } } -inline const ::v1::model::Localization& Datapoint::localization() const { - // @@protoc_insertion_point(field_get:v1.model.Datapoint.localization) - return has_localization() +inline const ::v1::model::Localization& Datapoint::_internal_localization() const { + return _internal_has_localization() ? *data_.localization_ : *reinterpret_cast< ::v1::model::Localization*>(&::v1::model::_Localization_default_instance_); } -inline ::v1::model::Localization* Datapoint::mutable_localization() { - if (!has_localization()) { +inline const ::v1::model::Localization& Datapoint::localization() const { + // @@protoc_insertion_point(field_get:v1.model.Datapoint.localization) + return _internal_localization(); +} +inline ::v1::model::Localization* Datapoint::_internal_mutable_localization() { + if (!_internal_has_localization()) { clear_data(); set_has_localization(); data_.localization_ = CreateMaybeMessage< ::v1::model::Localization >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.localization) return data_.localization_; } +inline ::v1::model::Localization* Datapoint::mutable_localization() { + // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.localization) + return _internal_mutable_localization(); +} -// .v1.model.Health health = 13; -inline bool Datapoint::has_health() const { +// .v1.model.Health health = 13[json_name = "health"]; +inline bool Datapoint::_internal_has_health() const { return data_case() == kHealth; } +inline bool Datapoint::has_health() const { + return _internal_has_health(); +} inline void Datapoint::set_has_health() { _oneof_case_[0] = kHealth; } inline ::v1::model::Health* Datapoint::release_health() { // @@protoc_insertion_point(field_release:v1.model.Datapoint.health) - if (has_health()) { + if (_internal_has_health()) { clear_has_data(); ::v1::model::Health* temp = data_.health_; data_.health_ = nullptr; @@ -808,22 +1028,28 @@ inline ::v1::model::Health* Datapoint::release_health() { return nullptr; } } -inline const ::v1::model::Health& Datapoint::health() const { - // @@protoc_insertion_point(field_get:v1.model.Datapoint.health) - return has_health() +inline const ::v1::model::Health& Datapoint::_internal_health() const { + return _internal_has_health() ? *data_.health_ : *reinterpret_cast< ::v1::model::Health*>(&::v1::model::_Health_default_instance_); } -inline ::v1::model::Health* Datapoint::mutable_health() { - if (!has_health()) { +inline const ::v1::model::Health& Datapoint::health() const { + // @@protoc_insertion_point(field_get:v1.model.Datapoint.health) + return _internal_health(); +} +inline ::v1::model::Health* Datapoint::_internal_mutable_health() { + if (!_internal_has_health()) { clear_data(); set_has_health(); data_.health_ = CreateMaybeMessage< ::v1::model::Health >( GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.health) return data_.health_; } +inline ::v1::model::Health* Datapoint::mutable_health() { + // @@protoc_insertion_point(field_mutable:v1.model.Datapoint.health) + return _internal_mutable_health(); +} inline bool Datapoint::has_data() const { return data_case() != DATA_NOT_SET; @@ -848,4 +1074,4 @@ inline Datapoint::DataCase Datapoint::data_case() const { // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fdatapoint_2eproto +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fdatapoint_2eproto diff --git a/examples/cpp/protos/model/v1/datapoint_mock.grpc.pb.h b/examples/cpp/protos/model/v1/datapoint_mock.grpc.pb.h new file mode 100755 index 0000000..923457e --- /dev/null +++ b/examples/cpp/protos/model/v1/datapoint_mock.grpc.pb.h @@ -0,0 +1,16 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/datapoint.proto + +#include "protos/model/v1/datapoint.pb.h" +#include "protos/model/v1/datapoint.grpc.pb.h" + +#include +#include +#include +namespace v1 { +namespace model { + +} // namespace v1 +} // namespace model + diff --git a/examples/cpp/protos/model/v1/file.grpc.pb.cc b/examples/cpp/protos/model/v1/file.grpc.pb.cc new file mode 100755 index 0000000..d1d6b45 --- /dev/null +++ b/examples/cpp/protos/model/v1/file.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/file.proto + +#include "protos/model/v1/file.pb.h" +#include "protos/model/v1/file.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace v1 { +namespace model { + +} // namespace v1 +} // namespace model + diff --git a/examples/cpp/protos/model/v1/file.grpc.pb.h b/examples/cpp/protos/model/v1/file.grpc.pb.h new file mode 100755 index 0000000..a53ae5d --- /dev/null +++ b/examples/cpp/protos/model/v1/file.grpc.pb.h @@ -0,0 +1,46 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/file.proto +#ifndef GRPC_protos_2fmodel_2fv1_2ffile_2eproto__INCLUDED +#define GRPC_protos_2fmodel_2fv1_2ffile_2eproto__INCLUDED + +#include "protos/model/v1/file.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class CompletionQueue; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc + +namespace v1 { +namespace model { + +} // namespace model +} // namespace v1 + + +#endif // GRPC_protos_2fmodel_2fv1_2ffile_2eproto__INCLUDED diff --git a/examples/cpp/protos/model/v1/file.pb.cc b/examples/cpp/protos/model/v1/file.pb.cc index 6adb8c6..43bf6ba 100755 --- a/examples/cpp/protos/model/v1/file.pb.cc +++ b/examples/cpp/protos/model/v1/file.pb.cc @@ -5,50 +5,44 @@ #include -#include #include #include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) #include - namespace v1 { namespace model { class FileDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr url_; - ::google::protobuf::internal::ArenaStringPtr raw_; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_; } _File_default_instance_; } // namespace model } // namespace v1 -static void InitDefaultsFile_protos_2fmodel_2fv1_2ffile_2eproto() { +static void InitDefaultsscc_info_File_protos_2fmodel_2fv1_2ffile_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::v1::model::_File_default_instance_; new (ptr) ::v1::model::File(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::v1::model::File::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_File_protos_2fmodel_2fv1_2ffile_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFile_protos_2fmodel_2fv1_2ffile_2eproto}, {}}; - -void InitDefaults_protos_2fmodel_2fv1_2ffile_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_File_protos_2fmodel_2fv1_2ffile_2eproto.base); -} +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_File_protos_2fmodel_2fv1_2ffile_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_File_protos_2fmodel_2fv1_2ffile_2eproto}, {}}; -::google::protobuf::Metadata file_level_metadata_protos_2fmodel_2fv1_2ffile_2eproto[1]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_protos_2fmodel_2fv1_2ffile_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_protos_2fmodel_2fv1_2ffile_2eproto = nullptr; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protos_2fmodel_2fv1_2ffile_2eproto[1]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_protos_2fmodel_2fv1_2ffile_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protos_2fmodel_2fv1_2ffile_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2ffile_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_protos_2fmodel_2fv1_2ffile_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::v1::model::File, _internal_metadata_), ~0u, // no _extensions_ @@ -60,42 +54,37 @@ const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2ffile_2eproto: PROTOBUF_FIELD_OFFSET(::v1::model::File, size_), PROTOBUF_FIELD_OFFSET(::v1::model::File, data_), }; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::v1::model::File)}, }; -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::v1::model::_File_default_instance_), +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::v1::model::_File_default_instance_), }; -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_protos_2fmodel_2fv1_2ffile_2eproto = { - {}, AddDescriptors_protos_2fmodel_2fv1_2ffile_2eproto, "protos/model/v1/file.proto", schemas, - file_default_instances, TableStruct_protos_2fmodel_2fv1_2ffile_2eproto::offsets, - file_level_metadata_protos_2fmodel_2fv1_2ffile_2eproto, 1, file_level_enum_descriptors_protos_2fmodel_2fv1_2ffile_2eproto, file_level_service_descriptors_protos_2fmodel_2fv1_2ffile_2eproto, -}; - -const char descriptor_table_protodef_protos_2fmodel_2fv1_2ffile_2eproto[] = - "\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" +const char descriptor_table_protodef_protos_2fmodel_2fv1_2ffile_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\032protos/model/v1/file.proto\022\010v1.model\"f" + "\n\004File\022\022\n\003url\030\001 \001(\tH\000R\003url\022\022\n\003raw\030\002 \001(\014H" + "\000R\003raw\022\032\n\010filename\030\003 \001(\tR\010filename\022\022\n\004si" + "ze\030\004 \001(\003R\004sizeB\006\n\004dataB+Z)github.com/For" + "mantIO/genproto/go/v1/modelb\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, 169, +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto_deps[1] = { +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto_sccs[1] = { + &scc_info_File_protos_2fmodel_2fv1_2ffile_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto_once; +static bool descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto_initialized = false; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto = { + &descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto_initialized, descriptor_table_protodef_protos_2fmodel_2fv1_2ffile_2eproto, "protos/model/v1/file.proto", 195, + &descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto_once, descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto_sccs, descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto_deps, 1, 0, + schemas, file_default_instances, TableStruct_protos_2fmodel_2fv1_2ffile_2eproto::offsets, + file_level_metadata_protos_2fmodel_2fv1_2ffile_2eproto, 1, file_level_enum_descriptors_protos_2fmodel_2fv1_2ffile_2eproto, file_level_service_descriptors_protos_2fmodel_2fv1_2ffile_2eproto, }; - -void AddDescriptors_protos_2fmodel_2fv1_2ffile_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto, deps, 0); -} // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_protos_2fmodel_2fv1_2ffile_2eproto = []() { AddDescriptors_protos_2fmodel_2fv1_2ffile_2eproto(); return true; }(); +static bool dynamic_init_dummy_protos_2fmodel_2fv1_2ffile_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto), true); namespace v1 { namespace model { @@ -103,43 +92,36 @@ namespace model { void File::InitAsDefaultInstance() { ::v1::model::_File_default_instance_.url_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::v1::model::_File_default_instance_.raw_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -class File::HasBitSetters { +class File::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int File::kUrlFieldNumber; -const int File::kRawFieldNumber; -const int File::kFilenameFieldNumber; -const int File::kSizeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - File::File() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.model.File) } File::File(const File& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::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_); + filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_filename().empty()) { + filename_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.filename_); } size_ = from.size_; clear_has_data(); switch (from.data_case()) { case kUrl: { - set_url(from.url()); + _internal_set_url(from._internal_url()); break; } case kRaw: { - set_raw(from.raw()); + _internal_set_raw(from._internal_raw()); break; } case DATA_NOT_SET: { @@ -150,9 +132,8 @@ File::File(const File& from) } void File::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_File_protos_2fmodel_2fv1_2ffile_2eproto.base); - filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_File_protos_2fmodel_2fv1_2ffile_2eproto.base); + filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); size_ = PROTOBUF_LONGLONG(0); clear_has_data(); } @@ -163,7 +144,7 @@ File::~File() { } void File::SharedDtor() { - filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (has_data()) { clear_data(); } @@ -173,7 +154,7 @@ void File::SetCachedSize(int size) const { _cached_size_.Set(size); } const File& File::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_File_protos_2fmodel_2fv1_2ffile_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_File_protos_2fmodel_2fv1_2ffile_2eproto.base); return *internal_default_instance(); } @@ -182,11 +163,11 @@ void File::clear_data() { // @@protoc_insertion_point(one_of_clear_start:v1.model.File) switch (data_case()) { case kUrl: { - data_.url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); break; } case kRaw: { - data_.raw_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.raw_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); break; } case DATA_NOT_SET: { @@ -199,279 +180,117 @@ void File::clear_data() { void File::Clear() { // @@protoc_insertion_point(message_clear_start:v1.model.File) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filename_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); size_ = PROTOBUF_LONGLONG(0); clear_data(); _internal_metadata_.Clear(); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* File::_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); +const char* File::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { - // string url = 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.File.url"); - object = msg->mutable_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 raw = 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); - object = msg->mutable_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; - } - // string filename = 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.File.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; - } - // int64 size = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_size(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } + // string url = 1[json_name = "url"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_url(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.File.url")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes raw = 2[json_name = "raw"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_raw(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string filename = 3[json_name = "filename"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_filename(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "v1.model.File.filename")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 size = 4[json_name = "size"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // 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 File::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.File) - 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 url = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_url())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->url().data(), static_cast(this->url().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "v1.model.File.url")); - } else { - goto handle_unusual; - } - break; - } - - // bytes raw = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_raw())); - } else { - goto handle_unusual; - } - break; - } - - // string filename = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 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.File.filename")); - } else { - goto handle_unusual; - } - break; - } - - // int64 size = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &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.File) - return true; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.model.File) - return false; -#undef DO_ + ptr = nullptr; + goto success; +#undef CHK_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void File::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.model.File) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string url = 1; - if (has_url()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->url().data(), static_cast(this->url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "v1.model.File.url"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->url(), output); - } - - // bytes raw = 2; - if (has_raw()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->raw(), output); - } - - // string filename = 3; - 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.File.filename"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->filename(), output); - } - - // int64 size = 4; - if (this->size() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->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.File) -} - -::google::protobuf::uint8* File::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* File::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.model.File) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // string url = 1; - if (has_url()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->url().data(), static_cast(this->url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + // string url = 1[json_name = "url"]; + if (_internal_has_url()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_url().data(), static_cast(this->_internal_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.File.url"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->url(), target); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_url(), target); } - // bytes raw = 2; - if (has_raw()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->raw(), target); + // bytes raw = 2[json_name = "raw"]; + if (_internal_has_raw()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_raw(), target); } - // string filename = 3; + // string filename = 3[json_name = "filename"]; if (this->filename().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), static_cast(this->filename().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_filename().data(), static_cast(this->_internal_filename().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "v1.model.File.filename"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->filename(), target); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_filename(), target); } - // int64 size = 4; + // int64 size = 4[json_name = "size"]; if (this->size() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->size(), target); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_size(), target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.model.File) return target; @@ -481,62 +300,61 @@ size_t File::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:v1.model.File) 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string filename = 3; + // string filename = 3[json_name = "filename"]; if (this->filename().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filename()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_filename()); } - // int64 size = 4; + // int64 size = 4[json_name = "size"]; if (this->size() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->size()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_size()); } switch (data_case()) { - // string url = 1; + // string url = 1[json_name = "url"]; case kUrl: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->url()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_url()); break; } - // bytes raw = 2; + // bytes raw = 2[json_name = "raw"]; case kRaw: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->raw()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_raw()); break; } case DATA_NOT_SET: { break; } } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void File::MergeFrom(const ::google::protobuf::Message& from) { +void File::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.model.File) GOOGLE_DCHECK_NE(&from, this); const File* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.File) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.File) MergeFrom(*source); @@ -547,23 +365,23 @@ void File::MergeFrom(const File& from) { // @@protoc_insertion_point(class_specific_merge_from_start:v1.model.File) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.filename().size() > 0) { - filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); + filename_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.filename_); } if (from.size() != 0) { - set_size(from.size()); + _internal_set_size(from._internal_size()); } switch (from.data_case()) { case kUrl: { - set_url(from.url()); + _internal_set_url(from._internal_url()); break; } case kRaw: { - set_raw(from.raw()); + _internal_set_raw(from._internal_raw()); break; } case DATA_NOT_SET: { @@ -572,7 +390,7 @@ void File::MergeFrom(const File& from) { } } -void File::CopyFrom(const ::google::protobuf::Message& from) { +void File::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.model.File) if (&from == this) return; Clear(); @@ -590,36 +408,29 @@ bool File::IsInitialized() const { return true; } -void File::Swap(File* other) { - if (other == this) return; - InternalSwap(other); -} void File::InternalSwap(File* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - filename_.Swap(&other->filename_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + filename_.Swap(&other->filename_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(size_, other->size_); swap(data_, other->data_); swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata File::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2ffile_2eproto); - return ::file_level_metadata_protos_2fmodel_2fv1_2ffile_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata File::GetMetadata() const { + return GetMetadataStatic(); } // @@protoc_insertion_point(namespace_scope) } // namespace model } // namespace v1 -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::v1::model::File* Arena::CreateMaybeMessage< ::v1::model::File >(Arena* arena) { return Arena::CreateInternal< ::v1::model::File >(arena); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include diff --git a/examples/cpp/protos/model/v1/file.pb.h b/examples/cpp/protos/model/v1/file.pb.h index 6256f1a..ceee05c 100755 --- a/examples/cpp/protos/model/v1/file.pb.h +++ b/examples/cpp/protos/model/v1/file.pb.h @@ -1,19 +1,19 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: protos/model/v1/file.proto -#ifndef PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2ffile_2eproto -#define PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2ffile_2eproto +#ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2ffile_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2ffile_2eproto #include #include #include -#if PROTOBUF_VERSION < 3007000 +#if PROTOBUF_VERSION < 3011000 #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 +#if 3011000 < 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. @@ -27,6 +27,7 @@ #include #include #include +#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -34,20 +35,25 @@ // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2ffile_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_protos_2fmodel_2fv1_2ffile_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] 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[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; -void AddDescriptors_protos_2fmodel_2fv1_2ffile_2eproto(); +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto; namespace v1 { namespace model { class File; @@ -55,34 +61,30 @@ class FileDefaultTypeInternal; extern FileDefaultTypeInternal _File_default_instance_; } // namespace model } // namespace v1 -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN template<> ::v1::model::File* Arena::CreateMaybeMessage<::v1::model::File>(Arena*); -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE namespace v1 { namespace model { // =================================================================== class File : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.File) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.model.File) */ { public: File(); virtual ~File(); File(const File& from); - - inline File& operator=(const File& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 File(File&& from) noexcept : File() { *this = ::std::move(from); } + inline File& operator=(const File& from) { + CopyFrom(from); + return *this; + } inline File& operator=(File&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -91,9 +93,15 @@ class File : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const File& default_instance(); @@ -111,10 +119,13 @@ class File : static constexpr int kIndexInFileMessages = 0; - void Swap(File* other); friend void swap(File& a, File& b) { a.Swap(&b); } + inline void Swap(File* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -122,37 +133,33 @@ class File : return CreateMaybeMessage(nullptr); } - File* New(::google::protobuf::Arena* arena) const final { + File* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const File& from); void MergeFrom(const File& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(File* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.File"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -160,87 +167,109 @@ class File : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2ffile_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // string filename = 3; + enum : int { + kFilenameFieldNumber = 3, + kSizeFieldNumber = 4, + kUrlFieldNumber = 1, + kRawFieldNumber = 2, + }; + // string filename = 3[json_name = "filename"]; void clear_filename(); - static const int kFilenameFieldNumber = 3; - const ::std::string& filename() const; - void set_filename(const ::std::string& value); - #if LANG_CXX11 - void set_filename(::std::string&& value); - #endif + const std::string& filename() const; + void set_filename(const std::string& value); + void set_filename(std::string&& value); 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); + std::string* mutable_filename(); + std::string* release_filename(); + void set_allocated_filename(std::string* filename); + private: + const std::string& _internal_filename() const; + void _internal_set_filename(const std::string& value); + std::string* _internal_mutable_filename(); + public: - // int64 size = 4; + // int64 size = 4[json_name = "size"]; void clear_size(); - static const int kSizeFieldNumber = 4; - ::google::protobuf::int64 size() const; - void set_size(::google::protobuf::int64 value); + ::PROTOBUF_NAMESPACE_ID::int64 size() const; + void set_size(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_size() const; + void _internal_set_size(::PROTOBUF_NAMESPACE_ID::int64 value); + public: - // string url = 1; + // string url = 1[json_name = "url"]; private: - bool has_url() const; + bool _internal_has_url() const; public: void clear_url(); - static const int kUrlFieldNumber = 1; - const ::std::string& url() const; - void set_url(const ::std::string& value); - #if LANG_CXX11 - void set_url(::std::string&& value); - #endif + const std::string& url() const; + void set_url(const std::string& value); + void set_url(std::string&& value); void set_url(const char* value); void set_url(const char* value, size_t size); - ::std::string* mutable_url(); - ::std::string* release_url(); - void set_allocated_url(::std::string* url); + std::string* mutable_url(); + std::string* release_url(); + void set_allocated_url(std::string* url); + private: + const std::string& _internal_url() const; + void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); + public: - // bytes raw = 2; + // bytes raw = 2[json_name = "raw"]; private: - bool has_raw() const; + bool _internal_has_raw() const; public: void clear_raw(); - static const int kRawFieldNumber = 2; - const ::std::string& raw() const; - void set_raw(const ::std::string& value); - #if LANG_CXX11 - void set_raw(::std::string&& value); - #endif + const std::string& raw() const; + void set_raw(const std::string& value); + void set_raw(std::string&& value); void set_raw(const char* value); void set_raw(const void* value, size_t size); - ::std::string* mutable_raw(); - ::std::string* release_raw(); - void set_allocated_raw(::std::string* raw); + std::string* mutable_raw(); + std::string* release_raw(); + void set_allocated_raw(std::string* raw); + private: + const std::string& _internal_raw() const; + void _internal_set_raw(const std::string& value); + std::string* _internal_mutable_raw(); + public: void clear_data(); DataCase data_case() const; // @@protoc_insertion_point(class_scope:v1.model.File) private: - class HasBitSetters; + class _Internal; void set_has_url(); void set_has_raw(); inline bool has_data() const; inline void clear_has_data(); - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr filename_; - ::google::protobuf::int64 size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filename_; + ::PROTOBUF_NAMESPACE_ID::int64 size_; union DataUnion { DataUnion() {} - ::google::protobuf::internal::ArenaStringPtr url_; - ::google::protobuf::internal::ArenaStringPtr raw_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_; } data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; friend struct ::TableStruct_protos_2fmodel_2fv1_2ffile_2eproto; }; @@ -255,88 +284,94 @@ class File : #endif // __GNUC__ // File -// string url = 1; -inline bool File::has_url() const { +// string url = 1[json_name = "url"]; +inline bool File::_internal_has_url() const { return data_case() == kUrl; } inline void File::set_has_url() { _oneof_case_[0] = kUrl; } inline void File::clear_url() { - if (has_url()) { - data_.url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (_internal_has_url()) { + data_.url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); clear_has_data(); } } -inline const ::std::string& File::url() const { +inline const std::string& File::url() const { // @@protoc_insertion_point(field_get:v1.model.File.url) - if (has_url()) { + return _internal_url(); +} +inline void File::set_url(const std::string& value) { + _internal_set_url(value); + // @@protoc_insertion_point(field_set:v1.model.File.url) +} +inline std::string* File::mutable_url() { + // @@protoc_insertion_point(field_mutable:v1.model.File.url) + return _internal_mutable_url(); +} +inline const std::string& File::_internal_url() const { + if (_internal_has_url()) { return data_.url_.GetNoArena(); } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); + return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } -inline void File::set_url(const ::std::string& value) { - // @@protoc_insertion_point(field_set:v1.model.File.url) - if (!has_url()) { +inline void File::_internal_set_url(const std::string& value) { + if (!_internal_has_url()) { clear_data(); set_has_url(); - data_.url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.model.File.url) + data_.url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void File::set_url(::std::string&& value) { +inline void File::set_url(std::string&& value) { // @@protoc_insertion_point(field_set:v1.model.File.url) - if (!has_url()) { + if (!_internal_has_url()) { clear_data(); set_has_url(); - data_.url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + data_.url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:v1.model.File.url) } -#endif inline void File::set_url(const char* value) { GOOGLE_DCHECK(value != nullptr); - if (!has_url()) { + if (!_internal_has_url()) { clear_data(); set_has_url(); - data_.url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + data_.url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:v1.model.File.url) } inline void File::set_url(const char* value, size_t size) { - if (!has_url()) { + if (!_internal_has_url()) { clear_data(); set_has_url(); - data_.url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + data_.url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:v1.model.File.url) } -inline ::std::string* File::mutable_url() { - if (!has_url()) { +inline std::string* File::_internal_mutable_url() { + if (!_internal_has_url()) { clear_data(); set_has_url(); - data_.url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - // @@protoc_insertion_point(field_mutable:v1.model.File.url) - return data_.url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return data_.url_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* File::release_url() { +inline std::string* File::release_url() { // @@protoc_insertion_point(field_release:v1.model.File.url) - if (has_url()) { + if (_internal_has_url()) { clear_has_data(); - return data_.url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return data_.url_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } else { return nullptr; } } -inline void File::set_allocated_url(::std::string* url) { +inline void File::set_allocated_url(std::string* url) { if (has_data()) { clear_data(); } @@ -347,88 +382,94 @@ inline void File::set_allocated_url(::std::string* url) { // @@protoc_insertion_point(field_set_allocated:v1.model.File.url) } -// bytes raw = 2; -inline bool File::has_raw() const { +// bytes raw = 2[json_name = "raw"]; +inline bool File::_internal_has_raw() const { return data_case() == kRaw; } inline void File::set_has_raw() { _oneof_case_[0] = kRaw; } inline void File::clear_raw() { - if (has_raw()) { - data_.raw_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (_internal_has_raw()) { + data_.raw_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); clear_has_data(); } } -inline const ::std::string& File::raw() const { +inline const std::string& File::raw() const { // @@protoc_insertion_point(field_get:v1.model.File.raw) - if (has_raw()) { + return _internal_raw(); +} +inline void File::set_raw(const std::string& value) { + _internal_set_raw(value); + // @@protoc_insertion_point(field_set:v1.model.File.raw) +} +inline std::string* File::mutable_raw() { + // @@protoc_insertion_point(field_mutable:v1.model.File.raw) + return _internal_mutable_raw(); +} +inline const std::string& File::_internal_raw() const { + if (_internal_has_raw()) { return data_.raw_.GetNoArena(); } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); + return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } -inline void File::set_raw(const ::std::string& value) { - // @@protoc_insertion_point(field_set:v1.model.File.raw) - if (!has_raw()) { +inline void File::_internal_set_raw(const std::string& value) { + if (!_internal_has_raw()) { clear_data(); set_has_raw(); - data_.raw_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.raw_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.raw_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.model.File.raw) + data_.raw_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void File::set_raw(::std::string&& value) { +inline void File::set_raw(std::string&& value) { // @@protoc_insertion_point(field_set:v1.model.File.raw) - if (!has_raw()) { + if (!_internal_has_raw()) { clear_data(); set_has_raw(); - data_.raw_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.raw_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.raw_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + data_.raw_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:v1.model.File.raw) } -#endif inline void File::set_raw(const char* value) { GOOGLE_DCHECK(value != nullptr); - if (!has_raw()) { + if (!_internal_has_raw()) { clear_data(); set_has_raw(); - data_.raw_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.raw_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.raw_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + data_.raw_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:v1.model.File.raw) } inline void File::set_raw(const void* value, size_t size) { - if (!has_raw()) { + if (!_internal_has_raw()) { clear_data(); set_has_raw(); - data_.raw_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.raw_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - data_.raw_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + data_.raw_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:v1.model.File.raw) } -inline ::std::string* File::mutable_raw() { - if (!has_raw()) { +inline std::string* File::_internal_mutable_raw() { + if (!_internal_has_raw()) { clear_data(); set_has_raw(); - data_.raw_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.raw_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } - // @@protoc_insertion_point(field_mutable:v1.model.File.raw) - return data_.raw_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return data_.raw_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* File::release_raw() { +inline std::string* File::release_raw() { // @@protoc_insertion_point(field_release:v1.model.File.raw) - if (has_raw()) { + if (_internal_has_raw()) { clear_has_data(); - return data_.raw_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return data_.raw_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } else { return nullptr; } } -inline void File::set_allocated_raw(::std::string* raw) { +inline void File::set_allocated_raw(std::string* raw) { if (has_data()) { clear_data(); } @@ -439,70 +480,83 @@ inline void File::set_allocated_raw(::std::string* raw) { // @@protoc_insertion_point(field_set_allocated:v1.model.File.raw) } -// string filename = 3; +// string filename = 3[json_name = "filename"]; inline void File::clear_filename() { - filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filename_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& File::filename() const { +inline const std::string& File::filename() const { // @@protoc_insertion_point(field_get:v1.model.File.filename) + return _internal_filename(); +} +inline void File::set_filename(const std::string& value) { + _internal_set_filename(value); + // @@protoc_insertion_point(field_set:v1.model.File.filename) +} +inline std::string* File::mutable_filename() { + // @@protoc_insertion_point(field_mutable:v1.model.File.filename) + return _internal_mutable_filename(); +} +inline const std::string& File::_internal_filename() const { return filename_.GetNoArena(); } -inline void File::set_filename(const ::std::string& value) { +inline void File::_internal_set_filename(const std::string& value) { - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:v1.model.File.filename) + filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } -#if LANG_CXX11 -inline void File::set_filename(::std::string&& value) { +inline void File::set_filename(std::string&& value) { filename_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:v1.model.File.filename) } -#endif inline void File::set_filename(const char* value) { GOOGLE_DCHECK(value != nullptr); - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:v1.model.File.filename) } inline void File::set_filename(const char* value, size_t size) { - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + filename_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:v1.model.File.filename) } -inline ::std::string* File::mutable_filename() { +inline std::string* File::_internal_mutable_filename() { - // @@protoc_insertion_point(field_mutable:v1.model.File.filename) - return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return filename_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* File::release_filename() { +inline std::string* File::release_filename() { // @@protoc_insertion_point(field_release:v1.model.File.filename) - return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return filename_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void File::set_allocated_filename(::std::string* filename) { +inline void File::set_allocated_filename(std::string* filename) { if (filename != nullptr) { } else { } - filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename); + filename_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filename); // @@protoc_insertion_point(field_set_allocated:v1.model.File.filename) } -// int64 size = 4; +// int64 size = 4[json_name = "size"]; inline void File::clear_size() { size_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 File::size() const { - // @@protoc_insertion_point(field_get:v1.model.File.size) +inline ::PROTOBUF_NAMESPACE_ID::int64 File::_internal_size() const { return size_; } -inline void File::set_size(::google::protobuf::int64 value) { +inline ::PROTOBUF_NAMESPACE_ID::int64 File::size() const { + // @@protoc_insertion_point(field_get:v1.model.File.size) + return _internal_size(); +} +inline void File::_internal_set_size(::PROTOBUF_NAMESPACE_ID::int64 value) { size_ = value; +} +inline void File::set_size(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_size(value); // @@protoc_insertion_point(field_set:v1.model.File.size) } @@ -527,4 +581,4 @@ inline File::DataCase File::data_case() const { // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2ffile_2eproto +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2ffile_2eproto diff --git a/examples/cpp/protos/model/v1/file_mock.grpc.pb.h b/examples/cpp/protos/model/v1/file_mock.grpc.pb.h new file mode 100755 index 0000000..47766d2 --- /dev/null +++ b/examples/cpp/protos/model/v1/file_mock.grpc.pb.h @@ -0,0 +1,16 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/file.proto + +#include "protos/model/v1/file.pb.h" +#include "protos/model/v1/file.grpc.pb.h" + +#include +#include +#include +namespace v1 { +namespace model { + +} // namespace v1 +} // namespace model + diff --git a/examples/cpp/protos/model/v1/health.grpc.pb.cc b/examples/cpp/protos/model/v1/health.grpc.pb.cc new file mode 100755 index 0000000..b5de051 --- /dev/null +++ b/examples/cpp/protos/model/v1/health.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/health.proto + +#include "protos/model/v1/health.pb.h" +#include "protos/model/v1/health.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace v1 { +namespace model { + +} // namespace v1 +} // namespace model + diff --git a/examples/cpp/protos/model/v1/health.grpc.pb.h b/examples/cpp/protos/model/v1/health.grpc.pb.h new file mode 100755 index 0000000..f2287df --- /dev/null +++ b/examples/cpp/protos/model/v1/health.grpc.pb.h @@ -0,0 +1,46 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/health.proto +#ifndef GRPC_protos_2fmodel_2fv1_2fhealth_2eproto__INCLUDED +#define GRPC_protos_2fmodel_2fv1_2fhealth_2eproto__INCLUDED + +#include "protos/model/v1/health.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class CompletionQueue; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc + +namespace v1 { +namespace model { + +} // namespace model +} // namespace v1 + + +#endif // GRPC_protos_2fmodel_2fv1_2fhealth_2eproto__INCLUDED diff --git a/examples/cpp/protos/model/v1/health.pb.cc b/examples/cpp/protos/model/v1/health.pb.cc index f26ced8..6768cf2 100755 --- a/examples/cpp/protos/model/v1/health.pb.cc +++ b/examples/cpp/protos/model/v1/health.pb.cc @@ -5,48 +5,42 @@ #include -#include #include #include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) #include - namespace v1 { namespace model { class HealthDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _Health_default_instance_; } // namespace model } // namespace v1 -static void InitDefaultsHealth_protos_2fmodel_2fv1_2fhealth_2eproto() { +static void InitDefaultsscc_info_Health_protos_2fmodel_2fv1_2fhealth_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::v1::model::_Health_default_instance_; new (ptr) ::v1::model::Health(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::v1::model::Health::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_Health_protos_2fmodel_2fv1_2fhealth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHealth_protos_2fmodel_2fv1_2fhealth_2eproto}, {}}; - -void InitDefaults_protos_2fmodel_2fv1_2fhealth_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_Health_protos_2fmodel_2fv1_2fhealth_2eproto.base); -} +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Health_protos_2fmodel_2fv1_2fhealth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Health_protos_2fmodel_2fv1_2fhealth_2eproto}, {}}; -::google::protobuf::Metadata file_level_metadata_protos_2fmodel_2fv1_2fhealth_2eproto[1]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_protos_2fmodel_2fv1_2fhealth_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_protos_2fmodel_2fv1_2fhealth_2eproto = nullptr; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protos_2fmodel_2fv1_2fhealth_2eproto[1]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_protos_2fmodel_2fv1_2fhealth_2eproto[1]; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protos_2fmodel_2fv1_2fhealth_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2fhealth_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_protos_2fmodel_2fv1_2fhealth_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::v1::model::Health, _internal_metadata_), ~0u, // no _extensions_ @@ -54,48 +48,43 @@ const ::google::protobuf::uint32 TableStruct_protos_2fmodel_2fv1_2fhealth_2eprot ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::v1::model::Health, status_), }; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::v1::model::Health)}, }; -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::v1::model::_Health_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_protos_2fmodel_2fv1_2fhealth_2eproto = { - {}, AddDescriptors_protos_2fmodel_2fv1_2fhealth_2eproto, "protos/model/v1/health.proto", schemas, - file_default_instances, TableStruct_protos_2fmodel_2fv1_2fhealth_2eproto::offsets, - file_level_metadata_protos_2fmodel_2fv1_2fhealth_2eproto, 1, file_level_enum_descriptors_protos_2fmodel_2fv1_2fhealth_2eproto, file_level_service_descriptors_protos_2fmodel_2fv1_2fhealth_2eproto, +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::v1::model::_Health_default_instance_), }; -const char descriptor_table_protodef_protos_2fmodel_2fv1_2fhealth_2eproto[] = +const char descriptor_table_protodef_protos_2fmodel_2fv1_2fhealth_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\034protos/model/v1/health.proto\022\010v1.model" - "\"0\n\006Health\022&\n\006status\030\001 \001(\0162\026.v1.model.He" - "althStatus*`\n\014HealthStatus\022\022\n\016HEALTH_UNK" - "NOWN\020\000\022\026\n\022HEALTH_OPERATIONAL\020\001\022\022\n\016HEALTH" - "_OFFLINE\020\002\022\020\n\014HEALTH_ERROR\020\003B+Z)github.c" - "om/FormantIO/genproto/go/v1/modelb\006proto" - "3" + "\"8\n\006Health\022.\n\006status\030\001 \001(\0162\026.v1.model.He" + "althStatusR\006status*`\n\014HealthStatus\022\022\n\016HE" + "ALTH_UNKNOWN\020\000\022\026\n\022HEALTH_OPERATIONAL\020\001\022\022" + "\n\016HEALTH_OFFLINE\020\002\022\020\n\014HEALTH_ERROR\020\003B+Z)" + "github.com/FormantIO/genproto/go/v1/mode" + "lb\006proto3" ; -::google::protobuf::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto = { - false, InitDefaults_protos_2fmodel_2fv1_2fhealth_2eproto, - descriptor_table_protodef_protos_2fmodel_2fv1_2fhealth_2eproto, - "protos/model/v1/health.proto", &assign_descriptors_table_protos_2fmodel_2fv1_2fhealth_2eproto, 241, +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto_deps[1] = { +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto_sccs[1] = { + &scc_info_Health_protos_2fmodel_2fv1_2fhealth_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto_once; +static bool descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto_initialized = false; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto = { + &descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto_initialized, descriptor_table_protodef_protos_2fmodel_2fv1_2fhealth_2eproto, "protos/model/v1/health.proto", 249, + &descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto_once, descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto_sccs, descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto_deps, 1, 0, + schemas, file_default_instances, TableStruct_protos_2fmodel_2fv1_2fhealth_2eproto::offsets, + file_level_metadata_protos_2fmodel_2fv1_2fhealth_2eproto, 1, file_level_enum_descriptors_protos_2fmodel_2fv1_2fhealth_2eproto, file_level_service_descriptors_protos_2fmodel_2fv1_2fhealth_2eproto, }; - -void AddDescriptors_protos_2fmodel_2fv1_2fhealth_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto, deps, 0); -} // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_protos_2fmodel_2fv1_2fhealth_2eproto = []() { AddDescriptors_protos_2fmodel_2fv1_2fhealth_2eproto(); return true; }(); +static bool dynamic_init_dummy_protos_2fmodel_2fv1_2fhealth_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto), true); namespace v1 { namespace model { -const ::google::protobuf::EnumDescriptor* HealthStatus_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_protos_2fmodel_2fv1_2fhealth_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HealthStatus_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto); return file_level_enum_descriptors_protos_2fmodel_2fv1_2fhealth_2eproto[0]; } bool HealthStatus_IsValid(int value) { @@ -115,21 +104,17 @@ bool HealthStatus_IsValid(int value) { void Health::InitAsDefaultInstance() { } -class Health::HasBitSetters { +class Health::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Health::kStatusFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - Health::Health() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:v1.model.Health) } Health::Health(const Health& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); status_ = from.status_; @@ -152,14 +137,14 @@ void Health::SetCachedSize(int size) const { _cached_size_.Set(size); } const Health& Health::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Health_protos_2fmodel_2fv1_2fhealth_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Health_protos_2fmodel_2fv1_2fhealth_2eproto.base); return *internal_default_instance(); } void Health::Clear() { // @@protoc_insertion_point(message_clear_start:v1.model.Health) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -167,123 +152,57 @@ void Health::Clear() { _internal_metadata_.Clear(); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Health::_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); +const char* Health::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { - // .v1.model.HealthStatus status = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_status(static_cast<::v1::model::HealthStatus>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } + // .v1.model.HealthStatus status = 1[json_name = "status"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + _internal_set_status(static_cast<::v1::model::HealthStatus>(val)); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - 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; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Health::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.Health) - 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.HealthStatus status = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_status(static_cast< ::v1::model::HealthStatus >(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.Health) - return true; + return ptr; failure: - // @@protoc_insertion_point(parse_failure:v1.model.Health) - return false; -#undef DO_ + ptr = nullptr; + goto success; +#undef CHK_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Health::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:v1.model.Health) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - // .v1.model.HealthStatus status = 1; - if (this->status() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->status(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:v1.model.Health) -} - -::google::protobuf::uint8* Health::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* Health::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:v1.model.Health) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .v1.model.HealthStatus status = 1; + // .v1.model.HealthStatus status = 1[json_name = "status"]; if (this->status() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->status(), target); + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_status(), target); } - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:v1.model.Health) return target; @@ -293,35 +212,34 @@ size_t Health::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:v1.model.Health) 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; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .v1.model.HealthStatus status = 1; + // .v1.model.HealthStatus status = 1[json_name = "status"]; if (this->status() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void Health::MergeFrom(const ::google::protobuf::Message& from) { +void Health::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:v1.model.Health) GOOGLE_DCHECK_NE(&from, this); const Health* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:v1.model.Health) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:v1.model.Health) MergeFrom(*source); @@ -332,15 +250,15 @@ void Health::MergeFrom(const Health& from) { // @@protoc_insertion_point(class_specific_merge_from_start:v1.model.Health) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.status() != 0) { - set_status(from.status()); + _internal_set_status(from._internal_status()); } } -void Health::CopyFrom(const ::google::protobuf::Message& from) { +void Health::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:v1.model.Health) if (&from == this) return; Clear(); @@ -358,32 +276,25 @@ bool Health::IsInitialized() const { return true; } -void Health::Swap(Health* other) { - if (other == this) return; - InternalSwap(other); -} void Health::InternalSwap(Health* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); swap(status_, other->status_); } -::google::protobuf::Metadata Health::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_protos_2fmodel_2fv1_2fhealth_2eproto); - return ::file_level_metadata_protos_2fmodel_2fv1_2fhealth_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata Health::GetMetadata() const { + return GetMetadataStatic(); } // @@protoc_insertion_point(namespace_scope) } // namespace model } // namespace v1 -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::v1::model::Health* Arena::CreateMaybeMessage< ::v1::model::Health >(Arena* arena) { return Arena::CreateInternal< ::v1::model::Health >(arena); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include diff --git a/examples/cpp/protos/model/v1/health.pb.h b/examples/cpp/protos/model/v1/health.pb.h index cdd4047..97393c3 100755 --- a/examples/cpp/protos/model/v1/health.pb.h +++ b/examples/cpp/protos/model/v1/health.pb.h @@ -1,19 +1,19 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: protos/model/v1/health.proto -#ifndef PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fhealth_2eproto -#define PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fhealth_2eproto +#ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fhealth_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fhealth_2eproto #include #include #include -#if PROTOBUF_VERSION < 3007000 +#if PROTOBUF_VERSION < 3011000 #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 +#if 3011000 < 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. @@ -27,6 +27,7 @@ #include #include #include +#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -35,20 +36,25 @@ // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fhealth_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_protos_2fmodel_2fv1_2fhealth_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] 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[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; -void AddDescriptors_protos_2fmodel_2fv1_2fhealth_2eproto(); +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto; namespace v1 { namespace model { class Health; @@ -56,57 +62,57 @@ class HealthDefaultTypeInternal; extern HealthDefaultTypeInternal _Health_default_instance_; } // namespace model } // namespace v1 -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN template<> ::v1::model::Health* Arena::CreateMaybeMessage<::v1::model::Health>(Arena*); -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE namespace v1 { namespace model { -enum HealthStatus { +enum HealthStatus : int { HEALTH_UNKNOWN = 0, HEALTH_OPERATIONAL = 1, HEALTH_OFFLINE = 2, HEALTH_ERROR = 3, - HealthStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - HealthStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() + HealthStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + HealthStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool HealthStatus_IsValid(int value); -const HealthStatus HealthStatus_MIN = HEALTH_UNKNOWN; -const HealthStatus HealthStatus_MAX = HEALTH_ERROR; -const int HealthStatus_ARRAYSIZE = HealthStatus_MAX + 1; - -const ::google::protobuf::EnumDescriptor* HealthStatus_descriptor(); -inline const ::std::string& HealthStatus_Name(HealthStatus value) { - return ::google::protobuf::internal::NameOfEnum( - HealthStatus_descriptor(), value); +constexpr HealthStatus HealthStatus_MIN = HEALTH_UNKNOWN; +constexpr HealthStatus HealthStatus_MAX = HEALTH_ERROR; +constexpr int HealthStatus_ARRAYSIZE = HealthStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HealthStatus_descriptor(); +template +inline const std::string& HealthStatus_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function HealthStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + HealthStatus_descriptor(), enum_t_value); } inline bool HealthStatus_Parse( - const ::std::string& name, HealthStatus* value) { - return ::google::protobuf::internal::ParseNamedEnum( + const std::string& name, HealthStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( HealthStatus_descriptor(), name, value); } // =================================================================== class Health : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.model.Health) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.model.Health) */ { public: Health(); virtual ~Health(); Health(const Health& from); - - inline Health& operator=(const Health& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 Health(Health&& from) noexcept : Health() { *this = ::std::move(from); } + inline Health& operator=(const Health& from) { + CopyFrom(from); + return *this; + } inline Health& operator=(Health&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -115,9 +121,15 @@ class Health : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; } static const Health& default_instance(); @@ -129,10 +141,13 @@ class Health : static constexpr int kIndexInFileMessages = 0; - void Swap(Health* other); friend void swap(Health& a, Health& b) { a.Swap(&b); } + inline void Swap(Health* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -140,37 +155,33 @@ class Health : return CreateMaybeMessage(nullptr); } - Health* New(::google::protobuf::Arena* arena) const final { + Health* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Health& from); void MergeFrom(const Health& 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; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Health* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "v1.model.Health"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -178,25 +189,38 @@ class Health : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto); + return ::descriptor_table_protos_2fmodel_2fv1_2fhealth_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // .v1.model.HealthStatus status = 1; + enum : int { + kStatusFieldNumber = 1, + }; + // .v1.model.HealthStatus status = 1[json_name = "status"]; void clear_status(); - static const int kStatusFieldNumber = 1; ::v1::model::HealthStatus status() const; void set_status(::v1::model::HealthStatus value); + private: + ::v1::model::HealthStatus _internal_status() const; + void _internal_set_status(::v1::model::HealthStatus value); + public: // @@protoc_insertion_point(class_scope:v1.model.Health) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; int status_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_protos_2fmodel_2fv1_2fhealth_2eproto; }; // =================================================================== @@ -210,17 +234,23 @@ class Health : #endif // __GNUC__ // Health -// .v1.model.HealthStatus status = 1; +// .v1.model.HealthStatus status = 1[json_name = "status"]; inline void Health::clear_status() { status_ = 0; } +inline ::v1::model::HealthStatus Health::_internal_status() const { + return static_cast< ::v1::model::HealthStatus >(status_); +} inline ::v1::model::HealthStatus Health::status() const { // @@protoc_insertion_point(field_get:v1.model.Health.status) - return static_cast< ::v1::model::HealthStatus >(status_); + return _internal_status(); } -inline void Health::set_status(::v1::model::HealthStatus value) { +inline void Health::_internal_set_status(::v1::model::HealthStatus value) { status_ = value; +} +inline void Health::set_status(::v1::model::HealthStatus value) { + _internal_set_status(value); // @@protoc_insertion_point(field_set:v1.model.Health.status) } @@ -233,8 +263,7 @@ inline void Health::set_status(::v1::model::HealthStatus value) { } // namespace model } // namespace v1 -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN template <> struct is_proto_enum< ::v1::model::HealthStatus> : ::std::true_type {}; template <> @@ -242,10 +271,9 @@ inline const EnumDescriptor* GetEnumDescriptor< ::v1::model::HealthStatus>() { return ::v1::model::HealthStatus_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fhealth_2eproto +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fmodel_2fv1_2fhealth_2eproto diff --git a/examples/cpp/protos/model/v1/health_mock.grpc.pb.h b/examples/cpp/protos/model/v1/health_mock.grpc.pb.h new file mode 100755 index 0000000..8ce8159 --- /dev/null +++ b/examples/cpp/protos/model/v1/health_mock.grpc.pb.h @@ -0,0 +1,16 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/health.proto + +#include "protos/model/v1/health.pb.h" +#include "protos/model/v1/health.grpc.pb.h" + +#include +#include +#include +namespace v1 { +namespace model { + +} // namespace v1 +} // namespace model + diff --git a/examples/cpp/protos/model/v1/intervention.grpc.pb.cc b/examples/cpp/protos/model/v1/intervention.grpc.pb.cc new file mode 100755 index 0000000..a4b03c5 --- /dev/null +++ b/examples/cpp/protos/model/v1/intervention.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/intervention.proto + +#include "protos/model/v1/intervention.pb.h" +#include "protos/model/v1/intervention.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace v1 { +namespace model { + +} // namespace v1 +} // namespace model + diff --git a/examples/cpp/protos/model/v1/intervention.grpc.pb.h b/examples/cpp/protos/model/v1/intervention.grpc.pb.h new file mode 100755 index 0000000..14ff51c --- /dev/null +++ b/examples/cpp/protos/model/v1/intervention.grpc.pb.h @@ -0,0 +1,46 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: protos/model/v1/intervention.proto +#ifndef GRPC_protos_2fmodel_2fv1_2fintervention_2eproto__INCLUDED +#define GRPC_protos_2fmodel_2fv1_2fintervention_2eproto__INCLUDED + +#include "protos/model/v1/intervention.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class CompletionQueue; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc + +namespace v1 { +namespace model { + +} // namespace model +} // namespace v1 + + +#endif // GRPC_protos_2fmodel_2fv1_2fintervention_2eproto__INCLUDED diff --git a/examples/cpp/protos/model/v1/intervention.pb.cc b/examples/cpp/protos/model/v1/intervention.pb.cc index fe545d6..646e970 100755 --- a/examples/cpp/protos/model/v1/intervention.pb.cc +++ b/examples/cpp/protos/model/v1/intervention.pb.cc @@ -5,245 +5,230 @@ #include -#include #include #include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) #include - -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InterventionRequest_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fintervention_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Label_protos_2fmodel_2fv1_2fintervention_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SelectionResponse_protos_2fmodel_2fv1_2fintervention_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Vertex_protos_2fmodel_2fv1_2fintervention_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_LabeledPolygon_protos_2fmodel_2fv1_2fintervention_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_LabelingResponse_protos_2fmodel_2fv1_2fintervention_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SelectionRequest_protos_2fmodel_2fv1_2fintervention_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_InterventionResponse_protos_2fmodel_2fv1_2fintervention_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_LabelingRequest_protos_2fmodel_2fv1_2fintervention_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 ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Image_protos_2fmodel_2fv1_2fmedia_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_InterventionRequest_TagsEntry_DoNotUse_protos_2fmodel_2fv1_2fintervention_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_InterventionResponse_protos_2fmodel_2fv1_2fintervention_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Label_protos_2fmodel_2fv1_2fintervention_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LabeledPolygon_protos_2fmodel_2fv1_2fintervention_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_LabelingRequest_protos_2fmodel_2fv1_2fintervention_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LabelingResponse_protos_2fmodel_2fv1_2fintervention_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SelectionRequest_protos_2fmodel_2fv1_2fintervention_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SelectionResponse_protos_2fmodel_2fv1_2fintervention_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_protos_2fmodel_2fv1_2fintervention_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Vertex_protos_2fmodel_2fv1_2fintervention_2eproto; namespace v1 { namespace model { class InterventionRequest_TagsEntry_DoNotUseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _InterventionRequest_TagsEntry_DoNotUse_default_instance_; class InterventionRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; const ::v1::model::SelectionRequest* selection_request_; const ::v1::model::LabelingRequest* labeling_request_; } _InterventionRequest_default_instance_; class InterventionResponseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; const ::v1::model::SelectionResponse* selection_response_; const ::v1::model::LabelingResponse* labeling_response_; } _InterventionResponse_default_instance_; class LabelDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed