diff --git a/driver/device.cpp b/driver/device.cpp index 4727688..7965c10 100644 --- a/driver/device.cpp +++ b/driver/device.cpp @@ -12,24 +12,19 @@ #include #include +#include + namespace rocvad { namespace { -void populate_default_values(DeviceInfo& info) -{ - if (info.config.name.empty()) { - info.config.name = fmt::format("Roc Virtual Device #{}", info.index); - } -} - -aspl::DeviceParameters make_device_params(const DeviceConfig& config) +aspl::DeviceParameters make_device_params(const DeviceInfo& info) { aspl::DeviceParameters device_params; - device_params.Name = config.name; + device_params.Name = info.name; device_params.Manufacturer = BuildInfo::driver_manufacturer; - device_params.DeviceUID = config.uid; + device_params.DeviceUID = info.uid; device_params.ModelUID = BuildInfo::driver_bundle_id; device_params.SampleRate = 44100; // TODO device_params.ChannelCount = 2; // TODO @@ -44,30 +39,36 @@ aspl::DeviceParameters make_device_params(const DeviceConfig& config) Device::Device(std::shared_ptr plugin, IndexAllocator& index_allocator, UidGenerator& uid_generator, - const DeviceConfig& config) + const DeviceInfo& info) : index_allocator_(index_allocator) , uid_generator_(uid_generator) , plugin_(plugin) - , info_(config) + , info_(info) { - info_.index = index_allocator_.allocate(); + if (info_.index == 0) { + info_.index = index_allocator_.allocate_and_acquire(); + } else { + index_allocator_.acquire(info_.index); + } - if (info_.config.uid.empty()) { - info_.config.uid = uid_generator_.generate(); + if (info_.uid.empty()) { + info_.uid = uid_generator_.generate(); } - populate_default_values(info_); + if (info_.name.empty()) { + info_.name = fmt::format("Roc Virtual Device #{}", info_.index); + } spdlog::info("creating device object, index={} uid={} type={} name=\"{}\"", info_.index, - info_.config.uid, - info_.config.type, - info_.config.name); + info_.uid, + info_.type, + info_.name); - device_ = std::make_shared( - plugin->GetContext(), make_device_params(info_.config)); + device_ = + std::make_shared(plugin->GetContext(), make_device_params(info_)); - device_->AddStreamWithControlsAsync(info_.config.type == DeviceType::Sender + device_->AddStreamWithControlsAsync(info_.type == DeviceType::Sender ? aspl::Direction::Output : aspl::Direction::Input); @@ -78,13 +79,15 @@ Device::~Device() { spdlog::info("destroying device object, index={} uid={} type={} name=\"{}\"", info_.index, - info_.config.uid, - info_.config.type, - info_.config.name); + info_.uid, + info_.type, + info_.name); plugin_->RemoveDevice(device_); - index_allocator_.release(info_.index); + if (info_.index != 0) { + index_allocator_.release(info_.index); + } } DeviceInfo Device::info() diff --git a/driver/device.hpp b/driver/device.hpp index 1c046f5..88d4f6c 100644 --- a/driver/device.hpp +++ b/driver/device.hpp @@ -26,7 +26,7 @@ class Device Device(std::shared_ptr plugin, IndexAllocator& index_allocator, UidGenerator& uid_generator, - const DeviceConfig& config); + const DeviceInfo& info); ~Device(); Device(const Device&) = delete; diff --git a/driver/device_defs.hpp b/driver/device_defs.hpp index c1a4e50..689d4c8 100644 --- a/driver/device_defs.hpp +++ b/driver/device_defs.hpp @@ -24,27 +24,15 @@ enum class DeviceType Receiver, }; -// Device creation parameters. -struct DeviceConfig +// Device info. +struct DeviceInfo { DeviceType type = DeviceType::Sender; - std::string name; - std::string uid; -}; -// Device run-time information -struct DeviceInfo -{ IndexAllocator::index_t index = 0; + std::string uid; - DeviceConfig config; - - DeviceInfo() = default; - - DeviceInfo(const DeviceConfig& config) - : config(config) - { - } + std::string name; }; } // namespace rocvad diff --git a/driver/device_manager.cpp b/driver/device_manager.cpp index 76a2a42..eb0d90c 100644 --- a/driver/device_manager.cpp +++ b/driver/device_manager.cpp @@ -52,25 +52,33 @@ DeviceInfo DeviceManager::get_device(const std::string& uid) return device->info(); } -DeviceInfo DeviceManager::add_device(const DeviceConfig& config) +DeviceInfo DeviceManager::add_device(DeviceInfo info) { std::lock_guard lock(mutex_); - if (!config.uid.empty() && device_by_uid_.count(config.uid)) { + if (info.index != 0 && device_by_index_.count(info.index)) { throw std::invalid_argument( - fmt::format("device with uid \"{}\" already exists", config.uid)); + fmt::format("device with index {} already exists", info.index)); + } + + if (!info.uid.empty() && device_by_uid_.count(info.uid)) { + throw std::invalid_argument( + fmt::format("device with uid \"{}\" already exists", info.uid)); } auto device = - std::make_shared(plugin_, index_allocator_, uid_generator_, config); + std::make_shared(plugin_, index_allocator_, uid_generator_, info); - auto info = device->info(); + info = device->info(); + + assert(info.index != 0); + assert(!info.uid.empty()); assert(!device_by_index_.count(info.index)); - assert(!device_by_uid_.count(info.config.uid)); + assert(!device_by_uid_.count(info.uid)); device_by_index_[info.index] = device; - device_by_uid_[info.config.uid] = device; + device_by_uid_[info.uid] = device; return info; } @@ -83,10 +91,10 @@ void DeviceManager::delete_device(index_t index) auto info = device->info(); assert(device_by_index_.count(info.index)); - assert(device_by_uid_.count(info.config.uid)); + assert(device_by_uid_.count(info.uid)); device_by_index_.erase(info.index); - device_by_uid_.erase(info.config.uid); + device_by_uid_.erase(info.uid); } void DeviceManager::delete_device(const std::string& uid) @@ -97,10 +105,10 @@ void DeviceManager::delete_device(const std::string& uid) auto info = device->info(); assert(device_by_index_.count(info.index)); - assert(device_by_uid_.count(info.config.uid)); + assert(device_by_uid_.count(info.uid)); device_by_index_.erase(info.index); - device_by_uid_.erase(info.config.uid); + device_by_uid_.erase(info.uid); } std::shared_ptr DeviceManager::find_device_(index_t index) diff --git a/driver/device_manager.hpp b/driver/device_manager.hpp index ef37ea0..029f0fd 100644 --- a/driver/device_manager.hpp +++ b/driver/device_manager.hpp @@ -39,7 +39,7 @@ class DeviceManager DeviceInfo get_device(index_t index); DeviceInfo get_device(const std::string& uid); - DeviceInfo add_device(const DeviceConfig& config); + DeviceInfo add_device(DeviceInfo info); void delete_device(index_t index); void delete_device(const std::string& uid); diff --git a/driver/driver_service.cpp b/driver/driver_service.cpp index 9cefa90..42bf799 100644 --- a/driver/driver_service.cpp +++ b/driver/driver_service.cpp @@ -19,22 +19,55 @@ namespace rocvad { namespace { -void device_config_from_rpc(DeviceConfig& out, const MesgDeviceConfig& in) +void device_info_from_rpc(DeviceInfo& out, const PrDeviceInfo& in) { - out.type = - in.type() == MesgDeviceConfig::SENDER ? DeviceType::Sender : DeviceType::Receiver; - out.uid = in.uid(); - out.name = in.name(); + switch (in.type()) { + case PR_DEVICE_TYPE_SENDER: + out.type = DeviceType::Sender; + break; + + case PR_DEVICE_TYPE_RECEIVER: + out.type = DeviceType::Receiver; + break; + + default: + throw std::invalid_argument( + fmt::format("device type should be either PR_DEVICE_TYPE_SENDER or " + "PR_DEVICE_TYPE_RECEIVER")); + } + + if (in.has_index()) { + if (in.index() == 0) { + throw std::invalid_argument( + fmt::format("device index should be either unset or non-zero")); + } + out.index = in.index(); + } + + if (in.has_uid()) { + if (in.uid().empty()) { + throw std::invalid_argument( + fmt::format("device uid should be either unset or non-empty")); + } + out.uid = in.uid(); + } + + if (in.has_name()) { + if (in.name().empty()) { + throw std::invalid_argument( + fmt::format("device name should be either unset or non-empty")); + } + out.name = in.name(); + } } -void device_info_to_rpc(MesgDeviceInfo& out, const DeviceInfo& in) +void device_info_to_rpc(PrDeviceInfo& out, const DeviceInfo& in) { + out.set_type( + in.type == DeviceType::Sender ? PR_DEVICE_TYPE_SENDER : PR_DEVICE_TYPE_RECEIVER); out.set_index(in.index); - out.mutable_config()->set_type(in.config.type == DeviceType::Sender - ? MesgDeviceConfig::SENDER - : MesgDeviceConfig::RECEIVER); - out.mutable_config()->set_uid(in.config.uid); - out.mutable_config()->set_name(in.config.name); + out.set_uid(in.uid); + out.set_name(in.name); } } // namespace @@ -49,8 +82,8 @@ DriverService::DriverService(std::shared_ptr log_manager, } grpc::Status DriverService::ping(grpc::ServerContext* context, - const MesgNone* request, - MesgNone* response) + const PrNone* request, + PrNone* response) { return execute_command_("ping", [=]() { // no-op @@ -58,8 +91,8 @@ grpc::Status DriverService::ping(grpc::ServerContext* context, } grpc::Status DriverService::driver_info(grpc::ServerContext* context, - const MesgNone* request, - MesgDriverInfo* response) + const PrNone* request, + PrDriverInfo* response) { return execute_command_("driver_info", [=]() { response->set_version(BuildInfo::git_version); @@ -68,8 +101,8 @@ grpc::Status DriverService::driver_info(grpc::ServerContext* context, } grpc::Status DriverService::stream_logs(grpc::ServerContext* context, - const MesgNone* request, - grpc::ServerWriter* writer) + const PrNone* request, + grpc::ServerWriter* writer) { return execute_command_("stream_logs", [=]() { auto log_sender = log_manager_->attach_sender(*writer); @@ -83,8 +116,8 @@ grpc::Status DriverService::stream_logs(grpc::ServerContext* context, } grpc::Status DriverService::get_all_devices(grpc::ServerContext* context, - const MesgNone* request, - MesgDeviceList* response) + const PrNone* request, + PrDeviceList* response) { return execute_command_("get_all_devices", [=]() { const auto devices = device_manager_->get_all_devices(); @@ -96,8 +129,8 @@ grpc::Status DriverService::get_all_devices(grpc::ServerContext* context, } grpc::Status DriverService::get_device(grpc::ServerContext* context, - const MesgDeviceSelector* request, - MesgDeviceInfo* response) + const PrDeviceSelector* request, + PrDeviceInfo* response) { return execute_command_("get_device", [=]() { const auto device_info = request->has_index() @@ -109,21 +142,21 @@ grpc::Status DriverService::get_device(grpc::ServerContext* context, } grpc::Status DriverService::add_device(grpc::ServerContext* context, - const MesgDeviceConfig* request, - MesgDeviceInfo* response) + const PrDeviceInfo* request, + PrDeviceInfo* response) { return execute_command_("add_device", [=]() { - DeviceConfig device_config; - device_config_from_rpc(device_config, *request); + DeviceInfo device_info; + device_info_from_rpc(device_info, *request); - const auto device_info = device_manager_->add_device(device_config); + device_info = device_manager_->add_device(device_info); device_info_to_rpc(*response, device_info); }); } grpc::Status DriverService::delete_device(grpc::ServerContext* context, - const MesgDeviceSelector* request, - MesgNone* response) + const PrDeviceSelector* request, + PrNone* response) { return execute_command_("delete_device", [=]() { if (request->has_index()) { diff --git a/driver/driver_service.hpp b/driver/driver_service.hpp index 44eff4c..28bffd1 100644 --- a/driver/driver_service.hpp +++ b/driver/driver_service.hpp @@ -28,32 +28,32 @@ class DriverService : public DriverProtocol::Service DriverService& operator=(const DriverService&) = delete; grpc::Status ping(grpc::ServerContext* context, - const MesgNone* request, - MesgNone* response) override; + const PrNone* request, + PrNone* response) override; grpc::Status driver_info(grpc::ServerContext* context, - const MesgNone* request, - MesgDriverInfo* response) override; + const PrNone* request, + PrDriverInfo* response) override; grpc::Status stream_logs(grpc::ServerContext* context, - const MesgNone* request, - grpc::ServerWriter* writer) override; + const PrNone* request, + grpc::ServerWriter* writer) override; grpc::Status get_all_devices(grpc::ServerContext* context, - const MesgNone* request, - MesgDeviceList* response) override; + const PrNone* request, + PrDeviceList* response) override; grpc::Status get_device(grpc::ServerContext* context, - const MesgDeviceSelector* request, - MesgDeviceInfo* response) override; + const PrDeviceSelector* request, + PrDeviceInfo* response) override; grpc::Status add_device(grpc::ServerContext* context, - const MesgDeviceConfig* request, - MesgDeviceInfo* response) override; + const PrDeviceInfo* request, + PrDeviceInfo* response) override; grpc::Status delete_device(grpc::ServerContext* context, - const MesgDeviceSelector* request, - MesgNone* response) override; + const PrDeviceSelector* request, + PrNone* response) override; private: grpc::Status execute_command_(const char* name, std::function func); diff --git a/driver/index_allocator.cpp b/driver/index_allocator.cpp index 739e1d6..a60a067 100644 --- a/driver/index_allocator.cpp +++ b/driver/index_allocator.cpp @@ -8,10 +8,12 @@ #include "index_allocator.hpp" +#include #include #include #include +#include namespace rocvad { @@ -23,7 +25,7 @@ IndexAllocator::IndexAllocator() num_allocated_ = 1; } -IndexAllocator::index_t IndexAllocator::allocate() +IndexAllocator::index_t IndexAllocator::allocate_and_acquire() { index_t next_index = last_allocated_index_ + 1; @@ -59,12 +61,25 @@ IndexAllocator::index_t IndexAllocator::allocate() return next_index; } +void IndexAllocator::acquire(index_t index) +{ + if (!is_free_(index)) { + throw std::invalid_argument( + fmt::format("device index {} is already in use", index)); + } + + set_free_(index, false); + num_allocated_++; + + spdlog::trace("acquired index={} num_allocated={}", index, num_allocated_); +} + void IndexAllocator::release(index_t index) { set_free_(index, true); num_allocated_--; - spdlog::trace("freed index={} num_allocated={}", index, num_allocated_); + spdlog::trace("released index={} num_allocated={}", index, num_allocated_); } IndexAllocator::index_t IndexAllocator::find_free_(index_t start_index) const diff --git a/driver/index_allocator.hpp b/driver/index_allocator.hpp index a359819..2423911 100644 --- a/driver/index_allocator.hpp +++ b/driver/index_allocator.hpp @@ -28,7 +28,8 @@ class IndexAllocator IndexAllocator(const IndexAllocator&) = delete; IndexAllocator& operator=(const IndexAllocator&) = delete; - index_t allocate(); + index_t allocate_and_acquire(); + void acquire(index_t index); void release(index_t index); private: diff --git a/driver/log_manager.cpp b/driver/log_manager.cpp index ab5f8c8..cd6af9c 100644 --- a/driver/log_manager.cpp +++ b/driver/log_manager.cpp @@ -46,7 +46,7 @@ LogManager::~LogManager() } std::shared_ptr LogManager::attach_sender( - grpc::ServerWriter& stream_writer) + grpc::ServerWriter& stream_writer) { spdlog::debug("attaching log sender to dist sink"); diff --git a/driver/log_manager.hpp b/driver/log_manager.hpp index d8354d3..541931f 100644 --- a/driver/log_manager.hpp +++ b/driver/log_manager.hpp @@ -35,7 +35,7 @@ class LogManager LogManager& operator=(const LogManager&) = delete; std::shared_ptr attach_sender( - grpc::ServerWriter& stream_writer); + grpc::ServerWriter& stream_writer); void detach_sender(std::shared_ptr sender_sink); diff --git a/driver/log_sender.cpp b/driver/log_sender.cpp index 84b46f8..17520c8 100644 --- a/driver/log_sender.cpp +++ b/driver/log_sender.cpp @@ -28,34 +28,34 @@ google::protobuf::Timestamp map_time(std::chrono::system_clock::time_point time_ return google::protobuf::util::TimeUtil::NanosecondsToTimestamp(nanoseconds); } -MesgLogEntry::Level map_level(spdlog::level::level_enum level) +PrLogEntry::Level map_level(spdlog::level::level_enum level) { switch (level) { case spdlog::level::critical: - return MesgLogEntry::CRIT; + return PrLogEntry::CRIT; case spdlog::level::err: - return MesgLogEntry::ERROR; + return PrLogEntry::ERROR; case spdlog::level::warn: - return MesgLogEntry::WARN; + return PrLogEntry::WARN; case spdlog::level::info: - return MesgLogEntry::INFO; + return PrLogEntry::INFO; case spdlog::level::debug: - return MesgLogEntry::DEBUG; + return PrLogEntry::DEBUG; default: break; } - return MesgLogEntry::TRACE; + return PrLogEntry::TRACE; } } // namespace -LogSender::LogSender(grpc::ServerWriter& stream_writer) +LogSender::LogSender(grpc::ServerWriter& stream_writer) : stream_writer_(stream_writer) { } @@ -83,7 +83,7 @@ void LogSender::sink_it_(const spdlog::details::log_msg& msg) buf_.resize(buf_.size() - 1); } - MesgLogEntry entry; + PrLogEntry entry; *entry.mutable_time() = map_time(msg.time); entry.set_level(map_level(msg.level)); entry.set_text(std::string(buf_.begin(), buf_.end())); diff --git a/driver/log_sender.hpp b/driver/log_sender.hpp index 8c7f89b..3559852 100644 --- a/driver/log_sender.hpp +++ b/driver/log_sender.hpp @@ -27,7 +27,7 @@ class LogSender : public spdlog::sinks::base_sink, public std::enable_shared_from_this { public: - LogSender(grpc::ServerWriter& stream_writer); + LogSender(grpc::ServerWriter& stream_writer); LogSender(const LogSender&) = delete; LogSender& operator=(const LogSender&) = delete; @@ -39,7 +39,7 @@ class LogSender : public spdlog::sinks::base_sink, void flush_() override; private: - grpc::ServerWriter& stream_writer_; + grpc::ServerWriter& stream_writer_; std::mutex mutex_; std::condition_variable cond_; diff --git a/rpc/driver_protocol.grpc.pb.cc b/rpc/driver_protocol.grpc.pb.cc index 407a7d6..1b75cdc 100644 --- a/rpc/driver_protocol.grpc.pb.cc +++ b/rpc/driver_protocol.grpc.pb.cc @@ -47,154 +47,154 @@ DriverProtocol::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& cha , rpcmethod_delete_device_(DriverProtocol_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} -::grpc::Status DriverProtocol::Stub::ping(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::rocvad::MesgNone* response) { - return ::grpc::internal::BlockingUnaryCall< ::rocvad::MesgNone, ::rocvad::MesgNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ping_, context, request, response); +::grpc::Status DriverProtocol::Stub::ping(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::rocvad::PrNone* response) { + return ::grpc::internal::BlockingUnaryCall< ::rocvad::PrNone, ::rocvad::PrNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ping_, context, request, response); } -void DriverProtocol::Stub::async::ping(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgNone* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::rocvad::MesgNone, ::rocvad::MesgNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ping_, context, request, response, std::move(f)); +void DriverProtocol::Stub::async::ping(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrNone* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::rocvad::PrNone, ::rocvad::PrNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ping_, context, request, response, std::move(f)); } -void DriverProtocol::Stub::async::ping(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgNone* response, ::grpc::ClientUnaryReactor* reactor) { +void DriverProtocol::Stub::async::ping(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrNone* response, ::grpc::ClientUnaryReactor* reactor) { ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ping_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>* DriverProtocol::Stub::PrepareAsyncpingRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::rocvad::MesgNone, ::rocvad::MesgNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ping_, context, request); +::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>* DriverProtocol::Stub::PrepareAsyncpingRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::rocvad::PrNone, ::rocvad::PrNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ping_, context, request); } -::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>* DriverProtocol::Stub::AsyncpingRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>* DriverProtocol::Stub::AsyncpingRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { auto* result = this->PrepareAsyncpingRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status DriverProtocol::Stub::driver_info(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::rocvad::MesgDriverInfo* response) { - return ::grpc::internal::BlockingUnaryCall< ::rocvad::MesgNone, ::rocvad::MesgDriverInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_driver_info_, context, request, response); +::grpc::Status DriverProtocol::Stub::driver_info(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::rocvad::PrDriverInfo* response) { + return ::grpc::internal::BlockingUnaryCall< ::rocvad::PrNone, ::rocvad::PrDriverInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_driver_info_, context, request, response); } -void DriverProtocol::Stub::async::driver_info(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDriverInfo* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::rocvad::MesgNone, ::rocvad::MesgDriverInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_driver_info_, context, request, response, std::move(f)); +void DriverProtocol::Stub::async::driver_info(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDriverInfo* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::rocvad::PrNone, ::rocvad::PrDriverInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_driver_info_, context, request, response, std::move(f)); } -void DriverProtocol::Stub::async::driver_info(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDriverInfo* response, ::grpc::ClientUnaryReactor* reactor) { +void DriverProtocol::Stub::async::driver_info(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDriverInfo* response, ::grpc::ClientUnaryReactor* reactor) { ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_driver_info_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::rocvad::MesgDriverInfo>* DriverProtocol::Stub::PrepareAsyncdriver_infoRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::rocvad::MesgDriverInfo, ::rocvad::MesgNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_driver_info_, context, request); +::grpc::ClientAsyncResponseReader< ::rocvad::PrDriverInfo>* DriverProtocol::Stub::PrepareAsyncdriver_infoRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::rocvad::PrDriverInfo, ::rocvad::PrNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_driver_info_, context, request); } -::grpc::ClientAsyncResponseReader< ::rocvad::MesgDriverInfo>* DriverProtocol::Stub::Asyncdriver_infoRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::rocvad::PrDriverInfo>* DriverProtocol::Stub::Asyncdriver_infoRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { auto* result = this->PrepareAsyncdriver_infoRaw(context, request, cq); result->StartCall(); return result; } -::grpc::ClientReader< ::rocvad::MesgLogEntry>* DriverProtocol::Stub::stream_logsRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request) { - return ::grpc::internal::ClientReaderFactory< ::rocvad::MesgLogEntry>::Create(channel_.get(), rpcmethod_stream_logs_, context, request); +::grpc::ClientReader< ::rocvad::PrLogEntry>* DriverProtocol::Stub::stream_logsRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request) { + return ::grpc::internal::ClientReaderFactory< ::rocvad::PrLogEntry>::Create(channel_.get(), rpcmethod_stream_logs_, context, request); } -void DriverProtocol::Stub::async::stream_logs(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::grpc::ClientReadReactor< ::rocvad::MesgLogEntry>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::rocvad::MesgLogEntry>::Create(stub_->channel_.get(), stub_->rpcmethod_stream_logs_, context, request, reactor); +void DriverProtocol::Stub::async::stream_logs(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::grpc::ClientReadReactor< ::rocvad::PrLogEntry>* reactor) { + ::grpc::internal::ClientCallbackReaderFactory< ::rocvad::PrLogEntry>::Create(stub_->channel_.get(), stub_->rpcmethod_stream_logs_, context, request, reactor); } -::grpc::ClientAsyncReader< ::rocvad::MesgLogEntry>* DriverProtocol::Stub::Asyncstream_logsRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::rocvad::MesgLogEntry>::Create(channel_.get(), cq, rpcmethod_stream_logs_, context, request, true, tag); +::grpc::ClientAsyncReader< ::rocvad::PrLogEntry>* DriverProtocol::Stub::Asyncstream_logsRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderFactory< ::rocvad::PrLogEntry>::Create(channel_.get(), cq, rpcmethod_stream_logs_, context, request, true, tag); } -::grpc::ClientAsyncReader< ::rocvad::MesgLogEntry>* DriverProtocol::Stub::PrepareAsyncstream_logsRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::rocvad::MesgLogEntry>::Create(channel_.get(), cq, rpcmethod_stream_logs_, context, request, false, nullptr); +::grpc::ClientAsyncReader< ::rocvad::PrLogEntry>* DriverProtocol::Stub::PrepareAsyncstream_logsRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderFactory< ::rocvad::PrLogEntry>::Create(channel_.get(), cq, rpcmethod_stream_logs_, context, request, false, nullptr); } -::grpc::Status DriverProtocol::Stub::get_all_devices(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::rocvad::MesgDeviceList* response) { - return ::grpc::internal::BlockingUnaryCall< ::rocvad::MesgNone, ::rocvad::MesgDeviceList, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_get_all_devices_, context, request, response); +::grpc::Status DriverProtocol::Stub::get_all_devices(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::rocvad::PrDeviceList* response) { + return ::grpc::internal::BlockingUnaryCall< ::rocvad::PrNone, ::rocvad::PrDeviceList, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_get_all_devices_, context, request, response); } -void DriverProtocol::Stub::async::get_all_devices(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDeviceList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::rocvad::MesgNone, ::rocvad::MesgDeviceList, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_get_all_devices_, context, request, response, std::move(f)); +void DriverProtocol::Stub::async::get_all_devices(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDeviceList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::rocvad::PrNone, ::rocvad::PrDeviceList, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_get_all_devices_, context, request, response, std::move(f)); } -void DriverProtocol::Stub::async::get_all_devices(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDeviceList* response, ::grpc::ClientUnaryReactor* reactor) { +void DriverProtocol::Stub::async::get_all_devices(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDeviceList* response, ::grpc::ClientUnaryReactor* reactor) { ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_get_all_devices_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceList>* DriverProtocol::Stub::PrepareAsyncget_all_devicesRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::rocvad::MesgDeviceList, ::rocvad::MesgNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_get_all_devices_, context, request); +::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceList>* DriverProtocol::Stub::PrepareAsyncget_all_devicesRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::rocvad::PrDeviceList, ::rocvad::PrNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_get_all_devices_, context, request); } -::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceList>* DriverProtocol::Stub::Asyncget_all_devicesRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceList>* DriverProtocol::Stub::Asyncget_all_devicesRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { auto* result = this->PrepareAsyncget_all_devicesRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status DriverProtocol::Stub::get_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::rocvad::MesgDeviceInfo* response) { - return ::grpc::internal::BlockingUnaryCall< ::rocvad::MesgDeviceSelector, ::rocvad::MesgDeviceInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_get_device_, context, request, response); +::grpc::Status DriverProtocol::Stub::get_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::rocvad::PrDeviceInfo* response) { + return ::grpc::internal::BlockingUnaryCall< ::rocvad::PrDeviceSelector, ::rocvad::PrDeviceInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_get_device_, context, request, response); } -void DriverProtocol::Stub::async::get_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgDeviceInfo* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::rocvad::MesgDeviceSelector, ::rocvad::MesgDeviceInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_get_device_, context, request, response, std::move(f)); +void DriverProtocol::Stub::async::get_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrDeviceInfo* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::rocvad::PrDeviceSelector, ::rocvad::PrDeviceInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_get_device_, context, request, response, std::move(f)); } -void DriverProtocol::Stub::async::get_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgDeviceInfo* response, ::grpc::ClientUnaryReactor* reactor) { +void DriverProtocol::Stub::async::get_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrDeviceInfo* response, ::grpc::ClientUnaryReactor* reactor) { ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_get_device_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>* DriverProtocol::Stub::PrepareAsyncget_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::rocvad::MesgDeviceInfo, ::rocvad::MesgDeviceSelector, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_get_device_, context, request); +::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>* DriverProtocol::Stub::PrepareAsyncget_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::rocvad::PrDeviceInfo, ::rocvad::PrDeviceSelector, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_get_device_, context, request); } -::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>* DriverProtocol::Stub::Asyncget_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>* DriverProtocol::Stub::Asyncget_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) { auto* result = this->PrepareAsyncget_deviceRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status DriverProtocol::Stub::add_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig& request, ::rocvad::MesgDeviceInfo* response) { - return ::grpc::internal::BlockingUnaryCall< ::rocvad::MesgDeviceConfig, ::rocvad::MesgDeviceInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_add_device_, context, request, response); +::grpc::Status DriverProtocol::Stub::add_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo& request, ::rocvad::PrDeviceInfo* response) { + return ::grpc::internal::BlockingUnaryCall< ::rocvad::PrDeviceInfo, ::rocvad::PrDeviceInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_add_device_, context, request, response); } -void DriverProtocol::Stub::async::add_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig* request, ::rocvad::MesgDeviceInfo* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::rocvad::MesgDeviceConfig, ::rocvad::MesgDeviceInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_add_device_, context, request, response, std::move(f)); +void DriverProtocol::Stub::async::add_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo* request, ::rocvad::PrDeviceInfo* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::rocvad::PrDeviceInfo, ::rocvad::PrDeviceInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_add_device_, context, request, response, std::move(f)); } -void DriverProtocol::Stub::async::add_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig* request, ::rocvad::MesgDeviceInfo* response, ::grpc::ClientUnaryReactor* reactor) { +void DriverProtocol::Stub::async::add_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo* request, ::rocvad::PrDeviceInfo* response, ::grpc::ClientUnaryReactor* reactor) { ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_add_device_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>* DriverProtocol::Stub::PrepareAsyncadd_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::rocvad::MesgDeviceInfo, ::rocvad::MesgDeviceConfig, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_add_device_, context, request); +::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>* DriverProtocol::Stub::PrepareAsyncadd_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::rocvad::PrDeviceInfo, ::rocvad::PrDeviceInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_add_device_, context, request); } -::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>* DriverProtocol::Stub::Asyncadd_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>* DriverProtocol::Stub::Asyncadd_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo& request, ::grpc::CompletionQueue* cq) { auto* result = this->PrepareAsyncadd_deviceRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status DriverProtocol::Stub::delete_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::rocvad::MesgNone* response) { - return ::grpc::internal::BlockingUnaryCall< ::rocvad::MesgDeviceSelector, ::rocvad::MesgNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_delete_device_, context, request, response); +::grpc::Status DriverProtocol::Stub::delete_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::rocvad::PrNone* response) { + return ::grpc::internal::BlockingUnaryCall< ::rocvad::PrDeviceSelector, ::rocvad::PrNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_delete_device_, context, request, response); } -void DriverProtocol::Stub::async::delete_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgNone* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::rocvad::MesgDeviceSelector, ::rocvad::MesgNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_delete_device_, context, request, response, std::move(f)); +void DriverProtocol::Stub::async::delete_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrNone* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::rocvad::PrDeviceSelector, ::rocvad::PrNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_delete_device_, context, request, response, std::move(f)); } -void DriverProtocol::Stub::async::delete_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgNone* response, ::grpc::ClientUnaryReactor* reactor) { +void DriverProtocol::Stub::async::delete_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrNone* response, ::grpc::ClientUnaryReactor* reactor) { ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_delete_device_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>* DriverProtocol::Stub::PrepareAsyncdelete_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::rocvad::MesgNone, ::rocvad::MesgDeviceSelector, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_delete_device_, context, request); +::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>* DriverProtocol::Stub::PrepareAsyncdelete_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::rocvad::PrNone, ::rocvad::PrDeviceSelector, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_delete_device_, context, request); } -::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>* DriverProtocol::Stub::Asyncdelete_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>* DriverProtocol::Stub::Asyncdelete_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) { auto* result = this->PrepareAsyncdelete_deviceRaw(context, request, cq); result->StartCall(); @@ -205,71 +205,71 @@ DriverProtocol::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( DriverProtocol_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DriverProtocol::Service, ::rocvad::MesgNone, ::rocvad::MesgNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< DriverProtocol::Service, ::rocvad::PrNone, ::rocvad::PrNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](DriverProtocol::Service* service, ::grpc::ServerContext* ctx, - const ::rocvad::MesgNone* req, - ::rocvad::MesgNone* resp) { + const ::rocvad::PrNone* req, + ::rocvad::PrNone* resp) { return service->ping(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( DriverProtocol_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DriverProtocol::Service, ::rocvad::MesgNone, ::rocvad::MesgDriverInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< DriverProtocol::Service, ::rocvad::PrNone, ::rocvad::PrDriverInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](DriverProtocol::Service* service, ::grpc::ServerContext* ctx, - const ::rocvad::MesgNone* req, - ::rocvad::MesgDriverInfo* resp) { + const ::rocvad::PrNone* req, + ::rocvad::PrDriverInfo* resp) { return service->driver_info(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( DriverProtocol_method_names[2], ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< DriverProtocol::Service, ::rocvad::MesgNone, ::rocvad::MesgLogEntry>( + new ::grpc::internal::ServerStreamingHandler< DriverProtocol::Service, ::rocvad::PrNone, ::rocvad::PrLogEntry>( [](DriverProtocol::Service* service, ::grpc::ServerContext* ctx, - const ::rocvad::MesgNone* req, - ::grpc::ServerWriter<::rocvad::MesgLogEntry>* writer) { + const ::rocvad::PrNone* req, + ::grpc::ServerWriter<::rocvad::PrLogEntry>* writer) { return service->stream_logs(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( DriverProtocol_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DriverProtocol::Service, ::rocvad::MesgNone, ::rocvad::MesgDeviceList, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< DriverProtocol::Service, ::rocvad::PrNone, ::rocvad::PrDeviceList, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](DriverProtocol::Service* service, ::grpc::ServerContext* ctx, - const ::rocvad::MesgNone* req, - ::rocvad::MesgDeviceList* resp) { + const ::rocvad::PrNone* req, + ::rocvad::PrDeviceList* resp) { return service->get_all_devices(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( DriverProtocol_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DriverProtocol::Service, ::rocvad::MesgDeviceSelector, ::rocvad::MesgDeviceInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< DriverProtocol::Service, ::rocvad::PrDeviceSelector, ::rocvad::PrDeviceInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](DriverProtocol::Service* service, ::grpc::ServerContext* ctx, - const ::rocvad::MesgDeviceSelector* req, - ::rocvad::MesgDeviceInfo* resp) { + const ::rocvad::PrDeviceSelector* req, + ::rocvad::PrDeviceInfo* resp) { return service->get_device(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( DriverProtocol_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DriverProtocol::Service, ::rocvad::MesgDeviceConfig, ::rocvad::MesgDeviceInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< DriverProtocol::Service, ::rocvad::PrDeviceInfo, ::rocvad::PrDeviceInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](DriverProtocol::Service* service, ::grpc::ServerContext* ctx, - const ::rocvad::MesgDeviceConfig* req, - ::rocvad::MesgDeviceInfo* resp) { + const ::rocvad::PrDeviceInfo* req, + ::rocvad::PrDeviceInfo* resp) { return service->add_device(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( DriverProtocol_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DriverProtocol::Service, ::rocvad::MesgDeviceSelector, ::rocvad::MesgNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< DriverProtocol::Service, ::rocvad::PrDeviceSelector, ::rocvad::PrNone, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](DriverProtocol::Service* service, ::grpc::ServerContext* ctx, - const ::rocvad::MesgDeviceSelector* req, - ::rocvad::MesgNone* resp) { + const ::rocvad::PrDeviceSelector* req, + ::rocvad::PrNone* resp) { return service->delete_device(ctx, req, resp); }, this))); } @@ -277,49 +277,49 @@ DriverProtocol::Service::Service() { DriverProtocol::Service::~Service() { } -::grpc::Status DriverProtocol::Service::ping(::grpc::ServerContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgNone* response) { +::grpc::Status DriverProtocol::Service::ping(::grpc::ServerContext* context, const ::rocvad::PrNone* request, ::rocvad::PrNone* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status DriverProtocol::Service::driver_info(::grpc::ServerContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDriverInfo* response) { +::grpc::Status DriverProtocol::Service::driver_info(::grpc::ServerContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDriverInfo* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status DriverProtocol::Service::stream_logs(::grpc::ServerContext* context, const ::rocvad::MesgNone* request, ::grpc::ServerWriter< ::rocvad::MesgLogEntry>* writer) { +::grpc::Status DriverProtocol::Service::stream_logs(::grpc::ServerContext* context, const ::rocvad::PrNone* request, ::grpc::ServerWriter< ::rocvad::PrLogEntry>* writer) { (void) context; (void) request; (void) writer; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status DriverProtocol::Service::get_all_devices(::grpc::ServerContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDeviceList* response) { +::grpc::Status DriverProtocol::Service::get_all_devices(::grpc::ServerContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDeviceList* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status DriverProtocol::Service::get_device(::grpc::ServerContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgDeviceInfo* response) { +::grpc::Status DriverProtocol::Service::get_device(::grpc::ServerContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrDeviceInfo* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status DriverProtocol::Service::add_device(::grpc::ServerContext* context, const ::rocvad::MesgDeviceConfig* request, ::rocvad::MesgDeviceInfo* response) { +::grpc::Status DriverProtocol::Service::add_device(::grpc::ServerContext* context, const ::rocvad::PrDeviceInfo* request, ::rocvad::PrDeviceInfo* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status DriverProtocol::Service::delete_device(::grpc::ServerContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgNone* response) { +::grpc::Status DriverProtocol::Service::delete_device(::grpc::ServerContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrNone* response) { (void) context; (void) request; (void) response; diff --git a/rpc/driver_protocol.grpc.pb.h b/rpc/driver_protocol.grpc.pb.h index b54f676..45209dd 100644 --- a/rpc/driver_protocol.grpc.pb.h +++ b/rpc/driver_protocol.grpc.pb.h @@ -45,177 +45,189 @@ class DriverProtocol final { public: virtual ~StubInterface() {} // Check driver presence. - virtual ::grpc::Status ping(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::rocvad::MesgNone* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgNone>> Asyncping(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgNone>>(AsyncpingRaw(context, request, cq)); + // This command does nothing and just returns success. + virtual ::grpc::Status ping(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::rocvad::PrNone* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrNone>> Asyncping(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrNone>>(AsyncpingRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgNone>> PrepareAsyncping(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgNone>>(PrepareAsyncpingRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrNone>> PrepareAsyncping(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrNone>>(PrepareAsyncpingRaw(context, request, cq)); } // Get driver info. - virtual ::grpc::Status driver_info(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::rocvad::MesgDriverInfo* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDriverInfo>> Asyncdriver_info(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDriverInfo>>(Asyncdriver_infoRaw(context, request, cq)); + virtual ::grpc::Status driver_info(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::rocvad::PrDriverInfo* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDriverInfo>> Asyncdriver_info(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDriverInfo>>(Asyncdriver_infoRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDriverInfo>> PrepareAsyncdriver_info(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDriverInfo>>(PrepareAsyncdriver_infoRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDriverInfo>> PrepareAsyncdriver_info(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDriverInfo>>(PrepareAsyncdriver_infoRaw(context, request, cq)); } // Stream driver logs to client. - std::unique_ptr< ::grpc::ClientReaderInterface< ::rocvad::MesgLogEntry>> stream_logs(::grpc::ClientContext* context, const ::rocvad::MesgNone& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::rocvad::MesgLogEntry>>(stream_logsRaw(context, request)); + // Logs are duplicated to all clients that want to stream them. + // Logs are also duplicated to syslog. + std::unique_ptr< ::grpc::ClientReaderInterface< ::rocvad::PrLogEntry>> stream_logs(::grpc::ClientContext* context, const ::rocvad::PrNone& request) { + return std::unique_ptr< ::grpc::ClientReaderInterface< ::rocvad::PrLogEntry>>(stream_logsRaw(context, request)); } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::rocvad::MesgLogEntry>> Asyncstream_logs(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::rocvad::MesgLogEntry>>(Asyncstream_logsRaw(context, request, cq, tag)); + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::rocvad::PrLogEntry>> Asyncstream_logs(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::rocvad::PrLogEntry>>(Asyncstream_logsRaw(context, request, cq, tag)); } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::rocvad::MesgLogEntry>> PrepareAsyncstream_logs(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::rocvad::MesgLogEntry>>(PrepareAsyncstream_logsRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::rocvad::PrLogEntry>> PrepareAsyncstream_logs(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::rocvad::PrLogEntry>>(PrepareAsyncstream_logsRaw(context, request, cq)); } // Get info for all virtual devices. - virtual ::grpc::Status get_all_devices(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::rocvad::MesgDeviceList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceList>> Asyncget_all_devices(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceList>>(Asyncget_all_devicesRaw(context, request, cq)); + virtual ::grpc::Status get_all_devices(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::rocvad::PrDeviceList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceList>> Asyncget_all_devices(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceList>>(Asyncget_all_devicesRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceList>> PrepareAsyncget_all_devices(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceList>>(PrepareAsyncget_all_devicesRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceList>> PrepareAsyncget_all_devices(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceList>>(PrepareAsyncget_all_devicesRaw(context, request, cq)); } // Get info for one virtual device. - virtual ::grpc::Status get_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::rocvad::MesgDeviceInfo* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceInfo>> Asyncget_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceInfo>>(Asyncget_deviceRaw(context, request, cq)); + // Device can be selected by index or UID. + virtual ::grpc::Status get_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::rocvad::PrDeviceInfo* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceInfo>> Asyncget_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceInfo>>(Asyncget_deviceRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceInfo>> PrepareAsyncget_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceInfo>>(PrepareAsyncget_deviceRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceInfo>> PrepareAsyncget_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceInfo>>(PrepareAsyncget_deviceRaw(context, request, cq)); } // Create new virtual device. - virtual ::grpc::Status add_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig& request, ::rocvad::MesgDeviceInfo* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceInfo>> Asyncadd_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceInfo>>(Asyncadd_deviceRaw(context, request, cq)); + // Returns updated device info with all fields set. + virtual ::grpc::Status add_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo& request, ::rocvad::PrDeviceInfo* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceInfo>> Asyncadd_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceInfo>>(Asyncadd_deviceRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceInfo>> PrepareAsyncadd_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceInfo>>(PrepareAsyncadd_deviceRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceInfo>> PrepareAsyncadd_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceInfo>>(PrepareAsyncadd_deviceRaw(context, request, cq)); } // Delete virtual device. - virtual ::grpc::Status delete_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::rocvad::MesgNone* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgNone>> Asyncdelete_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgNone>>(Asyncdelete_deviceRaw(context, request, cq)); + // Device can be selected by index or UID. + virtual ::grpc::Status delete_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::rocvad::PrNone* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrNone>> Asyncdelete_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrNone>>(Asyncdelete_deviceRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgNone>> PrepareAsyncdelete_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgNone>>(PrepareAsyncdelete_deviceRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrNone>> PrepareAsyncdelete_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrNone>>(PrepareAsyncdelete_deviceRaw(context, request, cq)); } class async_interface { public: virtual ~async_interface() {} // Check driver presence. - virtual void ping(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgNone* response, std::function) = 0; - virtual void ping(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgNone* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // This command does nothing and just returns success. + virtual void ping(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrNone* response, std::function) = 0; + virtual void ping(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrNone* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Get driver info. - virtual void driver_info(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDriverInfo* response, std::function) = 0; - virtual void driver_info(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDriverInfo* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void driver_info(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDriverInfo* response, std::function) = 0; + virtual void driver_info(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDriverInfo* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Stream driver logs to client. - virtual void stream_logs(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::grpc::ClientReadReactor< ::rocvad::MesgLogEntry>* reactor) = 0; + // Logs are duplicated to all clients that want to stream them. + // Logs are also duplicated to syslog. + virtual void stream_logs(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::grpc::ClientReadReactor< ::rocvad::PrLogEntry>* reactor) = 0; // Get info for all virtual devices. - virtual void get_all_devices(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDeviceList* response, std::function) = 0; - virtual void get_all_devices(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDeviceList* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void get_all_devices(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDeviceList* response, std::function) = 0; + virtual void get_all_devices(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDeviceList* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Get info for one virtual device. - virtual void get_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgDeviceInfo* response, std::function) = 0; - virtual void get_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgDeviceInfo* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Device can be selected by index or UID. + virtual void get_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrDeviceInfo* response, std::function) = 0; + virtual void get_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrDeviceInfo* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Create new virtual device. - virtual void add_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig* request, ::rocvad::MesgDeviceInfo* response, std::function) = 0; - virtual void add_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig* request, ::rocvad::MesgDeviceInfo* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Returns updated device info with all fields set. + virtual void add_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo* request, ::rocvad::PrDeviceInfo* response, std::function) = 0; + virtual void add_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo* request, ::rocvad::PrDeviceInfo* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Delete virtual device. - virtual void delete_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgNone* response, std::function) = 0; - virtual void delete_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgNone* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Device can be selected by index or UID. + virtual void delete_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrNone* response, std::function) = 0; + virtual void delete_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrNone* response, ::grpc::ClientUnaryReactor* reactor) = 0; }; typedef class async_interface experimental_async_interface; virtual class async_interface* async() { return nullptr; } class async_interface* experimental_async() { return async(); } private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgNone>* AsyncpingRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgNone>* PrepareAsyncpingRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDriverInfo>* Asyncdriver_infoRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDriverInfo>* PrepareAsyncdriver_infoRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::rocvad::MesgLogEntry>* stream_logsRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::rocvad::MesgLogEntry>* Asyncstream_logsRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::rocvad::MesgLogEntry>* PrepareAsyncstream_logsRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceList>* Asyncget_all_devicesRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceList>* PrepareAsyncget_all_devicesRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceInfo>* Asyncget_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceInfo>* PrepareAsyncget_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceInfo>* Asyncadd_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgDeviceInfo>* PrepareAsyncadd_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgNone>* Asyncdelete_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::MesgNone>* PrepareAsyncdelete_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrNone>* AsyncpingRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrNone>* PrepareAsyncpingRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDriverInfo>* Asyncdriver_infoRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDriverInfo>* PrepareAsyncdriver_infoRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderInterface< ::rocvad::PrLogEntry>* stream_logsRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::rocvad::PrLogEntry>* Asyncstream_logsRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::rocvad::PrLogEntry>* PrepareAsyncstream_logsRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceList>* Asyncget_all_devicesRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceList>* PrepareAsyncget_all_devicesRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceInfo>* Asyncget_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceInfo>* PrepareAsyncget_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceInfo>* Asyncadd_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrDeviceInfo>* PrepareAsyncadd_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrNone>* Asyncdelete_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::rocvad::PrNone>* PrepareAsyncdelete_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - ::grpc::Status ping(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::rocvad::MesgNone* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>> Asyncping(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>>(AsyncpingRaw(context, request, cq)); + ::grpc::Status ping(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::rocvad::PrNone* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>> Asyncping(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>>(AsyncpingRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>> PrepareAsyncping(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>>(PrepareAsyncpingRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>> PrepareAsyncping(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>>(PrepareAsyncpingRaw(context, request, cq)); } - ::grpc::Status driver_info(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::rocvad::MesgDriverInfo* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDriverInfo>> Asyncdriver_info(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDriverInfo>>(Asyncdriver_infoRaw(context, request, cq)); + ::grpc::Status driver_info(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::rocvad::PrDriverInfo* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDriverInfo>> Asyncdriver_info(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDriverInfo>>(Asyncdriver_infoRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDriverInfo>> PrepareAsyncdriver_info(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDriverInfo>>(PrepareAsyncdriver_infoRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDriverInfo>> PrepareAsyncdriver_info(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDriverInfo>>(PrepareAsyncdriver_infoRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientReader< ::rocvad::MesgLogEntry>> stream_logs(::grpc::ClientContext* context, const ::rocvad::MesgNone& request) { - return std::unique_ptr< ::grpc::ClientReader< ::rocvad::MesgLogEntry>>(stream_logsRaw(context, request)); + std::unique_ptr< ::grpc::ClientReader< ::rocvad::PrLogEntry>> stream_logs(::grpc::ClientContext* context, const ::rocvad::PrNone& request) { + return std::unique_ptr< ::grpc::ClientReader< ::rocvad::PrLogEntry>>(stream_logsRaw(context, request)); } - std::unique_ptr< ::grpc::ClientAsyncReader< ::rocvad::MesgLogEntry>> Asyncstream_logs(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::rocvad::MesgLogEntry>>(Asyncstream_logsRaw(context, request, cq, tag)); + std::unique_ptr< ::grpc::ClientAsyncReader< ::rocvad::PrLogEntry>> Asyncstream_logs(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::rocvad::PrLogEntry>>(Asyncstream_logsRaw(context, request, cq, tag)); } - std::unique_ptr< ::grpc::ClientAsyncReader< ::rocvad::MesgLogEntry>> PrepareAsyncstream_logs(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::rocvad::MesgLogEntry>>(PrepareAsyncstream_logsRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncReader< ::rocvad::PrLogEntry>> PrepareAsyncstream_logs(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::rocvad::PrLogEntry>>(PrepareAsyncstream_logsRaw(context, request, cq)); } - ::grpc::Status get_all_devices(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::rocvad::MesgDeviceList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceList>> Asyncget_all_devices(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceList>>(Asyncget_all_devicesRaw(context, request, cq)); + ::grpc::Status get_all_devices(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::rocvad::PrDeviceList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceList>> Asyncget_all_devices(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceList>>(Asyncget_all_devicesRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceList>> PrepareAsyncget_all_devices(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceList>>(PrepareAsyncget_all_devicesRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceList>> PrepareAsyncget_all_devices(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceList>>(PrepareAsyncget_all_devicesRaw(context, request, cq)); } - ::grpc::Status get_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::rocvad::MesgDeviceInfo* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>> Asyncget_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>>(Asyncget_deviceRaw(context, request, cq)); + ::grpc::Status get_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::rocvad::PrDeviceInfo* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>> Asyncget_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>>(Asyncget_deviceRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>> PrepareAsyncget_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>>(PrepareAsyncget_deviceRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>> PrepareAsyncget_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>>(PrepareAsyncget_deviceRaw(context, request, cq)); } - ::grpc::Status add_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig& request, ::rocvad::MesgDeviceInfo* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>> Asyncadd_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>>(Asyncadd_deviceRaw(context, request, cq)); + ::grpc::Status add_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo& request, ::rocvad::PrDeviceInfo* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>> Asyncadd_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>>(Asyncadd_deviceRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>> PrepareAsyncadd_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>>(PrepareAsyncadd_deviceRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>> PrepareAsyncadd_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>>(PrepareAsyncadd_deviceRaw(context, request, cq)); } - ::grpc::Status delete_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::rocvad::MesgNone* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>> Asyncdelete_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>>(Asyncdelete_deviceRaw(context, request, cq)); + ::grpc::Status delete_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::rocvad::PrNone* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>> Asyncdelete_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>>(Asyncdelete_deviceRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>> PrepareAsyncdelete_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>>(PrepareAsyncdelete_deviceRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>> PrepareAsyncdelete_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>>(PrepareAsyncdelete_deviceRaw(context, request, cq)); } class async final : public StubInterface::async_interface { public: - void ping(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgNone* response, std::function) override; - void ping(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgNone* response, ::grpc::ClientUnaryReactor* reactor) override; - void driver_info(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDriverInfo* response, std::function) override; - void driver_info(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDriverInfo* response, ::grpc::ClientUnaryReactor* reactor) override; - void stream_logs(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::grpc::ClientReadReactor< ::rocvad::MesgLogEntry>* reactor) override; - void get_all_devices(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDeviceList* response, std::function) override; - void get_all_devices(::grpc::ClientContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDeviceList* response, ::grpc::ClientUnaryReactor* reactor) override; - void get_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgDeviceInfo* response, std::function) override; - void get_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgDeviceInfo* response, ::grpc::ClientUnaryReactor* reactor) override; - void add_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig* request, ::rocvad::MesgDeviceInfo* response, std::function) override; - void add_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig* request, ::rocvad::MesgDeviceInfo* response, ::grpc::ClientUnaryReactor* reactor) override; - void delete_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgNone* response, std::function) override; - void delete_device(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgNone* response, ::grpc::ClientUnaryReactor* reactor) override; + void ping(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrNone* response, std::function) override; + void ping(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrNone* response, ::grpc::ClientUnaryReactor* reactor) override; + void driver_info(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDriverInfo* response, std::function) override; + void driver_info(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDriverInfo* response, ::grpc::ClientUnaryReactor* reactor) override; + void stream_logs(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::grpc::ClientReadReactor< ::rocvad::PrLogEntry>* reactor) override; + void get_all_devices(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDeviceList* response, std::function) override; + void get_all_devices(::grpc::ClientContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDeviceList* response, ::grpc::ClientUnaryReactor* reactor) override; + void get_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrDeviceInfo* response, std::function) override; + void get_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrDeviceInfo* response, ::grpc::ClientUnaryReactor* reactor) override; + void add_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo* request, ::rocvad::PrDeviceInfo* response, std::function) override; + void add_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo* request, ::rocvad::PrDeviceInfo* response, ::grpc::ClientUnaryReactor* reactor) override; + void delete_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrNone* response, std::function) override; + void delete_device(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrNone* response, ::grpc::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -227,21 +239,21 @@ class DriverProtocol final { private: std::shared_ptr< ::grpc::ChannelInterface> channel_; class async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>* AsyncpingRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>* PrepareAsyncpingRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDriverInfo>* Asyncdriver_infoRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDriverInfo>* PrepareAsyncdriver_infoRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::rocvad::MesgLogEntry>* stream_logsRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request) override; - ::grpc::ClientAsyncReader< ::rocvad::MesgLogEntry>* Asyncstream_logsRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::rocvad::MesgLogEntry>* PrepareAsyncstream_logsRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceList>* Asyncget_all_devicesRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceList>* PrepareAsyncget_all_devicesRaw(::grpc::ClientContext* context, const ::rocvad::MesgNone& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>* Asyncget_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>* PrepareAsyncget_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>* Asyncadd_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::rocvad::MesgDeviceInfo>* PrepareAsyncadd_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceConfig& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>* Asyncdelete_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::rocvad::MesgNone>* PrepareAsyncdelete_deviceRaw(::grpc::ClientContext* context, const ::rocvad::MesgDeviceSelector& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>* AsyncpingRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>* PrepareAsyncpingRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::rocvad::PrDriverInfo>* Asyncdriver_infoRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::rocvad::PrDriverInfo>* PrepareAsyncdriver_infoRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReader< ::rocvad::PrLogEntry>* stream_logsRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request) override; + ::grpc::ClientAsyncReader< ::rocvad::PrLogEntry>* Asyncstream_logsRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReader< ::rocvad::PrLogEntry>* PrepareAsyncstream_logsRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceList>* Asyncget_all_devicesRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceList>* PrepareAsyncget_all_devicesRaw(::grpc::ClientContext* context, const ::rocvad::PrNone& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>* Asyncget_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>* PrepareAsyncget_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>* Asyncadd_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::rocvad::PrDeviceInfo>* PrepareAsyncadd_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceInfo& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>* Asyncdelete_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::rocvad::PrNone>* PrepareAsyncdelete_deviceRaw(::grpc::ClientContext* context, const ::rocvad::PrDeviceSelector& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_ping_; const ::grpc::internal::RpcMethod rpcmethod_driver_info_; const ::grpc::internal::RpcMethod rpcmethod_stream_logs_; @@ -257,19 +269,25 @@ class DriverProtocol final { Service(); virtual ~Service(); // Check driver presence. - virtual ::grpc::Status ping(::grpc::ServerContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgNone* response); + // This command does nothing and just returns success. + virtual ::grpc::Status ping(::grpc::ServerContext* context, const ::rocvad::PrNone* request, ::rocvad::PrNone* response); // Get driver info. - virtual ::grpc::Status driver_info(::grpc::ServerContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDriverInfo* response); + virtual ::grpc::Status driver_info(::grpc::ServerContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDriverInfo* response); // Stream driver logs to client. - virtual ::grpc::Status stream_logs(::grpc::ServerContext* context, const ::rocvad::MesgNone* request, ::grpc::ServerWriter< ::rocvad::MesgLogEntry>* writer); + // Logs are duplicated to all clients that want to stream them. + // Logs are also duplicated to syslog. + virtual ::grpc::Status stream_logs(::grpc::ServerContext* context, const ::rocvad::PrNone* request, ::grpc::ServerWriter< ::rocvad::PrLogEntry>* writer); // Get info for all virtual devices. - virtual ::grpc::Status get_all_devices(::grpc::ServerContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDeviceList* response); + virtual ::grpc::Status get_all_devices(::grpc::ServerContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDeviceList* response); // Get info for one virtual device. - virtual ::grpc::Status get_device(::grpc::ServerContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgDeviceInfo* response); + // Device can be selected by index or UID. + virtual ::grpc::Status get_device(::grpc::ServerContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrDeviceInfo* response); // Create new virtual device. - virtual ::grpc::Status add_device(::grpc::ServerContext* context, const ::rocvad::MesgDeviceConfig* request, ::rocvad::MesgDeviceInfo* response); + // Returns updated device info with all fields set. + virtual ::grpc::Status add_device(::grpc::ServerContext* context, const ::rocvad::PrDeviceInfo* request, ::rocvad::PrDeviceInfo* response); // Delete virtual device. - virtual ::grpc::Status delete_device(::grpc::ServerContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgNone* response); + // Device can be selected by index or UID. + virtual ::grpc::Status delete_device(::grpc::ServerContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrNone* response); }; template class WithAsyncMethod_ping : public BaseClass { @@ -283,11 +301,11 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status ping(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgNone* /*response*/) override { + ::grpc::Status ping(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrNone* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void Requestping(::grpc::ServerContext* context, ::rocvad::MesgNone* request, ::grpc::ServerAsyncResponseWriter< ::rocvad::MesgNone>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void Requestping(::grpc::ServerContext* context, ::rocvad::PrNone* request, ::grpc::ServerAsyncResponseWriter< ::rocvad::PrNone>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -303,11 +321,11 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status driver_info(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDriverInfo* /*response*/) override { + ::grpc::Status driver_info(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDriverInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void Requestdriver_info(::grpc::ServerContext* context, ::rocvad::MesgNone* request, ::grpc::ServerAsyncResponseWriter< ::rocvad::MesgDriverInfo>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void Requestdriver_info(::grpc::ServerContext* context, ::rocvad::PrNone* request, ::grpc::ServerAsyncResponseWriter< ::rocvad::PrDriverInfo>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -323,11 +341,11 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status stream_logs(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::grpc::ServerWriter< ::rocvad::MesgLogEntry>* /*writer*/) override { + ::grpc::Status stream_logs(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::grpc::ServerWriter< ::rocvad::PrLogEntry>* /*writer*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void Requeststream_logs(::grpc::ServerContext* context, ::rocvad::MesgNone* request, ::grpc::ServerAsyncWriter< ::rocvad::MesgLogEntry>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void Requeststream_logs(::grpc::ServerContext* context, ::rocvad::PrNone* request, ::grpc::ServerAsyncWriter< ::rocvad::PrLogEntry>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncServerStreaming(2, context, request, writer, new_call_cq, notification_cq, tag); } }; @@ -343,11 +361,11 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status get_all_devices(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDeviceList* /*response*/) override { + ::grpc::Status get_all_devices(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDeviceList* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void Requestget_all_devices(::grpc::ServerContext* context, ::rocvad::MesgNone* request, ::grpc::ServerAsyncResponseWriter< ::rocvad::MesgDeviceList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void Requestget_all_devices(::grpc::ServerContext* context, ::rocvad::PrNone* request, ::grpc::ServerAsyncResponseWriter< ::rocvad::PrDeviceList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -363,11 +381,11 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status get_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) override { + ::grpc::Status get_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void Requestget_device(::grpc::ServerContext* context, ::rocvad::MesgDeviceSelector* request, ::grpc::ServerAsyncResponseWriter< ::rocvad::MesgDeviceInfo>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void Requestget_device(::grpc::ServerContext* context, ::rocvad::PrDeviceSelector* request, ::grpc::ServerAsyncResponseWriter< ::rocvad::PrDeviceInfo>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -383,11 +401,11 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status add_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceConfig* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) override { + ::grpc::Status add_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceInfo* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void Requestadd_device(::grpc::ServerContext* context, ::rocvad::MesgDeviceConfig* request, ::grpc::ServerAsyncResponseWriter< ::rocvad::MesgDeviceInfo>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void Requestadd_device(::grpc::ServerContext* context, ::rocvad::PrDeviceInfo* request, ::grpc::ServerAsyncResponseWriter< ::rocvad::PrDeviceInfo>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -403,11 +421,11 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status delete_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgNone* /*response*/) override { + ::grpc::Status delete_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrNone* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void Requestdelete_device(::grpc::ServerContext* context, ::rocvad::MesgDeviceSelector* request, ::grpc::ServerAsyncResponseWriter< ::rocvad::MesgNone>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void Requestdelete_device(::grpc::ServerContext* context, ::rocvad::PrDeviceSelector* request, ::grpc::ServerAsyncResponseWriter< ::rocvad::PrNone>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -419,25 +437,25 @@ class DriverProtocol final { public: WithCallbackMethod_ping() { ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::rocvad::MesgNone, ::rocvad::MesgNone>( + new ::grpc::internal::CallbackUnaryHandler< ::rocvad::PrNone, ::rocvad::PrNone>( [this]( - ::grpc::CallbackServerContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgNone* response) { return this->ping(context, request, response); }));} + ::grpc::CallbackServerContext* context, const ::rocvad::PrNone* request, ::rocvad::PrNone* response) { return this->ping(context, request, response); }));} void SetMessageAllocatorFor_ping( - ::grpc::MessageAllocator< ::rocvad::MesgNone, ::rocvad::MesgNone>* allocator) { + ::grpc::MessageAllocator< ::rocvad::PrNone, ::rocvad::PrNone>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::rocvad::MesgNone, ::rocvad::MesgNone>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::rocvad::PrNone, ::rocvad::PrNone>*>(handler) ->SetMessageAllocator(allocator); } ~WithCallbackMethod_ping() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status ping(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgNone* /*response*/) override { + ::grpc::Status ping(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrNone* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::ServerUnaryReactor* ping( - ::grpc::CallbackServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgNone* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrNone* /*response*/) { return nullptr; } }; template class WithCallbackMethod_driver_info : public BaseClass { @@ -446,25 +464,25 @@ class DriverProtocol final { public: WithCallbackMethod_driver_info() { ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::rocvad::MesgNone, ::rocvad::MesgDriverInfo>( + new ::grpc::internal::CallbackUnaryHandler< ::rocvad::PrNone, ::rocvad::PrDriverInfo>( [this]( - ::grpc::CallbackServerContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDriverInfo* response) { return this->driver_info(context, request, response); }));} + ::grpc::CallbackServerContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDriverInfo* response) { return this->driver_info(context, request, response); }));} void SetMessageAllocatorFor_driver_info( - ::grpc::MessageAllocator< ::rocvad::MesgNone, ::rocvad::MesgDriverInfo>* allocator) { + ::grpc::MessageAllocator< ::rocvad::PrNone, ::rocvad::PrDriverInfo>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::rocvad::MesgNone, ::rocvad::MesgDriverInfo>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::rocvad::PrNone, ::rocvad::PrDriverInfo>*>(handler) ->SetMessageAllocator(allocator); } ~WithCallbackMethod_driver_info() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status driver_info(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDriverInfo* /*response*/) override { + ::grpc::Status driver_info(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDriverInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::ServerUnaryReactor* driver_info( - ::grpc::CallbackServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDriverInfo* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDriverInfo* /*response*/) { return nullptr; } }; template class WithCallbackMethod_stream_logs : public BaseClass { @@ -473,20 +491,20 @@ class DriverProtocol final { public: WithCallbackMethod_stream_logs() { ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackServerStreamingHandler< ::rocvad::MesgNone, ::rocvad::MesgLogEntry>( + new ::grpc::internal::CallbackServerStreamingHandler< ::rocvad::PrNone, ::rocvad::PrLogEntry>( [this]( - ::grpc::CallbackServerContext* context, const ::rocvad::MesgNone* request) { return this->stream_logs(context, request); })); + ::grpc::CallbackServerContext* context, const ::rocvad::PrNone* request) { return this->stream_logs(context, request); })); } ~WithCallbackMethod_stream_logs() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status stream_logs(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::grpc::ServerWriter< ::rocvad::MesgLogEntry>* /*writer*/) override { + ::grpc::Status stream_logs(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::grpc::ServerWriter< ::rocvad::PrLogEntry>* /*writer*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerWriteReactor< ::rocvad::MesgLogEntry>* stream_logs( - ::grpc::CallbackServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/) { return nullptr; } + virtual ::grpc::ServerWriteReactor< ::rocvad::PrLogEntry>* stream_logs( + ::grpc::CallbackServerContext* /*context*/, const ::rocvad::PrNone* /*request*/) { return nullptr; } }; template class WithCallbackMethod_get_all_devices : public BaseClass { @@ -495,25 +513,25 @@ class DriverProtocol final { public: WithCallbackMethod_get_all_devices() { ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::rocvad::MesgNone, ::rocvad::MesgDeviceList>( + new ::grpc::internal::CallbackUnaryHandler< ::rocvad::PrNone, ::rocvad::PrDeviceList>( [this]( - ::grpc::CallbackServerContext* context, const ::rocvad::MesgNone* request, ::rocvad::MesgDeviceList* response) { return this->get_all_devices(context, request, response); }));} + ::grpc::CallbackServerContext* context, const ::rocvad::PrNone* request, ::rocvad::PrDeviceList* response) { return this->get_all_devices(context, request, response); }));} void SetMessageAllocatorFor_get_all_devices( - ::grpc::MessageAllocator< ::rocvad::MesgNone, ::rocvad::MesgDeviceList>* allocator) { + ::grpc::MessageAllocator< ::rocvad::PrNone, ::rocvad::PrDeviceList>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::rocvad::MesgNone, ::rocvad::MesgDeviceList>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::rocvad::PrNone, ::rocvad::PrDeviceList>*>(handler) ->SetMessageAllocator(allocator); } ~WithCallbackMethod_get_all_devices() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status get_all_devices(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDeviceList* /*response*/) override { + ::grpc::Status get_all_devices(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDeviceList* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::ServerUnaryReactor* get_all_devices( - ::grpc::CallbackServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDeviceList* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDeviceList* /*response*/) { return nullptr; } }; template class WithCallbackMethod_get_device : public BaseClass { @@ -522,25 +540,25 @@ class DriverProtocol final { public: WithCallbackMethod_get_device() { ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::rocvad::MesgDeviceSelector, ::rocvad::MesgDeviceInfo>( + new ::grpc::internal::CallbackUnaryHandler< ::rocvad::PrDeviceSelector, ::rocvad::PrDeviceInfo>( [this]( - ::grpc::CallbackServerContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgDeviceInfo* response) { return this->get_device(context, request, response); }));} + ::grpc::CallbackServerContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrDeviceInfo* response) { return this->get_device(context, request, response); }));} void SetMessageAllocatorFor_get_device( - ::grpc::MessageAllocator< ::rocvad::MesgDeviceSelector, ::rocvad::MesgDeviceInfo>* allocator) { + ::grpc::MessageAllocator< ::rocvad::PrDeviceSelector, ::rocvad::PrDeviceInfo>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::rocvad::MesgDeviceSelector, ::rocvad::MesgDeviceInfo>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::rocvad::PrDeviceSelector, ::rocvad::PrDeviceInfo>*>(handler) ->SetMessageAllocator(allocator); } ~WithCallbackMethod_get_device() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status get_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) override { + ::grpc::Status get_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::ServerUnaryReactor* get_device( - ::grpc::CallbackServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) { return nullptr; } }; template class WithCallbackMethod_add_device : public BaseClass { @@ -549,25 +567,25 @@ class DriverProtocol final { public: WithCallbackMethod_add_device() { ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::rocvad::MesgDeviceConfig, ::rocvad::MesgDeviceInfo>( + new ::grpc::internal::CallbackUnaryHandler< ::rocvad::PrDeviceInfo, ::rocvad::PrDeviceInfo>( [this]( - ::grpc::CallbackServerContext* context, const ::rocvad::MesgDeviceConfig* request, ::rocvad::MesgDeviceInfo* response) { return this->add_device(context, request, response); }));} + ::grpc::CallbackServerContext* context, const ::rocvad::PrDeviceInfo* request, ::rocvad::PrDeviceInfo* response) { return this->add_device(context, request, response); }));} void SetMessageAllocatorFor_add_device( - ::grpc::MessageAllocator< ::rocvad::MesgDeviceConfig, ::rocvad::MesgDeviceInfo>* allocator) { + ::grpc::MessageAllocator< ::rocvad::PrDeviceInfo, ::rocvad::PrDeviceInfo>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::rocvad::MesgDeviceConfig, ::rocvad::MesgDeviceInfo>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::rocvad::PrDeviceInfo, ::rocvad::PrDeviceInfo>*>(handler) ->SetMessageAllocator(allocator); } ~WithCallbackMethod_add_device() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status add_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceConfig* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) override { + ::grpc::Status add_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceInfo* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::ServerUnaryReactor* add_device( - ::grpc::CallbackServerContext* /*context*/, const ::rocvad::MesgDeviceConfig* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::rocvad::PrDeviceInfo* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) { return nullptr; } }; template class WithCallbackMethod_delete_device : public BaseClass { @@ -576,25 +594,25 @@ class DriverProtocol final { public: WithCallbackMethod_delete_device() { ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::rocvad::MesgDeviceSelector, ::rocvad::MesgNone>( + new ::grpc::internal::CallbackUnaryHandler< ::rocvad::PrDeviceSelector, ::rocvad::PrNone>( [this]( - ::grpc::CallbackServerContext* context, const ::rocvad::MesgDeviceSelector* request, ::rocvad::MesgNone* response) { return this->delete_device(context, request, response); }));} + ::grpc::CallbackServerContext* context, const ::rocvad::PrDeviceSelector* request, ::rocvad::PrNone* response) { return this->delete_device(context, request, response); }));} void SetMessageAllocatorFor_delete_device( - ::grpc::MessageAllocator< ::rocvad::MesgDeviceSelector, ::rocvad::MesgNone>* allocator) { + ::grpc::MessageAllocator< ::rocvad::PrDeviceSelector, ::rocvad::PrNone>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::rocvad::MesgDeviceSelector, ::rocvad::MesgNone>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::rocvad::PrDeviceSelector, ::rocvad::PrNone>*>(handler) ->SetMessageAllocator(allocator); } ~WithCallbackMethod_delete_device() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status delete_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgNone* /*response*/) override { + ::grpc::Status delete_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrNone* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::ServerUnaryReactor* delete_device( - ::grpc::CallbackServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgNone* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrNone* /*response*/) { return nullptr; } }; typedef WithCallbackMethod_ping > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; @@ -610,7 +628,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status ping(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgNone* /*response*/) override { + ::grpc::Status ping(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrNone* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -627,7 +645,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status driver_info(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDriverInfo* /*response*/) override { + ::grpc::Status driver_info(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDriverInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -644,7 +662,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status stream_logs(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::grpc::ServerWriter< ::rocvad::MesgLogEntry>* /*writer*/) override { + ::grpc::Status stream_logs(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::grpc::ServerWriter< ::rocvad::PrLogEntry>* /*writer*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -661,7 +679,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status get_all_devices(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDeviceList* /*response*/) override { + ::grpc::Status get_all_devices(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDeviceList* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -678,7 +696,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status get_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) override { + ::grpc::Status get_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -695,7 +713,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status add_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceConfig* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) override { + ::grpc::Status add_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceInfo* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -712,7 +730,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status delete_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgNone* /*response*/) override { + ::grpc::Status delete_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrNone* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -729,7 +747,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status ping(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgNone* /*response*/) override { + ::grpc::Status ping(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrNone* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -749,7 +767,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status driver_info(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDriverInfo* /*response*/) override { + ::grpc::Status driver_info(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDriverInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -769,7 +787,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status stream_logs(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::grpc::ServerWriter< ::rocvad::MesgLogEntry>* /*writer*/) override { + ::grpc::Status stream_logs(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::grpc::ServerWriter< ::rocvad::PrLogEntry>* /*writer*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -789,7 +807,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status get_all_devices(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDeviceList* /*response*/) override { + ::grpc::Status get_all_devices(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDeviceList* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -809,7 +827,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status get_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) override { + ::grpc::Status get_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -829,7 +847,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status add_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceConfig* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) override { + ::grpc::Status add_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceInfo* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -849,7 +867,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status delete_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgNone* /*response*/) override { + ::grpc::Status delete_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrNone* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -872,7 +890,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status ping(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgNone* /*response*/) override { + ::grpc::Status ping(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrNone* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -894,7 +912,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status driver_info(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDriverInfo* /*response*/) override { + ::grpc::Status driver_info(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDriverInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -916,7 +934,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status stream_logs(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::grpc::ServerWriter< ::rocvad::MesgLogEntry>* /*writer*/) override { + ::grpc::Status stream_logs(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::grpc::ServerWriter< ::rocvad::PrLogEntry>* /*writer*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -938,7 +956,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status get_all_devices(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDeviceList* /*response*/) override { + ::grpc::Status get_all_devices(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDeviceList* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -960,7 +978,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status get_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) override { + ::grpc::Status get_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -982,7 +1000,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status add_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceConfig* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) override { + ::grpc::Status add_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceInfo* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -1004,7 +1022,7 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status delete_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgNone* /*response*/) override { + ::grpc::Status delete_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrNone* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -1019,10 +1037,10 @@ class DriverProtocol final { WithStreamedUnaryMethod_ping() { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< - ::rocvad::MesgNone, ::rocvad::MesgNone>( + ::rocvad::PrNone, ::rocvad::PrNone>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::rocvad::MesgNone, ::rocvad::MesgNone>* streamer) { + ::rocvad::PrNone, ::rocvad::PrNone>* streamer) { return this->Streamedping(context, streamer); })); @@ -1031,12 +1049,12 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status ping(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgNone* /*response*/) override { + ::grpc::Status ping(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrNone* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status Streamedping(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rocvad::MesgNone,::rocvad::MesgNone>* server_unary_streamer) = 0; + virtual ::grpc::Status Streamedping(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rocvad::PrNone,::rocvad::PrNone>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_driver_info : public BaseClass { @@ -1046,10 +1064,10 @@ class DriverProtocol final { WithStreamedUnaryMethod_driver_info() { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< - ::rocvad::MesgNone, ::rocvad::MesgDriverInfo>( + ::rocvad::PrNone, ::rocvad::PrDriverInfo>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::rocvad::MesgNone, ::rocvad::MesgDriverInfo>* streamer) { + ::rocvad::PrNone, ::rocvad::PrDriverInfo>* streamer) { return this->Streameddriver_info(context, streamer); })); @@ -1058,12 +1076,12 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status driver_info(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDriverInfo* /*response*/) override { + ::grpc::Status driver_info(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDriverInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status Streameddriver_info(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rocvad::MesgNone,::rocvad::MesgDriverInfo>* server_unary_streamer) = 0; + virtual ::grpc::Status Streameddriver_info(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rocvad::PrNone,::rocvad::PrDriverInfo>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_get_all_devices : public BaseClass { @@ -1073,10 +1091,10 @@ class DriverProtocol final { WithStreamedUnaryMethod_get_all_devices() { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< - ::rocvad::MesgNone, ::rocvad::MesgDeviceList>( + ::rocvad::PrNone, ::rocvad::PrDeviceList>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::rocvad::MesgNone, ::rocvad::MesgDeviceList>* streamer) { + ::rocvad::PrNone, ::rocvad::PrDeviceList>* streamer) { return this->Streamedget_all_devices(context, streamer); })); @@ -1085,12 +1103,12 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status get_all_devices(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::rocvad::MesgDeviceList* /*response*/) override { + ::grpc::Status get_all_devices(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::rocvad::PrDeviceList* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status Streamedget_all_devices(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rocvad::MesgNone,::rocvad::MesgDeviceList>* server_unary_streamer) = 0; + virtual ::grpc::Status Streamedget_all_devices(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rocvad::PrNone,::rocvad::PrDeviceList>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_get_device : public BaseClass { @@ -1100,10 +1118,10 @@ class DriverProtocol final { WithStreamedUnaryMethod_get_device() { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< - ::rocvad::MesgDeviceSelector, ::rocvad::MesgDeviceInfo>( + ::rocvad::PrDeviceSelector, ::rocvad::PrDeviceInfo>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::rocvad::MesgDeviceSelector, ::rocvad::MesgDeviceInfo>* streamer) { + ::rocvad::PrDeviceSelector, ::rocvad::PrDeviceInfo>* streamer) { return this->Streamedget_device(context, streamer); })); @@ -1112,12 +1130,12 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status get_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) override { + ::grpc::Status get_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status Streamedget_device(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rocvad::MesgDeviceSelector,::rocvad::MesgDeviceInfo>* server_unary_streamer) = 0; + virtual ::grpc::Status Streamedget_device(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rocvad::PrDeviceSelector,::rocvad::PrDeviceInfo>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_add_device : public BaseClass { @@ -1127,10 +1145,10 @@ class DriverProtocol final { WithStreamedUnaryMethod_add_device() { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< - ::rocvad::MesgDeviceConfig, ::rocvad::MesgDeviceInfo>( + ::rocvad::PrDeviceInfo, ::rocvad::PrDeviceInfo>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::rocvad::MesgDeviceConfig, ::rocvad::MesgDeviceInfo>* streamer) { + ::rocvad::PrDeviceInfo, ::rocvad::PrDeviceInfo>* streamer) { return this->Streamedadd_device(context, streamer); })); @@ -1139,12 +1157,12 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status add_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceConfig* /*request*/, ::rocvad::MesgDeviceInfo* /*response*/) override { + ::grpc::Status add_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceInfo* /*request*/, ::rocvad::PrDeviceInfo* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status Streamedadd_device(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rocvad::MesgDeviceConfig,::rocvad::MesgDeviceInfo>* server_unary_streamer) = 0; + virtual ::grpc::Status Streamedadd_device(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rocvad::PrDeviceInfo,::rocvad::PrDeviceInfo>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_delete_device : public BaseClass { @@ -1154,10 +1172,10 @@ class DriverProtocol final { WithStreamedUnaryMethod_delete_device() { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< - ::rocvad::MesgDeviceSelector, ::rocvad::MesgNone>( + ::rocvad::PrDeviceSelector, ::rocvad::PrNone>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::rocvad::MesgDeviceSelector, ::rocvad::MesgNone>* streamer) { + ::rocvad::PrDeviceSelector, ::rocvad::PrNone>* streamer) { return this->Streameddelete_device(context, streamer); })); @@ -1166,12 +1184,12 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status delete_device(::grpc::ServerContext* /*context*/, const ::rocvad::MesgDeviceSelector* /*request*/, ::rocvad::MesgNone* /*response*/) override { + ::grpc::Status delete_device(::grpc::ServerContext* /*context*/, const ::rocvad::PrDeviceSelector* /*request*/, ::rocvad::PrNone* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status Streameddelete_device(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rocvad::MesgDeviceSelector,::rocvad::MesgNone>* server_unary_streamer) = 0; + virtual ::grpc::Status Streameddelete_device(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rocvad::PrDeviceSelector,::rocvad::PrNone>* server_unary_streamer) = 0; }; typedef WithStreamedUnaryMethod_ping > > > > > StreamedUnaryService; template @@ -1182,10 +1200,10 @@ class DriverProtocol final { WithSplitStreamingMethod_stream_logs() { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::SplitServerStreamingHandler< - ::rocvad::MesgNone, ::rocvad::MesgLogEntry>( + ::rocvad::PrNone, ::rocvad::PrLogEntry>( [this](::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< - ::rocvad::MesgNone, ::rocvad::MesgLogEntry>* streamer) { + ::rocvad::PrNone, ::rocvad::PrLogEntry>* streamer) { return this->Streamedstream_logs(context, streamer); })); @@ -1194,12 +1212,12 @@ class DriverProtocol final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status stream_logs(::grpc::ServerContext* /*context*/, const ::rocvad::MesgNone* /*request*/, ::grpc::ServerWriter< ::rocvad::MesgLogEntry>* /*writer*/) override { + ::grpc::Status stream_logs(::grpc::ServerContext* /*context*/, const ::rocvad::PrNone* /*request*/, ::grpc::ServerWriter< ::rocvad::PrLogEntry>* /*writer*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with split streamed - virtual ::grpc::Status Streamedstream_logs(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::rocvad::MesgNone,::rocvad::MesgLogEntry>* server_split_streamer) = 0; + virtual ::grpc::Status Streamedstream_logs(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::rocvad::PrNone,::rocvad::PrLogEntry>* server_split_streamer) = 0; }; typedef WithSplitStreamingMethod_stream_logs SplitStreamedService; typedef WithStreamedUnaryMethod_ping > > > > > > StreamedService; diff --git a/rpc/driver_protocol.pb.cc b/rpc/driver_protocol.pb.cc index 88009ff..729c26c 100644 --- a/rpc/driver_protocol.pb.cc +++ b/rpc/driver_protocol.pb.cc @@ -21,223 +21,344 @@ namespace _pb = ::PROTOBUF_NAMESPACE_ID; namespace _pbi = _pb::internal; namespace rocvad { -PROTOBUF_CONSTEXPR MesgNone::MesgNone( +PROTOBUF_CONSTEXPR PrNone::PrNone( ::_pbi::ConstantInitialized) {} -struct MesgNoneDefaultTypeInternal { - PROTOBUF_CONSTEXPR MesgNoneDefaultTypeInternal() +struct PrNoneDefaultTypeInternal { + PROTOBUF_CONSTEXPR PrNoneDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MesgNoneDefaultTypeInternal() {} + ~PrNoneDefaultTypeInternal() {} union { - MesgNone _instance; + PrNone _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MesgNoneDefaultTypeInternal _MesgNone_default_instance_; -PROTOBUF_CONSTEXPR MesgDriverInfo::MesgDriverInfo( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrNoneDefaultTypeInternal _PrNone_default_instance_; +PROTOBUF_CONSTEXPR PrDriverInfo::PrDriverInfo( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.commit_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_._cached_size_)*/{}} {} -struct MesgDriverInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR MesgDriverInfoDefaultTypeInternal() +struct PrDriverInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR PrDriverInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MesgDriverInfoDefaultTypeInternal() {} + ~PrDriverInfoDefaultTypeInternal() {} union { - MesgDriverInfo _instance; + PrDriverInfo _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MesgDriverInfoDefaultTypeInternal _MesgDriverInfo_default_instance_; -PROTOBUF_CONSTEXPR MesgLogEntry::MesgLogEntry( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrDriverInfoDefaultTypeInternal _PrDriverInfo_default_instance_; +PROTOBUF_CONSTEXPR PrLogEntry::PrLogEntry( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.text_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.time_)*/nullptr , /*decltype(_impl_.level_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} -struct MesgLogEntryDefaultTypeInternal { - PROTOBUF_CONSTEXPR MesgLogEntryDefaultTypeInternal() +struct PrLogEntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR PrLogEntryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MesgLogEntryDefaultTypeInternal() {} + ~PrLogEntryDefaultTypeInternal() {} union { - MesgLogEntry _instance; + PrLogEntry _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MesgLogEntryDefaultTypeInternal _MesgLogEntry_default_instance_; -PROTOBUF_CONSTEXPR MesgDeviceSelector::MesgDeviceSelector( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrLogEntryDefaultTypeInternal _PrLogEntry_default_instance_; +PROTOBUF_CONSTEXPR PrDeviceSelector::PrDeviceSelector( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.Selector_)*/{} , /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_._oneof_case_)*/{}} {} -struct MesgDeviceSelectorDefaultTypeInternal { - PROTOBUF_CONSTEXPR MesgDeviceSelectorDefaultTypeInternal() +struct PrDeviceSelectorDefaultTypeInternal { + PROTOBUF_CONSTEXPR PrDeviceSelectorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MesgDeviceSelectorDefaultTypeInternal() {} + ~PrDeviceSelectorDefaultTypeInternal() {} union { - MesgDeviceSelector _instance; + PrDeviceSelector _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MesgDeviceSelectorDefaultTypeInternal _MesgDeviceSelector_default_instance_; -PROTOBUF_CONSTEXPR MesgDeviceConfig::MesgDeviceConfig( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrDeviceSelectorDefaultTypeInternal _PrDeviceSelector_default_instance_; +PROTOBUF_CONSTEXPR PrDeviceInfo::PrDeviceInfo( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.uid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.uid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.local_config_)*/nullptr , /*decltype(_impl_.type_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct MesgDeviceConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR MesgDeviceConfigDefaultTypeInternal() + , /*decltype(_impl_.index_)*/0u + , /*decltype(_impl_.NetworkConfig_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct PrDeviceInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR PrDeviceInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MesgDeviceConfigDefaultTypeInternal() {} + ~PrDeviceInfoDefaultTypeInternal() {} union { - MesgDeviceConfig _instance; + PrDeviceInfo _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MesgDeviceConfigDefaultTypeInternal _MesgDeviceConfig_default_instance_; -PROTOBUF_CONSTEXPR MesgDeviceInfo::MesgDeviceInfo( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrDeviceInfoDefaultTypeInternal _PrDeviceInfo_default_instance_; +PROTOBUF_CONSTEXPR PrDeviceList::PrDeviceList( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.config_)*/nullptr - , /*decltype(_impl_.index_)*/0u + /*decltype(_impl_.devices_)*/{} , /*decltype(_impl_._cached_size_)*/{}} {} -struct MesgDeviceInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR MesgDeviceInfoDefaultTypeInternal() +struct PrDeviceListDefaultTypeInternal { + PROTOBUF_CONSTEXPR PrDeviceListDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MesgDeviceInfoDefaultTypeInternal() {} + ~PrDeviceListDefaultTypeInternal() {} union { - MesgDeviceInfo _instance; + PrDeviceList _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MesgDeviceInfoDefaultTypeInternal _MesgDeviceInfo_default_instance_; -PROTOBUF_CONSTEXPR MesgDeviceList::MesgDeviceList( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrDeviceListDefaultTypeInternal _PrDeviceList_default_instance_; +PROTOBUF_CONSTEXPR PrLocalConfig::PrLocalConfig( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.devices_)*/{} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct MesgDeviceListDefaultTypeInternal { - PROTOBUF_CONSTEXPR MesgDeviceListDefaultTypeInternal() + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.sample_rate_)*/0u + , /*decltype(_impl_.channel_set_)*/0} {} +struct PrLocalConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR PrLocalConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PrLocalConfigDefaultTypeInternal() {} + union { + PrLocalConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrLocalConfigDefaultTypeInternal _PrLocalConfig_default_instance_; +PROTOBUF_CONSTEXPR PrSenderConfig::PrSenderConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.packet_length_)*/nullptr + , /*decltype(_impl_.packet_encoding_)*/0 + , /*decltype(_impl_.fec_encoding_)*/0 + , /*decltype(_impl_.fec_block_source_packets_)*/0u + , /*decltype(_impl_.fec_block_repair_packets_)*/0u} {} +struct PrSenderConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR PrSenderConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PrSenderConfigDefaultTypeInternal() {} + union { + PrSenderConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrSenderConfigDefaultTypeInternal _PrSenderConfig_default_instance_; +PROTOBUF_CONSTEXPR PrReceiverConfig::PrReceiverConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.target_latency_)*/nullptr + , /*decltype(_impl_.resampler_backend_)*/0 + , /*decltype(_impl_.resampler_profile_)*/0} {} +struct PrReceiverConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR PrReceiverConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MesgDeviceListDefaultTypeInternal() {} + ~PrReceiverConfigDefaultTypeInternal() {} union { - MesgDeviceList _instance; + PrReceiverConfig _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MesgDeviceListDefaultTypeInternal _MesgDeviceList_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrReceiverConfigDefaultTypeInternal _PrReceiverConfig_default_instance_; } // namespace rocvad -static ::_pb::Metadata file_level_metadata_driver_5fprotocol_2eproto[7]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_driver_5fprotocol_2eproto[2]; +static ::_pb::Metadata file_level_metadata_driver_5fprotocol_2eproto[9]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_driver_5fprotocol_2eproto[7]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_driver_5fprotocol_2eproto = nullptr; const uint32_t TableStruct_driver_5fprotocol_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::rocvad::MesgNone, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrNone, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDriverInfo, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDriverInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDriverInfo, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDriverInfo, _impl_.commit_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDriverInfo, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDriverInfo, _impl_.commit_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::rocvad::MesgLogEntry, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrLogEntry, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::rocvad::MesgLogEntry, _impl_.time_), - PROTOBUF_FIELD_OFFSET(::rocvad::MesgLogEntry, _impl_.level_), - PROTOBUF_FIELD_OFFSET(::rocvad::MesgLogEntry, _impl_.text_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrLogEntry, _impl_.time_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrLogEntry, _impl_.level_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrLogEntry, _impl_.text_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDeviceSelector, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceSelector, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceSelector, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceSelector, _impl_.Selector_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceInfo, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceInfo, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDeviceSelector, _impl_._oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceInfo, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceInfo, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceInfo, _impl_.index_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceInfo, _impl_.uid_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceInfo, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceInfo, _impl_.local_config_), ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDeviceSelector, _impl_.Selector_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceInfo, _impl_.NetworkConfig_), + ~0u, + 2, + 0, + 1, + ~0u, + ~0u, + ~0u, ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDeviceConfig, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceList, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDeviceConfig, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDeviceConfig, _impl_.uid_), - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDeviceConfig, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDeviceInfo, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrDeviceList, _impl_.devices_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrLocalConfig, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrLocalConfig, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDeviceInfo, _impl_.index_), - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDeviceInfo, _impl_.config_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDeviceList, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrLocalConfig, _impl_.sample_rate_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrLocalConfig, _impl_.channel_set_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::rocvad::PrSenderConfig, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrSenderConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::rocvad::PrSenderConfig, _impl_.packet_encoding_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrSenderConfig, _impl_.packet_length_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrSenderConfig, _impl_.fec_encoding_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrSenderConfig, _impl_.fec_block_source_packets_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrSenderConfig, _impl_.fec_block_repair_packets_), + 1, + 0, + 2, + 3, + 4, + PROTOBUF_FIELD_OFFSET(::rocvad::PrReceiverConfig, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrReceiverConfig, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::rocvad::MesgDeviceList, _impl_.devices_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrReceiverConfig, _impl_.target_latency_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrReceiverConfig, _impl_.resampler_backend_), + PROTOBUF_FIELD_OFFSET(::rocvad::PrReceiverConfig, _impl_.resampler_profile_), + 0, + 1, + 2, }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::rocvad::MesgNone)}, - { 6, -1, -1, sizeof(::rocvad::MesgDriverInfo)}, - { 14, -1, -1, sizeof(::rocvad::MesgLogEntry)}, - { 23, -1, -1, sizeof(::rocvad::MesgDeviceSelector)}, - { 32, -1, -1, sizeof(::rocvad::MesgDeviceConfig)}, - { 41, -1, -1, sizeof(::rocvad::MesgDeviceInfo)}, - { 49, -1, -1, sizeof(::rocvad::MesgDeviceList)}, + { 0, -1, -1, sizeof(::rocvad::PrNone)}, + { 6, -1, -1, sizeof(::rocvad::PrDriverInfo)}, + { 14, -1, -1, sizeof(::rocvad::PrLogEntry)}, + { 23, -1, -1, sizeof(::rocvad::PrDeviceSelector)}, + { 32, 46, -1, sizeof(::rocvad::PrDeviceInfo)}, + { 53, -1, -1, sizeof(::rocvad::PrDeviceList)}, + { 60, 68, -1, sizeof(::rocvad::PrLocalConfig)}, + { 70, 81, -1, sizeof(::rocvad::PrSenderConfig)}, + { 86, 95, -1, sizeof(::rocvad::PrReceiverConfig)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::rocvad::_MesgNone_default_instance_._instance, - &::rocvad::_MesgDriverInfo_default_instance_._instance, - &::rocvad::_MesgLogEntry_default_instance_._instance, - &::rocvad::_MesgDeviceSelector_default_instance_._instance, - &::rocvad::_MesgDeviceConfig_default_instance_._instance, - &::rocvad::_MesgDeviceInfo_default_instance_._instance, - &::rocvad::_MesgDeviceList_default_instance_._instance, + &::rocvad::_PrNone_default_instance_._instance, + &::rocvad::_PrDriverInfo_default_instance_._instance, + &::rocvad::_PrLogEntry_default_instance_._instance, + &::rocvad::_PrDeviceSelector_default_instance_._instance, + &::rocvad::_PrDeviceInfo_default_instance_._instance, + &::rocvad::_PrDeviceList_default_instance_._instance, + &::rocvad::_PrLocalConfig_default_instance_._instance, + &::rocvad::_PrSenderConfig_default_instance_._instance, + &::rocvad::_PrReceiverConfig_default_instance_._instance, }; const char descriptor_table_protodef_driver_5fprotocol_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\025driver_protocol.proto\022\006rocvad\032\037google/" - "protobuf/timestamp.proto\"\n\n\010MesgNone\"1\n\016" - "MesgDriverInfo\022\017\n\007version\030\001 \001(\t\022\016\n\006commi" - "t\030\002 \001(\t\"\271\001\n\014MesgLogEntry\022(\n\004time\030\001 \001(\0132\032" - ".google.protobuf.Timestamp\022)\n\005level\030\002 \001(" - "\0162\032.rocvad.MesgLogEntry.Level\022\014\n\004text\030\003 " - "\001(\t\"F\n\005Level\022\010\n\004CRIT\020\000\022\t\n\005ERROR\020\001\022\010\n\004WAR" - "N\020\002\022\010\n\004INFO\020\003\022\t\n\005DEBUG\020\004\022\t\n\005TRACE\020\005\"@\n\022M" - "esgDeviceSelector\022\017\n\005index\030\001 \001(\rH\000\022\r\n\003ui" - "d\030\002 \001(\tH\000B\n\n\010Selector\"|\n\020MesgDeviceConfi" - "g\022+\n\004type\030\001 \001(\0162\035.rocvad.MesgDeviceConfi" - "g.Type\022\013\n\003uid\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\" \n\004Typ" - "e\022\n\n\006SENDER\020\000\022\014\n\010RECEIVER\020\001\"I\n\016MesgDevic" - "eInfo\022\r\n\005index\030\001 \001(\r\022(\n\006config\030\002 \001(\0132\030.r" - "ocvad.MesgDeviceConfig\"9\n\016MesgDeviceList" - "\022\'\n\007devices\030\001 \003(\0132\026.rocvad.MesgDeviceInf" - "o2\272\003\n\016DriverProtocol\022,\n\004ping\022\020.rocvad.Me" - "sgNone\032\020.rocvad.MesgNone\"\000\0229\n\013driver_inf" - "o\022\020.rocvad.MesgNone\032\026.rocvad.MesgDriverI" - "nfo\"\000\0229\n\013stream_logs\022\020.rocvad.MesgNone\032\024" - ".rocvad.MesgLogEntry\"\0000\001\022=\n\017get_all_devi" - "ces\022\020.rocvad.MesgNone\032\026.rocvad.MesgDevic" - "eList\"\000\022B\n\nget_device\022\032.rocvad.MesgDevic" - "eSelector\032\026.rocvad.MesgDeviceInfo\"\000\022@\n\na" - "dd_device\022\030.rocvad.MesgDeviceConfig\032\026.ro" - "cvad.MesgDeviceInfo\"\000\022\?\n\rdelete_device\022\032" - ".rocvad.MesgDeviceSelector\032\020.rocvad.Mesg" - "None\"\000b\006proto3" + "\n\025driver_protocol.proto\022\006rocvad\032\036google/" + "protobuf/duration.proto\032\037google/protobuf" + "/timestamp.proto\"\010\n\006PrNone\"/\n\014PrDriverIn" + "fo\022\017\n\007version\030\001 \001(\t\022\016\n\006commit\030\002 \001(\t\"\265\001\n\n" + "PrLogEntry\022(\n\004time\030\001 \001(\0132\032.google.protob" + "uf.Timestamp\022\'\n\005level\030\002 \001(\0162\030.rocvad.PrL" + "ogEntry.Level\022\014\n\004text\030\003 \001(\t\"F\n\005Level\022\010\n\004" + "CRIT\020\000\022\t\n\005ERROR\020\001\022\010\n\004WARN\020\002\022\010\n\004INFO\020\003\022\t\n" + "\005DEBUG\020\004\022\t\n\005TRACE\020\005\">\n\020PrDeviceSelector\022" + "\017\n\005index\030\001 \001(\rH\000\022\r\n\003uid\030\002 \001(\tH\000B\n\n\010Selec" + "tor\"\252\002\n\014PrDeviceInfo\022\"\n\004type\030\001 \001(\0162\024.roc" + "vad.PrDeviceType\022\022\n\005index\030\002 \001(\rH\001\210\001\001\022\020\n\003" + "uid\030\003 \001(\tH\002\210\001\001\022\021\n\004name\030\004 \001(\tH\003\210\001\001\022+\n\014loc" + "al_config\030\005 \001(\0132\025.rocvad.PrLocalConfig\022/" + "\n\rsender_config\030\006 \001(\0132\026.rocvad.PrSenderC" + "onfigH\000\0223\n\017receiver_config\030\007 \001(\0132\030.rocva" + "d.PrReceiverConfigH\000B\017\n\rNetworkConfigB\010\n" + "\006_indexB\006\n\004_uidB\007\n\005_name\"5\n\014PrDeviceList" + "\022%\n\007devices\030\001 \003(\0132\024.rocvad.PrDeviceInfo\"" + "y\n\rPrLocalConfig\022\030\n\013sample_rate\030\001 \001(\rH\000\210" + "\001\001\022.\n\013channel_set\030\002 \001(\0162\024.rocvad.PrChann" + "elSetH\001\210\001\001B\016\n\014_sample_rateB\016\n\014_channel_s" + "et\"\360\002\n\016PrSenderConfig\0226\n\017packet_encoding" + "\030\001 \001(\0162\030.rocvad.PrPacketEncodingH\000\210\001\001\0225\n" + "\rpacket_length\030\002 \001(\0132\031.google.protobuf.D" + "urationH\001\210\001\001\0220\n\014fec_encoding\030\003 \001(\0162\025.roc" + "vad.PrFecEncodingH\002\210\001\001\022%\n\030fec_block_sour" + "ce_packets\030\004 \001(\rH\003\210\001\001\022%\n\030fec_block_repai" + "r_packets\030\005 \001(\rH\004\210\001\001B\022\n\020_packet_encoding" + "B\020\n\016_packet_lengthB\017\n\r_fec_encodingB\033\n\031_" + "fec_block_source_packetsB\033\n\031_fec_block_r" + "epair_packets\"\201\002\n\020PrReceiverConfig\0226\n\016ta" + "rget_latency\030\001 \001(\0132\031.google.protobuf.Dur" + "ationH\000\210\001\001\022:\n\021resampler_backend\030\002 \001(\0162\032." + "rocvad.PrResamplerBackendH\001\210\001\001\022:\n\021resamp" + "ler_profile\030\003 \001(\0162\032.rocvad.PrResamplerPr" + "ofileH\002\210\001\001B\021\n\017_target_latencyB\024\n\022_resamp" + "ler_backendB\024\n\022_resampler_profile*F\n\014PrD" + "eviceType\022\031\n\025PR_DEVICE_TYPE_SENDER\020\000\022\033\n\027" + "PR_DEVICE_TYPE_RECEIVER\020\001*)\n\014PrChannelSe" + "t\022\031\n\025PR_CHANNEL_SET_STEREO\020\000*2\n\020PrPacket" + "Encoding\022\036\n\032PR_PACKET_ENCODING_AVP_L16\020\000" + "*j\n\rPrFecEncoding\022\033\n\027PR_FEC_ENCODING_DIS" + "ABLE\020\000\022\030\n\024PR_FEC_ENCODING_RS8M\020\001\022\"\n\036PR_F" + "EC_ENCODING_LDPC_STAIRCASE\020\002*V\n\022PrResamp" + "lerBackend\022 \n\034PR_RESAMPLER_BACKEND_BUILT" + "IN\020\000\022\036\n\032PR_RESAMPLER_BACKEND_SPEEX\020\001*\224\001\n" + "\022PrResamplerProfile\022 \n\034PR_RESAMPLER_PROF" + "ILE_DISABLE\020\000\022\035\n\031PR_RESAMPLER_PROFILE_HI" + "GH\020\001\022\037\n\033PR_RESAMPLER_PROFILE_MEDIUM\020\002\022\034\n" + "\030PR_RESAMPLER_PROFILE_LOW\020\0032\234\003\n\016DriverPr" + "otocol\022(\n\004ping\022\016.rocvad.PrNone\032\016.rocvad." + "PrNone\"\000\0225\n\013driver_info\022\016.rocvad.PrNone\032" + "\024.rocvad.PrDriverInfo\"\000\0225\n\013stream_logs\022\016" + ".rocvad.PrNone\032\022.rocvad.PrLogEntry\"\0000\001\0229" + "\n\017get_all_devices\022\016.rocvad.PrNone\032\024.rocv" + "ad.PrDeviceList\"\000\022>\n\nget_device\022\030.rocvad" + ".PrDeviceSelector\032\024.rocvad.PrDeviceInfo\"" + "\000\022:\n\nadd_device\022\024.rocvad.PrDeviceInfo\032\024." + "rocvad.PrDeviceInfo\"\000\022;\n\rdelete_device\022\030" + ".rocvad.PrDeviceSelector\032\016.rocvad.PrNone" + "\"\000b\006proto3" ; -static const ::_pbi::DescriptorTable* const descriptor_table_driver_5fprotocol_2eproto_deps[1] = { +static const ::_pbi::DescriptorTable* const descriptor_table_driver_5fprotocol_2eproto_deps[2] = { + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, }; static ::_pbi::once_flag descriptor_table_driver_5fprotocol_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_driver_5fprotocol_2eproto = { - false, false, 1094, descriptor_table_protodef_driver_5fprotocol_2eproto, + false, false, 2450, descriptor_table_protodef_driver_5fprotocol_2eproto, "driver_protocol.proto", - &descriptor_table_driver_5fprotocol_2eproto_once, descriptor_table_driver_5fprotocol_2eproto_deps, 1, 7, + &descriptor_table_driver_5fprotocol_2eproto_once, descriptor_table_driver_5fprotocol_2eproto_deps, 2, 9, schemas, file_default_instances, TableStruct_driver_5fprotocol_2eproto::offsets, file_level_metadata_driver_5fprotocol_2eproto, file_level_enum_descriptors_driver_5fprotocol_2eproto, file_level_service_descriptors_driver_5fprotocol_2eproto, @@ -249,11 +370,11 @@ PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_driver_5 // Force running AddDescriptors() at dynamic initialization time. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_driver_5fprotocol_2eproto(&descriptor_table_driver_5fprotocol_2eproto); namespace rocvad { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MesgLogEntry_Level_descriptor() { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrLogEntry_Level_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_driver_5fprotocol_2eproto); return file_level_enum_descriptors_driver_5fprotocol_2eproto[0]; } -bool MesgLogEntry_Level_IsValid(int value) { +bool PrLogEntry_Level_IsValid(int value) { switch (value) { case 0: case 1: @@ -268,21 +389,21 @@ bool MesgLogEntry_Level_IsValid(int value) { } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr MesgLogEntry_Level MesgLogEntry::CRIT; -constexpr MesgLogEntry_Level MesgLogEntry::ERROR; -constexpr MesgLogEntry_Level MesgLogEntry::WARN; -constexpr MesgLogEntry_Level MesgLogEntry::INFO; -constexpr MesgLogEntry_Level MesgLogEntry::DEBUG; -constexpr MesgLogEntry_Level MesgLogEntry::TRACE; -constexpr MesgLogEntry_Level MesgLogEntry::Level_MIN; -constexpr MesgLogEntry_Level MesgLogEntry::Level_MAX; -constexpr int MesgLogEntry::Level_ARRAYSIZE; +constexpr PrLogEntry_Level PrLogEntry::CRIT; +constexpr PrLogEntry_Level PrLogEntry::ERROR; +constexpr PrLogEntry_Level PrLogEntry::WARN; +constexpr PrLogEntry_Level PrLogEntry::INFO; +constexpr PrLogEntry_Level PrLogEntry::DEBUG; +constexpr PrLogEntry_Level PrLogEntry::TRACE; +constexpr PrLogEntry_Level PrLogEntry::Level_MIN; +constexpr PrLogEntry_Level PrLogEntry::Level_MAX; +constexpr int PrLogEntry::Level_ARRAYSIZE; #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MesgDeviceConfig_Type_descriptor() { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrDeviceType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_driver_5fprotocol_2eproto); return file_level_enum_descriptors_driver_5fprotocol_2eproto[1]; } -bool MesgDeviceConfig_Type_IsValid(int value) { +bool PrDeviceType_IsValid(int value) { switch (value) { case 0: case 1: @@ -292,41 +413,105 @@ bool MesgDeviceConfig_Type_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr MesgDeviceConfig_Type MesgDeviceConfig::SENDER; -constexpr MesgDeviceConfig_Type MesgDeviceConfig::RECEIVER; -constexpr MesgDeviceConfig_Type MesgDeviceConfig::Type_MIN; -constexpr MesgDeviceConfig_Type MesgDeviceConfig::Type_MAX; -constexpr int MesgDeviceConfig::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrChannelSet_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_driver_5fprotocol_2eproto); + return file_level_enum_descriptors_driver_5fprotocol_2eproto[2]; +} +bool PrChannelSet_IsValid(int value) { + switch (value) { + case 0: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrPacketEncoding_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_driver_5fprotocol_2eproto); + return file_level_enum_descriptors_driver_5fprotocol_2eproto[3]; +} +bool PrPacketEncoding_IsValid(int value) { + switch (value) { + case 0: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrFecEncoding_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_driver_5fprotocol_2eproto); + return file_level_enum_descriptors_driver_5fprotocol_2eproto[4]; +} +bool PrFecEncoding_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrResamplerBackend_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_driver_5fprotocol_2eproto); + return file_level_enum_descriptors_driver_5fprotocol_2eproto[5]; +} +bool PrResamplerBackend_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrResamplerProfile_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_driver_5fprotocol_2eproto); + return file_level_enum_descriptors_driver_5fprotocol_2eproto[6]; +} +bool PrResamplerProfile_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + // =================================================================== -class MesgNone::_Internal { +class PrNone::_Internal { public: }; -MesgNone::MesgNone(::PROTOBUF_NAMESPACE_ID::Arena* arena, +PrNone::PrNone(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { - // @@protoc_insertion_point(arena_constructor:rocvad.MesgNone) + // @@protoc_insertion_point(arena_constructor:rocvad.PrNone) } -MesgNone::MesgNone(const MesgNone& from) +PrNone::PrNone(const PrNone& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - MesgNone* const _this = this; (void)_this; + PrNone* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:rocvad.MesgNone) + // @@protoc_insertion_point(copy_constructor:rocvad.PrNone) } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MesgNone::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrNone::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MesgNone::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrNone::GetClassData() const { return &_class_data_; } @@ -334,7 +519,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MesgNone::GetClassData() const -::PROTOBUF_NAMESPACE_ID::Metadata MesgNone::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PrNone::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_driver_5fprotocol_2eproto_getter, &descriptor_table_driver_5fprotocol_2eproto_once, file_level_metadata_driver_5fprotocol_2eproto[0]); @@ -342,19 +527,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata MesgNone::GetMetadata() const { // =================================================================== -class MesgDriverInfo::_Internal { +class PrDriverInfo::_Internal { public: }; -MesgDriverInfo::MesgDriverInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, +PrDriverInfo::PrDriverInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:rocvad.MesgDriverInfo) + // @@protoc_insertion_point(arena_constructor:rocvad.PrDriverInfo) } -MesgDriverInfo::MesgDriverInfo(const MesgDriverInfo& from) +PrDriverInfo::PrDriverInfo(const PrDriverInfo& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - MesgDriverInfo* const _this = this; (void)_this; + PrDriverInfo* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.version_){} , decltype(_impl_.commit_){} @@ -377,10 +562,10 @@ MesgDriverInfo::MesgDriverInfo(const MesgDriverInfo& from) _this->_impl_.commit_.Set(from._internal_commit(), _this->GetArenaForAllocation()); } - // @@protoc_insertion_point(copy_constructor:rocvad.MesgDriverInfo) + // @@protoc_insertion_point(copy_constructor:rocvad.PrDriverInfo) } -inline void MesgDriverInfo::SharedCtor( +inline void PrDriverInfo::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; @@ -399,8 +584,8 @@ inline void MesgDriverInfo::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -MesgDriverInfo::~MesgDriverInfo() { - // @@protoc_insertion_point(destructor:rocvad.MesgDriverInfo) +PrDriverInfo::~PrDriverInfo() { + // @@protoc_insertion_point(destructor:rocvad.PrDriverInfo) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -408,18 +593,18 @@ MesgDriverInfo::~MesgDriverInfo() { SharedDtor(); } -inline void MesgDriverInfo::SharedDtor() { +inline void PrDriverInfo::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.version_.Destroy(); _impl_.commit_.Destroy(); } -void MesgDriverInfo::SetCachedSize(int size) const { +void PrDriverInfo::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void MesgDriverInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:rocvad.MesgDriverInfo) +void PrDriverInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:rocvad.PrDriverInfo) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -429,7 +614,7 @@ void MesgDriverInfo::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MesgDriverInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* PrDriverInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -441,7 +626,7 @@ const char* MesgDriverInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext auto str = _internal_mutable_version(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "rocvad.MesgDriverInfo.version")); + CHK_(::_pbi::VerifyUTF8(str, "rocvad.PrDriverInfo.version")); } else goto handle_unusual; continue; @@ -451,7 +636,7 @@ const char* MesgDriverInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext auto str = _internal_mutable_commit(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "rocvad.MesgDriverInfo.commit")); + CHK_(::_pbi::VerifyUTF8(str, "rocvad.PrDriverInfo.commit")); } else goto handle_unusual; continue; @@ -478,9 +663,9 @@ const char* MesgDriverInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* MesgDriverInfo::_InternalSerialize( +uint8_t* PrDriverInfo::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:rocvad.MesgDriverInfo) + // @@protoc_insertion_point(serialize_to_array_start:rocvad.PrDriverInfo) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -489,7 +674,7 @@ uint8_t* MesgDriverInfo::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_version().data(), static_cast(this->_internal_version().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "rocvad.MesgDriverInfo.version"); + "rocvad.PrDriverInfo.version"); target = stream->WriteStringMaybeAliased( 1, this->_internal_version(), target); } @@ -499,7 +684,7 @@ uint8_t* MesgDriverInfo::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_commit().data(), static_cast(this->_internal_commit().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "rocvad.MesgDriverInfo.commit"); + "rocvad.PrDriverInfo.commit"); target = stream->WriteStringMaybeAliased( 2, this->_internal_commit(), target); } @@ -508,12 +693,12 @@ uint8_t* MesgDriverInfo::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:rocvad.MesgDriverInfo) + // @@protoc_insertion_point(serialize_to_array_end:rocvad.PrDriverInfo) return target; } -size_t MesgDriverInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:rocvad.MesgDriverInfo) +size_t PrDriverInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:rocvad.PrDriverInfo) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -537,17 +722,17 @@ size_t MesgDriverInfo::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MesgDriverInfo::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrDriverInfo::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - MesgDriverInfo::MergeImpl + PrDriverInfo::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MesgDriverInfo::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrDriverInfo::GetClassData() const { return &_class_data_; } -void MesgDriverInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.MesgDriverInfo) +void PrDriverInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.PrDriverInfo) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -561,18 +746,18 @@ void MesgDriverInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void MesgDriverInfo::CopyFrom(const MesgDriverInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.MesgDriverInfo) +void PrDriverInfo::CopyFrom(const PrDriverInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.PrDriverInfo) if (&from == this) return; Clear(); MergeFrom(from); } -bool MesgDriverInfo::IsInitialized() const { +bool PrDriverInfo::IsInitialized() const { return true; } -void MesgDriverInfo::InternalSwap(MesgDriverInfo* other) { +void PrDriverInfo::InternalSwap(PrDriverInfo* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -587,7 +772,7 @@ void MesgDriverInfo::InternalSwap(MesgDriverInfo* other) { ); } -::PROTOBUF_NAMESPACE_ID::Metadata MesgDriverInfo::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PrDriverInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_driver_5fprotocol_2eproto_getter, &descriptor_table_driver_5fprotocol_2eproto_once, file_level_metadata_driver_5fprotocol_2eproto[1]); @@ -595,30 +780,30 @@ ::PROTOBUF_NAMESPACE_ID::Metadata MesgDriverInfo::GetMetadata() const { // =================================================================== -class MesgLogEntry::_Internal { +class PrLogEntry::_Internal { public: - static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time(const MesgLogEntry* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time(const PrLogEntry* msg); }; const ::PROTOBUF_NAMESPACE_ID::Timestamp& -MesgLogEntry::_Internal::time(const MesgLogEntry* msg) { +PrLogEntry::_Internal::time(const PrLogEntry* msg) { return *msg->_impl_.time_; } -void MesgLogEntry::clear_time() { +void PrLogEntry::clear_time() { if (GetArenaForAllocation() == nullptr && _impl_.time_ != nullptr) { delete _impl_.time_; } _impl_.time_ = nullptr; } -MesgLogEntry::MesgLogEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, +PrLogEntry::PrLogEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:rocvad.MesgLogEntry) + // @@protoc_insertion_point(arena_constructor:rocvad.PrLogEntry) } -MesgLogEntry::MesgLogEntry(const MesgLogEntry& from) +PrLogEntry::PrLogEntry(const PrLogEntry& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - MesgLogEntry* const _this = this; (void)_this; + PrLogEntry* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.text_){} , decltype(_impl_.time_){nullptr} @@ -638,10 +823,10 @@ MesgLogEntry::MesgLogEntry(const MesgLogEntry& from) _this->_impl_.time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.time_); } _this->_impl_.level_ = from._impl_.level_; - // @@protoc_insertion_point(copy_constructor:rocvad.MesgLogEntry) + // @@protoc_insertion_point(copy_constructor:rocvad.PrLogEntry) } -inline void MesgLogEntry::SharedCtor( +inline void PrLogEntry::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; @@ -657,8 +842,8 @@ inline void MesgLogEntry::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -MesgLogEntry::~MesgLogEntry() { - // @@protoc_insertion_point(destructor:rocvad.MesgLogEntry) +PrLogEntry::~PrLogEntry() { + // @@protoc_insertion_point(destructor:rocvad.PrLogEntry) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -666,18 +851,18 @@ MesgLogEntry::~MesgLogEntry() { SharedDtor(); } -inline void MesgLogEntry::SharedDtor() { +inline void PrLogEntry::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.text_.Destroy(); if (this != internal_default_instance()) delete _impl_.time_; } -void MesgLogEntry::SetCachedSize(int size) const { +void PrLogEntry::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void MesgLogEntry::Clear() { -// @@protoc_insertion_point(message_clear_start:rocvad.MesgLogEntry) +void PrLogEntry::Clear() { +// @@protoc_insertion_point(message_clear_start:rocvad.PrLogEntry) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -691,7 +876,7 @@ void MesgLogEntry::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MesgLogEntry::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* PrLogEntry::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -705,12 +890,12 @@ const char* MesgLogEntry::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // .rocvad.MesgLogEntry.Level level = 2; + // .rocvad.PrLogEntry.Level level = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - _internal_set_level(static_cast<::rocvad::MesgLogEntry_Level>(val)); + _internal_set_level(static_cast<::rocvad::PrLogEntry_Level>(val)); } else goto handle_unusual; continue; @@ -720,7 +905,7 @@ const char* MesgLogEntry::_InternalParse(const char* ptr, ::_pbi::ParseContext* auto str = _internal_mutable_text(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "rocvad.MesgLogEntry.text")); + CHK_(::_pbi::VerifyUTF8(str, "rocvad.PrLogEntry.text")); } else goto handle_unusual; continue; @@ -747,9 +932,9 @@ const char* MesgLogEntry::_InternalParse(const char* ptr, ::_pbi::ParseContext* #undef CHK_ } -uint8_t* MesgLogEntry::_InternalSerialize( +uint8_t* PrLogEntry::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:rocvad.MesgLogEntry) + // @@protoc_insertion_point(serialize_to_array_start:rocvad.PrLogEntry) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -760,7 +945,7 @@ uint8_t* MesgLogEntry::_InternalSerialize( _Internal::time(this).GetCachedSize(), target, stream); } - // .rocvad.MesgLogEntry.Level level = 2; + // .rocvad.PrLogEntry.Level level = 2; if (this->_internal_level() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( @@ -772,7 +957,7 @@ uint8_t* MesgLogEntry::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_text().data(), static_cast(this->_internal_text().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "rocvad.MesgLogEntry.text"); + "rocvad.PrLogEntry.text"); target = stream->WriteStringMaybeAliased( 3, this->_internal_text(), target); } @@ -781,12 +966,12 @@ uint8_t* MesgLogEntry::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:rocvad.MesgLogEntry) + // @@protoc_insertion_point(serialize_to_array_end:rocvad.PrLogEntry) return target; } -size_t MesgLogEntry::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:rocvad.MesgLogEntry) +size_t PrLogEntry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:rocvad.PrLogEntry) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -807,7 +992,7 @@ size_t MesgLogEntry::ByteSizeLong() const { *_impl_.time_); } - // .rocvad.MesgLogEntry.Level level = 2; + // .rocvad.PrLogEntry.Level level = 2; if (this->_internal_level() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this->_internal_level()); @@ -816,17 +1001,17 @@ size_t MesgLogEntry::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MesgLogEntry::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrLogEntry::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - MesgLogEntry::MergeImpl + PrLogEntry::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MesgLogEntry::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrLogEntry::GetClassData() const { return &_class_data_; } -void MesgLogEntry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.MesgLogEntry) +void PrLogEntry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.PrLogEntry) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -844,18 +1029,18 @@ void MesgLogEntry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void MesgLogEntry::CopyFrom(const MesgLogEntry& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.MesgLogEntry) +void PrLogEntry::CopyFrom(const PrLogEntry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.PrLogEntry) if (&from == this) return; Clear(); MergeFrom(from); } -bool MesgLogEntry::IsInitialized() const { +bool PrLogEntry::IsInitialized() const { return true; } -void MesgLogEntry::InternalSwap(MesgLogEntry* other) { +void PrLogEntry::InternalSwap(PrLogEntry* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -865,14 +1050,14 @@ void MesgLogEntry::InternalSwap(MesgLogEntry* other) { &other->_impl_.text_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MesgLogEntry, _impl_.level_) - + sizeof(MesgLogEntry::_impl_.level_) - - PROTOBUF_FIELD_OFFSET(MesgLogEntry, _impl_.time_)>( + PROTOBUF_FIELD_OFFSET(PrLogEntry, _impl_.level_) + + sizeof(PrLogEntry::_impl_.level_) + - PROTOBUF_FIELD_OFFSET(PrLogEntry, _impl_.time_)>( reinterpret_cast(&_impl_.time_), reinterpret_cast(&other->_impl_.time_)); } -::PROTOBUF_NAMESPACE_ID::Metadata MesgLogEntry::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PrLogEntry::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_driver_5fprotocol_2eproto_getter, &descriptor_table_driver_5fprotocol_2eproto_once, file_level_metadata_driver_5fprotocol_2eproto[2]); @@ -880,19 +1065,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata MesgLogEntry::GetMetadata() const { // =================================================================== -class MesgDeviceSelector::_Internal { +class PrDeviceSelector::_Internal { public: }; -MesgDeviceSelector::MesgDeviceSelector(::PROTOBUF_NAMESPACE_ID::Arena* arena, +PrDeviceSelector::PrDeviceSelector(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:rocvad.MesgDeviceSelector) + // @@protoc_insertion_point(arena_constructor:rocvad.PrDeviceSelector) } -MesgDeviceSelector::MesgDeviceSelector(const MesgDeviceSelector& from) +PrDeviceSelector::PrDeviceSelector(const PrDeviceSelector& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - MesgDeviceSelector* const _this = this; (void)_this; + PrDeviceSelector* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.Selector_){} , /*decltype(_impl_._cached_size_)*/{} @@ -913,10 +1098,10 @@ MesgDeviceSelector::MesgDeviceSelector(const MesgDeviceSelector& from) break; } } - // @@protoc_insertion_point(copy_constructor:rocvad.MesgDeviceSelector) + // @@protoc_insertion_point(copy_constructor:rocvad.PrDeviceSelector) } -inline void MesgDeviceSelector::SharedCtor( +inline void PrDeviceSelector::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; @@ -928,8 +1113,8 @@ inline void MesgDeviceSelector::SharedCtor( clear_has_Selector(); } -MesgDeviceSelector::~MesgDeviceSelector() { - // @@protoc_insertion_point(destructor:rocvad.MesgDeviceSelector) +PrDeviceSelector::~PrDeviceSelector() { + // @@protoc_insertion_point(destructor:rocvad.PrDeviceSelector) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -937,19 +1122,19 @@ MesgDeviceSelector::~MesgDeviceSelector() { SharedDtor(); } -inline void MesgDeviceSelector::SharedDtor() { +inline void PrDeviceSelector::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_Selector()) { clear_Selector(); } } -void MesgDeviceSelector::SetCachedSize(int size) const { +void PrDeviceSelector::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void MesgDeviceSelector::clear_Selector() { -// @@protoc_insertion_point(one_of_clear_start:rocvad.MesgDeviceSelector) +void PrDeviceSelector::clear_Selector() { +// @@protoc_insertion_point(one_of_clear_start:rocvad.PrDeviceSelector) switch (Selector_case()) { case kIndex: { // No need to clear @@ -967,8 +1152,8 @@ void MesgDeviceSelector::clear_Selector() { } -void MesgDeviceSelector::Clear() { -// @@protoc_insertion_point(message_clear_start:rocvad.MesgDeviceSelector) +void PrDeviceSelector::Clear() { +// @@protoc_insertion_point(message_clear_start:rocvad.PrDeviceSelector) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -977,7 +1162,7 @@ void MesgDeviceSelector::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MesgDeviceSelector::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* PrDeviceSelector::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -997,7 +1182,7 @@ const char* MesgDeviceSelector::_InternalParse(const char* ptr, ::_pbi::ParseCon auto str = _internal_mutable_uid(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "rocvad.MesgDeviceSelector.uid")); + CHK_(::_pbi::VerifyUTF8(str, "rocvad.PrDeviceSelector.uid")); } else goto handle_unusual; continue; @@ -1024,9 +1209,9 @@ const char* MesgDeviceSelector::_InternalParse(const char* ptr, ::_pbi::ParseCon #undef CHK_ } -uint8_t* MesgDeviceSelector::_InternalSerialize( +uint8_t* PrDeviceSelector::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:rocvad.MesgDeviceSelector) + // @@protoc_insertion_point(serialize_to_array_start:rocvad.PrDeviceSelector) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1041,7 +1226,7 @@ uint8_t* MesgDeviceSelector::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_uid().data(), static_cast(this->_internal_uid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "rocvad.MesgDeviceSelector.uid"); + "rocvad.PrDeviceSelector.uid"); target = stream->WriteStringMaybeAliased( 2, this->_internal_uid(), target); } @@ -1050,12 +1235,12 @@ uint8_t* MesgDeviceSelector::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:rocvad.MesgDeviceSelector) + // @@protoc_insertion_point(serialize_to_array_end:rocvad.PrDeviceSelector) return target; } -size_t MesgDeviceSelector::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:rocvad.MesgDeviceSelector) +size_t PrDeviceSelector::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:rocvad.PrDeviceSelector) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -1082,17 +1267,17 @@ size_t MesgDeviceSelector::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MesgDeviceSelector::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrDeviceSelector::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - MesgDeviceSelector::MergeImpl + PrDeviceSelector::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MesgDeviceSelector::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrDeviceSelector::GetClassData() const { return &_class_data_; } -void MesgDeviceSelector::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.MesgDeviceSelector) +void PrDeviceSelector::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.PrDeviceSelector) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1113,25 +1298,25 @@ void MesgDeviceSelector::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void MesgDeviceSelector::CopyFrom(const MesgDeviceSelector& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.MesgDeviceSelector) +void PrDeviceSelector::CopyFrom(const PrDeviceSelector& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.PrDeviceSelector) if (&from == this) return; Clear(); MergeFrom(from); } -bool MesgDeviceSelector::IsInitialized() const { +bool PrDeviceSelector::IsInitialized() const { return true; } -void MesgDeviceSelector::InternalSwap(MesgDeviceSelector* other) { +void PrDeviceSelector::InternalSwap(PrDeviceSelector* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.Selector_, other->_impl_.Selector_); swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -::PROTOBUF_NAMESPACE_ID::Metadata MesgDeviceSelector::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PrDeviceSelector::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_driver_5fprotocol_2eproto_getter, &descriptor_table_driver_5fprotocol_2eproto_once, file_level_metadata_driver_5fprotocol_2eproto[3]); @@ -1139,31 +1324,91 @@ ::PROTOBUF_NAMESPACE_ID::Metadata MesgDeviceSelector::GetMetadata() const { // =================================================================== -class MesgDeviceConfig::_Internal { +class PrDeviceInfo::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static void set_has_index(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_uid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_name(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static const ::rocvad::PrLocalConfig& local_config(const PrDeviceInfo* msg); + static const ::rocvad::PrSenderConfig& sender_config(const PrDeviceInfo* msg); + static const ::rocvad::PrReceiverConfig& receiver_config(const PrDeviceInfo* msg); }; -MesgDeviceConfig::MesgDeviceConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, +const ::rocvad::PrLocalConfig& +PrDeviceInfo::_Internal::local_config(const PrDeviceInfo* msg) { + return *msg->_impl_.local_config_; +} +const ::rocvad::PrSenderConfig& +PrDeviceInfo::_Internal::sender_config(const PrDeviceInfo* msg) { + return *msg->_impl_.NetworkConfig_.sender_config_; +} +const ::rocvad::PrReceiverConfig& +PrDeviceInfo::_Internal::receiver_config(const PrDeviceInfo* msg) { + return *msg->_impl_.NetworkConfig_.receiver_config_; +} +void PrDeviceInfo::set_allocated_sender_config(::rocvad::PrSenderConfig* sender_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_NetworkConfig(); + if (sender_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sender_config); + if (message_arena != submessage_arena) { + sender_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sender_config, submessage_arena); + } + set_has_sender_config(); + _impl_.NetworkConfig_.sender_config_ = sender_config; + } + // @@protoc_insertion_point(field_set_allocated:rocvad.PrDeviceInfo.sender_config) +} +void PrDeviceInfo::set_allocated_receiver_config(::rocvad::PrReceiverConfig* receiver_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_NetworkConfig(); + if (receiver_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(receiver_config); + if (message_arena != submessage_arena) { + receiver_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, receiver_config, submessage_arena); + } + set_has_receiver_config(); + _impl_.NetworkConfig_.receiver_config_ = receiver_config; + } + // @@protoc_insertion_point(field_set_allocated:rocvad.PrDeviceInfo.receiver_config) +} +PrDeviceInfo::PrDeviceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:rocvad.MesgDeviceConfig) + // @@protoc_insertion_point(arena_constructor:rocvad.PrDeviceInfo) } -MesgDeviceConfig::MesgDeviceConfig(const MesgDeviceConfig& from) +PrDeviceInfo::PrDeviceInfo(const PrDeviceInfo& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - MesgDeviceConfig* const _this = this; (void)_this; + PrDeviceInfo* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.uid_){} + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.uid_){} , decltype(_impl_.name_){} + , decltype(_impl_.local_config_){nullptr} , decltype(_impl_.type_){} - , /*decltype(_impl_._cached_size_)*/{}}; + , decltype(_impl_.index_){} + , decltype(_impl_.NetworkConfig_){} + , /*decltype(_impl_._oneof_case_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _impl_.uid_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.uid_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_uid().empty()) { + if (from._internal_has_uid()) { _this->_impl_.uid_.Set(from._internal_uid(), _this->GetArenaForAllocation()); } @@ -1171,23 +1416,49 @@ MesgDeviceConfig::MesgDeviceConfig(const MesgDeviceConfig& from) #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { + if (from._internal_has_name()) { _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); } - _this->_impl_.type_ = from._impl_.type_; - // @@protoc_insertion_point(copy_constructor:rocvad.MesgDeviceConfig) + if (from._internal_has_local_config()) { + _this->_impl_.local_config_ = new ::rocvad::PrLocalConfig(*from._impl_.local_config_); + } + ::memcpy(&_impl_.type_, &from._impl_.type_, + static_cast(reinterpret_cast(&_impl_.index_) - + reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.index_)); + clear_has_NetworkConfig(); + switch (from.NetworkConfig_case()) { + case kSenderConfig: { + _this->_internal_mutable_sender_config()->::rocvad::PrSenderConfig::MergeFrom( + from._internal_sender_config()); + break; + } + case kReceiverConfig: { + _this->_internal_mutable_receiver_config()->::rocvad::PrReceiverConfig::MergeFrom( + from._internal_receiver_config()); + break; + } + case NETWORKCONFIG_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:rocvad.PrDeviceInfo) } -inline void MesgDeviceConfig::SharedCtor( +inline void PrDeviceInfo::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.uid_){} + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.uid_){} , decltype(_impl_.name_){} + , decltype(_impl_.local_config_){nullptr} , decltype(_impl_.type_){0} - , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.index_){0u} + , decltype(_impl_.NetworkConfig_){} + , /*decltype(_impl_._oneof_case_)*/{} }; _impl_.uid_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING @@ -1197,10 +1468,11 @@ inline void MesgDeviceConfig::SharedCtor( #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + clear_has_NetworkConfig(); } -MesgDeviceConfig::~MesgDeviceConfig() { - // @@protoc_insertion_point(destructor:rocvad.MesgDeviceConfig) +PrDeviceInfo::~PrDeviceInfo() { + // @@protoc_insertion_point(destructor:rocvad.PrDeviceInfo) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -1208,60 +1480,135 @@ MesgDeviceConfig::~MesgDeviceConfig() { SharedDtor(); } -inline void MesgDeviceConfig::SharedDtor() { +inline void PrDeviceInfo::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.uid_.Destroy(); _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.local_config_; + if (has_NetworkConfig()) { + clear_NetworkConfig(); + } } -void MesgDeviceConfig::SetCachedSize(int size) const { +void PrDeviceInfo::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void MesgDeviceConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:rocvad.MesgDeviceConfig) +void PrDeviceInfo::clear_NetworkConfig() { +// @@protoc_insertion_point(one_of_clear_start:rocvad.PrDeviceInfo) + switch (NetworkConfig_case()) { + case kSenderConfig: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.NetworkConfig_.sender_config_; + } + break; + } + case kReceiverConfig: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.NetworkConfig_.receiver_config_; + } + break; + } + case NETWORKCONFIG_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = NETWORKCONFIG_NOT_SET; +} + + +void PrDeviceInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:rocvad.PrDeviceInfo) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.uid_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _impl_.uid_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + _impl_.name_.ClearNonDefaultToEmpty(); + } + } + if (GetArenaForAllocation() == nullptr && _impl_.local_config_ != nullptr) { + delete _impl_.local_config_; + } + _impl_.local_config_ = nullptr; _impl_.type_ = 0; + _impl_.index_ = 0u; + clear_NetworkConfig(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MesgDeviceConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* PrDeviceInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // .rocvad.MesgDeviceConfig.Type type = 1; + // .rocvad.PrDeviceType type = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - _internal_set_type(static_cast<::rocvad::MesgDeviceConfig_Type>(val)); + _internal_set_type(static_cast<::rocvad::PrDeviceType>(val)); } else goto handle_unusual; continue; - // string uid = 2; + // optional uint32 index = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_uid(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _Internal::set_has_index(&has_bits); + _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "rocvad.MesgDeviceConfig.uid")); } else goto handle_unusual; continue; - // string name = 3; + // optional string uid = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_uid(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "rocvad.PrDeviceInfo.uid")); + } else + goto handle_unusual; + continue; + // optional string name = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { auto str = _internal_mutable_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "rocvad.MesgDeviceConfig.name")); + CHK_(::_pbi::VerifyUTF8(str, "rocvad.PrDeviceInfo.name")); + } else + goto handle_unusual; + continue; + // .rocvad.PrLocalConfig local_config = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_local_config(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .rocvad.PrSenderConfig sender_config = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_sender_config(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .rocvad.PrReceiverConfig receiver_config = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_receiver_config(), ptr); + CHK_(ptr); } else goto handle_unusual; continue; @@ -1281,6 +1628,7 @@ const char* MesgDeviceConfig::_InternalParse(const char* ptr, ::_pbi::ParseConte CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1288,121 +1636,208 @@ const char* MesgDeviceConfig::_InternalParse(const char* ptr, ::_pbi::ParseConte #undef CHK_ } -uint8_t* MesgDeviceConfig::_InternalSerialize( +uint8_t* PrDeviceInfo::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:rocvad.MesgDeviceConfig) + // @@protoc_insertion_point(serialize_to_array_start:rocvad.PrDeviceInfo) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // .rocvad.MesgDeviceConfig.Type type = 1; + // .rocvad.PrDeviceType type = 1; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this->_internal_type(), target); } - // string uid = 2; - if (!this->_internal_uid().empty()) { + // optional uint32 index = 2; + if (_internal_has_index()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_index(), target); + } + + // optional string uid = 3; + if (_internal_has_uid()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_uid().data(), static_cast(this->_internal_uid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "rocvad.MesgDeviceConfig.uid"); + "rocvad.PrDeviceInfo.uid"); target = stream->WriteStringMaybeAliased( - 2, this->_internal_uid(), target); + 3, this->_internal_uid(), target); } - // string name = 3; - if (!this->_internal_name().empty()) { + // optional string name = 4; + if (_internal_has_name()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "rocvad.MesgDeviceConfig.name"); + "rocvad.PrDeviceInfo.name"); target = stream->WriteStringMaybeAliased( - 3, this->_internal_name(), target); + 4, this->_internal_name(), target); + } + + // .rocvad.PrLocalConfig local_config = 5; + if (this->_internal_has_local_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::local_config(this), + _Internal::local_config(this).GetCachedSize(), target, stream); + } + + // .rocvad.PrSenderConfig sender_config = 6; + if (_internal_has_sender_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::sender_config(this), + _Internal::sender_config(this).GetCachedSize(), target, stream); + } + + // .rocvad.PrReceiverConfig receiver_config = 7; + if (_internal_has_receiver_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::receiver_config(this), + _Internal::receiver_config(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:rocvad.MesgDeviceConfig) + // @@protoc_insertion_point(serialize_to_array_end:rocvad.PrDeviceInfo) return target; } -size_t MesgDeviceConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:rocvad.MesgDeviceConfig) +size_t PrDeviceInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:rocvad.PrDeviceInfo) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string uid = 2; - if (!this->_internal_uid().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_uid()); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional string uid = 3; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_uid()); + } + + // optional string name = 4; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } - // string name = 3; - if (!this->_internal_name().empty()) { + } + // .rocvad.PrLocalConfig local_config = 5; + if (this->_internal_has_local_config()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.local_config_); } - // .rocvad.MesgDeviceConfig.Type type = 1; + // .rocvad.PrDeviceType type = 1; if (this->_internal_type() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } + // optional uint32 index = 2; + if (cached_has_bits & 0x00000004u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); + } + + switch (NetworkConfig_case()) { + // .rocvad.PrSenderConfig sender_config = 6; + case kSenderConfig: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.NetworkConfig_.sender_config_); + break; + } + // .rocvad.PrReceiverConfig receiver_config = 7; + case kReceiverConfig: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.NetworkConfig_.receiver_config_); + break; + } + case NETWORKCONFIG_NOT_SET: { + break; + } + } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MesgDeviceConfig::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrDeviceInfo::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - MesgDeviceConfig::MergeImpl + PrDeviceInfo::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MesgDeviceConfig::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrDeviceInfo::GetClassData() const { return &_class_data_; } -void MesgDeviceConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.MesgDeviceConfig) +void PrDeviceInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.PrDeviceInfo) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_uid().empty()) { - _this->_internal_set_uid(from._internal_uid()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_set_uid(from._internal_uid()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_set_name(from._internal_name()); + } } - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + if (from._internal_has_local_config()) { + _this->_internal_mutable_local_config()->::rocvad::PrLocalConfig::MergeFrom( + from._internal_local_config()); } if (from._internal_type() != 0) { _this->_internal_set_type(from._internal_type()); } + if (cached_has_bits & 0x00000004u) { + _this->_internal_set_index(from._internal_index()); + } + switch (from.NetworkConfig_case()) { + case kSenderConfig: { + _this->_internal_mutable_sender_config()->::rocvad::PrSenderConfig::MergeFrom( + from._internal_sender_config()); + break; + } + case kReceiverConfig: { + _this->_internal_mutable_receiver_config()->::rocvad::PrReceiverConfig::MergeFrom( + from._internal_receiver_config()); + break; + } + case NETWORKCONFIG_NOT_SET: { + break; + } + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void MesgDeviceConfig::CopyFrom(const MesgDeviceConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.MesgDeviceConfig) +void PrDeviceInfo::CopyFrom(const PrDeviceInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.PrDeviceInfo) if (&from == this) return; Clear(); MergeFrom(from); } -bool MesgDeviceConfig::IsInitialized() const { +bool PrDeviceInfo::IsInitialized() const { return true; } -void MesgDeviceConfig::InternalSwap(MesgDeviceConfig* other) { +void PrDeviceInfo::InternalSwap(PrDeviceInfo* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.uid_, lhs_arena, &other->_impl_.uid_, rhs_arena @@ -1411,10 +1846,17 @@ void MesgDeviceConfig::InternalSwap(MesgDeviceConfig* other) { &_impl_.name_, lhs_arena, &other->_impl_.name_, rhs_arena ); - swap(_impl_.type_, other->_impl_.type_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PrDeviceInfo, _impl_.index_) + + sizeof(PrDeviceInfo::_impl_.index_) + - PROTOBUF_FIELD_OFFSET(PrDeviceInfo, _impl_.local_config_)>( + reinterpret_cast(&_impl_.local_config_), + reinterpret_cast(&other->_impl_.local_config_)); + swap(_impl_.NetworkConfig_, other->_impl_.NetworkConfig_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -::PROTOBUF_NAMESPACE_ID::Metadata MesgDeviceConfig::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PrDeviceInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_driver_5fprotocol_2eproto_getter, &descriptor_table_driver_5fprotocol_2eproto_once, file_level_metadata_driver_5fprotocol_2eproto[4]); @@ -1422,50 +1864,39 @@ ::PROTOBUF_NAMESPACE_ID::Metadata MesgDeviceConfig::GetMetadata() const { // =================================================================== -class MesgDeviceInfo::_Internal { +class PrDeviceList::_Internal { public: - static const ::rocvad::MesgDeviceConfig& config(const MesgDeviceInfo* msg); }; -const ::rocvad::MesgDeviceConfig& -MesgDeviceInfo::_Internal::config(const MesgDeviceInfo* msg) { - return *msg->_impl_.config_; -} -MesgDeviceInfo::MesgDeviceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, +PrDeviceList::PrDeviceList(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:rocvad.MesgDeviceInfo) + // @@protoc_insertion_point(arena_constructor:rocvad.PrDeviceList) } -MesgDeviceInfo::MesgDeviceInfo(const MesgDeviceInfo& from) +PrDeviceList::PrDeviceList(const PrDeviceList& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - MesgDeviceInfo* const _this = this; (void)_this; + PrDeviceList* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.config_){nullptr} - , decltype(_impl_.index_){} + decltype(_impl_.devices_){from._impl_.devices_} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_config()) { - _this->_impl_.config_ = new ::rocvad::MesgDeviceConfig(*from._impl_.config_); - } - _this->_impl_.index_ = from._impl_.index_; - // @@protoc_insertion_point(copy_constructor:rocvad.MesgDeviceInfo) + // @@protoc_insertion_point(copy_constructor:rocvad.PrDeviceList) } -inline void MesgDeviceInfo::SharedCtor( +inline void PrDeviceList::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.config_){nullptr} - , decltype(_impl_.index_){0u} + decltype(_impl_.devices_){arena} , /*decltype(_impl_._cached_size_)*/{} }; } -MesgDeviceInfo::~MesgDeviceInfo() { - // @@protoc_insertion_point(destructor:rocvad.MesgDeviceInfo) +PrDeviceList::~PrDeviceList() { + // @@protoc_insertion_point(destructor:rocvad.PrDeviceList) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -1473,48 +1904,41 @@ MesgDeviceInfo::~MesgDeviceInfo() { SharedDtor(); } -inline void MesgDeviceInfo::SharedDtor() { +inline void PrDeviceList::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.config_; + _impl_.devices_.~RepeatedPtrField(); } -void MesgDeviceInfo::SetCachedSize(int size) const { +void PrDeviceList::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void MesgDeviceInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:rocvad.MesgDeviceInfo) +void PrDeviceList::Clear() { +// @@protoc_insertion_point(message_clear_start:rocvad.PrDeviceList) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && _impl_.config_ != nullptr) { - delete _impl_.config_; - } - _impl_.config_ = nullptr; - _impl_.index_ = 0u; + _impl_.devices_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MesgDeviceInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* PrDeviceList::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // uint32 index = 1; + // repeated .rocvad.PrDeviceInfo devices = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .rocvad.MesgDeviceConfig config = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_config(), ptr); - CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_devices(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; @@ -1541,144 +1965,736 @@ const char* MesgDeviceInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* MesgDeviceInfo::_InternalSerialize( +uint8_t* PrDeviceList::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:rocvad.MesgDeviceInfo) + // @@protoc_insertion_point(serialize_to_array_start:rocvad.PrDeviceList) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // uint32 index = 1; - if (this->_internal_index() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_index(), target); - } - - // .rocvad.MesgDeviceConfig config = 2; - if (this->_internal_has_config()) { + // repeated .rocvad.PrDeviceInfo devices = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_devices_size()); i < n; i++) { + const auto& repfield = this->_internal_devices(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::config(this), - _Internal::config(this).GetCachedSize(), target, stream); + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:rocvad.MesgDeviceInfo) + // @@protoc_insertion_point(serialize_to_array_end:rocvad.PrDeviceList) return target; } -size_t MesgDeviceInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:rocvad.MesgDeviceInfo) +size_t PrDeviceList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:rocvad.PrDeviceList) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .rocvad.MesgDeviceConfig config = 2; - if (this->_internal_has_config()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.config_); + // repeated .rocvad.PrDeviceInfo devices = 1; + total_size += 1UL * this->_internal_devices_size(); + for (const auto& msg : this->_impl_.devices_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - // uint32 index = 1; - if (this->_internal_index() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrDeviceList::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PrDeviceList::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrDeviceList::GetClassData() const { return &_class_data_; } + + +void PrDeviceList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.PrDeviceList) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.devices_.MergeFrom(from._impl_.devices_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PrDeviceList::CopyFrom(const PrDeviceList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.PrDeviceList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PrDeviceList::IsInitialized() const { + return true; +} + +void PrDeviceList::InternalSwap(PrDeviceList* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.devices_.InternalSwap(&other->_impl_.devices_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PrDeviceList::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_driver_5fprotocol_2eproto_getter, &descriptor_table_driver_5fprotocol_2eproto_once, + file_level_metadata_driver_5fprotocol_2eproto[5]); +} + +// =================================================================== + +class PrLocalConfig::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static void set_has_sample_rate(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_channel_set(HasBits* has_bits) { + (*has_bits)[0] |= 2u; } +}; + +PrLocalConfig::PrLocalConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:rocvad.PrLocalConfig) +} +PrLocalConfig::PrLocalConfig(const PrLocalConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PrLocalConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.sample_rate_){} + , decltype(_impl_.channel_set_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.sample_rate_, &from._impl_.sample_rate_, + static_cast(reinterpret_cast(&_impl_.channel_set_) - + reinterpret_cast(&_impl_.sample_rate_)) + sizeof(_impl_.channel_set_)); + // @@protoc_insertion_point(copy_constructor:rocvad.PrLocalConfig) +} + +inline void PrLocalConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.sample_rate_){0u} + , decltype(_impl_.channel_set_){0} + }; +} + +PrLocalConfig::~PrLocalConfig() { + // @@protoc_insertion_point(destructor:rocvad.PrLocalConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PrLocalConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void PrLocalConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PrLocalConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:rocvad.PrLocalConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&_impl_.sample_rate_, 0, static_cast( + reinterpret_cast(&_impl_.channel_set_) - + reinterpret_cast(&_impl_.sample_rate_)) + sizeof(_impl_.channel_set_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PrLocalConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // optional uint32 sample_rate = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _Internal::set_has_sample_rate(&has_bits); + _impl_.sample_rate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .rocvad.PrChannelSet channel_set = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_channel_set(static_cast<::rocvad::PrChannelSet>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _impl_._has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* PrLocalConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:rocvad.PrLocalConfig) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // optional uint32 sample_rate = 1; + if (_internal_has_sample_rate()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_sample_rate(), target); + } + + // optional .rocvad.PrChannelSet channel_set = 2; + if (_internal_has_channel_set()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_channel_set(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:rocvad.PrLocalConfig) + return target; +} + +size_t PrLocalConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:rocvad.PrLocalConfig) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional uint32 sample_rate = 1; + if (cached_has_bits & 0x00000001u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sample_rate()); + } + + // optional .rocvad.PrChannelSet channel_set = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_channel_set()); + } + + } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MesgDeviceInfo::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrLocalConfig::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - MesgDeviceInfo::MergeImpl + PrLocalConfig::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MesgDeviceInfo::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrLocalConfig::GetClassData() const { return &_class_data_; } -void MesgDeviceInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.MesgDeviceInfo) +void PrLocalConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.PrLocalConfig) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_config()) { - _this->_internal_mutable_config()->::rocvad::MesgDeviceConfig::MergeFrom( - from._internal_config()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _this->_impl_.sample_rate_ = from._impl_.sample_rate_; + } + if (cached_has_bits & 0x00000002u) { + _this->_impl_.channel_set_ = from._impl_.channel_set_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; } - if (from._internal_index() != 0) { - _this->_internal_set_index(from._internal_index()); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PrLocalConfig::CopyFrom(const PrLocalConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.PrLocalConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PrLocalConfig::IsInitialized() const { + return true; +} + +void PrLocalConfig::InternalSwap(PrLocalConfig* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PrLocalConfig, _impl_.channel_set_) + + sizeof(PrLocalConfig::_impl_.channel_set_) + - PROTOBUF_FIELD_OFFSET(PrLocalConfig, _impl_.sample_rate_)>( + reinterpret_cast(&_impl_.sample_rate_), + reinterpret_cast(&other->_impl_.sample_rate_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PrLocalConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_driver_5fprotocol_2eproto_getter, &descriptor_table_driver_5fprotocol_2eproto_once, + file_level_metadata_driver_5fprotocol_2eproto[6]); +} + +// =================================================================== + +class PrSenderConfig::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static void set_has_packet_encoding(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static const ::PROTOBUF_NAMESPACE_ID::Duration& packet_length(const PrSenderConfig* msg); + static void set_has_packet_length(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_fec_encoding(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_fec_block_source_packets(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_fec_block_repair_packets(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } +}; + +const ::PROTOBUF_NAMESPACE_ID::Duration& +PrSenderConfig::_Internal::packet_length(const PrSenderConfig* msg) { + return *msg->_impl_.packet_length_; +} +void PrSenderConfig::clear_packet_length() { + if (_impl_.packet_length_ != nullptr) _impl_.packet_length_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +PrSenderConfig::PrSenderConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:rocvad.PrSenderConfig) +} +PrSenderConfig::PrSenderConfig(const PrSenderConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PrSenderConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.packet_length_){nullptr} + , decltype(_impl_.packet_encoding_){} + , decltype(_impl_.fec_encoding_){} + , decltype(_impl_.fec_block_source_packets_){} + , decltype(_impl_.fec_block_repair_packets_){}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_packet_length()) { + _this->_impl_.packet_length_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.packet_length_); + } + ::memcpy(&_impl_.packet_encoding_, &from._impl_.packet_encoding_, + static_cast(reinterpret_cast(&_impl_.fec_block_repair_packets_) - + reinterpret_cast(&_impl_.packet_encoding_)) + sizeof(_impl_.fec_block_repair_packets_)); + // @@protoc_insertion_point(copy_constructor:rocvad.PrSenderConfig) +} + +inline void PrSenderConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.packet_length_){nullptr} + , decltype(_impl_.packet_encoding_){0} + , decltype(_impl_.fec_encoding_){0} + , decltype(_impl_.fec_block_source_packets_){0u} + , decltype(_impl_.fec_block_repair_packets_){0u} + }; +} + +PrSenderConfig::~PrSenderConfig() { + // @@protoc_insertion_point(destructor:rocvad.PrSenderConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PrSenderConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.packet_length_; +} + +void PrSenderConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PrSenderConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:rocvad.PrSenderConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(_impl_.packet_length_ != nullptr); + _impl_.packet_length_->Clear(); + } + if (cached_has_bits & 0x0000001eu) { + ::memset(&_impl_.packet_encoding_, 0, static_cast( + reinterpret_cast(&_impl_.fec_block_repair_packets_) - + reinterpret_cast(&_impl_.packet_encoding_)) + sizeof(_impl_.fec_block_repair_packets_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PrSenderConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // optional .rocvad.PrPacketEncoding packet_encoding = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_packet_encoding(static_cast<::rocvad::PrPacketEncoding>(val)); + } else + goto handle_unusual; + continue; + // optional .google.protobuf.Duration packet_length = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_packet_length(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .rocvad.PrFecEncoding fec_encoding = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_fec_encoding(static_cast<::rocvad::PrFecEncoding>(val)); + } else + goto handle_unusual; + continue; + // optional uint32 fec_block_source_packets = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _Internal::set_has_fec_block_source_packets(&has_bits); + _impl_.fec_block_source_packets_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional uint32 fec_block_repair_packets = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _Internal::set_has_fec_block_repair_packets(&has_bits); + _impl_.fec_block_repair_packets_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _impl_._has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* PrSenderConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:rocvad.PrSenderConfig) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // optional .rocvad.PrPacketEncoding packet_encoding = 1; + if (_internal_has_packet_encoding()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_packet_encoding(), target); + } + + // optional .google.protobuf.Duration packet_length = 2; + if (_internal_has_packet_length()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::packet_length(this), + _Internal::packet_length(this).GetCachedSize(), target, stream); + } + + // optional .rocvad.PrFecEncoding fec_encoding = 3; + if (_internal_has_fec_encoding()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this->_internal_fec_encoding(), target); + } + + // optional uint32 fec_block_source_packets = 4; + if (_internal_has_fec_block_source_packets()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_fec_block_source_packets(), target); + } + + // optional uint32 fec_block_repair_packets = 5; + if (_internal_has_fec_block_repair_packets()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_fec_block_repair_packets(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:rocvad.PrSenderConfig) + return target; +} + +size_t PrSenderConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:rocvad.PrSenderConfig) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + // optional .google.protobuf.Duration packet_length = 2; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.packet_length_); + } + + // optional .rocvad.PrPacketEncoding packet_encoding = 1; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_packet_encoding()); + } + + // optional .rocvad.PrFecEncoding fec_encoding = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_fec_encoding()); + } + + // optional uint32 fec_block_source_packets = 4; + if (cached_has_bits & 0x00000008u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_fec_block_source_packets()); + } + + // optional uint32 fec_block_repair_packets = 5; + if (cached_has_bits & 0x00000010u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_fec_block_repair_packets()); + } + + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrSenderConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PrSenderConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrSenderConfig::GetClassData() const { return &_class_data_; } + + +void PrSenderConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.PrSenderConfig) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_packet_length()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom( + from._internal_packet_length()); + } + if (cached_has_bits & 0x00000002u) { + _this->_impl_.packet_encoding_ = from._impl_.packet_encoding_; + } + if (cached_has_bits & 0x00000004u) { + _this->_impl_.fec_encoding_ = from._impl_.fec_encoding_; + } + if (cached_has_bits & 0x00000008u) { + _this->_impl_.fec_block_source_packets_ = from._impl_.fec_block_source_packets_; + } + if (cached_has_bits & 0x00000010u) { + _this->_impl_.fec_block_repair_packets_ = from._impl_.fec_block_repair_packets_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void MesgDeviceInfo::CopyFrom(const MesgDeviceInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.MesgDeviceInfo) +void PrSenderConfig::CopyFrom(const PrSenderConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.PrSenderConfig) if (&from == this) return; Clear(); MergeFrom(from); } -bool MesgDeviceInfo::IsInitialized() const { +bool PrSenderConfig::IsInitialized() const { return true; } -void MesgDeviceInfo::InternalSwap(MesgDeviceInfo* other) { +void PrSenderConfig::InternalSwap(PrSenderConfig* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MesgDeviceInfo, _impl_.index_) - + sizeof(MesgDeviceInfo::_impl_.index_) - - PROTOBUF_FIELD_OFFSET(MesgDeviceInfo, _impl_.config_)>( - reinterpret_cast(&_impl_.config_), - reinterpret_cast(&other->_impl_.config_)); + PROTOBUF_FIELD_OFFSET(PrSenderConfig, _impl_.fec_block_repair_packets_) + + sizeof(PrSenderConfig::_impl_.fec_block_repair_packets_) + - PROTOBUF_FIELD_OFFSET(PrSenderConfig, _impl_.packet_length_)>( + reinterpret_cast(&_impl_.packet_length_), + reinterpret_cast(&other->_impl_.packet_length_)); } -::PROTOBUF_NAMESPACE_ID::Metadata MesgDeviceInfo::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PrSenderConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_driver_5fprotocol_2eproto_getter, &descriptor_table_driver_5fprotocol_2eproto_once, - file_level_metadata_driver_5fprotocol_2eproto[5]); + file_level_metadata_driver_5fprotocol_2eproto[7]); } // =================================================================== -class MesgDeviceList::_Internal { +class PrReceiverConfig::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static const ::PROTOBUF_NAMESPACE_ID::Duration& target_latency(const PrReceiverConfig* msg); + static void set_has_target_latency(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_resampler_backend(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_resampler_profile(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } }; -MesgDeviceList::MesgDeviceList(::PROTOBUF_NAMESPACE_ID::Arena* arena, +const ::PROTOBUF_NAMESPACE_ID::Duration& +PrReceiverConfig::_Internal::target_latency(const PrReceiverConfig* msg) { + return *msg->_impl_.target_latency_; +} +void PrReceiverConfig::clear_target_latency() { + if (_impl_.target_latency_ != nullptr) _impl_.target_latency_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +PrReceiverConfig::PrReceiverConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:rocvad.MesgDeviceList) + // @@protoc_insertion_point(arena_constructor:rocvad.PrReceiverConfig) } -MesgDeviceList::MesgDeviceList(const MesgDeviceList& from) +PrReceiverConfig::PrReceiverConfig(const PrReceiverConfig& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - MesgDeviceList* const _this = this; (void)_this; + PrReceiverConfig* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.devices_){from._impl_.devices_} - , /*decltype(_impl_._cached_size_)*/{}}; + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.target_latency_){nullptr} + , decltype(_impl_.resampler_backend_){} + , decltype(_impl_.resampler_profile_){}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:rocvad.MesgDeviceList) + if (from._internal_has_target_latency()) { + _this->_impl_.target_latency_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.target_latency_); + } + ::memcpy(&_impl_.resampler_backend_, &from._impl_.resampler_backend_, + static_cast(reinterpret_cast(&_impl_.resampler_profile_) - + reinterpret_cast(&_impl_.resampler_backend_)) + sizeof(_impl_.resampler_profile_)); + // @@protoc_insertion_point(copy_constructor:rocvad.PrReceiverConfig) } -inline void MesgDeviceList::SharedCtor( +inline void PrReceiverConfig::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.devices_){arena} + decltype(_impl_._has_bits_){} , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.target_latency_){nullptr} + , decltype(_impl_.resampler_backend_){0} + , decltype(_impl_.resampler_profile_){0} }; } -MesgDeviceList::~MesgDeviceList() { - // @@protoc_insertion_point(destructor:rocvad.MesgDeviceList) +PrReceiverConfig::~PrReceiverConfig() { + // @@protoc_insertion_point(destructor:rocvad.PrReceiverConfig) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -1686,41 +2702,65 @@ MesgDeviceList::~MesgDeviceList() { SharedDtor(); } -inline void MesgDeviceList::SharedDtor() { +inline void PrReceiverConfig::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.devices_.~RepeatedPtrField(); + if (this != internal_default_instance()) delete _impl_.target_latency_; } -void MesgDeviceList::SetCachedSize(int size) const { +void PrReceiverConfig::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void MesgDeviceList::Clear() { -// @@protoc_insertion_point(message_clear_start:rocvad.MesgDeviceList) +void PrReceiverConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:rocvad.PrReceiverConfig) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.devices_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(_impl_.target_latency_ != nullptr); + _impl_.target_latency_->Clear(); + } + if (cached_has_bits & 0x00000006u) { + ::memset(&_impl_.resampler_backend_, 0, static_cast( + reinterpret_cast(&_impl_.resampler_profile_) - + reinterpret_cast(&_impl_.resampler_backend_)) + sizeof(_impl_.resampler_profile_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MesgDeviceList::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* PrReceiverConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // repeated .rocvad.MesgDeviceInfo devices = 1; + // optional .google.protobuf.Duration target_latency = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_devices(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + ptr = ctx->ParseMessage(_internal_mutable_target_latency(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .rocvad.PrResamplerBackend resampler_backend = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_resampler_backend(static_cast<::rocvad::PrResamplerBackend>(val)); + } else + goto handle_unusual; + continue; + // optional .rocvad.PrResamplerProfile resampler_profile = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_resampler_profile(static_cast<::rocvad::PrResamplerProfile>(val)); } else goto handle_unusual; continue; @@ -1740,6 +2780,7 @@ const char* MesgDeviceList::_InternalParse(const char* ptr, ::_pbi::ParseContext CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1747,118 +2788,173 @@ const char* MesgDeviceList::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* MesgDeviceList::_InternalSerialize( +uint8_t* PrReceiverConfig::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:rocvad.MesgDeviceList) + // @@protoc_insertion_point(serialize_to_array_start:rocvad.PrReceiverConfig) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated .rocvad.MesgDeviceInfo devices = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_devices_size()); i < n; i++) { - const auto& repfield = this->_internal_devices(i); + // optional .google.protobuf.Duration target_latency = 1; + if (_internal_has_target_latency()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + InternalWriteMessage(1, _Internal::target_latency(this), + _Internal::target_latency(this).GetCachedSize(), target, stream); + } + + // optional .rocvad.PrResamplerBackend resampler_backend = 2; + if (_internal_has_resampler_backend()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_resampler_backend(), target); + } + + // optional .rocvad.PrResamplerProfile resampler_profile = 3; + if (_internal_has_resampler_profile()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this->_internal_resampler_profile(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:rocvad.MesgDeviceList) + // @@protoc_insertion_point(serialize_to_array_end:rocvad.PrReceiverConfig) return target; } -size_t MesgDeviceList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:rocvad.MesgDeviceList) +size_t PrReceiverConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:rocvad.PrReceiverConfig) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .rocvad.MesgDeviceInfo devices = 1; - total_size += 1UL * this->_internal_devices_size(); - for (const auto& msg : this->_impl_.devices_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // optional .google.protobuf.Duration target_latency = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.target_latency_); + } + + // optional .rocvad.PrResamplerBackend resampler_backend = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_resampler_backend()); + } + + // optional .rocvad.PrResamplerProfile resampler_profile = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_resampler_profile()); + } + } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MesgDeviceList::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrReceiverConfig::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - MesgDeviceList::MergeImpl + PrReceiverConfig::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MesgDeviceList::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrReceiverConfig::GetClassData() const { return &_class_data_; } -void MesgDeviceList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.MesgDeviceList) +void PrReceiverConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:rocvad.PrReceiverConfig) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.devices_.MergeFrom(from._impl_.devices_); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_target_latency()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom( + from._internal_target_latency()); + } + if (cached_has_bits & 0x00000002u) { + _this->_impl_.resampler_backend_ = from._impl_.resampler_backend_; + } + if (cached_has_bits & 0x00000004u) { + _this->_impl_.resampler_profile_ = from._impl_.resampler_profile_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void MesgDeviceList::CopyFrom(const MesgDeviceList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.MesgDeviceList) +void PrReceiverConfig::CopyFrom(const PrReceiverConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:rocvad.PrReceiverConfig) if (&from == this) return; Clear(); MergeFrom(from); } -bool MesgDeviceList::IsInitialized() const { +bool PrReceiverConfig::IsInitialized() const { return true; } -void MesgDeviceList::InternalSwap(MesgDeviceList* other) { +void PrReceiverConfig::InternalSwap(PrReceiverConfig* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.devices_.InternalSwap(&other->_impl_.devices_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PrReceiverConfig, _impl_.resampler_profile_) + + sizeof(PrReceiverConfig::_impl_.resampler_profile_) + - PROTOBUF_FIELD_OFFSET(PrReceiverConfig, _impl_.target_latency_)>( + reinterpret_cast(&_impl_.target_latency_), + reinterpret_cast(&other->_impl_.target_latency_)); } -::PROTOBUF_NAMESPACE_ID::Metadata MesgDeviceList::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PrReceiverConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_driver_5fprotocol_2eproto_getter, &descriptor_table_driver_5fprotocol_2eproto_once, - file_level_metadata_driver_5fprotocol_2eproto[6]); + file_level_metadata_driver_5fprotocol_2eproto[8]); } // @@protoc_insertion_point(namespace_scope) } // namespace rocvad PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::rocvad::MesgNone* -Arena::CreateMaybeMessage< ::rocvad::MesgNone >(Arena* arena) { - return Arena::CreateMessageInternal< ::rocvad::MesgNone >(arena); +template<> PROTOBUF_NOINLINE ::rocvad::PrNone* +Arena::CreateMaybeMessage< ::rocvad::PrNone >(Arena* arena) { + return Arena::CreateMessageInternal< ::rocvad::PrNone >(arena); +} +template<> PROTOBUF_NOINLINE ::rocvad::PrDriverInfo* +Arena::CreateMaybeMessage< ::rocvad::PrDriverInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::rocvad::PrDriverInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::rocvad::PrLogEntry* +Arena::CreateMaybeMessage< ::rocvad::PrLogEntry >(Arena* arena) { + return Arena::CreateMessageInternal< ::rocvad::PrLogEntry >(arena); } -template<> PROTOBUF_NOINLINE ::rocvad::MesgDriverInfo* -Arena::CreateMaybeMessage< ::rocvad::MesgDriverInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::rocvad::MesgDriverInfo >(arena); +template<> PROTOBUF_NOINLINE ::rocvad::PrDeviceSelector* +Arena::CreateMaybeMessage< ::rocvad::PrDeviceSelector >(Arena* arena) { + return Arena::CreateMessageInternal< ::rocvad::PrDeviceSelector >(arena); } -template<> PROTOBUF_NOINLINE ::rocvad::MesgLogEntry* -Arena::CreateMaybeMessage< ::rocvad::MesgLogEntry >(Arena* arena) { - return Arena::CreateMessageInternal< ::rocvad::MesgLogEntry >(arena); +template<> PROTOBUF_NOINLINE ::rocvad::PrDeviceInfo* +Arena::CreateMaybeMessage< ::rocvad::PrDeviceInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::rocvad::PrDeviceInfo >(arena); } -template<> PROTOBUF_NOINLINE ::rocvad::MesgDeviceSelector* -Arena::CreateMaybeMessage< ::rocvad::MesgDeviceSelector >(Arena* arena) { - return Arena::CreateMessageInternal< ::rocvad::MesgDeviceSelector >(arena); +template<> PROTOBUF_NOINLINE ::rocvad::PrDeviceList* +Arena::CreateMaybeMessage< ::rocvad::PrDeviceList >(Arena* arena) { + return Arena::CreateMessageInternal< ::rocvad::PrDeviceList >(arena); } -template<> PROTOBUF_NOINLINE ::rocvad::MesgDeviceConfig* -Arena::CreateMaybeMessage< ::rocvad::MesgDeviceConfig >(Arena* arena) { - return Arena::CreateMessageInternal< ::rocvad::MesgDeviceConfig >(arena); +template<> PROTOBUF_NOINLINE ::rocvad::PrLocalConfig* +Arena::CreateMaybeMessage< ::rocvad::PrLocalConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::rocvad::PrLocalConfig >(arena); } -template<> PROTOBUF_NOINLINE ::rocvad::MesgDeviceInfo* -Arena::CreateMaybeMessage< ::rocvad::MesgDeviceInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::rocvad::MesgDeviceInfo >(arena); +template<> PROTOBUF_NOINLINE ::rocvad::PrSenderConfig* +Arena::CreateMaybeMessage< ::rocvad::PrSenderConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::rocvad::PrSenderConfig >(arena); } -template<> PROTOBUF_NOINLINE ::rocvad::MesgDeviceList* -Arena::CreateMaybeMessage< ::rocvad::MesgDeviceList >(Arena* arena) { - return Arena::CreateMessageInternal< ::rocvad::MesgDeviceList >(arena); +template<> PROTOBUF_NOINLINE ::rocvad::PrReceiverConfig* +Arena::CreateMaybeMessage< ::rocvad::PrReceiverConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::rocvad::PrReceiverConfig >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/rpc/driver_protocol.pb.h b/rpc/driver_protocol.pb.h index b3e3499..08637cb 100644 --- a/rpc/driver_protocol.pb.h +++ b/rpc/driver_protocol.pb.h @@ -32,6 +32,7 @@ #include // IWYU pragma: export #include #include +#include #include // @@protoc_insertion_point(includes) #include @@ -48,112 +49,246 @@ struct TableStruct_driver_5fprotocol_2eproto { }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_driver_5fprotocol_2eproto; namespace rocvad { -class MesgDeviceConfig; -struct MesgDeviceConfigDefaultTypeInternal; -extern MesgDeviceConfigDefaultTypeInternal _MesgDeviceConfig_default_instance_; -class MesgDeviceInfo; -struct MesgDeviceInfoDefaultTypeInternal; -extern MesgDeviceInfoDefaultTypeInternal _MesgDeviceInfo_default_instance_; -class MesgDeviceList; -struct MesgDeviceListDefaultTypeInternal; -extern MesgDeviceListDefaultTypeInternal _MesgDeviceList_default_instance_; -class MesgDeviceSelector; -struct MesgDeviceSelectorDefaultTypeInternal; -extern MesgDeviceSelectorDefaultTypeInternal _MesgDeviceSelector_default_instance_; -class MesgDriverInfo; -struct MesgDriverInfoDefaultTypeInternal; -extern MesgDriverInfoDefaultTypeInternal _MesgDriverInfo_default_instance_; -class MesgLogEntry; -struct MesgLogEntryDefaultTypeInternal; -extern MesgLogEntryDefaultTypeInternal _MesgLogEntry_default_instance_; -class MesgNone; -struct MesgNoneDefaultTypeInternal; -extern MesgNoneDefaultTypeInternal _MesgNone_default_instance_; +class PrDeviceInfo; +struct PrDeviceInfoDefaultTypeInternal; +extern PrDeviceInfoDefaultTypeInternal _PrDeviceInfo_default_instance_; +class PrDeviceList; +struct PrDeviceListDefaultTypeInternal; +extern PrDeviceListDefaultTypeInternal _PrDeviceList_default_instance_; +class PrDeviceSelector; +struct PrDeviceSelectorDefaultTypeInternal; +extern PrDeviceSelectorDefaultTypeInternal _PrDeviceSelector_default_instance_; +class PrDriverInfo; +struct PrDriverInfoDefaultTypeInternal; +extern PrDriverInfoDefaultTypeInternal _PrDriverInfo_default_instance_; +class PrLocalConfig; +struct PrLocalConfigDefaultTypeInternal; +extern PrLocalConfigDefaultTypeInternal _PrLocalConfig_default_instance_; +class PrLogEntry; +struct PrLogEntryDefaultTypeInternal; +extern PrLogEntryDefaultTypeInternal _PrLogEntry_default_instance_; +class PrNone; +struct PrNoneDefaultTypeInternal; +extern PrNoneDefaultTypeInternal _PrNone_default_instance_; +class PrReceiverConfig; +struct PrReceiverConfigDefaultTypeInternal; +extern PrReceiverConfigDefaultTypeInternal _PrReceiverConfig_default_instance_; +class PrSenderConfig; +struct PrSenderConfigDefaultTypeInternal; +extern PrSenderConfigDefaultTypeInternal _PrSenderConfig_default_instance_; } // namespace rocvad PROTOBUF_NAMESPACE_OPEN -template<> ::rocvad::MesgDeviceConfig* Arena::CreateMaybeMessage<::rocvad::MesgDeviceConfig>(Arena*); -template<> ::rocvad::MesgDeviceInfo* Arena::CreateMaybeMessage<::rocvad::MesgDeviceInfo>(Arena*); -template<> ::rocvad::MesgDeviceList* Arena::CreateMaybeMessage<::rocvad::MesgDeviceList>(Arena*); -template<> ::rocvad::MesgDeviceSelector* Arena::CreateMaybeMessage<::rocvad::MesgDeviceSelector>(Arena*); -template<> ::rocvad::MesgDriverInfo* Arena::CreateMaybeMessage<::rocvad::MesgDriverInfo>(Arena*); -template<> ::rocvad::MesgLogEntry* Arena::CreateMaybeMessage<::rocvad::MesgLogEntry>(Arena*); -template<> ::rocvad::MesgNone* Arena::CreateMaybeMessage<::rocvad::MesgNone>(Arena*); +template<> ::rocvad::PrDeviceInfo* Arena::CreateMaybeMessage<::rocvad::PrDeviceInfo>(Arena*); +template<> ::rocvad::PrDeviceList* Arena::CreateMaybeMessage<::rocvad::PrDeviceList>(Arena*); +template<> ::rocvad::PrDeviceSelector* Arena::CreateMaybeMessage<::rocvad::PrDeviceSelector>(Arena*); +template<> ::rocvad::PrDriverInfo* Arena::CreateMaybeMessage<::rocvad::PrDriverInfo>(Arena*); +template<> ::rocvad::PrLocalConfig* Arena::CreateMaybeMessage<::rocvad::PrLocalConfig>(Arena*); +template<> ::rocvad::PrLogEntry* Arena::CreateMaybeMessage<::rocvad::PrLogEntry>(Arena*); +template<> ::rocvad::PrNone* Arena::CreateMaybeMessage<::rocvad::PrNone>(Arena*); +template<> ::rocvad::PrReceiverConfig* Arena::CreateMaybeMessage<::rocvad::PrReceiverConfig>(Arena*); +template<> ::rocvad::PrSenderConfig* Arena::CreateMaybeMessage<::rocvad::PrSenderConfig>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace rocvad { -enum MesgLogEntry_Level : int { - MesgLogEntry_Level_CRIT = 0, - MesgLogEntry_Level_ERROR = 1, - MesgLogEntry_Level_WARN = 2, - MesgLogEntry_Level_INFO = 3, - MesgLogEntry_Level_DEBUG = 4, - MesgLogEntry_Level_TRACE = 5, - MesgLogEntry_Level_MesgLogEntry_Level_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - MesgLogEntry_Level_MesgLogEntry_Level_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +enum PrLogEntry_Level : int { + PrLogEntry_Level_CRIT = 0, + PrLogEntry_Level_ERROR = 1, + PrLogEntry_Level_WARN = 2, + PrLogEntry_Level_INFO = 3, + PrLogEntry_Level_DEBUG = 4, + PrLogEntry_Level_TRACE = 5, + PrLogEntry_Level_PrLogEntry_Level_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PrLogEntry_Level_PrLogEntry_Level_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; -bool MesgLogEntry_Level_IsValid(int value); -constexpr MesgLogEntry_Level MesgLogEntry_Level_Level_MIN = MesgLogEntry_Level_CRIT; -constexpr MesgLogEntry_Level MesgLogEntry_Level_Level_MAX = MesgLogEntry_Level_TRACE; -constexpr int MesgLogEntry_Level_Level_ARRAYSIZE = MesgLogEntry_Level_Level_MAX + 1; +bool PrLogEntry_Level_IsValid(int value); +constexpr PrLogEntry_Level PrLogEntry_Level_Level_MIN = PrLogEntry_Level_CRIT; +constexpr PrLogEntry_Level PrLogEntry_Level_Level_MAX = PrLogEntry_Level_TRACE; +constexpr int PrLogEntry_Level_Level_ARRAYSIZE = PrLogEntry_Level_Level_MAX + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MesgLogEntry_Level_descriptor(); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrLogEntry_Level_descriptor(); template -inline const std::string& MesgLogEntry_Level_Name(T enum_t_value) { - static_assert(::std::is_same::value || +inline const std::string& PrLogEntry_Level_Name(T enum_t_value) { + static_assert(::std::is_same::value || ::std::is_integral::value, - "Incorrect type passed to function MesgLogEntry_Level_Name."); + "Incorrect type passed to function PrLogEntry_Level_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - MesgLogEntry_Level_descriptor(), enum_t_value); -} -inline bool MesgLogEntry_Level_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MesgLogEntry_Level* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - MesgLogEntry_Level_descriptor(), name, value); -} -enum MesgDeviceConfig_Type : int { - MesgDeviceConfig_Type_SENDER = 0, - MesgDeviceConfig_Type_RECEIVER = 1, - MesgDeviceConfig_Type_MesgDeviceConfig_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - MesgDeviceConfig_Type_MesgDeviceConfig_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + PrLogEntry_Level_descriptor(), enum_t_value); +} +inline bool PrLogEntry_Level_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PrLogEntry_Level* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PrLogEntry_Level_descriptor(), name, value); +} +enum PrDeviceType : int { + PR_DEVICE_TYPE_SENDER = 0, + PR_DEVICE_TYPE_RECEIVER = 1, + PrDeviceType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PrDeviceType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; -bool MesgDeviceConfig_Type_IsValid(int value); -constexpr MesgDeviceConfig_Type MesgDeviceConfig_Type_Type_MIN = MesgDeviceConfig_Type_SENDER; -constexpr MesgDeviceConfig_Type MesgDeviceConfig_Type_Type_MAX = MesgDeviceConfig_Type_RECEIVER; -constexpr int MesgDeviceConfig_Type_Type_ARRAYSIZE = MesgDeviceConfig_Type_Type_MAX + 1; +bool PrDeviceType_IsValid(int value); +constexpr PrDeviceType PrDeviceType_MIN = PR_DEVICE_TYPE_SENDER; +constexpr PrDeviceType PrDeviceType_MAX = PR_DEVICE_TYPE_RECEIVER; +constexpr int PrDeviceType_ARRAYSIZE = PrDeviceType_MAX + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MesgDeviceConfig_Type_descriptor(); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrDeviceType_descriptor(); template -inline const std::string& MesgDeviceConfig_Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || +inline const std::string& PrDeviceType_Name(T enum_t_value) { + static_assert(::std::is_same::value || ::std::is_integral::value, - "Incorrect type passed to function MesgDeviceConfig_Type_Name."); + "Incorrect type passed to function PrDeviceType_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - MesgDeviceConfig_Type_descriptor(), enum_t_value); + PrDeviceType_descriptor(), enum_t_value); } -inline bool MesgDeviceConfig_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MesgDeviceConfig_Type* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - MesgDeviceConfig_Type_descriptor(), name, value); +inline bool PrDeviceType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PrDeviceType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PrDeviceType_descriptor(), name, value); +} +enum PrChannelSet : int { + PR_CHANNEL_SET_STEREO = 0, + PrChannelSet_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PrChannelSet_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool PrChannelSet_IsValid(int value); +constexpr PrChannelSet PrChannelSet_MIN = PR_CHANNEL_SET_STEREO; +constexpr PrChannelSet PrChannelSet_MAX = PR_CHANNEL_SET_STEREO; +constexpr int PrChannelSet_ARRAYSIZE = PrChannelSet_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrChannelSet_descriptor(); +template +inline const std::string& PrChannelSet_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PrChannelSet_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PrChannelSet_descriptor(), enum_t_value); +} +inline bool PrChannelSet_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PrChannelSet* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PrChannelSet_descriptor(), name, value); +} +enum PrPacketEncoding : int { + PR_PACKET_ENCODING_AVP_L16 = 0, + PrPacketEncoding_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PrPacketEncoding_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool PrPacketEncoding_IsValid(int value); +constexpr PrPacketEncoding PrPacketEncoding_MIN = PR_PACKET_ENCODING_AVP_L16; +constexpr PrPacketEncoding PrPacketEncoding_MAX = PR_PACKET_ENCODING_AVP_L16; +constexpr int PrPacketEncoding_ARRAYSIZE = PrPacketEncoding_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrPacketEncoding_descriptor(); +template +inline const std::string& PrPacketEncoding_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PrPacketEncoding_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PrPacketEncoding_descriptor(), enum_t_value); +} +inline bool PrPacketEncoding_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PrPacketEncoding* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PrPacketEncoding_descriptor(), name, value); +} +enum PrFecEncoding : int { + PR_FEC_ENCODING_DISABLE = 0, + PR_FEC_ENCODING_RS8M = 1, + PR_FEC_ENCODING_LDPC_STAIRCASE = 2, + PrFecEncoding_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PrFecEncoding_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool PrFecEncoding_IsValid(int value); +constexpr PrFecEncoding PrFecEncoding_MIN = PR_FEC_ENCODING_DISABLE; +constexpr PrFecEncoding PrFecEncoding_MAX = PR_FEC_ENCODING_LDPC_STAIRCASE; +constexpr int PrFecEncoding_ARRAYSIZE = PrFecEncoding_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrFecEncoding_descriptor(); +template +inline const std::string& PrFecEncoding_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PrFecEncoding_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PrFecEncoding_descriptor(), enum_t_value); +} +inline bool PrFecEncoding_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PrFecEncoding* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PrFecEncoding_descriptor(), name, value); +} +enum PrResamplerBackend : int { + PR_RESAMPLER_BACKEND_BUILTIN = 0, + PR_RESAMPLER_BACKEND_SPEEX = 1, + PrResamplerBackend_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PrResamplerBackend_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool PrResamplerBackend_IsValid(int value); +constexpr PrResamplerBackend PrResamplerBackend_MIN = PR_RESAMPLER_BACKEND_BUILTIN; +constexpr PrResamplerBackend PrResamplerBackend_MAX = PR_RESAMPLER_BACKEND_SPEEX; +constexpr int PrResamplerBackend_ARRAYSIZE = PrResamplerBackend_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrResamplerBackend_descriptor(); +template +inline const std::string& PrResamplerBackend_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PrResamplerBackend_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PrResamplerBackend_descriptor(), enum_t_value); +} +inline bool PrResamplerBackend_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PrResamplerBackend* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PrResamplerBackend_descriptor(), name, value); +} +enum PrResamplerProfile : int { + PR_RESAMPLER_PROFILE_DISABLE = 0, + PR_RESAMPLER_PROFILE_HIGH = 1, + PR_RESAMPLER_PROFILE_MEDIUM = 2, + PR_RESAMPLER_PROFILE_LOW = 3, + PrResamplerProfile_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PrResamplerProfile_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool PrResamplerProfile_IsValid(int value); +constexpr PrResamplerProfile PrResamplerProfile_MIN = PR_RESAMPLER_PROFILE_DISABLE; +constexpr PrResamplerProfile PrResamplerProfile_MAX = PR_RESAMPLER_PROFILE_LOW; +constexpr int PrResamplerProfile_ARRAYSIZE = PrResamplerProfile_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PrResamplerProfile_descriptor(); +template +inline const std::string& PrResamplerProfile_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PrResamplerProfile_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PrResamplerProfile_descriptor(), enum_t_value); +} +inline bool PrResamplerProfile_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PrResamplerProfile* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PrResamplerProfile_descriptor(), name, value); } // =================================================================== -class MesgNone final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:rocvad.MesgNone) */ { +class PrNone final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:rocvad.PrNone) */ { public: - inline MesgNone() : MesgNone(nullptr) {} - explicit PROTOBUF_CONSTEXPR MesgNone(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PrNone() : PrNone(nullptr) {} + explicit PROTOBUF_CONSTEXPR PrNone(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MesgNone(const MesgNone& from); - MesgNone(MesgNone&& from) noexcept - : MesgNone() { + PrNone(const PrNone& from); + PrNone(PrNone&& from) noexcept + : PrNone() { *this = ::std::move(from); } - inline MesgNone& operator=(const MesgNone& from) { + inline PrNone& operator=(const PrNone& from) { CopyFrom(from); return *this; } - inline MesgNone& operator=(MesgNone&& from) noexcept { + inline PrNone& operator=(PrNone&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -176,20 +311,20 @@ class MesgNone final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MesgNone& default_instance() { + static const PrNone& default_instance() { return *internal_default_instance(); } - static inline const MesgNone* internal_default_instance() { - return reinterpret_cast( - &_MesgNone_default_instance_); + static inline const PrNone* internal_default_instance() { + return reinterpret_cast( + &_PrNone_default_instance_); } static constexpr int kIndexInFileMessages = 0; - friend void swap(MesgNone& a, MesgNone& b) { + friend void swap(PrNone& a, PrNone& b) { a.Swap(&b); } - inline void Swap(MesgNone* other) { + inline void Swap(PrNone* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -202,7 +337,7 @@ class MesgNone final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MesgNone* other) { + void UnsafeArenaSwap(PrNone* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -210,15 +345,15 @@ class MesgNone final : // implements Message ---------------------------------------------- - MesgNone* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PrNone* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const MesgNone& from) { + inline void CopyFrom(const PrNone& from) { ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const MesgNone& from) { + void MergeFrom(const PrNone& from) { ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: @@ -226,10 +361,10 @@ class MesgNone final : private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "rocvad.MesgNone"; + return "rocvad.PrNone"; } protected: - explicit MesgNone(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PrNone(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -242,7 +377,7 @@ class MesgNone final : // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:rocvad.MesgNone) + // @@protoc_insertion_point(class_scope:rocvad.PrNone) private: class _Internal; @@ -255,24 +390,24 @@ class MesgNone final : }; // ------------------------------------------------------------------- -class MesgDriverInfo final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.MesgDriverInfo) */ { +class PrDriverInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.PrDriverInfo) */ { public: - inline MesgDriverInfo() : MesgDriverInfo(nullptr) {} - ~MesgDriverInfo() override; - explicit PROTOBUF_CONSTEXPR MesgDriverInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PrDriverInfo() : PrDriverInfo(nullptr) {} + ~PrDriverInfo() override; + explicit PROTOBUF_CONSTEXPR PrDriverInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MesgDriverInfo(const MesgDriverInfo& from); - MesgDriverInfo(MesgDriverInfo&& from) noexcept - : MesgDriverInfo() { + PrDriverInfo(const PrDriverInfo& from); + PrDriverInfo(PrDriverInfo&& from) noexcept + : PrDriverInfo() { *this = ::std::move(from); } - inline MesgDriverInfo& operator=(const MesgDriverInfo& from) { + inline PrDriverInfo& operator=(const PrDriverInfo& from) { CopyFrom(from); return *this; } - inline MesgDriverInfo& operator=(MesgDriverInfo&& from) noexcept { + inline PrDriverInfo& operator=(PrDriverInfo&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -295,20 +430,20 @@ class MesgDriverInfo final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MesgDriverInfo& default_instance() { + static const PrDriverInfo& default_instance() { return *internal_default_instance(); } - static inline const MesgDriverInfo* internal_default_instance() { - return reinterpret_cast( - &_MesgDriverInfo_default_instance_); + static inline const PrDriverInfo* internal_default_instance() { + return reinterpret_cast( + &_PrDriverInfo_default_instance_); } static constexpr int kIndexInFileMessages = 1; - friend void swap(MesgDriverInfo& a, MesgDriverInfo& b) { + friend void swap(PrDriverInfo& a, PrDriverInfo& b) { a.Swap(&b); } - inline void Swap(MesgDriverInfo* other) { + inline void Swap(PrDriverInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -321,7 +456,7 @@ class MesgDriverInfo final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MesgDriverInfo* other) { + void UnsafeArenaSwap(PrDriverInfo* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -329,14 +464,14 @@ class MesgDriverInfo final : // implements Message ---------------------------------------------- - MesgDriverInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PrDriverInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MesgDriverInfo& from); + void CopyFrom(const PrDriverInfo& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MesgDriverInfo& from) { - MesgDriverInfo::MergeImpl(*this, from); + void MergeFrom( const PrDriverInfo& from) { + PrDriverInfo::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -354,15 +489,15 @@ class MesgDriverInfo final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MesgDriverInfo* other); + void InternalSwap(PrDriverInfo* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "rocvad.MesgDriverInfo"; + return "rocvad.PrDriverInfo"; } protected: - explicit MesgDriverInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PrDriverInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -407,7 +542,7 @@ class MesgDriverInfo final : std::string* _internal_mutable_commit(); public: - // @@protoc_insertion_point(class_scope:rocvad.MesgDriverInfo) + // @@protoc_insertion_point(class_scope:rocvad.PrDriverInfo) private: class _Internal; @@ -424,24 +559,24 @@ class MesgDriverInfo final : }; // ------------------------------------------------------------------- -class MesgLogEntry final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.MesgLogEntry) */ { +class PrLogEntry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.PrLogEntry) */ { public: - inline MesgLogEntry() : MesgLogEntry(nullptr) {} - ~MesgLogEntry() override; - explicit PROTOBUF_CONSTEXPR MesgLogEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PrLogEntry() : PrLogEntry(nullptr) {} + ~PrLogEntry() override; + explicit PROTOBUF_CONSTEXPR PrLogEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MesgLogEntry(const MesgLogEntry& from); - MesgLogEntry(MesgLogEntry&& from) noexcept - : MesgLogEntry() { + PrLogEntry(const PrLogEntry& from); + PrLogEntry(PrLogEntry&& from) noexcept + : PrLogEntry() { *this = ::std::move(from); } - inline MesgLogEntry& operator=(const MesgLogEntry& from) { + inline PrLogEntry& operator=(const PrLogEntry& from) { CopyFrom(from); return *this; } - inline MesgLogEntry& operator=(MesgLogEntry&& from) noexcept { + inline PrLogEntry& operator=(PrLogEntry&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -464,20 +599,20 @@ class MesgLogEntry final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MesgLogEntry& default_instance() { + static const PrLogEntry& default_instance() { return *internal_default_instance(); } - static inline const MesgLogEntry* internal_default_instance() { - return reinterpret_cast( - &_MesgLogEntry_default_instance_); + static inline const PrLogEntry* internal_default_instance() { + return reinterpret_cast( + &_PrLogEntry_default_instance_); } static constexpr int kIndexInFileMessages = 2; - friend void swap(MesgLogEntry& a, MesgLogEntry& b) { + friend void swap(PrLogEntry& a, PrLogEntry& b) { a.Swap(&b); } - inline void Swap(MesgLogEntry* other) { + inline void Swap(PrLogEntry* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -490,7 +625,7 @@ class MesgLogEntry final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MesgLogEntry* other) { + void UnsafeArenaSwap(PrLogEntry* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -498,14 +633,14 @@ class MesgLogEntry final : // implements Message ---------------------------------------------- - MesgLogEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PrLogEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MesgLogEntry& from); + void CopyFrom(const PrLogEntry& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MesgLogEntry& from) { - MesgLogEntry::MergeImpl(*this, from); + void MergeFrom( const PrLogEntry& from) { + PrLogEntry::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -523,15 +658,15 @@ class MesgLogEntry final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MesgLogEntry* other); + void InternalSwap(PrLogEntry* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "rocvad.MesgLogEntry"; + return "rocvad.PrLogEntry"; } protected: - explicit MesgLogEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PrLogEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -542,42 +677,42 @@ class MesgLogEntry final : // nested types ---------------------------------------------------- - typedef MesgLogEntry_Level Level; + typedef PrLogEntry_Level Level; static constexpr Level CRIT = - MesgLogEntry_Level_CRIT; + PrLogEntry_Level_CRIT; static constexpr Level ERROR = - MesgLogEntry_Level_ERROR; + PrLogEntry_Level_ERROR; static constexpr Level WARN = - MesgLogEntry_Level_WARN; + PrLogEntry_Level_WARN; static constexpr Level INFO = - MesgLogEntry_Level_INFO; + PrLogEntry_Level_INFO; static constexpr Level DEBUG = - MesgLogEntry_Level_DEBUG; + PrLogEntry_Level_DEBUG; static constexpr Level TRACE = - MesgLogEntry_Level_TRACE; + PrLogEntry_Level_TRACE; static inline bool Level_IsValid(int value) { - return MesgLogEntry_Level_IsValid(value); + return PrLogEntry_Level_IsValid(value); } static constexpr Level Level_MIN = - MesgLogEntry_Level_Level_MIN; + PrLogEntry_Level_Level_MIN; static constexpr Level Level_MAX = - MesgLogEntry_Level_Level_MAX; + PrLogEntry_Level_Level_MAX; static constexpr int Level_ARRAYSIZE = - MesgLogEntry_Level_Level_ARRAYSIZE; + PrLogEntry_Level_Level_ARRAYSIZE; static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Level_descriptor() { - return MesgLogEntry_Level_descriptor(); + return PrLogEntry_Level_descriptor(); } template static inline const std::string& Level_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Level_Name."); - return MesgLogEntry_Level_Name(enum_t_value); + return PrLogEntry_Level_Name(enum_t_value); } static inline bool Level_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Level* value) { - return MesgLogEntry_Level_Parse(name, value); + return PrLogEntry_Level_Parse(name, value); } // accessors ------------------------------------------------------- @@ -619,16 +754,16 @@ class MesgLogEntry final : ::PROTOBUF_NAMESPACE_ID::Timestamp* time); ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time(); - // .rocvad.MesgLogEntry.Level level = 2; + // .rocvad.PrLogEntry.Level level = 2; void clear_level(); - ::rocvad::MesgLogEntry_Level level() const; - void set_level(::rocvad::MesgLogEntry_Level value); + ::rocvad::PrLogEntry_Level level() const; + void set_level(::rocvad::PrLogEntry_Level value); private: - ::rocvad::MesgLogEntry_Level _internal_level() const; - void _internal_set_level(::rocvad::MesgLogEntry_Level value); + ::rocvad::PrLogEntry_Level _internal_level() const; + void _internal_set_level(::rocvad::PrLogEntry_Level value); public: - // @@protoc_insertion_point(class_scope:rocvad.MesgLogEntry) + // @@protoc_insertion_point(class_scope:rocvad.PrLogEntry) private: class _Internal; @@ -646,24 +781,24 @@ class MesgLogEntry final : }; // ------------------------------------------------------------------- -class MesgDeviceSelector final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.MesgDeviceSelector) */ { +class PrDeviceSelector final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.PrDeviceSelector) */ { public: - inline MesgDeviceSelector() : MesgDeviceSelector(nullptr) {} - ~MesgDeviceSelector() override; - explicit PROTOBUF_CONSTEXPR MesgDeviceSelector(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PrDeviceSelector() : PrDeviceSelector(nullptr) {} + ~PrDeviceSelector() override; + explicit PROTOBUF_CONSTEXPR PrDeviceSelector(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MesgDeviceSelector(const MesgDeviceSelector& from); - MesgDeviceSelector(MesgDeviceSelector&& from) noexcept - : MesgDeviceSelector() { + PrDeviceSelector(const PrDeviceSelector& from); + PrDeviceSelector(PrDeviceSelector&& from) noexcept + : PrDeviceSelector() { *this = ::std::move(from); } - inline MesgDeviceSelector& operator=(const MesgDeviceSelector& from) { + inline PrDeviceSelector& operator=(const PrDeviceSelector& from) { CopyFrom(from); return *this; } - inline MesgDeviceSelector& operator=(MesgDeviceSelector&& from) noexcept { + inline PrDeviceSelector& operator=(PrDeviceSelector&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -686,7 +821,7 @@ class MesgDeviceSelector final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MesgDeviceSelector& default_instance() { + static const PrDeviceSelector& default_instance() { return *internal_default_instance(); } enum SelectorCase { @@ -695,17 +830,17 @@ class MesgDeviceSelector final : SELECTOR_NOT_SET = 0, }; - static inline const MesgDeviceSelector* internal_default_instance() { - return reinterpret_cast( - &_MesgDeviceSelector_default_instance_); + static inline const PrDeviceSelector* internal_default_instance() { + return reinterpret_cast( + &_PrDeviceSelector_default_instance_); } static constexpr int kIndexInFileMessages = 3; - friend void swap(MesgDeviceSelector& a, MesgDeviceSelector& b) { + friend void swap(PrDeviceSelector& a, PrDeviceSelector& b) { a.Swap(&b); } - inline void Swap(MesgDeviceSelector* other) { + inline void Swap(PrDeviceSelector* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -718,7 +853,7 @@ class MesgDeviceSelector final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MesgDeviceSelector* other) { + void UnsafeArenaSwap(PrDeviceSelector* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -726,14 +861,14 @@ class MesgDeviceSelector final : // implements Message ---------------------------------------------- - MesgDeviceSelector* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PrDeviceSelector* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MesgDeviceSelector& from); + void CopyFrom(const PrDeviceSelector& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MesgDeviceSelector& from) { - MesgDeviceSelector::MergeImpl(*this, from); + void MergeFrom( const PrDeviceSelector& from) { + PrDeviceSelector::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -751,15 +886,15 @@ class MesgDeviceSelector final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MesgDeviceSelector* other); + void InternalSwap(PrDeviceSelector* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "rocvad.MesgDeviceSelector"; + return "rocvad.PrDeviceSelector"; } protected: - explicit MesgDeviceSelector(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PrDeviceSelector(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -809,7 +944,7 @@ class MesgDeviceSelector final : void clear_Selector(); SelectorCase Selector_case() const; - // @@protoc_insertion_point(class_scope:rocvad.MesgDeviceSelector) + // @@protoc_insertion_point(class_scope:rocvad.PrDeviceSelector) private: class _Internal; void set_has_index(); @@ -837,24 +972,24 @@ class MesgDeviceSelector final : }; // ------------------------------------------------------------------- -class MesgDeviceConfig final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.MesgDeviceConfig) */ { +class PrDeviceInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.PrDeviceInfo) */ { public: - inline MesgDeviceConfig() : MesgDeviceConfig(nullptr) {} - ~MesgDeviceConfig() override; - explicit PROTOBUF_CONSTEXPR MesgDeviceConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PrDeviceInfo() : PrDeviceInfo(nullptr) {} + ~PrDeviceInfo() override; + explicit PROTOBUF_CONSTEXPR PrDeviceInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MesgDeviceConfig(const MesgDeviceConfig& from); - MesgDeviceConfig(MesgDeviceConfig&& from) noexcept - : MesgDeviceConfig() { + PrDeviceInfo(const PrDeviceInfo& from); + PrDeviceInfo(PrDeviceInfo&& from) noexcept + : PrDeviceInfo() { *this = ::std::move(from); } - inline MesgDeviceConfig& operator=(const MesgDeviceConfig& from) { + inline PrDeviceInfo& operator=(const PrDeviceInfo& from) { CopyFrom(from); return *this; } - inline MesgDeviceConfig& operator=(MesgDeviceConfig&& from) noexcept { + inline PrDeviceInfo& operator=(PrDeviceInfo&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -877,20 +1012,26 @@ class MesgDeviceConfig final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MesgDeviceConfig& default_instance() { + static const PrDeviceInfo& default_instance() { return *internal_default_instance(); } - static inline const MesgDeviceConfig* internal_default_instance() { - return reinterpret_cast( - &_MesgDeviceConfig_default_instance_); + enum NetworkConfigCase { + kSenderConfig = 6, + kReceiverConfig = 7, + NETWORKCONFIG_NOT_SET = 0, + }; + + static inline const PrDeviceInfo* internal_default_instance() { + return reinterpret_cast( + &_PrDeviceInfo_default_instance_); } static constexpr int kIndexInFileMessages = 4; - friend void swap(MesgDeviceConfig& a, MesgDeviceConfig& b) { + friend void swap(PrDeviceInfo& a, PrDeviceInfo& b) { a.Swap(&b); } - inline void Swap(MesgDeviceConfig* other) { + inline void Swap(PrDeviceInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -903,7 +1044,7 @@ class MesgDeviceConfig final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MesgDeviceConfig* other) { + void UnsafeArenaSwap(PrDeviceInfo* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -911,14 +1052,14 @@ class MesgDeviceConfig final : // implements Message ---------------------------------------------- - MesgDeviceConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PrDeviceInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MesgDeviceConfig& from); + void CopyFrom(const PrDeviceInfo& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MesgDeviceConfig& from) { - MesgDeviceConfig::MergeImpl(*this, from); + void MergeFrom( const PrDeviceInfo& from) { + PrDeviceInfo::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -936,15 +1077,15 @@ class MesgDeviceConfig final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MesgDeviceConfig* other); + void InternalSwap(PrDeviceInfo* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "rocvad.MesgDeviceConfig"; + return "rocvad.PrDeviceInfo"; } protected: - explicit MesgDeviceConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PrDeviceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -955,44 +1096,22 @@ class MesgDeviceConfig final : // nested types ---------------------------------------------------- - typedef MesgDeviceConfig_Type Type; - static constexpr Type SENDER = - MesgDeviceConfig_Type_SENDER; - static constexpr Type RECEIVER = - MesgDeviceConfig_Type_RECEIVER; - static inline bool Type_IsValid(int value) { - return MesgDeviceConfig_Type_IsValid(value); - } - static constexpr Type Type_MIN = - MesgDeviceConfig_Type_Type_MIN; - static constexpr Type Type_MAX = - MesgDeviceConfig_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - MesgDeviceConfig_Type_Type_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Type_descriptor() { - return MesgDeviceConfig_Type_descriptor(); - } - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return MesgDeviceConfig_Type_Name(enum_t_value); - } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { - return MesgDeviceConfig_Type_Parse(name, value); - } - // accessors ------------------------------------------------------- enum : int { - kUidFieldNumber = 2, - kNameFieldNumber = 3, + kUidFieldNumber = 3, + kNameFieldNumber = 4, + kLocalConfigFieldNumber = 5, kTypeFieldNumber = 1, + kIndexFieldNumber = 2, + kSenderConfigFieldNumber = 6, + kReceiverConfigFieldNumber = 7, }; - // string uid = 2; + // optional string uid = 3; + bool has_uid() const; + private: + bool _internal_has_uid() const; + public: void clear_uid(); const std::string& uid() const; template @@ -1006,7 +1125,11 @@ class MesgDeviceConfig final : std::string* _internal_mutable_uid(); public: - // string name = 3; + // optional string name = 4; + bool has_name() const; + private: + bool _internal_has_name() const; + public: void clear_name(); const std::string& name() const; template @@ -1020,51 +1143,136 @@ class MesgDeviceConfig final : std::string* _internal_mutable_name(); public: - // .rocvad.MesgDeviceConfig.Type type = 1; + // .rocvad.PrLocalConfig local_config = 5; + bool has_local_config() const; + private: + bool _internal_has_local_config() const; + public: + void clear_local_config(); + const ::rocvad::PrLocalConfig& local_config() const; + PROTOBUF_NODISCARD ::rocvad::PrLocalConfig* release_local_config(); + ::rocvad::PrLocalConfig* mutable_local_config(); + void set_allocated_local_config(::rocvad::PrLocalConfig* local_config); + private: + const ::rocvad::PrLocalConfig& _internal_local_config() const; + ::rocvad::PrLocalConfig* _internal_mutable_local_config(); + public: + void unsafe_arena_set_allocated_local_config( + ::rocvad::PrLocalConfig* local_config); + ::rocvad::PrLocalConfig* unsafe_arena_release_local_config(); + + // .rocvad.PrDeviceType type = 1; void clear_type(); - ::rocvad::MesgDeviceConfig_Type type() const; - void set_type(::rocvad::MesgDeviceConfig_Type value); + ::rocvad::PrDeviceType type() const; + void set_type(::rocvad::PrDeviceType value); + private: + ::rocvad::PrDeviceType _internal_type() const; + void _internal_set_type(::rocvad::PrDeviceType value); + public: + + // optional uint32 index = 2; + bool has_index() const; + private: + bool _internal_has_index() const; + public: + void clear_index(); + uint32_t index() const; + void set_index(uint32_t value); + private: + uint32_t _internal_index() const; + void _internal_set_index(uint32_t value); + public: + + // .rocvad.PrSenderConfig sender_config = 6; + bool has_sender_config() const; + private: + bool _internal_has_sender_config() const; + public: + void clear_sender_config(); + const ::rocvad::PrSenderConfig& sender_config() const; + PROTOBUF_NODISCARD ::rocvad::PrSenderConfig* release_sender_config(); + ::rocvad::PrSenderConfig* mutable_sender_config(); + void set_allocated_sender_config(::rocvad::PrSenderConfig* sender_config); + private: + const ::rocvad::PrSenderConfig& _internal_sender_config() const; + ::rocvad::PrSenderConfig* _internal_mutable_sender_config(); + public: + void unsafe_arena_set_allocated_sender_config( + ::rocvad::PrSenderConfig* sender_config); + ::rocvad::PrSenderConfig* unsafe_arena_release_sender_config(); + + // .rocvad.PrReceiverConfig receiver_config = 7; + bool has_receiver_config() const; + private: + bool _internal_has_receiver_config() const; + public: + void clear_receiver_config(); + const ::rocvad::PrReceiverConfig& receiver_config() const; + PROTOBUF_NODISCARD ::rocvad::PrReceiverConfig* release_receiver_config(); + ::rocvad::PrReceiverConfig* mutable_receiver_config(); + void set_allocated_receiver_config(::rocvad::PrReceiverConfig* receiver_config); private: - ::rocvad::MesgDeviceConfig_Type _internal_type() const; - void _internal_set_type(::rocvad::MesgDeviceConfig_Type value); + const ::rocvad::PrReceiverConfig& _internal_receiver_config() const; + ::rocvad::PrReceiverConfig* _internal_mutable_receiver_config(); public: + void unsafe_arena_set_allocated_receiver_config( + ::rocvad::PrReceiverConfig* receiver_config); + ::rocvad::PrReceiverConfig* unsafe_arena_release_receiver_config(); - // @@protoc_insertion_point(class_scope:rocvad.MesgDeviceConfig) + void clear_NetworkConfig(); + NetworkConfigCase NetworkConfig_case() const; + // @@protoc_insertion_point(class_scope:rocvad.PrDeviceInfo) private: class _Internal; + void set_has_sender_config(); + void set_has_receiver_config(); + + inline bool has_NetworkConfig() const; + inline void clear_has_NetworkConfig(); template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uid_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::rocvad::PrLocalConfig* local_config_; int type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t index_; + union NetworkConfigUnion { + constexpr NetworkConfigUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::rocvad::PrSenderConfig* sender_config_; + ::rocvad::PrReceiverConfig* receiver_config_; + } NetworkConfig_; + uint32_t _oneof_case_[1]; + }; union { Impl_ _impl_; }; friend struct ::TableStruct_driver_5fprotocol_2eproto; }; // ------------------------------------------------------------------- -class MesgDeviceInfo final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.MesgDeviceInfo) */ { +class PrDeviceList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.PrDeviceList) */ { public: - inline MesgDeviceInfo() : MesgDeviceInfo(nullptr) {} - ~MesgDeviceInfo() override; - explicit PROTOBUF_CONSTEXPR MesgDeviceInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PrDeviceList() : PrDeviceList(nullptr) {} + ~PrDeviceList() override; + explicit PROTOBUF_CONSTEXPR PrDeviceList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MesgDeviceInfo(const MesgDeviceInfo& from); - MesgDeviceInfo(MesgDeviceInfo&& from) noexcept - : MesgDeviceInfo() { + PrDeviceList(const PrDeviceList& from); + PrDeviceList(PrDeviceList&& from) noexcept + : PrDeviceList() { *this = ::std::move(from); } - inline MesgDeviceInfo& operator=(const MesgDeviceInfo& from) { + inline PrDeviceList& operator=(const PrDeviceList& from) { CopyFrom(from); return *this; } - inline MesgDeviceInfo& operator=(MesgDeviceInfo&& from) noexcept { + inline PrDeviceList& operator=(PrDeviceList&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1087,20 +1295,20 @@ class MesgDeviceInfo final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MesgDeviceInfo& default_instance() { + static const PrDeviceList& default_instance() { return *internal_default_instance(); } - static inline const MesgDeviceInfo* internal_default_instance() { - return reinterpret_cast( - &_MesgDeviceInfo_default_instance_); + static inline const PrDeviceList* internal_default_instance() { + return reinterpret_cast( + &_PrDeviceList_default_instance_); } static constexpr int kIndexInFileMessages = 5; - friend void swap(MesgDeviceInfo& a, MesgDeviceInfo& b) { + friend void swap(PrDeviceList& a, PrDeviceList& b) { a.Swap(&b); } - inline void Swap(MesgDeviceInfo* other) { + inline void Swap(PrDeviceList* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1113,7 +1321,7 @@ class MesgDeviceInfo final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MesgDeviceInfo* other) { + void UnsafeArenaSwap(PrDeviceList* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1121,14 +1329,14 @@ class MesgDeviceInfo final : // implements Message ---------------------------------------------- - MesgDeviceInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PrDeviceList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MesgDeviceInfo& from); + void CopyFrom(const PrDeviceList& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MesgDeviceInfo& from) { - MesgDeviceInfo::MergeImpl(*this, from); + void MergeFrom( const PrDeviceList& from) { + PrDeviceList::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -1146,15 +1354,15 @@ class MesgDeviceInfo final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MesgDeviceInfo* other); + void InternalSwap(PrDeviceList* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "rocvad.MesgDeviceInfo"; + return "rocvad.PrDeviceList"; } protected: - explicit MesgDeviceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PrDeviceList(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1168,37 +1376,27 @@ class MesgDeviceInfo final : // accessors ------------------------------------------------------- enum : int { - kConfigFieldNumber = 2, - kIndexFieldNumber = 1, + kDevicesFieldNumber = 1, }; - // .rocvad.MesgDeviceConfig config = 2; - bool has_config() const; + // repeated .rocvad.PrDeviceInfo devices = 1; + int devices_size() const; private: - bool _internal_has_config() const; - public: - void clear_config(); - const ::rocvad::MesgDeviceConfig& config() const; - PROTOBUF_NODISCARD ::rocvad::MesgDeviceConfig* release_config(); - ::rocvad::MesgDeviceConfig* mutable_config(); - void set_allocated_config(::rocvad::MesgDeviceConfig* config); - private: - const ::rocvad::MesgDeviceConfig& _internal_config() const; - ::rocvad::MesgDeviceConfig* _internal_mutable_config(); + int _internal_devices_size() const; public: - void unsafe_arena_set_allocated_config( - ::rocvad::MesgDeviceConfig* config); - ::rocvad::MesgDeviceConfig* unsafe_arena_release_config(); - - // uint32 index = 1; - void clear_index(); - uint32_t index() const; - void set_index(uint32_t value); + void clear_devices(); + ::rocvad::PrDeviceInfo* mutable_devices(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::rocvad::PrDeviceInfo >* + mutable_devices(); private: - uint32_t _internal_index() const; - void _internal_set_index(uint32_t value); + const ::rocvad::PrDeviceInfo& _internal_devices(int index) const; + ::rocvad::PrDeviceInfo* _internal_add_devices(); public: + const ::rocvad::PrDeviceInfo& devices(int index) const; + ::rocvad::PrDeviceInfo* add_devices(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::rocvad::PrDeviceInfo >& + devices() const; - // @@protoc_insertion_point(class_scope:rocvad.MesgDeviceInfo) + // @@protoc_insertion_point(class_scope:rocvad.PrDeviceList) private: class _Internal; @@ -1206,8 +1404,7 @@ class MesgDeviceInfo final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::rocvad::MesgDeviceConfig* config_; - uint32_t index_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::rocvad::PrDeviceInfo > devices_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -1215,24 +1412,24 @@ class MesgDeviceInfo final : }; // ------------------------------------------------------------------- -class MesgDeviceList final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.MesgDeviceList) */ { +class PrLocalConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.PrLocalConfig) */ { public: - inline MesgDeviceList() : MesgDeviceList(nullptr) {} - ~MesgDeviceList() override; - explicit PROTOBUF_CONSTEXPR MesgDeviceList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PrLocalConfig() : PrLocalConfig(nullptr) {} + ~PrLocalConfig() override; + explicit PROTOBUF_CONSTEXPR PrLocalConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MesgDeviceList(const MesgDeviceList& from); - MesgDeviceList(MesgDeviceList&& from) noexcept - : MesgDeviceList() { + PrLocalConfig(const PrLocalConfig& from); + PrLocalConfig(PrLocalConfig&& from) noexcept + : PrLocalConfig() { *this = ::std::move(from); } - inline MesgDeviceList& operator=(const MesgDeviceList& from) { + inline PrLocalConfig& operator=(const PrLocalConfig& from) { CopyFrom(from); return *this; } - inline MesgDeviceList& operator=(MesgDeviceList&& from) noexcept { + inline PrLocalConfig& operator=(PrLocalConfig&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1255,20 +1452,20 @@ class MesgDeviceList final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MesgDeviceList& default_instance() { + static const PrLocalConfig& default_instance() { return *internal_default_instance(); } - static inline const MesgDeviceList* internal_default_instance() { - return reinterpret_cast( - &_MesgDeviceList_default_instance_); + static inline const PrLocalConfig* internal_default_instance() { + return reinterpret_cast( + &_PrLocalConfig_default_instance_); } static constexpr int kIndexInFileMessages = 6; - friend void swap(MesgDeviceList& a, MesgDeviceList& b) { + friend void swap(PrLocalConfig& a, PrLocalConfig& b) { a.Swap(&b); } - inline void Swap(MesgDeviceList* other) { + inline void Swap(PrLocalConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1281,7 +1478,7 @@ class MesgDeviceList final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MesgDeviceList* other) { + void UnsafeArenaSwap(PrLocalConfig* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1289,14 +1486,14 @@ class MesgDeviceList final : // implements Message ---------------------------------------------- - MesgDeviceList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PrLocalConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MesgDeviceList& from); + void CopyFrom(const PrLocalConfig& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MesgDeviceList& from) { - MesgDeviceList::MergeImpl(*this, from); + void MergeFrom( const PrLocalConfig& from) { + PrLocalConfig::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -1314,15 +1511,15 @@ class MesgDeviceList final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MesgDeviceList* other); + void InternalSwap(PrLocalConfig* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "rocvad.MesgDeviceList"; + return "rocvad.PrLocalConfig"; } protected: - explicit MesgDeviceList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PrLocalConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1336,27 +1533,36 @@ class MesgDeviceList final : // accessors ------------------------------------------------------- enum : int { - kDevicesFieldNumber = 1, + kSampleRateFieldNumber = 1, + kChannelSetFieldNumber = 2, }; - // repeated .rocvad.MesgDeviceInfo devices = 1; - int devices_size() const; + // optional uint32 sample_rate = 1; + bool has_sample_rate() const; private: - int _internal_devices_size() const; + bool _internal_has_sample_rate() const; public: - void clear_devices(); - ::rocvad::MesgDeviceInfo* mutable_devices(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::rocvad::MesgDeviceInfo >* - mutable_devices(); + void clear_sample_rate(); + uint32_t sample_rate() const; + void set_sample_rate(uint32_t value); private: - const ::rocvad::MesgDeviceInfo& _internal_devices(int index) const; - ::rocvad::MesgDeviceInfo* _internal_add_devices(); + uint32_t _internal_sample_rate() const; + void _internal_set_sample_rate(uint32_t value); + public: + + // optional .rocvad.PrChannelSet channel_set = 2; + bool has_channel_set() const; + private: + bool _internal_has_channel_set() const; + public: + void clear_channel_set(); + ::rocvad::PrChannelSet channel_set() const; + void set_channel_set(::rocvad::PrChannelSet value); + private: + ::rocvad::PrChannelSet _internal_channel_set() const; + void _internal_set_channel_set(::rocvad::PrChannelSet value); public: - const ::rocvad::MesgDeviceInfo& devices(int index) const; - ::rocvad::MesgDeviceInfo* add_devices(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::rocvad::MesgDeviceInfo >& - devices() const; - // @@protoc_insertion_point(class_scope:rocvad.MesgDeviceList) + // @@protoc_insertion_point(class_scope:rocvad.PrLocalConfig) private: class _Internal; @@ -1364,164 +1570,572 @@ class MesgDeviceList final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::rocvad::MesgDeviceInfo > devices_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t sample_rate_; + int channel_set_; }; union { Impl_ _impl_; }; friend struct ::TableStruct_driver_5fprotocol_2eproto; }; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// MesgNone - // ------------------------------------------------------------------- -// MesgDriverInfo +class PrSenderConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.PrSenderConfig) */ { + public: + inline PrSenderConfig() : PrSenderConfig(nullptr) {} + ~PrSenderConfig() override; + explicit PROTOBUF_CONSTEXPR PrSenderConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); -// string version = 1; -inline void MesgDriverInfo::clear_version() { - _impl_.version_.ClearToEmpty(); -} -inline const std::string& MesgDriverInfo::version() const { - // @@protoc_insertion_point(field_get:rocvad.MesgDriverInfo.version) - return _internal_version(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void MesgDriverInfo::set_version(ArgT0&& arg0, ArgT... args) { - - _impl_.version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:rocvad.MesgDriverInfo.version) -} -inline std::string* MesgDriverInfo::mutable_version() { - std::string* _s = _internal_mutable_version(); - // @@protoc_insertion_point(field_mutable:rocvad.MesgDriverInfo.version) - return _s; -} -inline const std::string& MesgDriverInfo::_internal_version() const { - return _impl_.version_.Get(); -} -inline void MesgDriverInfo::_internal_set_version(const std::string& value) { - - _impl_.version_.Set(value, GetArenaForAllocation()); -} -inline std::string* MesgDriverInfo::_internal_mutable_version() { - - return _impl_.version_.Mutable(GetArenaForAllocation()); -} -inline std::string* MesgDriverInfo::release_version() { - // @@protoc_insertion_point(field_release:rocvad.MesgDriverInfo.version) - return _impl_.version_.Release(); -} -inline void MesgDriverInfo::set_allocated_version(std::string* version) { - if (version != nullptr) { - - } else { - + PrSenderConfig(const PrSenderConfig& from); + PrSenderConfig(PrSenderConfig&& from) noexcept + : PrSenderConfig() { + *this = ::std::move(from); } - _impl_.version_.SetAllocated(version, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArenaForAllocation()); + + inline PrSenderConfig& operator=(const PrSenderConfig& from) { + CopyFrom(from); + return *this; + } + inline PrSenderConfig& operator=(PrSenderConfig&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:rocvad.MesgDriverInfo.version) -} -// string commit = 2; -inline void MesgDriverInfo::clear_commit() { - _impl_.commit_.ClearToEmpty(); -} -inline const std::string& MesgDriverInfo::commit() const { - // @@protoc_insertion_point(field_get:rocvad.MesgDriverInfo.commit) - return _internal_commit(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void MesgDriverInfo::set_commit(ArgT0&& arg0, ArgT... args) { - - _impl_.commit_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:rocvad.MesgDriverInfo.commit) -} -inline std::string* MesgDriverInfo::mutable_commit() { - std::string* _s = _internal_mutable_commit(); - // @@protoc_insertion_point(field_mutable:rocvad.MesgDriverInfo.commit) - return _s; -} -inline const std::string& MesgDriverInfo::_internal_commit() const { - return _impl_.commit_.Get(); -} -inline void MesgDriverInfo::_internal_set_commit(const std::string& value) { - - _impl_.commit_.Set(value, GetArenaForAllocation()); -} -inline std::string* MesgDriverInfo::_internal_mutable_commit() { - - return _impl_.commit_.Mutable(GetArenaForAllocation()); -} -inline std::string* MesgDriverInfo::release_commit() { - // @@protoc_insertion_point(field_release:rocvad.MesgDriverInfo.commit) - return _impl_.commit_.Release(); -} -inline void MesgDriverInfo::set_allocated_commit(std::string* commit) { - if (commit != nullptr) { - - } else { - + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); } - _impl_.commit_.SetAllocated(commit, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.commit_.IsDefault()) { - _impl_.commit_.Set("", GetArenaForAllocation()); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:rocvad.MesgDriverInfo.commit) -} + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const PrSenderConfig& default_instance() { + return *internal_default_instance(); + } + static inline const PrSenderConfig* internal_default_instance() { + return reinterpret_cast( + &_PrSenderConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; -// ------------------------------------------------------------------- + friend void swap(PrSenderConfig& a, PrSenderConfig& b) { + a.Swap(&b); + } + inline void Swap(PrSenderConfig* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PrSenderConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } -// MesgLogEntry + // implements Message ---------------------------------------------- -// .google.protobuf.Timestamp time = 1; -inline bool MesgLogEntry::_internal_has_time() const { - return this != internal_default_instance() && _impl_.time_ != nullptr; -} -inline bool MesgLogEntry::has_time() const { - return _internal_has_time(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& MesgLogEntry::_internal_time() const { - const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.time_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); -} -inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& MesgLogEntry::time() const { - // @@protoc_insertion_point(field_get:rocvad.MesgLogEntry.time) - return _internal_time(); -} -inline void MesgLogEntry::unsafe_arena_set_allocated_time( - ::PROTOBUF_NAMESPACE_ID::Timestamp* time) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_); + PrSenderConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - _impl_.time_ = time; - if (time) { - - } else { - + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PrSenderConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PrSenderConfig& from) { + PrSenderConfig::MergeImpl(*this, from); } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:rocvad.MesgLogEntry.time) -} -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MesgLogEntry::release_time() { - - ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_; - _impl_.time_ = nullptr; + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PrSenderConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "rocvad.PrSenderConfig"; + } + protected: + explicit PrSenderConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPacketLengthFieldNumber = 2, + kPacketEncodingFieldNumber = 1, + kFecEncodingFieldNumber = 3, + kFecBlockSourcePacketsFieldNumber = 4, + kFecBlockRepairPacketsFieldNumber = 5, + }; + // optional .google.protobuf.Duration packet_length = 2; + bool has_packet_length() const; + private: + bool _internal_has_packet_length() const; + public: + void clear_packet_length(); + const ::PROTOBUF_NAMESPACE_ID::Duration& packet_length() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_packet_length(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_packet_length(); + void set_allocated_packet_length(::PROTOBUF_NAMESPACE_ID::Duration* packet_length); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_packet_length() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_packet_length(); + public: + void unsafe_arena_set_allocated_packet_length( + ::PROTOBUF_NAMESPACE_ID::Duration* packet_length); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_packet_length(); + + // optional .rocvad.PrPacketEncoding packet_encoding = 1; + bool has_packet_encoding() const; + private: + bool _internal_has_packet_encoding() const; + public: + void clear_packet_encoding(); + ::rocvad::PrPacketEncoding packet_encoding() const; + void set_packet_encoding(::rocvad::PrPacketEncoding value); + private: + ::rocvad::PrPacketEncoding _internal_packet_encoding() const; + void _internal_set_packet_encoding(::rocvad::PrPacketEncoding value); + public: + + // optional .rocvad.PrFecEncoding fec_encoding = 3; + bool has_fec_encoding() const; + private: + bool _internal_has_fec_encoding() const; + public: + void clear_fec_encoding(); + ::rocvad::PrFecEncoding fec_encoding() const; + void set_fec_encoding(::rocvad::PrFecEncoding value); + private: + ::rocvad::PrFecEncoding _internal_fec_encoding() const; + void _internal_set_fec_encoding(::rocvad::PrFecEncoding value); + public: + + // optional uint32 fec_block_source_packets = 4; + bool has_fec_block_source_packets() const; + private: + bool _internal_has_fec_block_source_packets() const; + public: + void clear_fec_block_source_packets(); + uint32_t fec_block_source_packets() const; + void set_fec_block_source_packets(uint32_t value); + private: + uint32_t _internal_fec_block_source_packets() const; + void _internal_set_fec_block_source_packets(uint32_t value); + public: + + // optional uint32 fec_block_repair_packets = 5; + bool has_fec_block_repair_packets() const; + private: + bool _internal_has_fec_block_repair_packets() const; + public: + void clear_fec_block_repair_packets(); + uint32_t fec_block_repair_packets() const; + void set_fec_block_repair_packets(uint32_t value); + private: + uint32_t _internal_fec_block_repair_packets() const; + void _internal_set_fec_block_repair_packets(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:rocvad.PrSenderConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::Duration* packet_length_; + int packet_encoding_; + int fec_encoding_; + uint32_t fec_block_source_packets_; + uint32_t fec_block_repair_packets_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_driver_5fprotocol_2eproto; +}; +// ------------------------------------------------------------------- + +class PrReceiverConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:rocvad.PrReceiverConfig) */ { + public: + inline PrReceiverConfig() : PrReceiverConfig(nullptr) {} + ~PrReceiverConfig() override; + explicit PROTOBUF_CONSTEXPR PrReceiverConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PrReceiverConfig(const PrReceiverConfig& from); + PrReceiverConfig(PrReceiverConfig&& from) noexcept + : PrReceiverConfig() { + *this = ::std::move(from); + } + + inline PrReceiverConfig& operator=(const PrReceiverConfig& from) { + CopyFrom(from); + return *this; + } + inline PrReceiverConfig& operator=(PrReceiverConfig&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const PrReceiverConfig& default_instance() { + return *internal_default_instance(); + } + static inline const PrReceiverConfig* internal_default_instance() { + return reinterpret_cast( + &_PrReceiverConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(PrReceiverConfig& a, PrReceiverConfig& b) { + a.Swap(&b); + } + inline void Swap(PrReceiverConfig* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PrReceiverConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PrReceiverConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PrReceiverConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PrReceiverConfig& from) { + PrReceiverConfig::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PrReceiverConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "rocvad.PrReceiverConfig"; + } + protected: + explicit PrReceiverConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTargetLatencyFieldNumber = 1, + kResamplerBackendFieldNumber = 2, + kResamplerProfileFieldNumber = 3, + }; + // optional .google.protobuf.Duration target_latency = 1; + bool has_target_latency() const; + private: + bool _internal_has_target_latency() const; + public: + void clear_target_latency(); + const ::PROTOBUF_NAMESPACE_ID::Duration& target_latency() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_target_latency(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_target_latency(); + void set_allocated_target_latency(::PROTOBUF_NAMESPACE_ID::Duration* target_latency); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_target_latency() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_target_latency(); + public: + void unsafe_arena_set_allocated_target_latency( + ::PROTOBUF_NAMESPACE_ID::Duration* target_latency); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_target_latency(); + + // optional .rocvad.PrResamplerBackend resampler_backend = 2; + bool has_resampler_backend() const; + private: + bool _internal_has_resampler_backend() const; + public: + void clear_resampler_backend(); + ::rocvad::PrResamplerBackend resampler_backend() const; + void set_resampler_backend(::rocvad::PrResamplerBackend value); + private: + ::rocvad::PrResamplerBackend _internal_resampler_backend() const; + void _internal_set_resampler_backend(::rocvad::PrResamplerBackend value); + public: + + // optional .rocvad.PrResamplerProfile resampler_profile = 3; + bool has_resampler_profile() const; + private: + bool _internal_has_resampler_profile() const; + public: + void clear_resampler_profile(); + ::rocvad::PrResamplerProfile resampler_profile() const; + void set_resampler_profile(::rocvad::PrResamplerProfile value); + private: + ::rocvad::PrResamplerProfile _internal_resampler_profile() const; + void _internal_set_resampler_profile(::rocvad::PrResamplerProfile value); + public: + + // @@protoc_insertion_point(class_scope:rocvad.PrReceiverConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::Duration* target_latency_; + int resampler_backend_; + int resampler_profile_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_driver_5fprotocol_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// PrNone + +// ------------------------------------------------------------------- + +// PrDriverInfo + +// string version = 1; +inline void PrDriverInfo::clear_version() { + _impl_.version_.ClearToEmpty(); +} +inline const std::string& PrDriverInfo::version() const { + // @@protoc_insertion_point(field_get:rocvad.PrDriverInfo.version) + return _internal_version(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PrDriverInfo::set_version(ArgT0&& arg0, ArgT... args) { + + _impl_.version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:rocvad.PrDriverInfo.version) +} +inline std::string* PrDriverInfo::mutable_version() { + std::string* _s = _internal_mutable_version(); + // @@protoc_insertion_point(field_mutable:rocvad.PrDriverInfo.version) + return _s; +} +inline const std::string& PrDriverInfo::_internal_version() const { + return _impl_.version_.Get(); +} +inline void PrDriverInfo::_internal_set_version(const std::string& value) { + + _impl_.version_.Set(value, GetArenaForAllocation()); +} +inline std::string* PrDriverInfo::_internal_mutable_version() { + + return _impl_.version_.Mutable(GetArenaForAllocation()); +} +inline std::string* PrDriverInfo::release_version() { + // @@protoc_insertion_point(field_release:rocvad.PrDriverInfo.version) + return _impl_.version_.Release(); +} +inline void PrDriverInfo::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + _impl_.version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.version_.IsDefault()) { + _impl_.version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:rocvad.PrDriverInfo.version) +} + +// string commit = 2; +inline void PrDriverInfo::clear_commit() { + _impl_.commit_.ClearToEmpty(); +} +inline const std::string& PrDriverInfo::commit() const { + // @@protoc_insertion_point(field_get:rocvad.PrDriverInfo.commit) + return _internal_commit(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PrDriverInfo::set_commit(ArgT0&& arg0, ArgT... args) { + + _impl_.commit_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:rocvad.PrDriverInfo.commit) +} +inline std::string* PrDriverInfo::mutable_commit() { + std::string* _s = _internal_mutable_commit(); + // @@protoc_insertion_point(field_mutable:rocvad.PrDriverInfo.commit) + return _s; +} +inline const std::string& PrDriverInfo::_internal_commit() const { + return _impl_.commit_.Get(); +} +inline void PrDriverInfo::_internal_set_commit(const std::string& value) { + + _impl_.commit_.Set(value, GetArenaForAllocation()); +} +inline std::string* PrDriverInfo::_internal_mutable_commit() { + + return _impl_.commit_.Mutable(GetArenaForAllocation()); +} +inline std::string* PrDriverInfo::release_commit() { + // @@protoc_insertion_point(field_release:rocvad.PrDriverInfo.commit) + return _impl_.commit_.Release(); +} +inline void PrDriverInfo::set_allocated_commit(std::string* commit) { + if (commit != nullptr) { + + } else { + + } + _impl_.commit_.SetAllocated(commit, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.commit_.IsDefault()) { + _impl_.commit_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:rocvad.PrDriverInfo.commit) +} + +// ------------------------------------------------------------------- + +// PrLogEntry + +// .google.protobuf.Timestamp time = 1; +inline bool PrLogEntry::_internal_has_time() const { + return this != internal_default_instance() && _impl_.time_ != nullptr; +} +inline bool PrLogEntry::has_time() const { + return _internal_has_time(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& PrLogEntry::_internal_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& PrLogEntry::time() const { + // @@protoc_insertion_point(field_get:rocvad.PrLogEntry.time) + return _internal_time(); +} +inline void PrLogEntry::unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_); + } + _impl_.time_ = time; + if (time) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:rocvad.PrLogEntry.time) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PrLogEntry::release_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_; + _impl_.time_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -1533,14 +2147,14 @@ inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MesgLogEntry::release_time() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MesgLogEntry::unsafe_arena_release_time() { - // @@protoc_insertion_point(field_release:rocvad.MesgLogEntry.time) +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PrLogEntry::unsafe_arena_release_time() { + // @@protoc_insertion_point(field_release:rocvad.PrLogEntry.time) ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.time_; _impl_.time_ = nullptr; return temp; } -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MesgLogEntry::_internal_mutable_time() { +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PrLogEntry::_internal_mutable_time() { if (_impl_.time_ == nullptr) { auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); @@ -1548,12 +2162,12 @@ inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MesgLogEntry::_internal_mutable_time( } return _impl_.time_; } -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MesgLogEntry::mutable_time() { +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PrLogEntry::mutable_time() { ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time(); - // @@protoc_insertion_point(field_mutable:rocvad.MesgLogEntry.time) + // @@protoc_insertion_point(field_mutable:rocvad.PrLogEntry.time) return _msg; } -inline void MesgLogEntry::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time) { +inline void PrLogEntry::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_); @@ -1571,65 +2185,65 @@ inline void MesgLogEntry::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* } _impl_.time_ = time; - // @@protoc_insertion_point(field_set_allocated:rocvad.MesgLogEntry.time) + // @@protoc_insertion_point(field_set_allocated:rocvad.PrLogEntry.time) } -// .rocvad.MesgLogEntry.Level level = 2; -inline void MesgLogEntry::clear_level() { +// .rocvad.PrLogEntry.Level level = 2; +inline void PrLogEntry::clear_level() { _impl_.level_ = 0; } -inline ::rocvad::MesgLogEntry_Level MesgLogEntry::_internal_level() const { - return static_cast< ::rocvad::MesgLogEntry_Level >(_impl_.level_); +inline ::rocvad::PrLogEntry_Level PrLogEntry::_internal_level() const { + return static_cast< ::rocvad::PrLogEntry_Level >(_impl_.level_); } -inline ::rocvad::MesgLogEntry_Level MesgLogEntry::level() const { - // @@protoc_insertion_point(field_get:rocvad.MesgLogEntry.level) +inline ::rocvad::PrLogEntry_Level PrLogEntry::level() const { + // @@protoc_insertion_point(field_get:rocvad.PrLogEntry.level) return _internal_level(); } -inline void MesgLogEntry::_internal_set_level(::rocvad::MesgLogEntry_Level value) { +inline void PrLogEntry::_internal_set_level(::rocvad::PrLogEntry_Level value) { _impl_.level_ = value; } -inline void MesgLogEntry::set_level(::rocvad::MesgLogEntry_Level value) { +inline void PrLogEntry::set_level(::rocvad::PrLogEntry_Level value) { _internal_set_level(value); - // @@protoc_insertion_point(field_set:rocvad.MesgLogEntry.level) + // @@protoc_insertion_point(field_set:rocvad.PrLogEntry.level) } // string text = 3; -inline void MesgLogEntry::clear_text() { +inline void PrLogEntry::clear_text() { _impl_.text_.ClearToEmpty(); } -inline const std::string& MesgLogEntry::text() const { - // @@protoc_insertion_point(field_get:rocvad.MesgLogEntry.text) +inline const std::string& PrLogEntry::text() const { + // @@protoc_insertion_point(field_get:rocvad.PrLogEntry.text) return _internal_text(); } template inline PROTOBUF_ALWAYS_INLINE -void MesgLogEntry::set_text(ArgT0&& arg0, ArgT... args) { +void PrLogEntry::set_text(ArgT0&& arg0, ArgT... args) { _impl_.text_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:rocvad.MesgLogEntry.text) + // @@protoc_insertion_point(field_set:rocvad.PrLogEntry.text) } -inline std::string* MesgLogEntry::mutable_text() { +inline std::string* PrLogEntry::mutable_text() { std::string* _s = _internal_mutable_text(); - // @@protoc_insertion_point(field_mutable:rocvad.MesgLogEntry.text) + // @@protoc_insertion_point(field_mutable:rocvad.PrLogEntry.text) return _s; } -inline const std::string& MesgLogEntry::_internal_text() const { +inline const std::string& PrLogEntry::_internal_text() const { return _impl_.text_.Get(); } -inline void MesgLogEntry::_internal_set_text(const std::string& value) { +inline void PrLogEntry::_internal_set_text(const std::string& value) { _impl_.text_.Set(value, GetArenaForAllocation()); } -inline std::string* MesgLogEntry::_internal_mutable_text() { +inline std::string* PrLogEntry::_internal_mutable_text() { return _impl_.text_.Mutable(GetArenaForAllocation()); } -inline std::string* MesgLogEntry::release_text() { - // @@protoc_insertion_point(field_release:rocvad.MesgLogEntry.text) +inline std::string* PrLogEntry::release_text() { + // @@protoc_insertion_point(field_release:rocvad.PrLogEntry.text) return _impl_.text_.Release(); } -inline void MesgLogEntry::set_allocated_text(std::string* text) { +inline void PrLogEntry::set_allocated_text(std::string* text) { if (text != nullptr) { } else { @@ -1641,93 +2255,93 @@ inline void MesgLogEntry::set_allocated_text(std::string* text) { _impl_.text_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:rocvad.MesgLogEntry.text) + // @@protoc_insertion_point(field_set_allocated:rocvad.PrLogEntry.text) } // ------------------------------------------------------------------- -// MesgDeviceSelector +// PrDeviceSelector // uint32 index = 1; -inline bool MesgDeviceSelector::_internal_has_index() const { +inline bool PrDeviceSelector::_internal_has_index() const { return Selector_case() == kIndex; } -inline bool MesgDeviceSelector::has_index() const { +inline bool PrDeviceSelector::has_index() const { return _internal_has_index(); } -inline void MesgDeviceSelector::set_has_index() { +inline void PrDeviceSelector::set_has_index() { _impl_._oneof_case_[0] = kIndex; } -inline void MesgDeviceSelector::clear_index() { +inline void PrDeviceSelector::clear_index() { if (_internal_has_index()) { _impl_.Selector_.index_ = 0u; clear_has_Selector(); } } -inline uint32_t MesgDeviceSelector::_internal_index() const { +inline uint32_t PrDeviceSelector::_internal_index() const { if (_internal_has_index()) { return _impl_.Selector_.index_; } return 0u; } -inline void MesgDeviceSelector::_internal_set_index(uint32_t value) { +inline void PrDeviceSelector::_internal_set_index(uint32_t value) { if (!_internal_has_index()) { clear_Selector(); set_has_index(); } _impl_.Selector_.index_ = value; } -inline uint32_t MesgDeviceSelector::index() const { - // @@protoc_insertion_point(field_get:rocvad.MesgDeviceSelector.index) +inline uint32_t PrDeviceSelector::index() const { + // @@protoc_insertion_point(field_get:rocvad.PrDeviceSelector.index) return _internal_index(); } -inline void MesgDeviceSelector::set_index(uint32_t value) { +inline void PrDeviceSelector::set_index(uint32_t value) { _internal_set_index(value); - // @@protoc_insertion_point(field_set:rocvad.MesgDeviceSelector.index) + // @@protoc_insertion_point(field_set:rocvad.PrDeviceSelector.index) } // string uid = 2; -inline bool MesgDeviceSelector::_internal_has_uid() const { +inline bool PrDeviceSelector::_internal_has_uid() const { return Selector_case() == kUid; } -inline bool MesgDeviceSelector::has_uid() const { +inline bool PrDeviceSelector::has_uid() const { return _internal_has_uid(); } -inline void MesgDeviceSelector::set_has_uid() { +inline void PrDeviceSelector::set_has_uid() { _impl_._oneof_case_[0] = kUid; } -inline void MesgDeviceSelector::clear_uid() { +inline void PrDeviceSelector::clear_uid() { if (_internal_has_uid()) { _impl_.Selector_.uid_.Destroy(); clear_has_Selector(); } } -inline const std::string& MesgDeviceSelector::uid() const { - // @@protoc_insertion_point(field_get:rocvad.MesgDeviceSelector.uid) +inline const std::string& PrDeviceSelector::uid() const { + // @@protoc_insertion_point(field_get:rocvad.PrDeviceSelector.uid) return _internal_uid(); } template -inline void MesgDeviceSelector::set_uid(ArgT0&& arg0, ArgT... args) { +inline void PrDeviceSelector::set_uid(ArgT0&& arg0, ArgT... args) { if (!_internal_has_uid()) { clear_Selector(); set_has_uid(); _impl_.Selector_.uid_.InitDefault(); } _impl_.Selector_.uid_.Set( static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:rocvad.MesgDeviceSelector.uid) + // @@protoc_insertion_point(field_set:rocvad.PrDeviceSelector.uid) } -inline std::string* MesgDeviceSelector::mutable_uid() { +inline std::string* PrDeviceSelector::mutable_uid() { std::string* _s = _internal_mutable_uid(); - // @@protoc_insertion_point(field_mutable:rocvad.MesgDeviceSelector.uid) + // @@protoc_insertion_point(field_mutable:rocvad.PrDeviceSelector.uid) return _s; } -inline const std::string& MesgDeviceSelector::_internal_uid() const { +inline const std::string& PrDeviceSelector::_internal_uid() const { if (_internal_has_uid()) { return _impl_.Selector_.uid_.Get(); } return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } -inline void MesgDeviceSelector::_internal_set_uid(const std::string& value) { +inline void PrDeviceSelector::_internal_set_uid(const std::string& value) { if (!_internal_has_uid()) { clear_Selector(); set_has_uid(); @@ -1735,7 +2349,7 @@ inline void MesgDeviceSelector::_internal_set_uid(const std::string& value) { } _impl_.Selector_.uid_.Set(value, GetArenaForAllocation()); } -inline std::string* MesgDeviceSelector::_internal_mutable_uid() { +inline std::string* PrDeviceSelector::_internal_mutable_uid() { if (!_internal_has_uid()) { clear_Selector(); set_has_uid(); @@ -1743,8 +2357,8 @@ inline std::string* MesgDeviceSelector::_internal_mutable_uid() { } return _impl_.Selector_.uid_.Mutable( GetArenaForAllocation()); } -inline std::string* MesgDeviceSelector::release_uid() { - // @@protoc_insertion_point(field_release:rocvad.MesgDeviceSelector.uid) +inline std::string* PrDeviceSelector::release_uid() { + // @@protoc_insertion_point(field_release:rocvad.PrDeviceSelector.uid) if (_internal_has_uid()) { clear_has_Selector(); return _impl_.Selector_.uid_.Release(); @@ -1752,7 +2366,7 @@ inline std::string* MesgDeviceSelector::release_uid() { return nullptr; } } -inline void MesgDeviceSelector::set_allocated_uid(std::string* uid) { +inline void PrDeviceSelector::set_allocated_uid(std::string* uid) { if (has_Selector()) { clear_Selector(); } @@ -1760,82 +2374,128 @@ inline void MesgDeviceSelector::set_allocated_uid(std::string* uid) { set_has_uid(); _impl_.Selector_.uid_.InitAllocated(uid, GetArenaForAllocation()); } - // @@protoc_insertion_point(field_set_allocated:rocvad.MesgDeviceSelector.uid) + // @@protoc_insertion_point(field_set_allocated:rocvad.PrDeviceSelector.uid) } -inline bool MesgDeviceSelector::has_Selector() const { +inline bool PrDeviceSelector::has_Selector() const { return Selector_case() != SELECTOR_NOT_SET; } -inline void MesgDeviceSelector::clear_has_Selector() { +inline void PrDeviceSelector::clear_has_Selector() { _impl_._oneof_case_[0] = SELECTOR_NOT_SET; } -inline MesgDeviceSelector::SelectorCase MesgDeviceSelector::Selector_case() const { - return MesgDeviceSelector::SelectorCase(_impl_._oneof_case_[0]); +inline PrDeviceSelector::SelectorCase PrDeviceSelector::Selector_case() const { + return PrDeviceSelector::SelectorCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- -// MesgDeviceConfig +// PrDeviceInfo -// .rocvad.MesgDeviceConfig.Type type = 1; -inline void MesgDeviceConfig::clear_type() { +// .rocvad.PrDeviceType type = 1; +inline void PrDeviceInfo::clear_type() { _impl_.type_ = 0; } -inline ::rocvad::MesgDeviceConfig_Type MesgDeviceConfig::_internal_type() const { - return static_cast< ::rocvad::MesgDeviceConfig_Type >(_impl_.type_); +inline ::rocvad::PrDeviceType PrDeviceInfo::_internal_type() const { + return static_cast< ::rocvad::PrDeviceType >(_impl_.type_); } -inline ::rocvad::MesgDeviceConfig_Type MesgDeviceConfig::type() const { - // @@protoc_insertion_point(field_get:rocvad.MesgDeviceConfig.type) +inline ::rocvad::PrDeviceType PrDeviceInfo::type() const { + // @@protoc_insertion_point(field_get:rocvad.PrDeviceInfo.type) return _internal_type(); } -inline void MesgDeviceConfig::_internal_set_type(::rocvad::MesgDeviceConfig_Type value) { +inline void PrDeviceInfo::_internal_set_type(::rocvad::PrDeviceType value) { _impl_.type_ = value; } -inline void MesgDeviceConfig::set_type(::rocvad::MesgDeviceConfig_Type value) { +inline void PrDeviceInfo::set_type(::rocvad::PrDeviceType value) { _internal_set_type(value); - // @@protoc_insertion_point(field_set:rocvad.MesgDeviceConfig.type) + // @@protoc_insertion_point(field_set:rocvad.PrDeviceInfo.type) } -// string uid = 2; -inline void MesgDeviceConfig::clear_uid() { +// optional uint32 index = 2; +inline bool PrDeviceInfo::_internal_has_index() const { + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool PrDeviceInfo::has_index() const { + return _internal_has_index(); +} +inline void PrDeviceInfo::clear_index() { + _impl_.index_ = 0u; + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline uint32_t PrDeviceInfo::_internal_index() const { + return _impl_.index_; +} +inline uint32_t PrDeviceInfo::index() const { + // @@protoc_insertion_point(field_get:rocvad.PrDeviceInfo.index) + return _internal_index(); +} +inline void PrDeviceInfo::_internal_set_index(uint32_t value) { + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.index_ = value; +} +inline void PrDeviceInfo::set_index(uint32_t value) { + _internal_set_index(value); + // @@protoc_insertion_point(field_set:rocvad.PrDeviceInfo.index) +} + +// optional string uid = 3; +inline bool PrDeviceInfo::_internal_has_uid() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool PrDeviceInfo::has_uid() const { + return _internal_has_uid(); +} +inline void PrDeviceInfo::clear_uid() { _impl_.uid_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& MesgDeviceConfig::uid() const { - // @@protoc_insertion_point(field_get:rocvad.MesgDeviceConfig.uid) +inline const std::string& PrDeviceInfo::uid() const { + // @@protoc_insertion_point(field_get:rocvad.PrDeviceInfo.uid) return _internal_uid(); } template inline PROTOBUF_ALWAYS_INLINE -void MesgDeviceConfig::set_uid(ArgT0&& arg0, ArgT... args) { - +void PrDeviceInfo::set_uid(ArgT0&& arg0, ArgT... args) { + _impl_._has_bits_[0] |= 0x00000001u; _impl_.uid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:rocvad.MesgDeviceConfig.uid) + // @@protoc_insertion_point(field_set:rocvad.PrDeviceInfo.uid) } -inline std::string* MesgDeviceConfig::mutable_uid() { +inline std::string* PrDeviceInfo::mutable_uid() { std::string* _s = _internal_mutable_uid(); - // @@protoc_insertion_point(field_mutable:rocvad.MesgDeviceConfig.uid) + // @@protoc_insertion_point(field_mutable:rocvad.PrDeviceInfo.uid) return _s; } -inline const std::string& MesgDeviceConfig::_internal_uid() const { +inline const std::string& PrDeviceInfo::_internal_uid() const { return _impl_.uid_.Get(); } -inline void MesgDeviceConfig::_internal_set_uid(const std::string& value) { - +inline void PrDeviceInfo::_internal_set_uid(const std::string& value) { + _impl_._has_bits_[0] |= 0x00000001u; _impl_.uid_.Set(value, GetArenaForAllocation()); } -inline std::string* MesgDeviceConfig::_internal_mutable_uid() { - +inline std::string* PrDeviceInfo::_internal_mutable_uid() { + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.uid_.Mutable(GetArenaForAllocation()); } -inline std::string* MesgDeviceConfig::release_uid() { - // @@protoc_insertion_point(field_release:rocvad.MesgDeviceConfig.uid) - return _impl_.uid_.Release(); +inline std::string* PrDeviceInfo::release_uid() { + // @@protoc_insertion_point(field_release:rocvad.PrDeviceInfo.uid) + if (!_internal_has_uid()) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* p = _impl_.uid_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.uid_.IsDefault()) { + _impl_.uid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -inline void MesgDeviceConfig::set_allocated_uid(std::string* uid) { +inline void PrDeviceInfo::set_allocated_uid(std::string* uid) { if (uid != nullptr) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.uid_.SetAllocated(uid, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING @@ -1843,49 +2503,67 @@ inline void MesgDeviceConfig::set_allocated_uid(std::string* uid) { _impl_.uid_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:rocvad.MesgDeviceConfig.uid) + // @@protoc_insertion_point(field_set_allocated:rocvad.PrDeviceInfo.uid) } -// string name = 3; -inline void MesgDeviceConfig::clear_name() { +// optional string name = 4; +inline bool PrDeviceInfo::_internal_has_name() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool PrDeviceInfo::has_name() const { + return _internal_has_name(); +} +inline void PrDeviceInfo::clear_name() { _impl_.name_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& MesgDeviceConfig::name() const { - // @@protoc_insertion_point(field_get:rocvad.MesgDeviceConfig.name) +inline const std::string& PrDeviceInfo::name() const { + // @@protoc_insertion_point(field_get:rocvad.PrDeviceInfo.name) return _internal_name(); } template inline PROTOBUF_ALWAYS_INLINE -void MesgDeviceConfig::set_name(ArgT0&& arg0, ArgT... args) { - +void PrDeviceInfo::set_name(ArgT0&& arg0, ArgT... args) { + _impl_._has_bits_[0] |= 0x00000002u; _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:rocvad.MesgDeviceConfig.name) + // @@protoc_insertion_point(field_set:rocvad.PrDeviceInfo.name) } -inline std::string* MesgDeviceConfig::mutable_name() { +inline std::string* PrDeviceInfo::mutable_name() { std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:rocvad.MesgDeviceConfig.name) + // @@protoc_insertion_point(field_mutable:rocvad.PrDeviceInfo.name) return _s; } -inline const std::string& MesgDeviceConfig::_internal_name() const { +inline const std::string& PrDeviceInfo::_internal_name() const { return _impl_.name_.Get(); } -inline void MesgDeviceConfig::_internal_set_name(const std::string& value) { - +inline void PrDeviceInfo::_internal_set_name(const std::string& value) { + _impl_._has_bits_[0] |= 0x00000002u; _impl_.name_.Set(value, GetArenaForAllocation()); } -inline std::string* MesgDeviceConfig::_internal_mutable_name() { - +inline std::string* PrDeviceInfo::_internal_mutable_name() { + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.name_.Mutable(GetArenaForAllocation()); } -inline std::string* MesgDeviceConfig::release_name() { - // @@protoc_insertion_point(field_release:rocvad.MesgDeviceConfig.name) - return _impl_.name_.Release(); +inline std::string* PrDeviceInfo::release_name() { + // @@protoc_insertion_point(field_release:rocvad.PrDeviceInfo.name) + if (!_internal_has_name()) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* p = _impl_.name_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -inline void MesgDeviceConfig::set_allocated_name(std::string* name) { +inline void PrDeviceInfo::set_allocated_name(std::string* name) { if (name != nullptr) { - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.name_.SetAllocated(name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING @@ -1893,72 +2571,48 @@ inline void MesgDeviceConfig::set_allocated_name(std::string* name) { _impl_.name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:rocvad.MesgDeviceConfig.name) -} - -// ------------------------------------------------------------------- - -// MesgDeviceInfo - -// uint32 index = 1; -inline void MesgDeviceInfo::clear_index() { - _impl_.index_ = 0u; -} -inline uint32_t MesgDeviceInfo::_internal_index() const { - return _impl_.index_; -} -inline uint32_t MesgDeviceInfo::index() const { - // @@protoc_insertion_point(field_get:rocvad.MesgDeviceInfo.index) - return _internal_index(); -} -inline void MesgDeviceInfo::_internal_set_index(uint32_t value) { - - _impl_.index_ = value; -} -inline void MesgDeviceInfo::set_index(uint32_t value) { - _internal_set_index(value); - // @@protoc_insertion_point(field_set:rocvad.MesgDeviceInfo.index) + // @@protoc_insertion_point(field_set_allocated:rocvad.PrDeviceInfo.name) } -// .rocvad.MesgDeviceConfig config = 2; -inline bool MesgDeviceInfo::_internal_has_config() const { - return this != internal_default_instance() && _impl_.config_ != nullptr; +// .rocvad.PrLocalConfig local_config = 5; +inline bool PrDeviceInfo::_internal_has_local_config() const { + return this != internal_default_instance() && _impl_.local_config_ != nullptr; } -inline bool MesgDeviceInfo::has_config() const { - return _internal_has_config(); +inline bool PrDeviceInfo::has_local_config() const { + return _internal_has_local_config(); } -inline void MesgDeviceInfo::clear_config() { - if (GetArenaForAllocation() == nullptr && _impl_.config_ != nullptr) { - delete _impl_.config_; +inline void PrDeviceInfo::clear_local_config() { + if (GetArenaForAllocation() == nullptr && _impl_.local_config_ != nullptr) { + delete _impl_.local_config_; } - _impl_.config_ = nullptr; + _impl_.local_config_ = nullptr; } -inline const ::rocvad::MesgDeviceConfig& MesgDeviceInfo::_internal_config() const { - const ::rocvad::MesgDeviceConfig* p = _impl_.config_; - return p != nullptr ? *p : reinterpret_cast( - ::rocvad::_MesgDeviceConfig_default_instance_); +inline const ::rocvad::PrLocalConfig& PrDeviceInfo::_internal_local_config() const { + const ::rocvad::PrLocalConfig* p = _impl_.local_config_; + return p != nullptr ? *p : reinterpret_cast( + ::rocvad::_PrLocalConfig_default_instance_); } -inline const ::rocvad::MesgDeviceConfig& MesgDeviceInfo::config() const { - // @@protoc_insertion_point(field_get:rocvad.MesgDeviceInfo.config) - return _internal_config(); +inline const ::rocvad::PrLocalConfig& PrDeviceInfo::local_config() const { + // @@protoc_insertion_point(field_get:rocvad.PrDeviceInfo.local_config) + return _internal_local_config(); } -inline void MesgDeviceInfo::unsafe_arena_set_allocated_config( - ::rocvad::MesgDeviceConfig* config) { +inline void PrDeviceInfo::unsafe_arena_set_allocated_local_config( + ::rocvad::PrLocalConfig* local_config) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.config_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.local_config_); } - _impl_.config_ = config; - if (config) { + _impl_.local_config_ = local_config; + if (local_config) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:rocvad.MesgDeviceInfo.config) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:rocvad.PrDeviceInfo.local_config) } -inline ::rocvad::MesgDeviceConfig* MesgDeviceInfo::release_config() { +inline ::rocvad::PrLocalConfig* PrDeviceInfo::release_local_config() { - ::rocvad::MesgDeviceConfig* temp = _impl_.config_; - _impl_.config_ = nullptr; + ::rocvad::PrLocalConfig* temp = _impl_.local_config_; + _impl_.local_config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -1970,90 +2624,657 @@ inline ::rocvad::MesgDeviceConfig* MesgDeviceInfo::release_config() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::rocvad::MesgDeviceConfig* MesgDeviceInfo::unsafe_arena_release_config() { - // @@protoc_insertion_point(field_release:rocvad.MesgDeviceInfo.config) +inline ::rocvad::PrLocalConfig* PrDeviceInfo::unsafe_arena_release_local_config() { + // @@protoc_insertion_point(field_release:rocvad.PrDeviceInfo.local_config) - ::rocvad::MesgDeviceConfig* temp = _impl_.config_; - _impl_.config_ = nullptr; + ::rocvad::PrLocalConfig* temp = _impl_.local_config_; + _impl_.local_config_ = nullptr; return temp; } -inline ::rocvad::MesgDeviceConfig* MesgDeviceInfo::_internal_mutable_config() { +inline ::rocvad::PrLocalConfig* PrDeviceInfo::_internal_mutable_local_config() { - if (_impl_.config_ == nullptr) { - auto* p = CreateMaybeMessage<::rocvad::MesgDeviceConfig>(GetArenaForAllocation()); - _impl_.config_ = p; + if (_impl_.local_config_ == nullptr) { + auto* p = CreateMaybeMessage<::rocvad::PrLocalConfig>(GetArenaForAllocation()); + _impl_.local_config_ = p; } - return _impl_.config_; + return _impl_.local_config_; } -inline ::rocvad::MesgDeviceConfig* MesgDeviceInfo::mutable_config() { - ::rocvad::MesgDeviceConfig* _msg = _internal_mutable_config(); - // @@protoc_insertion_point(field_mutable:rocvad.MesgDeviceInfo.config) +inline ::rocvad::PrLocalConfig* PrDeviceInfo::mutable_local_config() { + ::rocvad::PrLocalConfig* _msg = _internal_mutable_local_config(); + // @@protoc_insertion_point(field_mutable:rocvad.PrDeviceInfo.local_config) return _msg; } -inline void MesgDeviceInfo::set_allocated_config(::rocvad::MesgDeviceConfig* config) { +inline void PrDeviceInfo::set_allocated_local_config(::rocvad::PrLocalConfig* local_config) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete _impl_.config_; + delete _impl_.local_config_; } - if (config) { + if (local_config) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(config); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(local_config); if (message_arena != submessage_arena) { - config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, config, submessage_arena); + local_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, local_config, submessage_arena); } } else { } - _impl_.config_ = config; - // @@protoc_insertion_point(field_set_allocated:rocvad.MesgDeviceInfo.config) + _impl_.local_config_ = local_config; + // @@protoc_insertion_point(field_set_allocated:rocvad.PrDeviceInfo.local_config) +} + +// .rocvad.PrSenderConfig sender_config = 6; +inline bool PrDeviceInfo::_internal_has_sender_config() const { + return NetworkConfig_case() == kSenderConfig; +} +inline bool PrDeviceInfo::has_sender_config() const { + return _internal_has_sender_config(); +} +inline void PrDeviceInfo::set_has_sender_config() { + _impl_._oneof_case_[0] = kSenderConfig; +} +inline void PrDeviceInfo::clear_sender_config() { + if (_internal_has_sender_config()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.NetworkConfig_.sender_config_; + } + clear_has_NetworkConfig(); + } +} +inline ::rocvad::PrSenderConfig* PrDeviceInfo::release_sender_config() { + // @@protoc_insertion_point(field_release:rocvad.PrDeviceInfo.sender_config) + if (_internal_has_sender_config()) { + clear_has_NetworkConfig(); + ::rocvad::PrSenderConfig* temp = _impl_.NetworkConfig_.sender_config_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.NetworkConfig_.sender_config_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::rocvad::PrSenderConfig& PrDeviceInfo::_internal_sender_config() const { + return _internal_has_sender_config() + ? *_impl_.NetworkConfig_.sender_config_ + : reinterpret_cast< ::rocvad::PrSenderConfig&>(::rocvad::_PrSenderConfig_default_instance_); +} +inline const ::rocvad::PrSenderConfig& PrDeviceInfo::sender_config() const { + // @@protoc_insertion_point(field_get:rocvad.PrDeviceInfo.sender_config) + return _internal_sender_config(); +} +inline ::rocvad::PrSenderConfig* PrDeviceInfo::unsafe_arena_release_sender_config() { + // @@protoc_insertion_point(field_unsafe_arena_release:rocvad.PrDeviceInfo.sender_config) + if (_internal_has_sender_config()) { + clear_has_NetworkConfig(); + ::rocvad::PrSenderConfig* temp = _impl_.NetworkConfig_.sender_config_; + _impl_.NetworkConfig_.sender_config_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void PrDeviceInfo::unsafe_arena_set_allocated_sender_config(::rocvad::PrSenderConfig* sender_config) { + clear_NetworkConfig(); + if (sender_config) { + set_has_sender_config(); + _impl_.NetworkConfig_.sender_config_ = sender_config; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:rocvad.PrDeviceInfo.sender_config) +} +inline ::rocvad::PrSenderConfig* PrDeviceInfo::_internal_mutable_sender_config() { + if (!_internal_has_sender_config()) { + clear_NetworkConfig(); + set_has_sender_config(); + _impl_.NetworkConfig_.sender_config_ = CreateMaybeMessage< ::rocvad::PrSenderConfig >(GetArenaForAllocation()); + } + return _impl_.NetworkConfig_.sender_config_; +} +inline ::rocvad::PrSenderConfig* PrDeviceInfo::mutable_sender_config() { + ::rocvad::PrSenderConfig* _msg = _internal_mutable_sender_config(); + // @@protoc_insertion_point(field_mutable:rocvad.PrDeviceInfo.sender_config) + return _msg; +} + +// .rocvad.PrReceiverConfig receiver_config = 7; +inline bool PrDeviceInfo::_internal_has_receiver_config() const { + return NetworkConfig_case() == kReceiverConfig; +} +inline bool PrDeviceInfo::has_receiver_config() const { + return _internal_has_receiver_config(); +} +inline void PrDeviceInfo::set_has_receiver_config() { + _impl_._oneof_case_[0] = kReceiverConfig; +} +inline void PrDeviceInfo::clear_receiver_config() { + if (_internal_has_receiver_config()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.NetworkConfig_.receiver_config_; + } + clear_has_NetworkConfig(); + } +} +inline ::rocvad::PrReceiverConfig* PrDeviceInfo::release_receiver_config() { + // @@protoc_insertion_point(field_release:rocvad.PrDeviceInfo.receiver_config) + if (_internal_has_receiver_config()) { + clear_has_NetworkConfig(); + ::rocvad::PrReceiverConfig* temp = _impl_.NetworkConfig_.receiver_config_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.NetworkConfig_.receiver_config_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::rocvad::PrReceiverConfig& PrDeviceInfo::_internal_receiver_config() const { + return _internal_has_receiver_config() + ? *_impl_.NetworkConfig_.receiver_config_ + : reinterpret_cast< ::rocvad::PrReceiverConfig&>(::rocvad::_PrReceiverConfig_default_instance_); +} +inline const ::rocvad::PrReceiverConfig& PrDeviceInfo::receiver_config() const { + // @@protoc_insertion_point(field_get:rocvad.PrDeviceInfo.receiver_config) + return _internal_receiver_config(); +} +inline ::rocvad::PrReceiverConfig* PrDeviceInfo::unsafe_arena_release_receiver_config() { + // @@protoc_insertion_point(field_unsafe_arena_release:rocvad.PrDeviceInfo.receiver_config) + if (_internal_has_receiver_config()) { + clear_has_NetworkConfig(); + ::rocvad::PrReceiverConfig* temp = _impl_.NetworkConfig_.receiver_config_; + _impl_.NetworkConfig_.receiver_config_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void PrDeviceInfo::unsafe_arena_set_allocated_receiver_config(::rocvad::PrReceiverConfig* receiver_config) { + clear_NetworkConfig(); + if (receiver_config) { + set_has_receiver_config(); + _impl_.NetworkConfig_.receiver_config_ = receiver_config; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:rocvad.PrDeviceInfo.receiver_config) +} +inline ::rocvad::PrReceiverConfig* PrDeviceInfo::_internal_mutable_receiver_config() { + if (!_internal_has_receiver_config()) { + clear_NetworkConfig(); + set_has_receiver_config(); + _impl_.NetworkConfig_.receiver_config_ = CreateMaybeMessage< ::rocvad::PrReceiverConfig >(GetArenaForAllocation()); + } + return _impl_.NetworkConfig_.receiver_config_; +} +inline ::rocvad::PrReceiverConfig* PrDeviceInfo::mutable_receiver_config() { + ::rocvad::PrReceiverConfig* _msg = _internal_mutable_receiver_config(); + // @@protoc_insertion_point(field_mutable:rocvad.PrDeviceInfo.receiver_config) + return _msg; } +inline bool PrDeviceInfo::has_NetworkConfig() const { + return NetworkConfig_case() != NETWORKCONFIG_NOT_SET; +} +inline void PrDeviceInfo::clear_has_NetworkConfig() { + _impl_._oneof_case_[0] = NETWORKCONFIG_NOT_SET; +} +inline PrDeviceInfo::NetworkConfigCase PrDeviceInfo::NetworkConfig_case() const { + return PrDeviceInfo::NetworkConfigCase(_impl_._oneof_case_[0]); +} // ------------------------------------------------------------------- -// MesgDeviceList +// PrDeviceList -// repeated .rocvad.MesgDeviceInfo devices = 1; -inline int MesgDeviceList::_internal_devices_size() const { +// repeated .rocvad.PrDeviceInfo devices = 1; +inline int PrDeviceList::_internal_devices_size() const { return _impl_.devices_.size(); } -inline int MesgDeviceList::devices_size() const { +inline int PrDeviceList::devices_size() const { return _internal_devices_size(); } -inline void MesgDeviceList::clear_devices() { +inline void PrDeviceList::clear_devices() { _impl_.devices_.Clear(); } -inline ::rocvad::MesgDeviceInfo* MesgDeviceList::mutable_devices(int index) { - // @@protoc_insertion_point(field_mutable:rocvad.MesgDeviceList.devices) +inline ::rocvad::PrDeviceInfo* PrDeviceList::mutable_devices(int index) { + // @@protoc_insertion_point(field_mutable:rocvad.PrDeviceList.devices) return _impl_.devices_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::rocvad::MesgDeviceInfo >* -MesgDeviceList::mutable_devices() { - // @@protoc_insertion_point(field_mutable_list:rocvad.MesgDeviceList.devices) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::rocvad::PrDeviceInfo >* +PrDeviceList::mutable_devices() { + // @@protoc_insertion_point(field_mutable_list:rocvad.PrDeviceList.devices) return &_impl_.devices_; } -inline const ::rocvad::MesgDeviceInfo& MesgDeviceList::_internal_devices(int index) const { +inline const ::rocvad::PrDeviceInfo& PrDeviceList::_internal_devices(int index) const { return _impl_.devices_.Get(index); } -inline const ::rocvad::MesgDeviceInfo& MesgDeviceList::devices(int index) const { - // @@protoc_insertion_point(field_get:rocvad.MesgDeviceList.devices) +inline const ::rocvad::PrDeviceInfo& PrDeviceList::devices(int index) const { + // @@protoc_insertion_point(field_get:rocvad.PrDeviceList.devices) return _internal_devices(index); } -inline ::rocvad::MesgDeviceInfo* MesgDeviceList::_internal_add_devices() { +inline ::rocvad::PrDeviceInfo* PrDeviceList::_internal_add_devices() { return _impl_.devices_.Add(); } -inline ::rocvad::MesgDeviceInfo* MesgDeviceList::add_devices() { - ::rocvad::MesgDeviceInfo* _add = _internal_add_devices(); - // @@protoc_insertion_point(field_add:rocvad.MesgDeviceList.devices) +inline ::rocvad::PrDeviceInfo* PrDeviceList::add_devices() { + ::rocvad::PrDeviceInfo* _add = _internal_add_devices(); + // @@protoc_insertion_point(field_add:rocvad.PrDeviceList.devices) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::rocvad::MesgDeviceInfo >& -MesgDeviceList::devices() const { - // @@protoc_insertion_point(field_list:rocvad.MesgDeviceList.devices) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::rocvad::PrDeviceInfo >& +PrDeviceList::devices() const { + // @@protoc_insertion_point(field_list:rocvad.PrDeviceList.devices) return _impl_.devices_; } +// ------------------------------------------------------------------- + +// PrLocalConfig + +// optional uint32 sample_rate = 1; +inline bool PrLocalConfig::_internal_has_sample_rate() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool PrLocalConfig::has_sample_rate() const { + return _internal_has_sample_rate(); +} +inline void PrLocalConfig::clear_sample_rate() { + _impl_.sample_rate_ = 0u; + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline uint32_t PrLocalConfig::_internal_sample_rate() const { + return _impl_.sample_rate_; +} +inline uint32_t PrLocalConfig::sample_rate() const { + // @@protoc_insertion_point(field_get:rocvad.PrLocalConfig.sample_rate) + return _internal_sample_rate(); +} +inline void PrLocalConfig::_internal_set_sample_rate(uint32_t value) { + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.sample_rate_ = value; +} +inline void PrLocalConfig::set_sample_rate(uint32_t value) { + _internal_set_sample_rate(value); + // @@protoc_insertion_point(field_set:rocvad.PrLocalConfig.sample_rate) +} + +// optional .rocvad.PrChannelSet channel_set = 2; +inline bool PrLocalConfig::_internal_has_channel_set() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool PrLocalConfig::has_channel_set() const { + return _internal_has_channel_set(); +} +inline void PrLocalConfig::clear_channel_set() { + _impl_.channel_set_ = 0; + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline ::rocvad::PrChannelSet PrLocalConfig::_internal_channel_set() const { + return static_cast< ::rocvad::PrChannelSet >(_impl_.channel_set_); +} +inline ::rocvad::PrChannelSet PrLocalConfig::channel_set() const { + // @@protoc_insertion_point(field_get:rocvad.PrLocalConfig.channel_set) + return _internal_channel_set(); +} +inline void PrLocalConfig::_internal_set_channel_set(::rocvad::PrChannelSet value) { + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.channel_set_ = value; +} +inline void PrLocalConfig::set_channel_set(::rocvad::PrChannelSet value) { + _internal_set_channel_set(value); + // @@protoc_insertion_point(field_set:rocvad.PrLocalConfig.channel_set) +} + +// ------------------------------------------------------------------- + +// PrSenderConfig + +// optional .rocvad.PrPacketEncoding packet_encoding = 1; +inline bool PrSenderConfig::_internal_has_packet_encoding() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool PrSenderConfig::has_packet_encoding() const { + return _internal_has_packet_encoding(); +} +inline void PrSenderConfig::clear_packet_encoding() { + _impl_.packet_encoding_ = 0; + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline ::rocvad::PrPacketEncoding PrSenderConfig::_internal_packet_encoding() const { + return static_cast< ::rocvad::PrPacketEncoding >(_impl_.packet_encoding_); +} +inline ::rocvad::PrPacketEncoding PrSenderConfig::packet_encoding() const { + // @@protoc_insertion_point(field_get:rocvad.PrSenderConfig.packet_encoding) + return _internal_packet_encoding(); +} +inline void PrSenderConfig::_internal_set_packet_encoding(::rocvad::PrPacketEncoding value) { + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.packet_encoding_ = value; +} +inline void PrSenderConfig::set_packet_encoding(::rocvad::PrPacketEncoding value) { + _internal_set_packet_encoding(value); + // @@protoc_insertion_point(field_set:rocvad.PrSenderConfig.packet_encoding) +} + +// optional .google.protobuf.Duration packet_length = 2; +inline bool PrSenderConfig::_internal_has_packet_length() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.packet_length_ != nullptr); + return value; +} +inline bool PrSenderConfig::has_packet_length() const { + return _internal_has_packet_length(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& PrSenderConfig::_internal_packet_length() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = _impl_.packet_length_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& PrSenderConfig::packet_length() const { + // @@protoc_insertion_point(field_get:rocvad.PrSenderConfig.packet_length) + return _internal_packet_length(); +} +inline void PrSenderConfig::unsafe_arena_set_allocated_packet_length( + ::PROTOBUF_NAMESPACE_ID::Duration* packet_length) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.packet_length_); + } + _impl_.packet_length_ = packet_length; + if (packet_length) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:rocvad.PrSenderConfig.packet_length) +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* PrSenderConfig::release_packet_length() { + _impl_._has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.packet_length_; + _impl_.packet_length_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* PrSenderConfig::unsafe_arena_release_packet_length() { + // @@protoc_insertion_point(field_release:rocvad.PrSenderConfig.packet_length) + _impl_._has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.packet_length_; + _impl_.packet_length_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* PrSenderConfig::_internal_mutable_packet_length() { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.packet_length_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + _impl_.packet_length_ = p; + } + return _impl_.packet_length_; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* PrSenderConfig::mutable_packet_length() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_packet_length(); + // @@protoc_insertion_point(field_mutable:rocvad.PrSenderConfig.packet_length) + return _msg; +} +inline void PrSenderConfig::set_allocated_packet_length(::PROTOBUF_NAMESPACE_ID::Duration* packet_length) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.packet_length_); + } + if (packet_length) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(packet_length)); + if (message_arena != submessage_arena) { + packet_length = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, packet_length, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.packet_length_ = packet_length; + // @@protoc_insertion_point(field_set_allocated:rocvad.PrSenderConfig.packet_length) +} + +// optional .rocvad.PrFecEncoding fec_encoding = 3; +inline bool PrSenderConfig::_internal_has_fec_encoding() const { + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool PrSenderConfig::has_fec_encoding() const { + return _internal_has_fec_encoding(); +} +inline void PrSenderConfig::clear_fec_encoding() { + _impl_.fec_encoding_ = 0; + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline ::rocvad::PrFecEncoding PrSenderConfig::_internal_fec_encoding() const { + return static_cast< ::rocvad::PrFecEncoding >(_impl_.fec_encoding_); +} +inline ::rocvad::PrFecEncoding PrSenderConfig::fec_encoding() const { + // @@protoc_insertion_point(field_get:rocvad.PrSenderConfig.fec_encoding) + return _internal_fec_encoding(); +} +inline void PrSenderConfig::_internal_set_fec_encoding(::rocvad::PrFecEncoding value) { + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.fec_encoding_ = value; +} +inline void PrSenderConfig::set_fec_encoding(::rocvad::PrFecEncoding value) { + _internal_set_fec_encoding(value); + // @@protoc_insertion_point(field_set:rocvad.PrSenderConfig.fec_encoding) +} + +// optional uint32 fec_block_source_packets = 4; +inline bool PrSenderConfig::_internal_has_fec_block_source_packets() const { + bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool PrSenderConfig::has_fec_block_source_packets() const { + return _internal_has_fec_block_source_packets(); +} +inline void PrSenderConfig::clear_fec_block_source_packets() { + _impl_.fec_block_source_packets_ = 0u; + _impl_._has_bits_[0] &= ~0x00000008u; +} +inline uint32_t PrSenderConfig::_internal_fec_block_source_packets() const { + return _impl_.fec_block_source_packets_; +} +inline uint32_t PrSenderConfig::fec_block_source_packets() const { + // @@protoc_insertion_point(field_get:rocvad.PrSenderConfig.fec_block_source_packets) + return _internal_fec_block_source_packets(); +} +inline void PrSenderConfig::_internal_set_fec_block_source_packets(uint32_t value) { + _impl_._has_bits_[0] |= 0x00000008u; + _impl_.fec_block_source_packets_ = value; +} +inline void PrSenderConfig::set_fec_block_source_packets(uint32_t value) { + _internal_set_fec_block_source_packets(value); + // @@protoc_insertion_point(field_set:rocvad.PrSenderConfig.fec_block_source_packets) +} + +// optional uint32 fec_block_repair_packets = 5; +inline bool PrSenderConfig::_internal_has_fec_block_repair_packets() const { + bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool PrSenderConfig::has_fec_block_repair_packets() const { + return _internal_has_fec_block_repair_packets(); +} +inline void PrSenderConfig::clear_fec_block_repair_packets() { + _impl_.fec_block_repair_packets_ = 0u; + _impl_._has_bits_[0] &= ~0x00000010u; +} +inline uint32_t PrSenderConfig::_internal_fec_block_repair_packets() const { + return _impl_.fec_block_repair_packets_; +} +inline uint32_t PrSenderConfig::fec_block_repair_packets() const { + // @@protoc_insertion_point(field_get:rocvad.PrSenderConfig.fec_block_repair_packets) + return _internal_fec_block_repair_packets(); +} +inline void PrSenderConfig::_internal_set_fec_block_repair_packets(uint32_t value) { + _impl_._has_bits_[0] |= 0x00000010u; + _impl_.fec_block_repair_packets_ = value; +} +inline void PrSenderConfig::set_fec_block_repair_packets(uint32_t value) { + _internal_set_fec_block_repair_packets(value); + // @@protoc_insertion_point(field_set:rocvad.PrSenderConfig.fec_block_repair_packets) +} + +// ------------------------------------------------------------------- + +// PrReceiverConfig + +// optional .google.protobuf.Duration target_latency = 1; +inline bool PrReceiverConfig::_internal_has_target_latency() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.target_latency_ != nullptr); + return value; +} +inline bool PrReceiverConfig::has_target_latency() const { + return _internal_has_target_latency(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& PrReceiverConfig::_internal_target_latency() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = _impl_.target_latency_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& PrReceiverConfig::target_latency() const { + // @@protoc_insertion_point(field_get:rocvad.PrReceiverConfig.target_latency) + return _internal_target_latency(); +} +inline void PrReceiverConfig::unsafe_arena_set_allocated_target_latency( + ::PROTOBUF_NAMESPACE_ID::Duration* target_latency) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.target_latency_); + } + _impl_.target_latency_ = target_latency; + if (target_latency) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:rocvad.PrReceiverConfig.target_latency) +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* PrReceiverConfig::release_target_latency() { + _impl_._has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.target_latency_; + _impl_.target_latency_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* PrReceiverConfig::unsafe_arena_release_target_latency() { + // @@protoc_insertion_point(field_release:rocvad.PrReceiverConfig.target_latency) + _impl_._has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Duration* temp = _impl_.target_latency_; + _impl_.target_latency_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* PrReceiverConfig::_internal_mutable_target_latency() { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.target_latency_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + _impl_.target_latency_ = p; + } + return _impl_.target_latency_; +} +inline ::PROTOBUF_NAMESPACE_ID::Duration* PrReceiverConfig::mutable_target_latency() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_target_latency(); + // @@protoc_insertion_point(field_mutable:rocvad.PrReceiverConfig.target_latency) + return _msg; +} +inline void PrReceiverConfig::set_allocated_target_latency(::PROTOBUF_NAMESPACE_ID::Duration* target_latency) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.target_latency_); + } + if (target_latency) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(target_latency)); + if (message_arena != submessage_arena) { + target_latency = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, target_latency, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.target_latency_ = target_latency; + // @@protoc_insertion_point(field_set_allocated:rocvad.PrReceiverConfig.target_latency) +} + +// optional .rocvad.PrResamplerBackend resampler_backend = 2; +inline bool PrReceiverConfig::_internal_has_resampler_backend() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool PrReceiverConfig::has_resampler_backend() const { + return _internal_has_resampler_backend(); +} +inline void PrReceiverConfig::clear_resampler_backend() { + _impl_.resampler_backend_ = 0; + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline ::rocvad::PrResamplerBackend PrReceiverConfig::_internal_resampler_backend() const { + return static_cast< ::rocvad::PrResamplerBackend >(_impl_.resampler_backend_); +} +inline ::rocvad::PrResamplerBackend PrReceiverConfig::resampler_backend() const { + // @@protoc_insertion_point(field_get:rocvad.PrReceiverConfig.resampler_backend) + return _internal_resampler_backend(); +} +inline void PrReceiverConfig::_internal_set_resampler_backend(::rocvad::PrResamplerBackend value) { + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.resampler_backend_ = value; +} +inline void PrReceiverConfig::set_resampler_backend(::rocvad::PrResamplerBackend value) { + _internal_set_resampler_backend(value); + // @@protoc_insertion_point(field_set:rocvad.PrReceiverConfig.resampler_backend) +} + +// optional .rocvad.PrResamplerProfile resampler_profile = 3; +inline bool PrReceiverConfig::_internal_has_resampler_profile() const { + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool PrReceiverConfig::has_resampler_profile() const { + return _internal_has_resampler_profile(); +} +inline void PrReceiverConfig::clear_resampler_profile() { + _impl_.resampler_profile_ = 0; + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline ::rocvad::PrResamplerProfile PrReceiverConfig::_internal_resampler_profile() const { + return static_cast< ::rocvad::PrResamplerProfile >(_impl_.resampler_profile_); +} +inline ::rocvad::PrResamplerProfile PrReceiverConfig::resampler_profile() const { + // @@protoc_insertion_point(field_get:rocvad.PrReceiverConfig.resampler_profile) + return _internal_resampler_profile(); +} +inline void PrReceiverConfig::_internal_set_resampler_profile(::rocvad::PrResamplerProfile value) { + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.resampler_profile_ = value; +} +inline void PrReceiverConfig::set_resampler_profile(::rocvad::PrResamplerProfile value) { + _internal_set_resampler_profile(value); + // @@protoc_insertion_point(field_set:rocvad.PrReceiverConfig.resampler_profile) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -2069,6 +3290,10 @@ MesgDeviceList::devices() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -2076,15 +3301,40 @@ MesgDeviceList::devices() const { PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::rocvad::MesgLogEntry_Level> : ::std::true_type {}; +template <> struct is_proto_enum< ::rocvad::PrLogEntry_Level> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::rocvad::PrLogEntry_Level>() { + return ::rocvad::PrLogEntry_Level_descriptor(); +} +template <> struct is_proto_enum< ::rocvad::PrDeviceType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::rocvad::PrDeviceType>() { + return ::rocvad::PrDeviceType_descriptor(); +} +template <> struct is_proto_enum< ::rocvad::PrChannelSet> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::rocvad::PrChannelSet>() { + return ::rocvad::PrChannelSet_descriptor(); +} +template <> struct is_proto_enum< ::rocvad::PrPacketEncoding> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::rocvad::PrPacketEncoding>() { + return ::rocvad::PrPacketEncoding_descriptor(); +} +template <> struct is_proto_enum< ::rocvad::PrFecEncoding> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::rocvad::PrFecEncoding>() { + return ::rocvad::PrFecEncoding_descriptor(); +} +template <> struct is_proto_enum< ::rocvad::PrResamplerBackend> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::rocvad::MesgLogEntry_Level>() { - return ::rocvad::MesgLogEntry_Level_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::rocvad::PrResamplerBackend>() { + return ::rocvad::PrResamplerBackend_descriptor(); } -template <> struct is_proto_enum< ::rocvad::MesgDeviceConfig_Type> : ::std::true_type {}; +template <> struct is_proto_enum< ::rocvad::PrResamplerProfile> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::rocvad::MesgDeviceConfig_Type>() { - return ::rocvad::MesgDeviceConfig_Type_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::rocvad::PrResamplerProfile>() { + return ::rocvad::PrResamplerProfile_descriptor(); } PROTOBUF_NAMESPACE_CLOSE diff --git a/rpc/driver_protocol.proto b/rpc/driver_protocol.proto index 6fb4c34..abe2889 100644 --- a/rpc/driver_protocol.proto +++ b/rpc/driver_protocol.proto @@ -10,40 +10,47 @@ syntax = "proto3"; package rocvad; +import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; // RPC interface for Roc Virtual Audio Device driver. service DriverProtocol { // Check driver presence. - rpc ping(MesgNone) returns (MesgNone) {} + // This command does nothing and just returns success. + rpc ping(PrNone) returns (PrNone) {} // Get driver info. - rpc driver_info(MesgNone) returns (MesgDriverInfo) {} + rpc driver_info(PrNone) returns (PrDriverInfo) {} // Stream driver logs to client. - rpc stream_logs(MesgNone) returns (stream MesgLogEntry) {} + // Logs are duplicated to all clients that want to stream them. + // Logs are also duplicated to syslog. + rpc stream_logs(PrNone) returns (stream PrLogEntry) {} // Get info for all virtual devices. - rpc get_all_devices(MesgNone) returns (MesgDeviceList) {} + rpc get_all_devices(PrNone) returns (PrDeviceList) {} // Get info for one virtual device. - rpc get_device(MesgDeviceSelector) returns (MesgDeviceInfo) {} + // Device can be selected by index or UID. + rpc get_device(PrDeviceSelector) returns (PrDeviceInfo) {} // Create new virtual device. - rpc add_device(MesgDeviceConfig) returns (MesgDeviceInfo) {} + // Returns updated device info with all fields set. + rpc add_device(PrDeviceInfo) returns (PrDeviceInfo) {} // Delete virtual device. - rpc delete_device(MesgDeviceSelector) returns (MesgNone) {} + // Device can be selected by index or UID. + rpc delete_device(PrDeviceSelector) returns (PrNone) {} } // No data. -message MesgNone +message PrNone { } // Info about driver. -message MesgDriverInfo +message PrDriverInfo { // Driver version (comes from git tag). string version = 1; @@ -53,7 +60,7 @@ message MesgDriverInfo } // Driver log message. -message MesgLogEntry +message PrLogEntry { enum Level { @@ -65,13 +72,18 @@ message MesgLogEntry TRACE = 5; } + // Absolute time when message was generated. google.protobuf.Timestamp time = 1; + + // Message level. Level level = 2; + + // Formatted message text (without time and level). string text = 3; } // Virtual device selector. -message MesgDeviceSelector +message PrDeviceSelector { oneof Selector { @@ -83,49 +95,202 @@ message MesgDeviceSelector } } -// Virtual device configuration. -// Specified by client when creating device. -message MesgDeviceConfig +// Virtual device info. +message PrDeviceInfo { - enum Type - { - // Output device that sends sound to remote receiver. - SENDER = 0; - - // Input device that receives sound from remote sender. - RECEIVER = 1; - } - // Device type. - Type type = 1; + // Each virtual device can be either sender (output device) or + // receiver (input device). + // Required field. + PrDeviceType type = 1; + + // Device index identifier. + // Index is a small numeric value that is reused for new devices + // after device deletion. + // When retrieving device info, always present and non-zero. + // When creating device, keep unset to automaitcally select free index. + // When set, should not be zero. + optional uint32 index = 2; // Device UID identifier. // UID is a long string identifier, unique across all audio devices, // and very unlikely to be ever reused. - // Keep empty to generate random UID. - string uid = 2; + // When retrieving device info, always present and non-empty. + // When creating device, keep unset to generate random UID. + // When set, should not be empty. + optional string uid = 3; // Human-readable device name. // Device name is shown to the user in UI. - // Keep empty to use default name. - string name = 3; + // When retrieving device info, always present and non-empty. + // When creating device, keep unset to generate name automatically. + // When set, should not be empty. + optional string name = 4; + + // Local configuration of device. + // Parameters of virtual device, as it's shown to the local apps. + PrLocalConfig local_config = 5; + + // Network configuration of device. + // Parameters of network sender or receiver. + oneof NetworkConfig + { + // Configuration for sender device. + // Should be used if device type is PR_DEVICE_TYPE_SENDER. + PrSenderConfig sender_config = 6; + + // Configuration for receiver device. + // Should be used if device type is PR_DEVICE_TYPE_RECEIVER. + PrReceiverConfig receiver_config = 7; + } } -// Virtual device information. -// Includes device configuration and state. -message MesgDeviceInfo +// Virtual device list. +message PrDeviceList { - // Device index identifier. - // Index is a small numeric value that is reused for new devices - // after device deletion. - uint32 index = 1; + repeated PrDeviceInfo devices = 1; +} + +// Local parameters of virtual device. +message PrLocalConfig +{ + // Virtual device sample rate, in Hertz (e.g. 44100). + // When retrieving device info, always present and non-zero. + // When creating device, keep unset to use default (44100). + optional uint32 sample_rate = 1; - // Device configuration. - MesgDeviceConfig config = 2; + // Virtual device channel set (e.g. stereo). + // When retrieving device info, always present. + // When creating device, keep unset to use default (PR_CHANNEL_SET_STEREO). + optional PrChannelSet channel_set = 2; } -// Virtual device list. -message MesgDeviceList +// Parameters of sender device. +message PrSenderConfig { - repeated MesgDeviceInfo devices = 1; + // Encoding for network packets. + // When retrieving device info, always present. + // When creating device, keep unset to use default (PR_PACKET_ENCODING_AVP_L16). + optional PrPacketEncoding packet_encoding = 1; + + // Duration of a single packet. + // When retrieving device info, always present. + // When creating device, keep unset to use default (7ms). + // When set, should not be zero. + optional google.protobuf.Duration packet_length = 2; + + // Forward Error Correction encoding. + // When retrieving device info, always present. + // When creating device, keep unset to use default (PR_FEC_ENCODING_RS8M). + optional PrFecEncoding fec_encoding = 3; + + // Number of source packets per FEC block. + // When retrieving device info, always present. + // When creating device, keep unset to use default (20). + // When set, should not be zero. + optional uint32 fec_block_source_packets = 4; + + // Number of repair packets per FEC block. + // When retrieving device info, always present. + // When creating device, keep unset to use default (10). + // When set, should not be zero. + optional uint32 fec_block_repair_packets = 5; +} + +// Parameters of receiver device. +message PrReceiverConfig +{ + // Target session latency. + // When retrieving device info, always present. + // When creating device, keep unset to use default (100ms). + // When set, should not be zero. + optional google.protobuf.Duration target_latency = 1; + + // Resampling engine. + // When retrieving device info, always present. + // When creating device, keep unset to use default (PR_RESAMPLER_BACKEND_SPEEX). + optional PrResamplerBackend resampler_backend = 2; + + // Resampling quality. + // When retrieving device info, always present. + // When creating device, keep unset to use default (PR_RESAMPLER_PROFILE_MEDIUM). + optional PrResamplerProfile resampler_profile = 3; +} + +// Device type. +// Defines whether device will be input or output. +enum PrDeviceType +{ + // Output device that sends sound to remote receiver. + PR_DEVICE_TYPE_SENDER = 0; + + // Input device that receives sound from remote sender. + PR_DEVICE_TYPE_RECEIVER = 1; +} + +// Device channel set. +// Defines what channels will be shown to apps that use the device. +enum PrChannelSet +{ + // Two channels: left and right. + PR_CHANNEL_SET_STEREO = 0; +} + +// Network packet encoding. +// Defines how samples are encoded when sent over network. +enum PrPacketEncoding +{ + // PCM signed 16-bit. + // "L16" encoding from RTP A/V Profile (RFC 3551). + // Uncompressed samples coded as interleaved 16-bit signed big-endian + // integers in two's complement notation. + PR_PACKET_ENCODING_AVP_L16 = 0; +} + +// Forward Error Correction encoding. +// Defines method for repairing lost packets to improve quality on +// unreliable networks. +enum PrFecEncoding +{ + // No FEC encoding. + PR_FEC_ENCODING_DISABLE = 0; + + // Reed-Solomon FEC encoding (RFC 6865) with m=8. + // Good for small block sizes (below 256 packets). + PR_FEC_ENCODING_RS8M = 1; + + // LDPC-Staircase FEC encoding (RFC 6816). + // Good for large block sizes (above 1024 packets). + PR_FEC_ENCODING_LDPC_STAIRCASE = 2; +} + +// Resampler backend. +// Affects speed and quality. +enum PrResamplerBackend +{ + // Slow built-in resampler. + PR_RESAMPLER_BACKEND_BUILTIN = 0; + + // Fast good-quality resampler from SpeexDSP. + PR_RESAMPLER_BACKEND_SPEEX = 1; +} + +// Resampler profile. +// Affects speed and quality. +// Each resampler backend treats profile in its own way. +enum PrResamplerProfile +{ + // Do not perform resampling. + // Clock drift compensation will be disabled in this case. + // If in doubt, do not disable resampling. + PR_RESAMPLER_PROFILE_DISABLE = 0; + + // High quality, low speed. + PR_RESAMPLER_PROFILE_HIGH = 1; + + // Medium quality, medium speed. + PR_RESAMPLER_PROFILE_MEDIUM = 2; + + // Low quality, high speed. + PR_RESAMPLER_PROFILE_LOW = 3; } diff --git a/tool/cmd_device_add_sender.cpp b/tool/cmd_device_add_sender.cpp index 503759c..b7cf962 100644 --- a/tool/cmd_device_add_sender.cpp +++ b/tool/cmd_device_add_sender.cpp @@ -18,9 +18,9 @@ CmdDeviceAddSender::CmdDeviceAddSender(CLI::App& parent) { auto command = parent.add_subcommand("sender", "add sender virtual device"); - command->add_option("-u,--uid", uid_, "Device UID (keep empty to auto-generate)"); + command->add_option("-u,--uid", uid_, "Device UID (omit to auto-generate)"); command->add_option( - "-n,--name", name_, "Human-readable device name (keep empty to auto-generate)"); + "-n,--name", name_, "Human-readable device name (omit to auto-generate)"); register_command(command); } @@ -37,10 +37,10 @@ bool CmdDeviceAddSender::execute(const Environment& env) spdlog::debug("sending add_device command"); grpc::ClientContext context; - MesgDeviceConfig request; - MesgDeviceInfo response; + PrDeviceInfo request; + PrDeviceInfo response; - request.set_type(MesgDeviceConfig::SENDER); + request.set_type(PR_DEVICE_TYPE_SENDER); request.set_uid(uid_); request.set_name(name_); diff --git a/tool/cmd_device_delete.cpp b/tool/cmd_device_delete.cpp index 45b6d9d..cd1a952 100644 --- a/tool/cmd_device_delete.cpp +++ b/tool/cmd_device_delete.cpp @@ -44,8 +44,8 @@ bool CmdDeviceDelete::execute(const Environment& env) spdlog::debug("sending delete_device command"); grpc::ClientContext context; - MesgDeviceSelector request; - MesgNone response; + PrDeviceSelector request; + PrNone response; if (use_uid_) { request.set_uid(index_or_uid_); diff --git a/tool/cmd_device_list.cpp b/tool/cmd_device_list.cpp index 41207bf..8936faa 100644 --- a/tool/cmd_device_list.cpp +++ b/tool/cmd_device_list.cpp @@ -35,8 +35,8 @@ bool CmdDeviceList::execute(const Environment& env) spdlog::debug("sending get_all_devices command"); grpc::ClientContext context; - MesgNone request; - MesgDeviceList response; + PrNone request; + PrDeviceList response; const grpc::Status status = stub->get_all_devices(&context, request, &response); diff --git a/tool/cmd_device_show.cpp b/tool/cmd_device_show.cpp index bbe3a2f..3aabf36 100644 --- a/tool/cmd_device_show.cpp +++ b/tool/cmd_device_show.cpp @@ -45,8 +45,8 @@ bool CmdDeviceShow::execute(const Environment& env) spdlog::debug("sending get_device command"); grpc::ClientContext context; - MesgDeviceSelector request; - MesgDeviceInfo response; + PrDeviceSelector request; + PrDeviceInfo response; if (use_uid_) { request.set_uid(index_or_uid_); diff --git a/tool/cmd_info.cpp b/tool/cmd_info.cpp index 6c5e6be..2cf7c62 100644 --- a/tool/cmd_info.cpp +++ b/tool/cmd_info.cpp @@ -32,8 +32,8 @@ bool CmdInfo::execute(const Environment& env) spdlog::debug("sending driver_info command"); grpc::ClientContext context; - MesgNone request; - MesgDriverInfo response; + PrNone request; + PrDriverInfo response; const grpc::Status status = stub->driver_info(&context, request, &response); diff --git a/tool/cmd_logcat.cpp b/tool/cmd_logcat.cpp index c8fd469..848efdb 100644 --- a/tool/cmd_logcat.cpp +++ b/tool/cmd_logcat.cpp @@ -34,22 +34,22 @@ std::chrono::system_clock::time_point map_time(google::protobuf::Timestamp times std::chrono::nanoseconds(nanoseconds))); } -spdlog::level::level_enum map_level(MesgLogEntry::Level level) +spdlog::level::level_enum map_level(PrLogEntry::Level level) { switch (level) { - case MesgLogEntry::CRIT: + case PrLogEntry::CRIT: return spdlog::level::critical; - case MesgLogEntry::ERROR: + case PrLogEntry::ERROR: return spdlog::level::err; - case MesgLogEntry::WARN: + case PrLogEntry::WARN: return spdlog::level::warn; - case MesgLogEntry::INFO: + case PrLogEntry::INFO: return spdlog::level::info; - case MesgLogEntry::DEBUG: + case PrLogEntry::DEBUG: return spdlog::level::debug; default: @@ -141,10 +141,10 @@ void CmdLogcat::session_() spdlog::debug("sending stream_logs command"); grpc::ClientContext context; - MesgNone request; + PrNone request; assert(stub_); - std::unique_ptr> stream_reader = + std::unique_ptr> stream_reader = stub_->stream_logs(&context, request); if (!stream_reader) { @@ -152,7 +152,7 @@ void CmdLogcat::session_() } for (;;) { - MesgLogEntry entry; + PrLogEntry entry; if (!stream_reader->Read(&entry)) { stream_reader->Finish(); diff --git a/tool/connector.cpp b/tool/connector.cpp index 6227a5e..d7a16ff 100644 --- a/tool/connector.cpp +++ b/tool/connector.cpp @@ -49,8 +49,8 @@ DriverProtocol::Stub* Connector::connect() spdlog::debug("sending ping command"); grpc::ClientContext context; - MesgNone request; - MesgNone response; + PrNone request; + PrNone response; const grpc::Status status = stub_->ping(&context, request, &response); diff --git a/tool/print.cpp b/tool/print.cpp index 775c7dd..e2d830a 100644 --- a/tool/print.cpp +++ b/tool/print.cpp @@ -13,7 +13,7 @@ namespace rocvad { -void print_driver_and_client_info(const MesgDriverInfo& driver_info) +void print_driver_and_client_info(const PrDriverInfo& driver_info) { fmt::println("driver is loaded"); @@ -30,14 +30,14 @@ void print_driver_and_client_info(const MesgDriverInfo& driver_info) fmt::println(" commit: {}", std::string(BuildInfo::git_commit).substr(0, 7)); } -void print_device_info(const MesgDeviceInfo& device_info) +void print_device_info(const PrDeviceInfo& device_info) { fmt::println("device #{}", device_info.index()); - fmt::println(" uid: {}", device_info.config().uid()); - fmt::println(" name: {}", device_info.config().name()); + fmt::println(" uid: {}", device_info.uid()); + fmt::println(" name: {}", device_info.name()); } -void print_device_list(const MesgDeviceList& device_list, bool show_info) +void print_device_list(const PrDeviceList& device_list, bool show_info) { if (!show_info) { fmt::println("{:<8} {:<10} {:<22} {}", // @@ -58,10 +58,9 @@ void print_device_list(const MesgDeviceList& device_list, bool show_info) } else { fmt::println("{:<8} {:<10} {:<22} {}", device_info.index(), - (device_info.config().type() == MesgDeviceConfig::SENDER ? "sender" - : "receiver"), - device_info.config().uid(), - device_info.config().name()); + device_info.type() == PR_DEVICE_TYPE_SENDER ? "sender" : "receiver", + device_info.uid(), + device_info.name()); } is_first = false; } diff --git a/tool/print.hpp b/tool/print.hpp index 93c9470..1319ae3 100644 --- a/tool/print.hpp +++ b/tool/print.hpp @@ -12,9 +12,9 @@ namespace rocvad { -void print_driver_and_client_info(const MesgDriverInfo& driver_info); +void print_driver_and_client_info(const PrDriverInfo& driver_info); -void print_device_info(const MesgDeviceInfo& device_info); -void print_device_list(const MesgDeviceList& device_list, bool show_info); +void print_device_info(const PrDeviceInfo& device_info); +void print_device_list(const PrDeviceList& device_list, bool show_info); } // namespace rocvad