Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1 | // Generated by the gRPC C++ plugin. |
| 2 | // If you make any local change, they will be lost. |
| 3 | // source: dmi/sw_management_service.proto |
| 4 | |
| 5 | #include "dmi/sw_management_service.pb.h" |
| 6 | #include "dmi/sw_management_service.grpc.pb.h" |
| 7 | |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 8 | #include <functional> |
| 9 | #include <grpcpp/impl/codegen/async_stream.h> |
| 10 | #include <grpcpp/impl/codegen/async_unary_call.h> |
| 11 | #include <grpcpp/impl/codegen/channel_interface.h> |
| 12 | #include <grpcpp/impl/codegen/client_unary_call.h> |
| 13 | #include <grpcpp/impl/codegen/client_callback.h> |
| 14 | #include <grpcpp/impl/codegen/message_allocator.h> |
| 15 | #include <grpcpp/impl/codegen/method_handler.h> |
| 16 | #include <grpcpp/impl/codegen/rpc_service_method.h> |
| 17 | #include <grpcpp/impl/codegen/server_callback.h> |
| 18 | #include <grpcpp/impl/codegen/server_callback_handlers.h> |
| 19 | #include <grpcpp/impl/codegen/server_context.h> |
| 20 | #include <grpcpp/impl/codegen/service_type.h> |
| 21 | #include <grpcpp/impl/codegen/sync_stream.h> |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 22 | namespace dmi { |
| 23 | |
| 24 | static const char* NativeSoftwareManagementService_method_names[] = { |
| 25 | "/dmi.NativeSoftwareManagementService/GetSoftwareVersion", |
| 26 | "/dmi.NativeSoftwareManagementService/DownloadImage", |
| 27 | "/dmi.NativeSoftwareManagementService/ActivateImage", |
| 28 | "/dmi.NativeSoftwareManagementService/RevertToStandbyImage", |
| 29 | "/dmi.NativeSoftwareManagementService/UpdateStartupConfiguration", |
| 30 | "/dmi.NativeSoftwareManagementService/GetStartupConfigurationInfo", |
| 31 | }; |
| 32 | |
| 33 | std::unique_ptr< NativeSoftwareManagementService::Stub> NativeSoftwareManagementService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 34 | (void)options; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 35 | std::unique_ptr< NativeSoftwareManagementService::Stub> stub(new NativeSoftwareManagementService::Stub(channel)); |
| 36 | return stub; |
| 37 | } |
| 38 | |
| 39 | NativeSoftwareManagementService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 40 | : channel_(channel), rpcmethod_GetSoftwareVersion_(NativeSoftwareManagementService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) |
| 41 | , rpcmethod_DownloadImage_(NativeSoftwareManagementService_method_names[1], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) |
| 42 | , rpcmethod_ActivateImage_(NativeSoftwareManagementService_method_names[2], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) |
| 43 | , rpcmethod_RevertToStandbyImage_(NativeSoftwareManagementService_method_names[3], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) |
| 44 | , rpcmethod_UpdateStartupConfiguration_(NativeSoftwareManagementService_method_names[4], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) |
| 45 | , rpcmethod_GetStartupConfigurationInfo_(NativeSoftwareManagementService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 46 | {} |
| 47 | |
| 48 | ::grpc::Status NativeSoftwareManagementService::Stub::GetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::dmi::GetSoftwareVersionInformationResponse* response) { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 49 | return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetSoftwareVersion_, context, request, response); |
| 50 | } |
| 51 | |
| 52 | void NativeSoftwareManagementService::Stub::experimental_async::GetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetSoftwareVersionInformationResponse* response, std::function<void(::grpc::Status)> f) { |
| 53 | ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetSoftwareVersion_, context, request, response, std::move(f)); |
| 54 | } |
| 55 | |
| 56 | void NativeSoftwareManagementService::Stub::experimental_async::GetSoftwareVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetSoftwareVersionInformationResponse* response, std::function<void(::grpc::Status)> f) { |
| 57 | ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetSoftwareVersion_, context, request, response, std::move(f)); |
| 58 | } |
| 59 | |
| 60 | void NativeSoftwareManagementService::Stub::experimental_async::GetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetSoftwareVersionInformationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { |
| 61 | ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetSoftwareVersion_, context, request, response, reactor); |
| 62 | } |
| 63 | |
| 64 | void NativeSoftwareManagementService::Stub::experimental_async::GetSoftwareVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetSoftwareVersionInformationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { |
| 65 | ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetSoftwareVersion_, context, request, response, reactor); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 66 | } |
| 67 | |
| 68 | ::grpc::ClientAsyncResponseReader< ::dmi::GetSoftwareVersionInformationResponse>* NativeSoftwareManagementService::Stub::AsyncGetSoftwareVersionRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 69 | return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::dmi::GetSoftwareVersionInformationResponse>::Create(channel_.get(), cq, rpcmethod_GetSoftwareVersion_, context, request, true); |
| 70 | } |
| 71 | |
| 72 | ::grpc::ClientAsyncResponseReader< ::dmi::GetSoftwareVersionInformationResponse>* NativeSoftwareManagementService::Stub::PrepareAsyncGetSoftwareVersionRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) { |
| 73 | return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::dmi::GetSoftwareVersionInformationResponse>::Create(channel_.get(), cq, rpcmethod_GetSoftwareVersion_, context, request, false); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 74 | } |
| 75 | |
| 76 | ::grpc::ClientReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::DownloadImageRaw(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request) { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 77 | return ::grpc_impl::internal::ClientReaderFactory< ::dmi::ImageStatus>::Create(channel_.get(), rpcmethod_DownloadImage_, context, request); |
| 78 | } |
| 79 | |
| 80 | void NativeSoftwareManagementService::Stub::experimental_async::DownloadImage(::grpc::ClientContext* context, ::dmi::DownloadImageRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::ImageStatus>* reactor) { |
| 81 | ::grpc_impl::internal::ClientCallbackReaderFactory< ::dmi::ImageStatus>::Create(stub_->channel_.get(), stub_->rpcmethod_DownloadImage_, context, request, reactor); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 82 | } |
| 83 | |
| 84 | ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::AsyncDownloadImageRaw(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request, ::grpc::CompletionQueue* cq, void* tag) { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 85 | return ::grpc_impl::internal::ClientAsyncReaderFactory< ::dmi::ImageStatus>::Create(channel_.get(), cq, rpcmethod_DownloadImage_, context, request, true, tag); |
| 86 | } |
| 87 | |
| 88 | ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::PrepareAsyncDownloadImageRaw(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request, ::grpc::CompletionQueue* cq) { |
| 89 | return ::grpc_impl::internal::ClientAsyncReaderFactory< ::dmi::ImageStatus>::Create(channel_.get(), cq, rpcmethod_DownloadImage_, context, request, false, nullptr); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 90 | } |
| 91 | |
| 92 | ::grpc::ClientReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::ActivateImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request) { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 93 | return ::grpc_impl::internal::ClientReaderFactory< ::dmi::ImageStatus>::Create(channel_.get(), rpcmethod_ActivateImage_, context, request); |
| 94 | } |
| 95 | |
| 96 | void NativeSoftwareManagementService::Stub::experimental_async::ActivateImage(::grpc::ClientContext* context, ::dmi::HardwareID* request, ::grpc::experimental::ClientReadReactor< ::dmi::ImageStatus>* reactor) { |
| 97 | ::grpc_impl::internal::ClientCallbackReaderFactory< ::dmi::ImageStatus>::Create(stub_->channel_.get(), stub_->rpcmethod_ActivateImage_, context, request, reactor); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 98 | } |
| 99 | |
| 100 | ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::AsyncActivateImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq, void* tag) { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 101 | return ::grpc_impl::internal::ClientAsyncReaderFactory< ::dmi::ImageStatus>::Create(channel_.get(), cq, rpcmethod_ActivateImage_, context, request, true, tag); |
| 102 | } |
| 103 | |
| 104 | ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::PrepareAsyncActivateImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) { |
| 105 | return ::grpc_impl::internal::ClientAsyncReaderFactory< ::dmi::ImageStatus>::Create(channel_.get(), cq, rpcmethod_ActivateImage_, context, request, false, nullptr); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 106 | } |
| 107 | |
| 108 | ::grpc::ClientReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::RevertToStandbyImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request) { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 109 | return ::grpc_impl::internal::ClientReaderFactory< ::dmi::ImageStatus>::Create(channel_.get(), rpcmethod_RevertToStandbyImage_, context, request); |
| 110 | } |
| 111 | |
| 112 | void NativeSoftwareManagementService::Stub::experimental_async::RevertToStandbyImage(::grpc::ClientContext* context, ::dmi::HardwareID* request, ::grpc::experimental::ClientReadReactor< ::dmi::ImageStatus>* reactor) { |
| 113 | ::grpc_impl::internal::ClientCallbackReaderFactory< ::dmi::ImageStatus>::Create(stub_->channel_.get(), stub_->rpcmethod_RevertToStandbyImage_, context, request, reactor); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 114 | } |
| 115 | |
| 116 | ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::AsyncRevertToStandbyImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq, void* tag) { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 117 | return ::grpc_impl::internal::ClientAsyncReaderFactory< ::dmi::ImageStatus>::Create(channel_.get(), cq, rpcmethod_RevertToStandbyImage_, context, request, true, tag); |
| 118 | } |
| 119 | |
| 120 | ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::PrepareAsyncRevertToStandbyImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) { |
| 121 | return ::grpc_impl::internal::ClientAsyncReaderFactory< ::dmi::ImageStatus>::Create(channel_.get(), cq, rpcmethod_RevertToStandbyImage_, context, request, false, nullptr); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 122 | } |
| 123 | |
| 124 | ::grpc::ClientReader< ::dmi::ConfigResponse>* NativeSoftwareManagementService::Stub::UpdateStartupConfigurationRaw(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request) { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 125 | return ::grpc_impl::internal::ClientReaderFactory< ::dmi::ConfigResponse>::Create(channel_.get(), rpcmethod_UpdateStartupConfiguration_, context, request); |
| 126 | } |
| 127 | |
| 128 | void NativeSoftwareManagementService::Stub::experimental_async::UpdateStartupConfiguration(::grpc::ClientContext* context, ::dmi::ConfigRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::ConfigResponse>* reactor) { |
| 129 | ::grpc_impl::internal::ClientCallbackReaderFactory< ::dmi::ConfigResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateStartupConfiguration_, context, request, reactor); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 130 | } |
| 131 | |
| 132 | ::grpc::ClientAsyncReader< ::dmi::ConfigResponse>* NativeSoftwareManagementService::Stub::AsyncUpdateStartupConfigurationRaw(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request, ::grpc::CompletionQueue* cq, void* tag) { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 133 | return ::grpc_impl::internal::ClientAsyncReaderFactory< ::dmi::ConfigResponse>::Create(channel_.get(), cq, rpcmethod_UpdateStartupConfiguration_, context, request, true, tag); |
| 134 | } |
| 135 | |
| 136 | ::grpc::ClientAsyncReader< ::dmi::ConfigResponse>* NativeSoftwareManagementService::Stub::PrepareAsyncUpdateStartupConfigurationRaw(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request, ::grpc::CompletionQueue* cq) { |
| 137 | return ::grpc_impl::internal::ClientAsyncReaderFactory< ::dmi::ConfigResponse>::Create(channel_.get(), cq, rpcmethod_UpdateStartupConfiguration_, context, request, false, nullptr); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 138 | } |
| 139 | |
| 140 | ::grpc::Status NativeSoftwareManagementService::Stub::GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::dmi::StartupConfigInfoResponse* response) { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 141 | return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetStartupConfigurationInfo_, context, request, response); |
| 142 | } |
| 143 | |
| 144 | void NativeSoftwareManagementService::Stub::experimental_async::GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest* request, ::dmi::StartupConfigInfoResponse* response, std::function<void(::grpc::Status)> f) { |
| 145 | ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetStartupConfigurationInfo_, context, request, response, std::move(f)); |
| 146 | } |
| 147 | |
| 148 | void NativeSoftwareManagementService::Stub::experimental_async::GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StartupConfigInfoResponse* response, std::function<void(::grpc::Status)> f) { |
| 149 | ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetStartupConfigurationInfo_, context, request, response, std::move(f)); |
| 150 | } |
| 151 | |
| 152 | void NativeSoftwareManagementService::Stub::experimental_async::GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest* request, ::dmi::StartupConfigInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { |
| 153 | ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetStartupConfigurationInfo_, context, request, response, reactor); |
| 154 | } |
| 155 | |
| 156 | void NativeSoftwareManagementService::Stub::experimental_async::GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StartupConfigInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { |
| 157 | ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetStartupConfigurationInfo_, context, request, response, reactor); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 158 | } |
| 159 | |
| 160 | ::grpc::ClientAsyncResponseReader< ::dmi::StartupConfigInfoResponse>* NativeSoftwareManagementService::Stub::AsyncGetStartupConfigurationInfoRaw(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::grpc::CompletionQueue* cq) { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 161 | return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::dmi::StartupConfigInfoResponse>::Create(channel_.get(), cq, rpcmethod_GetStartupConfigurationInfo_, context, request, true); |
| 162 | } |
| 163 | |
| 164 | ::grpc::ClientAsyncResponseReader< ::dmi::StartupConfigInfoResponse>* NativeSoftwareManagementService::Stub::PrepareAsyncGetStartupConfigurationInfoRaw(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::grpc::CompletionQueue* cq) { |
| 165 | return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::dmi::StartupConfigInfoResponse>::Create(channel_.get(), cq, rpcmethod_GetStartupConfigurationInfo_, context, request, false); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 166 | } |
| 167 | |
| 168 | NativeSoftwareManagementService::Service::Service() { |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 169 | AddMethod(new ::grpc::internal::RpcServiceMethod( |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 170 | NativeSoftwareManagementService_method_names[0], |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 171 | ::grpc::internal::RpcMethod::NORMAL_RPC, |
| 172 | new ::grpc::internal::RpcMethodHandler< NativeSoftwareManagementService::Service, ::dmi::HardwareID, ::dmi::GetSoftwareVersionInformationResponse>( |
| 173 | [](NativeSoftwareManagementService::Service* service, |
| 174 | ::grpc_impl::ServerContext* ctx, |
| 175 | const ::dmi::HardwareID* req, |
| 176 | ::dmi::GetSoftwareVersionInformationResponse* resp) { |
| 177 | return service->GetSoftwareVersion(ctx, req, resp); |
| 178 | }, this))); |
| 179 | AddMethod(new ::grpc::internal::RpcServiceMethod( |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 180 | NativeSoftwareManagementService_method_names[1], |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 181 | ::grpc::internal::RpcMethod::SERVER_STREAMING, |
| 182 | new ::grpc::internal::ServerStreamingHandler< NativeSoftwareManagementService::Service, ::dmi::DownloadImageRequest, ::dmi::ImageStatus>( |
| 183 | [](NativeSoftwareManagementService::Service* service, |
| 184 | ::grpc_impl::ServerContext* ctx, |
| 185 | const ::dmi::DownloadImageRequest* req, |
| 186 | ::grpc_impl::ServerWriter<::dmi::ImageStatus>* writer) { |
| 187 | return service->DownloadImage(ctx, req, writer); |
| 188 | }, this))); |
| 189 | AddMethod(new ::grpc::internal::RpcServiceMethod( |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 190 | NativeSoftwareManagementService_method_names[2], |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 191 | ::grpc::internal::RpcMethod::SERVER_STREAMING, |
| 192 | new ::grpc::internal::ServerStreamingHandler< NativeSoftwareManagementService::Service, ::dmi::HardwareID, ::dmi::ImageStatus>( |
| 193 | [](NativeSoftwareManagementService::Service* service, |
| 194 | ::grpc_impl::ServerContext* ctx, |
| 195 | const ::dmi::HardwareID* req, |
| 196 | ::grpc_impl::ServerWriter<::dmi::ImageStatus>* writer) { |
| 197 | return service->ActivateImage(ctx, req, writer); |
| 198 | }, this))); |
| 199 | AddMethod(new ::grpc::internal::RpcServiceMethod( |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 200 | NativeSoftwareManagementService_method_names[3], |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 201 | ::grpc::internal::RpcMethod::SERVER_STREAMING, |
| 202 | new ::grpc::internal::ServerStreamingHandler< NativeSoftwareManagementService::Service, ::dmi::HardwareID, ::dmi::ImageStatus>( |
| 203 | [](NativeSoftwareManagementService::Service* service, |
| 204 | ::grpc_impl::ServerContext* ctx, |
| 205 | const ::dmi::HardwareID* req, |
| 206 | ::grpc_impl::ServerWriter<::dmi::ImageStatus>* writer) { |
| 207 | return service->RevertToStandbyImage(ctx, req, writer); |
| 208 | }, this))); |
| 209 | AddMethod(new ::grpc::internal::RpcServiceMethod( |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 210 | NativeSoftwareManagementService_method_names[4], |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 211 | ::grpc::internal::RpcMethod::SERVER_STREAMING, |
| 212 | new ::grpc::internal::ServerStreamingHandler< NativeSoftwareManagementService::Service, ::dmi::ConfigRequest, ::dmi::ConfigResponse>( |
| 213 | [](NativeSoftwareManagementService::Service* service, |
| 214 | ::grpc_impl::ServerContext* ctx, |
| 215 | const ::dmi::ConfigRequest* req, |
| 216 | ::grpc_impl::ServerWriter<::dmi::ConfigResponse>* writer) { |
| 217 | return service->UpdateStartupConfiguration(ctx, req, writer); |
| 218 | }, this))); |
| 219 | AddMethod(new ::grpc::internal::RpcServiceMethod( |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 220 | NativeSoftwareManagementService_method_names[5], |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 221 | ::grpc::internal::RpcMethod::NORMAL_RPC, |
| 222 | new ::grpc::internal::RpcMethodHandler< NativeSoftwareManagementService::Service, ::dmi::StartupConfigInfoRequest, ::dmi::StartupConfigInfoResponse>( |
| 223 | [](NativeSoftwareManagementService::Service* service, |
| 224 | ::grpc_impl::ServerContext* ctx, |
| 225 | const ::dmi::StartupConfigInfoRequest* req, |
| 226 | ::dmi::StartupConfigInfoResponse* resp) { |
| 227 | return service->GetStartupConfigurationInfo(ctx, req, resp); |
| 228 | }, this))); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 229 | } |
| 230 | |
| 231 | NativeSoftwareManagementService::Service::~Service() { |
| 232 | } |
| 233 | |
| 234 | ::grpc::Status NativeSoftwareManagementService::Service::GetSoftwareVersion(::grpc::ServerContext* context, const ::dmi::HardwareID* request, ::dmi::GetSoftwareVersionInformationResponse* response) { |
| 235 | (void) context; |
| 236 | (void) request; |
| 237 | (void) response; |
| 238 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 239 | } |
| 240 | |
| 241 | ::grpc::Status NativeSoftwareManagementService::Service::DownloadImage(::grpc::ServerContext* context, const ::dmi::DownloadImageRequest* request, ::grpc::ServerWriter< ::dmi::ImageStatus>* writer) { |
| 242 | (void) context; |
| 243 | (void) request; |
| 244 | (void) writer; |
| 245 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 246 | } |
| 247 | |
| 248 | ::grpc::Status NativeSoftwareManagementService::Service::ActivateImage(::grpc::ServerContext* context, const ::dmi::HardwareID* request, ::grpc::ServerWriter< ::dmi::ImageStatus>* writer) { |
| 249 | (void) context; |
| 250 | (void) request; |
| 251 | (void) writer; |
| 252 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 253 | } |
| 254 | |
| 255 | ::grpc::Status NativeSoftwareManagementService::Service::RevertToStandbyImage(::grpc::ServerContext* context, const ::dmi::HardwareID* request, ::grpc::ServerWriter< ::dmi::ImageStatus>* writer) { |
| 256 | (void) context; |
| 257 | (void) request; |
| 258 | (void) writer; |
| 259 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 260 | } |
| 261 | |
| 262 | ::grpc::Status NativeSoftwareManagementService::Service::UpdateStartupConfiguration(::grpc::ServerContext* context, const ::dmi::ConfigRequest* request, ::grpc::ServerWriter< ::dmi::ConfigResponse>* writer) { |
| 263 | (void) context; |
| 264 | (void) request; |
| 265 | (void) writer; |
| 266 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 267 | } |
| 268 | |
| 269 | ::grpc::Status NativeSoftwareManagementService::Service::GetStartupConfigurationInfo(::grpc::ServerContext* context, const ::dmi::StartupConfigInfoRequest* request, ::dmi::StartupConfigInfoResponse* response) { |
| 270 | (void) context; |
| 271 | (void) request; |
| 272 | (void) response; |
| 273 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 274 | } |
| 275 | |
| 276 | |
| 277 | } // namespace dmi |
| 278 | |