blob: 870e714c82ff68ddb89828c06567bebb15fda79b [file] [log] [blame]
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001// 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#ifndef GRPC_dmi_2fsw_5fmanagement_5fservice_2eproto__INCLUDED
5#define GRPC_dmi_2fsw_5fmanagement_5fservice_2eproto__INCLUDED
6
7#include "dmi/sw_management_service.pb.h"
8
9#include <functional>
10#include <grpc/impl/codegen/port_platform.h>
11#include <grpcpp/impl/codegen/async_generic_service.h>
12#include <grpcpp/impl/codegen/async_stream.h>
13#include <grpcpp/impl/codegen/async_unary_call.h>
14#include <grpcpp/impl/codegen/client_callback.h>
15#include <grpcpp/impl/codegen/client_context.h>
16#include <grpcpp/impl/codegen/completion_queue.h>
17#include <grpcpp/impl/codegen/message_allocator.h>
18#include <grpcpp/impl/codegen/method_handler.h>
19#include <grpcpp/impl/codegen/proto_utils.h>
20#include <grpcpp/impl/codegen/rpc_method.h>
21#include <grpcpp/impl/codegen/server_callback.h>
22#include <grpcpp/impl/codegen/server_callback_handlers.h>
23#include <grpcpp/impl/codegen/server_context.h>
24#include <grpcpp/impl/codegen/service_type.h>
25#include <grpcpp/impl/codegen/status.h>
26#include <grpcpp/impl/codegen/stub_options.h>
27#include <grpcpp/impl/codegen/sync_stream.h>
28
29namespace dmi {
30
31class NativeSoftwareManagementService final {
32 public:
33 static constexpr char const* service_full_name() {
34 return "dmi.NativeSoftwareManagementService";
35 }
36 class StubInterface {
37 public:
38 virtual ~StubInterface() {}
39 // Get the software version information of the Active and Standby images
40 virtual ::grpc::Status GetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::dmi::GetSoftwareVersionInformationResponse* response) = 0;
41 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetSoftwareVersionInformationResponse>> AsyncGetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
42 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetSoftwareVersionInformationResponse>>(AsyncGetSoftwareVersionRaw(context, request, cq));
43 }
44 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetSoftwareVersionInformationResponse>> PrepareAsyncGetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
45 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetSoftwareVersionInformationResponse>>(PrepareAsyncGetSoftwareVersionRaw(context, request, cq));
46 }
47 // Downloads and installs the image in the standby partition, returns the status/progress of the Install
48 std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::ImageStatus>> DownloadImage(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request) {
49 return std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::ImageStatus>>(DownloadImageRaw(context, request));
50 }
51 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>> AsyncDownloadImage(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
52 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>>(AsyncDownloadImageRaw(context, request, cq, tag));
53 }
54 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>> PrepareAsyncDownloadImage(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request, ::grpc::CompletionQueue* cq) {
55 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>>(PrepareAsyncDownloadImageRaw(context, request, cq));
56 }
57 // Activates and runs the OLT with the image in the standby partition. If things are fine this image will
58 // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition.
59 // Any possibly required (sub-)steps like "commit" are left to the "Device Manager"
60 std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::ImageStatus>> ActivateImage(::grpc::ClientContext* context, const ::dmi::HardwareID& request) {
61 return std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::ImageStatus>>(ActivateImageRaw(context, request));
62 }
63 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>> AsyncActivateImage(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq, void* tag) {
64 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>>(AsyncActivateImageRaw(context, request, cq, tag));
65 }
66 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>> PrepareAsyncActivateImage(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
67 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>>(PrepareAsyncActivateImageRaw(context, request, cq));
68 }
69 // Marks the image in the Standby as Active and reboots the device, so that it boots from that image which was in the standby.
70 // This API is to be used if operator wants to go back to the previous software
71 std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::ImageStatus>> RevertToStandbyImage(::grpc::ClientContext* context, const ::dmi::HardwareID& request) {
72 return std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::ImageStatus>>(RevertToStandbyImageRaw(context, request));
73 }
74 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>> AsyncRevertToStandbyImage(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq, void* tag) {
75 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>>(AsyncRevertToStandbyImageRaw(context, request, cq, tag));
76 }
77 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>> PrepareAsyncRevertToStandbyImage(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
78 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>>(PrepareAsyncRevertToStandbyImageRaw(context, request, cq));
79 }
80 // This API can be used to let the devices pickup their properitary configuration which they need at startup.
81 std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::ConfigResponse>> UpdateStartupConfiguration(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request) {
82 return std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::ConfigResponse>>(UpdateStartupConfigurationRaw(context, request));
83 }
84 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ConfigResponse>> AsyncUpdateStartupConfiguration(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
85 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ConfigResponse>>(AsyncUpdateStartupConfigurationRaw(context, request, cq, tag));
86 }
87 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ConfigResponse>> PrepareAsyncUpdateStartupConfiguration(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request, ::grpc::CompletionQueue* cq) {
88 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::ConfigResponse>>(PrepareAsyncUpdateStartupConfigurationRaw(context, request, cq));
89 }
90 // This API can be used to retrieve information about the current startup configuration that a device is using
91 virtual ::grpc::Status GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::dmi::StartupConfigInfoResponse* response) = 0;
92 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StartupConfigInfoResponse>> AsyncGetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::grpc::CompletionQueue* cq) {
93 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StartupConfigInfoResponse>>(AsyncGetStartupConfigurationInfoRaw(context, request, cq));
94 }
95 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StartupConfigInfoResponse>> PrepareAsyncGetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::grpc::CompletionQueue* cq) {
96 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StartupConfigInfoResponse>>(PrepareAsyncGetStartupConfigurationInfoRaw(context, request, cq));
97 }
98 class experimental_async_interface {
99 public:
100 virtual ~experimental_async_interface() {}
101 // Get the software version information of the Active and Standby images
102 virtual void GetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetSoftwareVersionInformationResponse* response, std::function<void(::grpc::Status)>) = 0;
103 virtual void GetSoftwareVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetSoftwareVersionInformationResponse* response, std::function<void(::grpc::Status)>) = 0;
104 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
105 virtual void GetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetSoftwareVersionInformationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
106 #else
107 virtual void GetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetSoftwareVersionInformationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
108 #endif
109 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
110 virtual void GetSoftwareVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetSoftwareVersionInformationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
111 #else
112 virtual void GetSoftwareVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetSoftwareVersionInformationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
113 #endif
114 // Downloads and installs the image in the standby partition, returns the status/progress of the Install
115 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
116 virtual void DownloadImage(::grpc::ClientContext* context, ::dmi::DownloadImageRequest* request, ::grpc::ClientReadReactor< ::dmi::ImageStatus>* reactor) = 0;
117 #else
118 virtual void DownloadImage(::grpc::ClientContext* context, ::dmi::DownloadImageRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::ImageStatus>* reactor) = 0;
119 #endif
120 // Activates and runs the OLT with the image in the standby partition. If things are fine this image will
121 // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition.
122 // Any possibly required (sub-)steps like "commit" are left to the "Device Manager"
123 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
124 virtual void ActivateImage(::grpc::ClientContext* context, ::dmi::HardwareID* request, ::grpc::ClientReadReactor< ::dmi::ImageStatus>* reactor) = 0;
125 #else
126 virtual void ActivateImage(::grpc::ClientContext* context, ::dmi::HardwareID* request, ::grpc::experimental::ClientReadReactor< ::dmi::ImageStatus>* reactor) = 0;
127 #endif
128 // Marks the image in the Standby as Active and reboots the device, so that it boots from that image which was in the standby.
129 // This API is to be used if operator wants to go back to the previous software
130 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
131 virtual void RevertToStandbyImage(::grpc::ClientContext* context, ::dmi::HardwareID* request, ::grpc::ClientReadReactor< ::dmi::ImageStatus>* reactor) = 0;
132 #else
133 virtual void RevertToStandbyImage(::grpc::ClientContext* context, ::dmi::HardwareID* request, ::grpc::experimental::ClientReadReactor< ::dmi::ImageStatus>* reactor) = 0;
134 #endif
135 // This API can be used to let the devices pickup their properitary configuration which they need at startup.
136 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
137 virtual void UpdateStartupConfiguration(::grpc::ClientContext* context, ::dmi::ConfigRequest* request, ::grpc::ClientReadReactor< ::dmi::ConfigResponse>* reactor) = 0;
138 #else
139 virtual void UpdateStartupConfiguration(::grpc::ClientContext* context, ::dmi::ConfigRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::ConfigResponse>* reactor) = 0;
140 #endif
141 // This API can be used to retrieve information about the current startup configuration that a device is using
142 virtual void GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest* request, ::dmi::StartupConfigInfoResponse* response, std::function<void(::grpc::Status)>) = 0;
143 virtual void GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StartupConfigInfoResponse* response, std::function<void(::grpc::Status)>) = 0;
144 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
145 virtual void GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest* request, ::dmi::StartupConfigInfoResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
146 #else
147 virtual void GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest* request, ::dmi::StartupConfigInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
148 #endif
149 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
150 virtual void GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StartupConfigInfoResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
151 #else
152 virtual void GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StartupConfigInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
153 #endif
154 };
155 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
156 typedef class experimental_async_interface async_interface;
157 #endif
158 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
159 async_interface* async() { return experimental_async(); }
160 #endif
161 virtual class experimental_async_interface* experimental_async() { return nullptr; }
162 private:
163 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetSoftwareVersionInformationResponse>* AsyncGetSoftwareVersionRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) = 0;
164 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetSoftwareVersionInformationResponse>* PrepareAsyncGetSoftwareVersionRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) = 0;
165 virtual ::grpc::ClientReaderInterface< ::dmi::ImageStatus>* DownloadImageRaw(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request) = 0;
166 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>* AsyncDownloadImageRaw(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0;
167 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>* PrepareAsyncDownloadImageRaw(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request, ::grpc::CompletionQueue* cq) = 0;
168 virtual ::grpc::ClientReaderInterface< ::dmi::ImageStatus>* ActivateImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request) = 0;
169 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>* AsyncActivateImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq, void* tag) = 0;
170 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>* PrepareAsyncActivateImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) = 0;
171 virtual ::grpc::ClientReaderInterface< ::dmi::ImageStatus>* RevertToStandbyImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request) = 0;
172 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>* AsyncRevertToStandbyImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq, void* tag) = 0;
173 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::ImageStatus>* PrepareAsyncRevertToStandbyImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) = 0;
174 virtual ::grpc::ClientReaderInterface< ::dmi::ConfigResponse>* UpdateStartupConfigurationRaw(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request) = 0;
175 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::ConfigResponse>* AsyncUpdateStartupConfigurationRaw(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0;
176 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::ConfigResponse>* PrepareAsyncUpdateStartupConfigurationRaw(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request, ::grpc::CompletionQueue* cq) = 0;
177 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StartupConfigInfoResponse>* AsyncGetStartupConfigurationInfoRaw(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::grpc::CompletionQueue* cq) = 0;
178 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StartupConfigInfoResponse>* PrepareAsyncGetStartupConfigurationInfoRaw(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::grpc::CompletionQueue* cq) = 0;
179 };
180 class Stub final : public StubInterface {
181 public:
182 Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel);
183 ::grpc::Status GetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::dmi::GetSoftwareVersionInformationResponse* response) override;
184 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetSoftwareVersionInformationResponse>> AsyncGetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
185 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetSoftwareVersionInformationResponse>>(AsyncGetSoftwareVersionRaw(context, request, cq));
186 }
187 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetSoftwareVersionInformationResponse>> PrepareAsyncGetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
188 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetSoftwareVersionInformationResponse>>(PrepareAsyncGetSoftwareVersionRaw(context, request, cq));
189 }
190 std::unique_ptr< ::grpc::ClientReader< ::dmi::ImageStatus>> DownloadImage(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request) {
191 return std::unique_ptr< ::grpc::ClientReader< ::dmi::ImageStatus>>(DownloadImageRaw(context, request));
192 }
193 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ImageStatus>> AsyncDownloadImage(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
194 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ImageStatus>>(AsyncDownloadImageRaw(context, request, cq, tag));
195 }
196 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ImageStatus>> PrepareAsyncDownloadImage(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request, ::grpc::CompletionQueue* cq) {
197 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ImageStatus>>(PrepareAsyncDownloadImageRaw(context, request, cq));
198 }
199 std::unique_ptr< ::grpc::ClientReader< ::dmi::ImageStatus>> ActivateImage(::grpc::ClientContext* context, const ::dmi::HardwareID& request) {
200 return std::unique_ptr< ::grpc::ClientReader< ::dmi::ImageStatus>>(ActivateImageRaw(context, request));
201 }
202 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ImageStatus>> AsyncActivateImage(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq, void* tag) {
203 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ImageStatus>>(AsyncActivateImageRaw(context, request, cq, tag));
204 }
205 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ImageStatus>> PrepareAsyncActivateImage(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
206 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ImageStatus>>(PrepareAsyncActivateImageRaw(context, request, cq));
207 }
208 std::unique_ptr< ::grpc::ClientReader< ::dmi::ImageStatus>> RevertToStandbyImage(::grpc::ClientContext* context, const ::dmi::HardwareID& request) {
209 return std::unique_ptr< ::grpc::ClientReader< ::dmi::ImageStatus>>(RevertToStandbyImageRaw(context, request));
210 }
211 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ImageStatus>> AsyncRevertToStandbyImage(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq, void* tag) {
212 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ImageStatus>>(AsyncRevertToStandbyImageRaw(context, request, cq, tag));
213 }
214 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ImageStatus>> PrepareAsyncRevertToStandbyImage(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
215 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ImageStatus>>(PrepareAsyncRevertToStandbyImageRaw(context, request, cq));
216 }
217 std::unique_ptr< ::grpc::ClientReader< ::dmi::ConfigResponse>> UpdateStartupConfiguration(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request) {
218 return std::unique_ptr< ::grpc::ClientReader< ::dmi::ConfigResponse>>(UpdateStartupConfigurationRaw(context, request));
219 }
220 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ConfigResponse>> AsyncUpdateStartupConfiguration(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
221 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ConfigResponse>>(AsyncUpdateStartupConfigurationRaw(context, request, cq, tag));
222 }
223 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ConfigResponse>> PrepareAsyncUpdateStartupConfiguration(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request, ::grpc::CompletionQueue* cq) {
224 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::ConfigResponse>>(PrepareAsyncUpdateStartupConfigurationRaw(context, request, cq));
225 }
226 ::grpc::Status GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::dmi::StartupConfigInfoResponse* response) override;
227 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::StartupConfigInfoResponse>> AsyncGetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::grpc::CompletionQueue* cq) {
228 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::StartupConfigInfoResponse>>(AsyncGetStartupConfigurationInfoRaw(context, request, cq));
229 }
230 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::StartupConfigInfoResponse>> PrepareAsyncGetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::grpc::CompletionQueue* cq) {
231 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::StartupConfigInfoResponse>>(PrepareAsyncGetStartupConfigurationInfoRaw(context, request, cq));
232 }
233 class experimental_async final :
234 public StubInterface::experimental_async_interface {
235 public:
236 void GetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetSoftwareVersionInformationResponse* response, std::function<void(::grpc::Status)>) override;
237 void GetSoftwareVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetSoftwareVersionInformationResponse* response, std::function<void(::grpc::Status)>) override;
238 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
239 void GetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetSoftwareVersionInformationResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
240 #else
241 void GetSoftwareVersion(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetSoftwareVersionInformationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
242 #endif
243 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
244 void GetSoftwareVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetSoftwareVersionInformationResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
245 #else
246 void GetSoftwareVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetSoftwareVersionInformationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
247 #endif
248 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
249 void DownloadImage(::grpc::ClientContext* context, ::dmi::DownloadImageRequest* request, ::grpc::ClientReadReactor< ::dmi::ImageStatus>* reactor) override;
250 #else
251 void DownloadImage(::grpc::ClientContext* context, ::dmi::DownloadImageRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::ImageStatus>* reactor) override;
252 #endif
253 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
254 void ActivateImage(::grpc::ClientContext* context, ::dmi::HardwareID* request, ::grpc::ClientReadReactor< ::dmi::ImageStatus>* reactor) override;
255 #else
256 void ActivateImage(::grpc::ClientContext* context, ::dmi::HardwareID* request, ::grpc::experimental::ClientReadReactor< ::dmi::ImageStatus>* reactor) override;
257 #endif
258 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
259 void RevertToStandbyImage(::grpc::ClientContext* context, ::dmi::HardwareID* request, ::grpc::ClientReadReactor< ::dmi::ImageStatus>* reactor) override;
260 #else
261 void RevertToStandbyImage(::grpc::ClientContext* context, ::dmi::HardwareID* request, ::grpc::experimental::ClientReadReactor< ::dmi::ImageStatus>* reactor) override;
262 #endif
263 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
264 void UpdateStartupConfiguration(::grpc::ClientContext* context, ::dmi::ConfigRequest* request, ::grpc::ClientReadReactor< ::dmi::ConfigResponse>* reactor) override;
265 #else
266 void UpdateStartupConfiguration(::grpc::ClientContext* context, ::dmi::ConfigRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::ConfigResponse>* reactor) override;
267 #endif
268 void GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest* request, ::dmi::StartupConfigInfoResponse* response, std::function<void(::grpc::Status)>) override;
269 void GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StartupConfigInfoResponse* response, std::function<void(::grpc::Status)>) override;
270 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
271 void GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest* request, ::dmi::StartupConfigInfoResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
272 #else
273 void GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest* request, ::dmi::StartupConfigInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
274 #endif
275 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
276 void GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StartupConfigInfoResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
277 #else
278 void GetStartupConfigurationInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StartupConfigInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
279 #endif
280 private:
281 friend class Stub;
282 explicit experimental_async(Stub* stub): stub_(stub) { }
283 Stub* stub() { return stub_; }
284 Stub* stub_;
285 };
286 class experimental_async_interface* experimental_async() override { return &async_stub_; }
287
288 private:
289 std::shared_ptr< ::grpc::ChannelInterface> channel_;
290 class experimental_async async_stub_{this};
291 ::grpc::ClientAsyncResponseReader< ::dmi::GetSoftwareVersionInformationResponse>* AsyncGetSoftwareVersionRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) override;
292 ::grpc::ClientAsyncResponseReader< ::dmi::GetSoftwareVersionInformationResponse>* PrepareAsyncGetSoftwareVersionRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) override;
293 ::grpc::ClientReader< ::dmi::ImageStatus>* DownloadImageRaw(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request) override;
294 ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* AsyncDownloadImageRaw(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request, ::grpc::CompletionQueue* cq, void* tag) override;
295 ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* PrepareAsyncDownloadImageRaw(::grpc::ClientContext* context, const ::dmi::DownloadImageRequest& request, ::grpc::CompletionQueue* cq) override;
296 ::grpc::ClientReader< ::dmi::ImageStatus>* ActivateImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request) override;
297 ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* AsyncActivateImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq, void* tag) override;
298 ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* PrepareAsyncActivateImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) override;
299 ::grpc::ClientReader< ::dmi::ImageStatus>* RevertToStandbyImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request) override;
300 ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* AsyncRevertToStandbyImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq, void* tag) override;
301 ::grpc::ClientAsyncReader< ::dmi::ImageStatus>* PrepareAsyncRevertToStandbyImageRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) override;
302 ::grpc::ClientReader< ::dmi::ConfigResponse>* UpdateStartupConfigurationRaw(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request) override;
303 ::grpc::ClientAsyncReader< ::dmi::ConfigResponse>* AsyncUpdateStartupConfigurationRaw(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request, ::grpc::CompletionQueue* cq, void* tag) override;
304 ::grpc::ClientAsyncReader< ::dmi::ConfigResponse>* PrepareAsyncUpdateStartupConfigurationRaw(::grpc::ClientContext* context, const ::dmi::ConfigRequest& request, ::grpc::CompletionQueue* cq) override;
305 ::grpc::ClientAsyncResponseReader< ::dmi::StartupConfigInfoResponse>* AsyncGetStartupConfigurationInfoRaw(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::grpc::CompletionQueue* cq) override;
306 ::grpc::ClientAsyncResponseReader< ::dmi::StartupConfigInfoResponse>* PrepareAsyncGetStartupConfigurationInfoRaw(::grpc::ClientContext* context, const ::dmi::StartupConfigInfoRequest& request, ::grpc::CompletionQueue* cq) override;
307 const ::grpc::internal::RpcMethod rpcmethod_GetSoftwareVersion_;
308 const ::grpc::internal::RpcMethod rpcmethod_DownloadImage_;
309 const ::grpc::internal::RpcMethod rpcmethod_ActivateImage_;
310 const ::grpc::internal::RpcMethod rpcmethod_RevertToStandbyImage_;
311 const ::grpc::internal::RpcMethod rpcmethod_UpdateStartupConfiguration_;
312 const ::grpc::internal::RpcMethod rpcmethod_GetStartupConfigurationInfo_;
313 };
314 static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
315
316 class Service : public ::grpc::Service {
317 public:
318 Service();
319 virtual ~Service();
320 // Get the software version information of the Active and Standby images
321 virtual ::grpc::Status GetSoftwareVersion(::grpc::ServerContext* context, const ::dmi::HardwareID* request, ::dmi::GetSoftwareVersionInformationResponse* response);
322 // Downloads and installs the image in the standby partition, returns the status/progress of the Install
323 virtual ::grpc::Status DownloadImage(::grpc::ServerContext* context, const ::dmi::DownloadImageRequest* request, ::grpc::ServerWriter< ::dmi::ImageStatus>* writer);
324 // Activates and runs the OLT with the image in the standby partition. If things are fine this image will
325 // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition.
326 // Any possibly required (sub-)steps like "commit" are left to the "Device Manager"
327 virtual ::grpc::Status ActivateImage(::grpc::ServerContext* context, const ::dmi::HardwareID* request, ::grpc::ServerWriter< ::dmi::ImageStatus>* writer);
328 // Marks the image in the Standby as Active and reboots the device, so that it boots from that image which was in the standby.
329 // This API is to be used if operator wants to go back to the previous software
330 virtual ::grpc::Status RevertToStandbyImage(::grpc::ServerContext* context, const ::dmi::HardwareID* request, ::grpc::ServerWriter< ::dmi::ImageStatus>* writer);
331 // This API can be used to let the devices pickup their properitary configuration which they need at startup.
332 virtual ::grpc::Status UpdateStartupConfiguration(::grpc::ServerContext* context, const ::dmi::ConfigRequest* request, ::grpc::ServerWriter< ::dmi::ConfigResponse>* writer);
333 // This API can be used to retrieve information about the current startup configuration that a device is using
334 virtual ::grpc::Status GetStartupConfigurationInfo(::grpc::ServerContext* context, const ::dmi::StartupConfigInfoRequest* request, ::dmi::StartupConfigInfoResponse* response);
335 };
336 template <class BaseClass>
337 class WithAsyncMethod_GetSoftwareVersion : public BaseClass {
338 private:
339 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
340 public:
341 WithAsyncMethod_GetSoftwareVersion() {
342 ::grpc::Service::MarkMethodAsync(0);
343 }
344 ~WithAsyncMethod_GetSoftwareVersion() override {
345 BaseClassMustBeDerivedFromService(this);
346 }
347 // disable synchronous version of this method
348 ::grpc::Status GetSoftwareVersion(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetSoftwareVersionInformationResponse* /*response*/) override {
349 abort();
350 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
351 }
352 void RequestGetSoftwareVersion(::grpc::ServerContext* context, ::dmi::HardwareID* request, ::grpc::ServerAsyncResponseWriter< ::dmi::GetSoftwareVersionInformationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
353 ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
354 }
355 };
356 template <class BaseClass>
357 class WithAsyncMethod_DownloadImage : public BaseClass {
358 private:
359 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
360 public:
361 WithAsyncMethod_DownloadImage() {
362 ::grpc::Service::MarkMethodAsync(1);
363 }
364 ~WithAsyncMethod_DownloadImage() override {
365 BaseClassMustBeDerivedFromService(this);
366 }
367 // disable synchronous version of this method
368 ::grpc::Status DownloadImage(::grpc::ServerContext* /*context*/, const ::dmi::DownloadImageRequest* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
369 abort();
370 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
371 }
372 void RequestDownloadImage(::grpc::ServerContext* context, ::dmi::DownloadImageRequest* request, ::grpc::ServerAsyncWriter< ::dmi::ImageStatus>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
373 ::grpc::Service::RequestAsyncServerStreaming(1, context, request, writer, new_call_cq, notification_cq, tag);
374 }
375 };
376 template <class BaseClass>
377 class WithAsyncMethod_ActivateImage : public BaseClass {
378 private:
379 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
380 public:
381 WithAsyncMethod_ActivateImage() {
382 ::grpc::Service::MarkMethodAsync(2);
383 }
384 ~WithAsyncMethod_ActivateImage() override {
385 BaseClassMustBeDerivedFromService(this);
386 }
387 // disable synchronous version of this method
388 ::grpc::Status ActivateImage(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
389 abort();
390 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
391 }
392 void RequestActivateImage(::grpc::ServerContext* context, ::dmi::HardwareID* request, ::grpc::ServerAsyncWriter< ::dmi::ImageStatus>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
393 ::grpc::Service::RequestAsyncServerStreaming(2, context, request, writer, new_call_cq, notification_cq, tag);
394 }
395 };
396 template <class BaseClass>
397 class WithAsyncMethod_RevertToStandbyImage : public BaseClass {
398 private:
399 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
400 public:
401 WithAsyncMethod_RevertToStandbyImage() {
402 ::grpc::Service::MarkMethodAsync(3);
403 }
404 ~WithAsyncMethod_RevertToStandbyImage() override {
405 BaseClassMustBeDerivedFromService(this);
406 }
407 // disable synchronous version of this method
408 ::grpc::Status RevertToStandbyImage(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
409 abort();
410 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
411 }
412 void RequestRevertToStandbyImage(::grpc::ServerContext* context, ::dmi::HardwareID* request, ::grpc::ServerAsyncWriter< ::dmi::ImageStatus>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
413 ::grpc::Service::RequestAsyncServerStreaming(3, context, request, writer, new_call_cq, notification_cq, tag);
414 }
415 };
416 template <class BaseClass>
417 class WithAsyncMethod_UpdateStartupConfiguration : public BaseClass {
418 private:
419 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
420 public:
421 WithAsyncMethod_UpdateStartupConfiguration() {
422 ::grpc::Service::MarkMethodAsync(4);
423 }
424 ~WithAsyncMethod_UpdateStartupConfiguration() override {
425 BaseClassMustBeDerivedFromService(this);
426 }
427 // disable synchronous version of this method
428 ::grpc::Status UpdateStartupConfiguration(::grpc::ServerContext* /*context*/, const ::dmi::ConfigRequest* /*request*/, ::grpc::ServerWriter< ::dmi::ConfigResponse>* /*writer*/) override {
429 abort();
430 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
431 }
432 void RequestUpdateStartupConfiguration(::grpc::ServerContext* context, ::dmi::ConfigRequest* request, ::grpc::ServerAsyncWriter< ::dmi::ConfigResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
433 ::grpc::Service::RequestAsyncServerStreaming(4, context, request, writer, new_call_cq, notification_cq, tag);
434 }
435 };
436 template <class BaseClass>
437 class WithAsyncMethod_GetStartupConfigurationInfo : public BaseClass {
438 private:
439 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
440 public:
441 WithAsyncMethod_GetStartupConfigurationInfo() {
442 ::grpc::Service::MarkMethodAsync(5);
443 }
444 ~WithAsyncMethod_GetStartupConfigurationInfo() override {
445 BaseClassMustBeDerivedFromService(this);
446 }
447 // disable synchronous version of this method
448 ::grpc::Status GetStartupConfigurationInfo(::grpc::ServerContext* /*context*/, const ::dmi::StartupConfigInfoRequest* /*request*/, ::dmi::StartupConfigInfoResponse* /*response*/) override {
449 abort();
450 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
451 }
452 void RequestGetStartupConfigurationInfo(::grpc::ServerContext* context, ::dmi::StartupConfigInfoRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::StartupConfigInfoResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
453 ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
454 }
455 };
456 typedef WithAsyncMethod_GetSoftwareVersion<WithAsyncMethod_DownloadImage<WithAsyncMethod_ActivateImage<WithAsyncMethod_RevertToStandbyImage<WithAsyncMethod_UpdateStartupConfiguration<WithAsyncMethod_GetStartupConfigurationInfo<Service > > > > > > AsyncService;
457 template <class BaseClass>
458 class ExperimentalWithCallbackMethod_GetSoftwareVersion : public BaseClass {
459 private:
460 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
461 public:
462 ExperimentalWithCallbackMethod_GetSoftwareVersion() {
463 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
464 ::grpc::Service::
465 #else
466 ::grpc::Service::experimental().
467 #endif
468 MarkMethodCallback(0,
469 new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::HardwareID, ::dmi::GetSoftwareVersionInformationResponse>(
470 [this](
471 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
472 ::grpc::CallbackServerContext*
473 #else
474 ::grpc::experimental::CallbackServerContext*
475 #endif
476 context, const ::dmi::HardwareID* request, ::dmi::GetSoftwareVersionInformationResponse* response) { return this->GetSoftwareVersion(context, request, response); }));}
477 void SetMessageAllocatorFor_GetSoftwareVersion(
478 ::grpc::experimental::MessageAllocator< ::dmi::HardwareID, ::dmi::GetSoftwareVersionInformationResponse>* allocator) {
479 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
480 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
481 #else
482 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0);
483 #endif
484 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::HardwareID, ::dmi::GetSoftwareVersionInformationResponse>*>(handler)
485 ->SetMessageAllocator(allocator);
486 }
487 ~ExperimentalWithCallbackMethod_GetSoftwareVersion() override {
488 BaseClassMustBeDerivedFromService(this);
489 }
490 // disable synchronous version of this method
491 ::grpc::Status GetSoftwareVersion(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetSoftwareVersionInformationResponse* /*response*/) override {
492 abort();
493 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
494 }
495 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
496 virtual ::grpc::ServerUnaryReactor* GetSoftwareVersion(
497 ::grpc::CallbackServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetSoftwareVersionInformationResponse* /*response*/)
498 #else
499 virtual ::grpc::experimental::ServerUnaryReactor* GetSoftwareVersion(
500 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetSoftwareVersionInformationResponse* /*response*/)
501 #endif
502 { return nullptr; }
503 };
504 template <class BaseClass>
505 class ExperimentalWithCallbackMethod_DownloadImage : public BaseClass {
506 private:
507 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
508 public:
509 ExperimentalWithCallbackMethod_DownloadImage() {
510 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
511 ::grpc::Service::
512 #else
513 ::grpc::Service::experimental().
514 #endif
515 MarkMethodCallback(1,
516 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::dmi::DownloadImageRequest, ::dmi::ImageStatus>(
517 [this](
518 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
519 ::grpc::CallbackServerContext*
520 #else
521 ::grpc::experimental::CallbackServerContext*
522 #endif
523 context, const ::dmi::DownloadImageRequest* request) { return this->DownloadImage(context, request); }));
524 }
525 ~ExperimentalWithCallbackMethod_DownloadImage() override {
526 BaseClassMustBeDerivedFromService(this);
527 }
528 // disable synchronous version of this method
529 ::grpc::Status DownloadImage(::grpc::ServerContext* /*context*/, const ::dmi::DownloadImageRequest* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
530 abort();
531 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
532 }
533 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
534 virtual ::grpc::ServerWriteReactor< ::dmi::ImageStatus>* DownloadImage(
535 ::grpc::CallbackServerContext* /*context*/, const ::dmi::DownloadImageRequest* /*request*/)
536 #else
537 virtual ::grpc::experimental::ServerWriteReactor< ::dmi::ImageStatus>* DownloadImage(
538 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::DownloadImageRequest* /*request*/)
539 #endif
540 { return nullptr; }
541 };
542 template <class BaseClass>
543 class ExperimentalWithCallbackMethod_ActivateImage : public BaseClass {
544 private:
545 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
546 public:
547 ExperimentalWithCallbackMethod_ActivateImage() {
548 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
549 ::grpc::Service::
550 #else
551 ::grpc::Service::experimental().
552 #endif
553 MarkMethodCallback(2,
554 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::dmi::HardwareID, ::dmi::ImageStatus>(
555 [this](
556 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
557 ::grpc::CallbackServerContext*
558 #else
559 ::grpc::experimental::CallbackServerContext*
560 #endif
561 context, const ::dmi::HardwareID* request) { return this->ActivateImage(context, request); }));
562 }
563 ~ExperimentalWithCallbackMethod_ActivateImage() override {
564 BaseClassMustBeDerivedFromService(this);
565 }
566 // disable synchronous version of this method
567 ::grpc::Status ActivateImage(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
568 abort();
569 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
570 }
571 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
572 virtual ::grpc::ServerWriteReactor< ::dmi::ImageStatus>* ActivateImage(
573 ::grpc::CallbackServerContext* /*context*/, const ::dmi::HardwareID* /*request*/)
574 #else
575 virtual ::grpc::experimental::ServerWriteReactor< ::dmi::ImageStatus>* ActivateImage(
576 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::HardwareID* /*request*/)
577 #endif
578 { return nullptr; }
579 };
580 template <class BaseClass>
581 class ExperimentalWithCallbackMethod_RevertToStandbyImage : public BaseClass {
582 private:
583 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
584 public:
585 ExperimentalWithCallbackMethod_RevertToStandbyImage() {
586 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
587 ::grpc::Service::
588 #else
589 ::grpc::Service::experimental().
590 #endif
591 MarkMethodCallback(3,
592 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::dmi::HardwareID, ::dmi::ImageStatus>(
593 [this](
594 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
595 ::grpc::CallbackServerContext*
596 #else
597 ::grpc::experimental::CallbackServerContext*
598 #endif
599 context, const ::dmi::HardwareID* request) { return this->RevertToStandbyImage(context, request); }));
600 }
601 ~ExperimentalWithCallbackMethod_RevertToStandbyImage() override {
602 BaseClassMustBeDerivedFromService(this);
603 }
604 // disable synchronous version of this method
605 ::grpc::Status RevertToStandbyImage(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
606 abort();
607 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
608 }
609 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
610 virtual ::grpc::ServerWriteReactor< ::dmi::ImageStatus>* RevertToStandbyImage(
611 ::grpc::CallbackServerContext* /*context*/, const ::dmi::HardwareID* /*request*/)
612 #else
613 virtual ::grpc::experimental::ServerWriteReactor< ::dmi::ImageStatus>* RevertToStandbyImage(
614 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::HardwareID* /*request*/)
615 #endif
616 { return nullptr; }
617 };
618 template <class BaseClass>
619 class ExperimentalWithCallbackMethod_UpdateStartupConfiguration : public BaseClass {
620 private:
621 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
622 public:
623 ExperimentalWithCallbackMethod_UpdateStartupConfiguration() {
624 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
625 ::grpc::Service::
626 #else
627 ::grpc::Service::experimental().
628 #endif
629 MarkMethodCallback(4,
630 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::dmi::ConfigRequest, ::dmi::ConfigResponse>(
631 [this](
632 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
633 ::grpc::CallbackServerContext*
634 #else
635 ::grpc::experimental::CallbackServerContext*
636 #endif
637 context, const ::dmi::ConfigRequest* request) { return this->UpdateStartupConfiguration(context, request); }));
638 }
639 ~ExperimentalWithCallbackMethod_UpdateStartupConfiguration() override {
640 BaseClassMustBeDerivedFromService(this);
641 }
642 // disable synchronous version of this method
643 ::grpc::Status UpdateStartupConfiguration(::grpc::ServerContext* /*context*/, const ::dmi::ConfigRequest* /*request*/, ::grpc::ServerWriter< ::dmi::ConfigResponse>* /*writer*/) override {
644 abort();
645 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
646 }
647 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
648 virtual ::grpc::ServerWriteReactor< ::dmi::ConfigResponse>* UpdateStartupConfiguration(
649 ::grpc::CallbackServerContext* /*context*/, const ::dmi::ConfigRequest* /*request*/)
650 #else
651 virtual ::grpc::experimental::ServerWriteReactor< ::dmi::ConfigResponse>* UpdateStartupConfiguration(
652 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::ConfigRequest* /*request*/)
653 #endif
654 { return nullptr; }
655 };
656 template <class BaseClass>
657 class ExperimentalWithCallbackMethod_GetStartupConfigurationInfo : public BaseClass {
658 private:
659 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
660 public:
661 ExperimentalWithCallbackMethod_GetStartupConfigurationInfo() {
662 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
663 ::grpc::Service::
664 #else
665 ::grpc::Service::experimental().
666 #endif
667 MarkMethodCallback(5,
668 new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::StartupConfigInfoRequest, ::dmi::StartupConfigInfoResponse>(
669 [this](
670 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
671 ::grpc::CallbackServerContext*
672 #else
673 ::grpc::experimental::CallbackServerContext*
674 #endif
675 context, const ::dmi::StartupConfigInfoRequest* request, ::dmi::StartupConfigInfoResponse* response) { return this->GetStartupConfigurationInfo(context, request, response); }));}
676 void SetMessageAllocatorFor_GetStartupConfigurationInfo(
677 ::grpc::experimental::MessageAllocator< ::dmi::StartupConfigInfoRequest, ::dmi::StartupConfigInfoResponse>* allocator) {
678 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
679 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5);
680 #else
681 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5);
682 #endif
683 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::StartupConfigInfoRequest, ::dmi::StartupConfigInfoResponse>*>(handler)
684 ->SetMessageAllocator(allocator);
685 }
686 ~ExperimentalWithCallbackMethod_GetStartupConfigurationInfo() override {
687 BaseClassMustBeDerivedFromService(this);
688 }
689 // disable synchronous version of this method
690 ::grpc::Status GetStartupConfigurationInfo(::grpc::ServerContext* /*context*/, const ::dmi::StartupConfigInfoRequest* /*request*/, ::dmi::StartupConfigInfoResponse* /*response*/) override {
691 abort();
692 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
693 }
694 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
695 virtual ::grpc::ServerUnaryReactor* GetStartupConfigurationInfo(
696 ::grpc::CallbackServerContext* /*context*/, const ::dmi::StartupConfigInfoRequest* /*request*/, ::dmi::StartupConfigInfoResponse* /*response*/)
697 #else
698 virtual ::grpc::experimental::ServerUnaryReactor* GetStartupConfigurationInfo(
699 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::StartupConfigInfoRequest* /*request*/, ::dmi::StartupConfigInfoResponse* /*response*/)
700 #endif
701 { return nullptr; }
702 };
703 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
704 typedef ExperimentalWithCallbackMethod_GetSoftwareVersion<ExperimentalWithCallbackMethod_DownloadImage<ExperimentalWithCallbackMethod_ActivateImage<ExperimentalWithCallbackMethod_RevertToStandbyImage<ExperimentalWithCallbackMethod_UpdateStartupConfiguration<ExperimentalWithCallbackMethod_GetStartupConfigurationInfo<Service > > > > > > CallbackService;
705 #endif
706
707 typedef ExperimentalWithCallbackMethod_GetSoftwareVersion<ExperimentalWithCallbackMethod_DownloadImage<ExperimentalWithCallbackMethod_ActivateImage<ExperimentalWithCallbackMethod_RevertToStandbyImage<ExperimentalWithCallbackMethod_UpdateStartupConfiguration<ExperimentalWithCallbackMethod_GetStartupConfigurationInfo<Service > > > > > > ExperimentalCallbackService;
708 template <class BaseClass>
709 class WithGenericMethod_GetSoftwareVersion : public BaseClass {
710 private:
711 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
712 public:
713 WithGenericMethod_GetSoftwareVersion() {
714 ::grpc::Service::MarkMethodGeneric(0);
715 }
716 ~WithGenericMethod_GetSoftwareVersion() override {
717 BaseClassMustBeDerivedFromService(this);
718 }
719 // disable synchronous version of this method
720 ::grpc::Status GetSoftwareVersion(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetSoftwareVersionInformationResponse* /*response*/) override {
721 abort();
722 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
723 }
724 };
725 template <class BaseClass>
726 class WithGenericMethod_DownloadImage : public BaseClass {
727 private:
728 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
729 public:
730 WithGenericMethod_DownloadImage() {
731 ::grpc::Service::MarkMethodGeneric(1);
732 }
733 ~WithGenericMethod_DownloadImage() override {
734 BaseClassMustBeDerivedFromService(this);
735 }
736 // disable synchronous version of this method
737 ::grpc::Status DownloadImage(::grpc::ServerContext* /*context*/, const ::dmi::DownloadImageRequest* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
738 abort();
739 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
740 }
741 };
742 template <class BaseClass>
743 class WithGenericMethod_ActivateImage : public BaseClass {
744 private:
745 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
746 public:
747 WithGenericMethod_ActivateImage() {
748 ::grpc::Service::MarkMethodGeneric(2);
749 }
750 ~WithGenericMethod_ActivateImage() override {
751 BaseClassMustBeDerivedFromService(this);
752 }
753 // disable synchronous version of this method
754 ::grpc::Status ActivateImage(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
755 abort();
756 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
757 }
758 };
759 template <class BaseClass>
760 class WithGenericMethod_RevertToStandbyImage : public BaseClass {
761 private:
762 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
763 public:
764 WithGenericMethod_RevertToStandbyImage() {
765 ::grpc::Service::MarkMethodGeneric(3);
766 }
767 ~WithGenericMethod_RevertToStandbyImage() override {
768 BaseClassMustBeDerivedFromService(this);
769 }
770 // disable synchronous version of this method
771 ::grpc::Status RevertToStandbyImage(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
772 abort();
773 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
774 }
775 };
776 template <class BaseClass>
777 class WithGenericMethod_UpdateStartupConfiguration : public BaseClass {
778 private:
779 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
780 public:
781 WithGenericMethod_UpdateStartupConfiguration() {
782 ::grpc::Service::MarkMethodGeneric(4);
783 }
784 ~WithGenericMethod_UpdateStartupConfiguration() override {
785 BaseClassMustBeDerivedFromService(this);
786 }
787 // disable synchronous version of this method
788 ::grpc::Status UpdateStartupConfiguration(::grpc::ServerContext* /*context*/, const ::dmi::ConfigRequest* /*request*/, ::grpc::ServerWriter< ::dmi::ConfigResponse>* /*writer*/) override {
789 abort();
790 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
791 }
792 };
793 template <class BaseClass>
794 class WithGenericMethod_GetStartupConfigurationInfo : public BaseClass {
795 private:
796 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
797 public:
798 WithGenericMethod_GetStartupConfigurationInfo() {
799 ::grpc::Service::MarkMethodGeneric(5);
800 }
801 ~WithGenericMethod_GetStartupConfigurationInfo() override {
802 BaseClassMustBeDerivedFromService(this);
803 }
804 // disable synchronous version of this method
805 ::grpc::Status GetStartupConfigurationInfo(::grpc::ServerContext* /*context*/, const ::dmi::StartupConfigInfoRequest* /*request*/, ::dmi::StartupConfigInfoResponse* /*response*/) override {
806 abort();
807 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
808 }
809 };
810 template <class BaseClass>
811 class WithRawMethod_GetSoftwareVersion : public BaseClass {
812 private:
813 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
814 public:
815 WithRawMethod_GetSoftwareVersion() {
816 ::grpc::Service::MarkMethodRaw(0);
817 }
818 ~WithRawMethod_GetSoftwareVersion() override {
819 BaseClassMustBeDerivedFromService(this);
820 }
821 // disable synchronous version of this method
822 ::grpc::Status GetSoftwareVersion(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetSoftwareVersionInformationResponse* /*response*/) override {
823 abort();
824 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
825 }
826 void RequestGetSoftwareVersion(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
827 ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
828 }
829 };
830 template <class BaseClass>
831 class WithRawMethod_DownloadImage : public BaseClass {
832 private:
833 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
834 public:
835 WithRawMethod_DownloadImage() {
836 ::grpc::Service::MarkMethodRaw(1);
837 }
838 ~WithRawMethod_DownloadImage() override {
839 BaseClassMustBeDerivedFromService(this);
840 }
841 // disable synchronous version of this method
842 ::grpc::Status DownloadImage(::grpc::ServerContext* /*context*/, const ::dmi::DownloadImageRequest* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
843 abort();
844 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
845 }
846 void RequestDownloadImage(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
847 ::grpc::Service::RequestAsyncServerStreaming(1, context, request, writer, new_call_cq, notification_cq, tag);
848 }
849 };
850 template <class BaseClass>
851 class WithRawMethod_ActivateImage : public BaseClass {
852 private:
853 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
854 public:
855 WithRawMethod_ActivateImage() {
856 ::grpc::Service::MarkMethodRaw(2);
857 }
858 ~WithRawMethod_ActivateImage() override {
859 BaseClassMustBeDerivedFromService(this);
860 }
861 // disable synchronous version of this method
862 ::grpc::Status ActivateImage(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
863 abort();
864 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
865 }
866 void RequestActivateImage(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
867 ::grpc::Service::RequestAsyncServerStreaming(2, context, request, writer, new_call_cq, notification_cq, tag);
868 }
869 };
870 template <class BaseClass>
871 class WithRawMethod_RevertToStandbyImage : public BaseClass {
872 private:
873 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
874 public:
875 WithRawMethod_RevertToStandbyImage() {
876 ::grpc::Service::MarkMethodRaw(3);
877 }
878 ~WithRawMethod_RevertToStandbyImage() override {
879 BaseClassMustBeDerivedFromService(this);
880 }
881 // disable synchronous version of this method
882 ::grpc::Status RevertToStandbyImage(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
883 abort();
884 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
885 }
886 void RequestRevertToStandbyImage(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
887 ::grpc::Service::RequestAsyncServerStreaming(3, context, request, writer, new_call_cq, notification_cq, tag);
888 }
889 };
890 template <class BaseClass>
891 class WithRawMethod_UpdateStartupConfiguration : public BaseClass {
892 private:
893 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
894 public:
895 WithRawMethod_UpdateStartupConfiguration() {
896 ::grpc::Service::MarkMethodRaw(4);
897 }
898 ~WithRawMethod_UpdateStartupConfiguration() override {
899 BaseClassMustBeDerivedFromService(this);
900 }
901 // disable synchronous version of this method
902 ::grpc::Status UpdateStartupConfiguration(::grpc::ServerContext* /*context*/, const ::dmi::ConfigRequest* /*request*/, ::grpc::ServerWriter< ::dmi::ConfigResponse>* /*writer*/) override {
903 abort();
904 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
905 }
906 void RequestUpdateStartupConfiguration(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
907 ::grpc::Service::RequestAsyncServerStreaming(4, context, request, writer, new_call_cq, notification_cq, tag);
908 }
909 };
910 template <class BaseClass>
911 class WithRawMethod_GetStartupConfigurationInfo : public BaseClass {
912 private:
913 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
914 public:
915 WithRawMethod_GetStartupConfigurationInfo() {
916 ::grpc::Service::MarkMethodRaw(5);
917 }
918 ~WithRawMethod_GetStartupConfigurationInfo() override {
919 BaseClassMustBeDerivedFromService(this);
920 }
921 // disable synchronous version of this method
922 ::grpc::Status GetStartupConfigurationInfo(::grpc::ServerContext* /*context*/, const ::dmi::StartupConfigInfoRequest* /*request*/, ::dmi::StartupConfigInfoResponse* /*response*/) override {
923 abort();
924 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
925 }
926 void RequestGetStartupConfigurationInfo(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
927 ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
928 }
929 };
930 template <class BaseClass>
931 class ExperimentalWithRawCallbackMethod_GetSoftwareVersion : public BaseClass {
932 private:
933 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
934 public:
935 ExperimentalWithRawCallbackMethod_GetSoftwareVersion() {
936 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
937 ::grpc::Service::
938 #else
939 ::grpc::Service::experimental().
940 #endif
941 MarkMethodRawCallback(0,
942 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
943 [this](
944 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
945 ::grpc::CallbackServerContext*
946 #else
947 ::grpc::experimental::CallbackServerContext*
948 #endif
949 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetSoftwareVersion(context, request, response); }));
950 }
951 ~ExperimentalWithRawCallbackMethod_GetSoftwareVersion() override {
952 BaseClassMustBeDerivedFromService(this);
953 }
954 // disable synchronous version of this method
955 ::grpc::Status GetSoftwareVersion(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetSoftwareVersionInformationResponse* /*response*/) override {
956 abort();
957 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
958 }
959 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
960 virtual ::grpc::ServerUnaryReactor* GetSoftwareVersion(
961 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
962 #else
963 virtual ::grpc::experimental::ServerUnaryReactor* GetSoftwareVersion(
964 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
965 #endif
966 { return nullptr; }
967 };
968 template <class BaseClass>
969 class ExperimentalWithRawCallbackMethod_DownloadImage : public BaseClass {
970 private:
971 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
972 public:
973 ExperimentalWithRawCallbackMethod_DownloadImage() {
974 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
975 ::grpc::Service::
976 #else
977 ::grpc::Service::experimental().
978 #endif
979 MarkMethodRawCallback(1,
980 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
981 [this](
982 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
983 ::grpc::CallbackServerContext*
984 #else
985 ::grpc::experimental::CallbackServerContext*
986 #endif
987 context, const::grpc::ByteBuffer* request) { return this->DownloadImage(context, request); }));
988 }
989 ~ExperimentalWithRawCallbackMethod_DownloadImage() override {
990 BaseClassMustBeDerivedFromService(this);
991 }
992 // disable synchronous version of this method
993 ::grpc::Status DownloadImage(::grpc::ServerContext* /*context*/, const ::dmi::DownloadImageRequest* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
994 abort();
995 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
996 }
997 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
998 virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* DownloadImage(
999 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
1000 #else
1001 virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* DownloadImage(
1002 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
1003 #endif
1004 { return nullptr; }
1005 };
1006 template <class BaseClass>
1007 class ExperimentalWithRawCallbackMethod_ActivateImage : public BaseClass {
1008 private:
1009 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1010 public:
1011 ExperimentalWithRawCallbackMethod_ActivateImage() {
1012 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1013 ::grpc::Service::
1014 #else
1015 ::grpc::Service::experimental().
1016 #endif
1017 MarkMethodRawCallback(2,
1018 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
1019 [this](
1020 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1021 ::grpc::CallbackServerContext*
1022 #else
1023 ::grpc::experimental::CallbackServerContext*
1024 #endif
1025 context, const::grpc::ByteBuffer* request) { return this->ActivateImage(context, request); }));
1026 }
1027 ~ExperimentalWithRawCallbackMethod_ActivateImage() override {
1028 BaseClassMustBeDerivedFromService(this);
1029 }
1030 // disable synchronous version of this method
1031 ::grpc::Status ActivateImage(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
1032 abort();
1033 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1034 }
1035 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1036 virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* ActivateImage(
1037 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
1038 #else
1039 virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* ActivateImage(
1040 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
1041 #endif
1042 { return nullptr; }
1043 };
1044 template <class BaseClass>
1045 class ExperimentalWithRawCallbackMethod_RevertToStandbyImage : public BaseClass {
1046 private:
1047 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1048 public:
1049 ExperimentalWithRawCallbackMethod_RevertToStandbyImage() {
1050 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1051 ::grpc::Service::
1052 #else
1053 ::grpc::Service::experimental().
1054 #endif
1055 MarkMethodRawCallback(3,
1056 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
1057 [this](
1058 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1059 ::grpc::CallbackServerContext*
1060 #else
1061 ::grpc::experimental::CallbackServerContext*
1062 #endif
1063 context, const::grpc::ByteBuffer* request) { return this->RevertToStandbyImage(context, request); }));
1064 }
1065 ~ExperimentalWithRawCallbackMethod_RevertToStandbyImage() override {
1066 BaseClassMustBeDerivedFromService(this);
1067 }
1068 // disable synchronous version of this method
1069 ::grpc::Status RevertToStandbyImage(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
1070 abort();
1071 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1072 }
1073 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1074 virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* RevertToStandbyImage(
1075 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
1076 #else
1077 virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* RevertToStandbyImage(
1078 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
1079 #endif
1080 { return nullptr; }
1081 };
1082 template <class BaseClass>
1083 class ExperimentalWithRawCallbackMethod_UpdateStartupConfiguration : public BaseClass {
1084 private:
1085 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1086 public:
1087 ExperimentalWithRawCallbackMethod_UpdateStartupConfiguration() {
1088 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1089 ::grpc::Service::
1090 #else
1091 ::grpc::Service::experimental().
1092 #endif
1093 MarkMethodRawCallback(4,
1094 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
1095 [this](
1096 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1097 ::grpc::CallbackServerContext*
1098 #else
1099 ::grpc::experimental::CallbackServerContext*
1100 #endif
1101 context, const::grpc::ByteBuffer* request) { return this->UpdateStartupConfiguration(context, request); }));
1102 }
1103 ~ExperimentalWithRawCallbackMethod_UpdateStartupConfiguration() override {
1104 BaseClassMustBeDerivedFromService(this);
1105 }
1106 // disable synchronous version of this method
1107 ::grpc::Status UpdateStartupConfiguration(::grpc::ServerContext* /*context*/, const ::dmi::ConfigRequest* /*request*/, ::grpc::ServerWriter< ::dmi::ConfigResponse>* /*writer*/) override {
1108 abort();
1109 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1110 }
1111 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1112 virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* UpdateStartupConfiguration(
1113 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
1114 #else
1115 virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* UpdateStartupConfiguration(
1116 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
1117 #endif
1118 { return nullptr; }
1119 };
1120 template <class BaseClass>
1121 class ExperimentalWithRawCallbackMethod_GetStartupConfigurationInfo : public BaseClass {
1122 private:
1123 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1124 public:
1125 ExperimentalWithRawCallbackMethod_GetStartupConfigurationInfo() {
1126 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1127 ::grpc::Service::
1128 #else
1129 ::grpc::Service::experimental().
1130 #endif
1131 MarkMethodRawCallback(5,
1132 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
1133 [this](
1134 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1135 ::grpc::CallbackServerContext*
1136 #else
1137 ::grpc::experimental::CallbackServerContext*
1138 #endif
1139 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetStartupConfigurationInfo(context, request, response); }));
1140 }
1141 ~ExperimentalWithRawCallbackMethod_GetStartupConfigurationInfo() override {
1142 BaseClassMustBeDerivedFromService(this);
1143 }
1144 // disable synchronous version of this method
1145 ::grpc::Status GetStartupConfigurationInfo(::grpc::ServerContext* /*context*/, const ::dmi::StartupConfigInfoRequest* /*request*/, ::dmi::StartupConfigInfoResponse* /*response*/) override {
1146 abort();
1147 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1148 }
1149 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1150 virtual ::grpc::ServerUnaryReactor* GetStartupConfigurationInfo(
1151 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
1152 #else
1153 virtual ::grpc::experimental::ServerUnaryReactor* GetStartupConfigurationInfo(
1154 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
1155 #endif
1156 { return nullptr; }
1157 };
1158 template <class BaseClass>
1159 class WithStreamedUnaryMethod_GetSoftwareVersion : public BaseClass {
1160 private:
1161 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1162 public:
1163 WithStreamedUnaryMethod_GetSoftwareVersion() {
1164 ::grpc::Service::MarkMethodStreamed(0,
1165 new ::grpc::internal::StreamedUnaryHandler<
1166 ::dmi::HardwareID, ::dmi::GetSoftwareVersionInformationResponse>(
1167 [this](::grpc_impl::ServerContext* context,
1168 ::grpc_impl::ServerUnaryStreamer<
1169 ::dmi::HardwareID, ::dmi::GetSoftwareVersionInformationResponse>* streamer) {
1170 return this->StreamedGetSoftwareVersion(context,
1171 streamer);
1172 }));
1173 }
1174 ~WithStreamedUnaryMethod_GetSoftwareVersion() override {
1175 BaseClassMustBeDerivedFromService(this);
1176 }
1177 // disable regular version of this method
1178 ::grpc::Status GetSoftwareVersion(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetSoftwareVersionInformationResponse* /*response*/) override {
1179 abort();
1180 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1181 }
1182 // replace default version of method with streamed unary
1183 virtual ::grpc::Status StreamedGetSoftwareVersion(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::HardwareID,::dmi::GetSoftwareVersionInformationResponse>* server_unary_streamer) = 0;
1184 };
1185 template <class BaseClass>
1186 class WithStreamedUnaryMethod_GetStartupConfigurationInfo : public BaseClass {
1187 private:
1188 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1189 public:
1190 WithStreamedUnaryMethod_GetStartupConfigurationInfo() {
1191 ::grpc::Service::MarkMethodStreamed(5,
1192 new ::grpc::internal::StreamedUnaryHandler<
1193 ::dmi::StartupConfigInfoRequest, ::dmi::StartupConfigInfoResponse>(
1194 [this](::grpc_impl::ServerContext* context,
1195 ::grpc_impl::ServerUnaryStreamer<
1196 ::dmi::StartupConfigInfoRequest, ::dmi::StartupConfigInfoResponse>* streamer) {
1197 return this->StreamedGetStartupConfigurationInfo(context,
1198 streamer);
1199 }));
1200 }
1201 ~WithStreamedUnaryMethod_GetStartupConfigurationInfo() override {
1202 BaseClassMustBeDerivedFromService(this);
1203 }
1204 // disable regular version of this method
1205 ::grpc::Status GetStartupConfigurationInfo(::grpc::ServerContext* /*context*/, const ::dmi::StartupConfigInfoRequest* /*request*/, ::dmi::StartupConfigInfoResponse* /*response*/) override {
1206 abort();
1207 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1208 }
1209 // replace default version of method with streamed unary
1210 virtual ::grpc::Status StreamedGetStartupConfigurationInfo(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::StartupConfigInfoRequest,::dmi::StartupConfigInfoResponse>* server_unary_streamer) = 0;
1211 };
1212 typedef WithStreamedUnaryMethod_GetSoftwareVersion<WithStreamedUnaryMethod_GetStartupConfigurationInfo<Service > > StreamedUnaryService;
1213 template <class BaseClass>
1214 class WithSplitStreamingMethod_DownloadImage : public BaseClass {
1215 private:
1216 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1217 public:
1218 WithSplitStreamingMethod_DownloadImage() {
1219 ::grpc::Service::MarkMethodStreamed(1,
1220 new ::grpc::internal::SplitServerStreamingHandler<
1221 ::dmi::DownloadImageRequest, ::dmi::ImageStatus>(
1222 [this](::grpc_impl::ServerContext* context,
1223 ::grpc_impl::ServerSplitStreamer<
1224 ::dmi::DownloadImageRequest, ::dmi::ImageStatus>* streamer) {
1225 return this->StreamedDownloadImage(context,
1226 streamer);
1227 }));
1228 }
1229 ~WithSplitStreamingMethod_DownloadImage() override {
1230 BaseClassMustBeDerivedFromService(this);
1231 }
1232 // disable regular version of this method
1233 ::grpc::Status DownloadImage(::grpc::ServerContext* /*context*/, const ::dmi::DownloadImageRequest* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
1234 abort();
1235 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1236 }
1237 // replace default version of method with split streamed
1238 virtual ::grpc::Status StreamedDownloadImage(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::dmi::DownloadImageRequest,::dmi::ImageStatus>* server_split_streamer) = 0;
1239 };
1240 template <class BaseClass>
1241 class WithSplitStreamingMethod_ActivateImage : public BaseClass {
1242 private:
1243 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1244 public:
1245 WithSplitStreamingMethod_ActivateImage() {
1246 ::grpc::Service::MarkMethodStreamed(2,
1247 new ::grpc::internal::SplitServerStreamingHandler<
1248 ::dmi::HardwareID, ::dmi::ImageStatus>(
1249 [this](::grpc_impl::ServerContext* context,
1250 ::grpc_impl::ServerSplitStreamer<
1251 ::dmi::HardwareID, ::dmi::ImageStatus>* streamer) {
1252 return this->StreamedActivateImage(context,
1253 streamer);
1254 }));
1255 }
1256 ~WithSplitStreamingMethod_ActivateImage() override {
1257 BaseClassMustBeDerivedFromService(this);
1258 }
1259 // disable regular version of this method
1260 ::grpc::Status ActivateImage(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
1261 abort();
1262 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1263 }
1264 // replace default version of method with split streamed
1265 virtual ::grpc::Status StreamedActivateImage(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::dmi::HardwareID,::dmi::ImageStatus>* server_split_streamer) = 0;
1266 };
1267 template <class BaseClass>
1268 class WithSplitStreamingMethod_RevertToStandbyImage : public BaseClass {
1269 private:
1270 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1271 public:
1272 WithSplitStreamingMethod_RevertToStandbyImage() {
1273 ::grpc::Service::MarkMethodStreamed(3,
1274 new ::grpc::internal::SplitServerStreamingHandler<
1275 ::dmi::HardwareID, ::dmi::ImageStatus>(
1276 [this](::grpc_impl::ServerContext* context,
1277 ::grpc_impl::ServerSplitStreamer<
1278 ::dmi::HardwareID, ::dmi::ImageStatus>* streamer) {
1279 return this->StreamedRevertToStandbyImage(context,
1280 streamer);
1281 }));
1282 }
1283 ~WithSplitStreamingMethod_RevertToStandbyImage() override {
1284 BaseClassMustBeDerivedFromService(this);
1285 }
1286 // disable regular version of this method
1287 ::grpc::Status RevertToStandbyImage(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::grpc::ServerWriter< ::dmi::ImageStatus>* /*writer*/) override {
1288 abort();
1289 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1290 }
1291 // replace default version of method with split streamed
1292 virtual ::grpc::Status StreamedRevertToStandbyImage(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::dmi::HardwareID,::dmi::ImageStatus>* server_split_streamer) = 0;
1293 };
1294 template <class BaseClass>
1295 class WithSplitStreamingMethod_UpdateStartupConfiguration : public BaseClass {
1296 private:
1297 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1298 public:
1299 WithSplitStreamingMethod_UpdateStartupConfiguration() {
1300 ::grpc::Service::MarkMethodStreamed(4,
1301 new ::grpc::internal::SplitServerStreamingHandler<
1302 ::dmi::ConfigRequest, ::dmi::ConfigResponse>(
1303 [this](::grpc_impl::ServerContext* context,
1304 ::grpc_impl::ServerSplitStreamer<
1305 ::dmi::ConfigRequest, ::dmi::ConfigResponse>* streamer) {
1306 return this->StreamedUpdateStartupConfiguration(context,
1307 streamer);
1308 }));
1309 }
1310 ~WithSplitStreamingMethod_UpdateStartupConfiguration() override {
1311 BaseClassMustBeDerivedFromService(this);
1312 }
1313 // disable regular version of this method
1314 ::grpc::Status UpdateStartupConfiguration(::grpc::ServerContext* /*context*/, const ::dmi::ConfigRequest* /*request*/, ::grpc::ServerWriter< ::dmi::ConfigResponse>* /*writer*/) override {
1315 abort();
1316 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1317 }
1318 // replace default version of method with split streamed
1319 virtual ::grpc::Status StreamedUpdateStartupConfiguration(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::dmi::ConfigRequest,::dmi::ConfigResponse>* server_split_streamer) = 0;
1320 };
1321 typedef WithSplitStreamingMethod_DownloadImage<WithSplitStreamingMethod_ActivateImage<WithSplitStreamingMethod_RevertToStandbyImage<WithSplitStreamingMethod_UpdateStartupConfiguration<Service > > > > SplitStreamedService;
1322 typedef WithStreamedUnaryMethod_GetSoftwareVersion<WithSplitStreamingMethod_DownloadImage<WithSplitStreamingMethod_ActivateImage<WithSplitStreamingMethod_RevertToStandbyImage<WithSplitStreamingMethod_UpdateStartupConfiguration<WithStreamedUnaryMethod_GetStartupConfigurationInfo<Service > > > > > > StreamedService;
1323};
1324
1325} // namespace dmi
1326
1327
1328#endif // GRPC_dmi_2fsw_5fmanagement_5fservice_2eproto__INCLUDED