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 | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 8 | #include <grpc++/impl/codegen/async_stream.h> |
| 9 | #include <grpc++/impl/codegen/async_unary_call.h> |
| 10 | #include <grpc++/impl/codegen/channel_interface.h> |
| 11 | #include <grpc++/impl/codegen/client_unary_call.h> |
| 12 | #include <grpc++/impl/codegen/method_handler_impl.h> |
| 13 | #include <grpc++/impl/codegen/rpc_service_method.h> |
| 14 | #include <grpc++/impl/codegen/service_type.h> |
| 15 | #include <grpc++/impl/codegen/sync_stream.h> |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 16 | namespace dmi { |
| 17 | |
| 18 | static const char* NativeSoftwareManagementService_method_names[] = { |
| 19 | "/dmi.NativeSoftwareManagementService/GetSoftwareVersion", |
| 20 | "/dmi.NativeSoftwareManagementService/DownloadImage", |
| 21 | "/dmi.NativeSoftwareManagementService/ActivateImage", |
| 22 | "/dmi.NativeSoftwareManagementService/RevertToStandbyImage", |
| 23 | "/dmi.NativeSoftwareManagementService/UpdateStartupConfiguration", |
| 24 | "/dmi.NativeSoftwareManagementService/GetStartupConfigurationInfo", |
| 25 | }; |
| 26 | |
| 27 | std::unique_ptr< NativeSoftwareManagementService::Stub> NativeSoftwareManagementService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 28 | std::unique_ptr< NativeSoftwareManagementService::Stub> stub(new NativeSoftwareManagementService::Stub(channel)); |
| 29 | return stub; |
| 30 | } |
| 31 | |
| 32 | NativeSoftwareManagementService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 33 | : channel_(channel), rpcmethod_GetSoftwareVersion_(NativeSoftwareManagementService_method_names[0], ::grpc::RpcMethod::NORMAL_RPC, channel) |
| 34 | , rpcmethod_DownloadImage_(NativeSoftwareManagementService_method_names[1], ::grpc::RpcMethod::SERVER_STREAMING, channel) |
| 35 | , rpcmethod_ActivateImage_(NativeSoftwareManagementService_method_names[2], ::grpc::RpcMethod::SERVER_STREAMING, channel) |
| 36 | , rpcmethod_RevertToStandbyImage_(NativeSoftwareManagementService_method_names[3], ::grpc::RpcMethod::SERVER_STREAMING, channel) |
| 37 | , rpcmethod_UpdateStartupConfiguration_(NativeSoftwareManagementService_method_names[4], ::grpc::RpcMethod::SERVER_STREAMING, channel) |
| 38 | , rpcmethod_GetStartupConfigurationInfo_(NativeSoftwareManagementService_method_names[5], ::grpc::RpcMethod::NORMAL_RPC, channel) |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 39 | {} |
| 40 | |
| 41 | ::grpc::Status NativeSoftwareManagementService::Stub::GetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::dmi::GetSoftwareVersionInformationResponse* response) { |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 42 | return ::grpc::BlockingUnaryCall(channel_.get(), rpcmethod_GetSoftwareVersion_, context, request, response); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | ::grpc::ClientAsyncResponseReader< ::dmi::GetSoftwareVersionInformationResponse>* NativeSoftwareManagementService::Stub::AsyncGetSoftwareVersionRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) { |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 46 | return new ::grpc::ClientAsyncResponseReader< ::dmi::GetSoftwareVersionInformationResponse>(channel_.get(), cq, rpcmethod_GetSoftwareVersion_, context, request); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | ::grpc::ClientReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::DownloadImageRaw(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request) { |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 50 | return new ::grpc::ClientReader< ::dmi::ImageStatus>(channel_.get(), rpcmethod_DownloadImage_, context, request); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::AsyncDownloadImageRaw(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request, ::grpc::CompletionQueue* cq, void* tag) { |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 54 | return new ::grpc::ClientAsyncReader< ::dmi::ImageStatus>(channel_.get(), cq, rpcmethod_DownloadImage_, context, request, tag); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | ::grpc::ClientReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::ActivateImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request) { |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 58 | return new ::grpc::ClientReader< ::dmi::ImageStatus>(channel_.get(), rpcmethod_ActivateImage_, context, request); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 59 | } |
| 60 | |
| 61 | ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::AsyncActivateImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq, void* tag) { |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 62 | return new ::grpc::ClientAsyncReader< ::dmi::ImageStatus>(channel_.get(), cq, rpcmethod_ActivateImage_, context, request, tag); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | ::grpc::ClientReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::RevertToStandbyImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request) { |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 66 | return new ::grpc::ClientReader< ::dmi::ImageStatus>(channel_.get(), rpcmethod_RevertToStandbyImage_, context, request); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 67 | } |
| 68 | |
| 69 | ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* NativeSoftwareManagementService::Stub::AsyncRevertToStandbyImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq, void* tag) { |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 70 | return new ::grpc::ClientAsyncReader< ::dmi::ImageStatus>(channel_.get(), cq, rpcmethod_RevertToStandbyImage_, context, request, tag); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | ::grpc::ClientReader< ::dmi::ConfigResponse>* NativeSoftwareManagementService::Stub::UpdateStartupConfigurationRaw(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request) { |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 74 | return new ::grpc::ClientReader< ::dmi::ConfigResponse>(channel_.get(), rpcmethod_UpdateStartupConfiguration_, context, request); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | ::grpc::ClientAsyncReader< ::dmi::ConfigResponse>* NativeSoftwareManagementService::Stub::AsyncUpdateStartupConfigurationRaw(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request, ::grpc::CompletionQueue* cq, void* tag) { |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 78 | return new ::grpc::ClientAsyncReader< ::dmi::ConfigResponse>(channel_.get(), cq, rpcmethod_UpdateStartupConfiguration_, context, request, tag); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | ::grpc::Status NativeSoftwareManagementService::Stub::GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::dmi::StartupConfigInfoResponse* response) { |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 82 | return ::grpc::BlockingUnaryCall(channel_.get(), rpcmethod_GetStartupConfigurationInfo_, context, request, response); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 83 | } |
| 84 | |
| 85 | ::grpc::ClientAsyncResponseReader< ::dmi::StartupConfigInfoResponse>* NativeSoftwareManagementService::Stub::AsyncGetStartupConfigurationInfoRaw(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::grpc::CompletionQueue* cq) { |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 86 | return new ::grpc::ClientAsyncResponseReader< ::dmi::StartupConfigInfoResponse>(channel_.get(), cq, rpcmethod_GetStartupConfigurationInfo_, context, request); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 87 | } |
| 88 | |
| 89 | NativeSoftwareManagementService::Service::Service() { |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 90 | AddMethod(new ::grpc::RpcServiceMethod( |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 91 | NativeSoftwareManagementService_method_names[0], |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 92 | ::grpc::RpcMethod::NORMAL_RPC, |
| 93 | new ::grpc::RpcMethodHandler< NativeSoftwareManagementService::Service, ::dmi::HardwareID, ::dmi::GetSoftwareVersionInformationResponse>( |
| 94 | std::mem_fn(&NativeSoftwareManagementService::Service::GetSoftwareVersion), this))); |
| 95 | AddMethod(new ::grpc::RpcServiceMethod( |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 96 | NativeSoftwareManagementService_method_names[1], |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 97 | ::grpc::RpcMethod::SERVER_STREAMING, |
| 98 | new ::grpc::ServerStreamingHandler< NativeSoftwareManagementService::Service, ::dmi::DownloadImageRequest, ::dmi::ImageStatus>( |
| 99 | std::mem_fn(&NativeSoftwareManagementService::Service::DownloadImage), this))); |
| 100 | AddMethod(new ::grpc::RpcServiceMethod( |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 101 | NativeSoftwareManagementService_method_names[2], |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 102 | ::grpc::RpcMethod::SERVER_STREAMING, |
| 103 | new ::grpc::ServerStreamingHandler< NativeSoftwareManagementService::Service, ::dmi::HardwareID, ::dmi::ImageStatus>( |
| 104 | std::mem_fn(&NativeSoftwareManagementService::Service::ActivateImage), this))); |
| 105 | AddMethod(new ::grpc::RpcServiceMethod( |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 106 | NativeSoftwareManagementService_method_names[3], |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 107 | ::grpc::RpcMethod::SERVER_STREAMING, |
| 108 | new ::grpc::ServerStreamingHandler< NativeSoftwareManagementService::Service, ::dmi::HardwareID, ::dmi::ImageStatus>( |
| 109 | std::mem_fn(&NativeSoftwareManagementService::Service::RevertToStandbyImage), this))); |
| 110 | AddMethod(new ::grpc::RpcServiceMethod( |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 111 | NativeSoftwareManagementService_method_names[4], |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 112 | ::grpc::RpcMethod::SERVER_STREAMING, |
| 113 | new ::grpc::ServerStreamingHandler< NativeSoftwareManagementService::Service, ::dmi::ConfigRequest, ::dmi::ConfigResponse>( |
| 114 | std::mem_fn(&NativeSoftwareManagementService::Service::UpdateStartupConfiguration), this))); |
| 115 | AddMethod(new ::grpc::RpcServiceMethod( |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 116 | NativeSoftwareManagementService_method_names[5], |
Andrea Campanella | fb09e7e | 2021-04-26 17:22:49 +0000 | [diff] [blame^] | 117 | ::grpc::RpcMethod::NORMAL_RPC, |
| 118 | new ::grpc::RpcMethodHandler< NativeSoftwareManagementService::Service, ::dmi::StartupConfigInfoRequest, ::dmi::StartupConfigInfoResponse>( |
| 119 | std::mem_fn(&NativeSoftwareManagementService::Service::GetStartupConfigurationInfo), this))); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 120 | } |
| 121 | |
| 122 | NativeSoftwareManagementService::Service::~Service() { |
| 123 | } |
| 124 | |
| 125 | ::grpc::Status NativeSoftwareManagementService::Service::GetSoftwareVersion(::grpc::ServerContext* context, const ::dmi::HardwareID* request, ::dmi::GetSoftwareVersionInformationResponse* response) { |
| 126 | (void) context; |
| 127 | (void) request; |
| 128 | (void) response; |
| 129 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 130 | } |
| 131 | |
| 132 | ::grpc::Status NativeSoftwareManagementService::Service::DownloadImage(::grpc::ServerContext* context, const ::dmi::DownloadImageRequest* request, ::grpc::ServerWriter< ::dmi::ImageStatus>* writer) { |
| 133 | (void) context; |
| 134 | (void) request; |
| 135 | (void) writer; |
| 136 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 137 | } |
| 138 | |
| 139 | ::grpc::Status NativeSoftwareManagementService::Service::ActivateImage(::grpc::ServerContext* context, const ::dmi::HardwareID* request, ::grpc::ServerWriter< ::dmi::ImageStatus>* writer) { |
| 140 | (void) context; |
| 141 | (void) request; |
| 142 | (void) writer; |
| 143 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 144 | } |
| 145 | |
| 146 | ::grpc::Status NativeSoftwareManagementService::Service::RevertToStandbyImage(::grpc::ServerContext* context, const ::dmi::HardwareID* request, ::grpc::ServerWriter< ::dmi::ImageStatus>* writer) { |
| 147 | (void) context; |
| 148 | (void) request; |
| 149 | (void) writer; |
| 150 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 151 | } |
| 152 | |
| 153 | ::grpc::Status NativeSoftwareManagementService::Service::UpdateStartupConfiguration(::grpc::ServerContext* context, const ::dmi::ConfigRequest* request, ::grpc::ServerWriter< ::dmi::ConfigResponse>* writer) { |
| 154 | (void) context; |
| 155 | (void) request; |
| 156 | (void) writer; |
| 157 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 158 | } |
| 159 | |
| 160 | ::grpc::Status NativeSoftwareManagementService::Service::GetStartupConfigurationInfo(::grpc::ServerContext* context, const ::dmi::StartupConfigInfoRequest* request, ::dmi::StartupConfigInfoResponse* response) { |
| 161 | (void) context; |
| 162 | (void) request; |
| 163 | (void) response; |
| 164 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 165 | } |
| 166 | |
| 167 | |
| 168 | } // namespace dmi |
| 169 | |