blob: 938264c042062d122950521d3c24e6c992c17a65 [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/hw_management_service.proto
4#ifndef GRPC_dmi_2fhw_5fmanagement_5fservice_2eproto__INCLUDED
5#define GRPC_dmi_2fhw_5fmanagement_5fservice_2eproto__INCLUDED
6
7#include "dmi/hw_management_service.pb.h"
8
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02009#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>
Andrea Campanellac795b7d2021-04-14 13:24:44 +020028
29namespace dmi {
30
31class NativeHWManagementService final {
32 public:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +020033 static constexpr char const* service_full_name() {
34 return "dmi.NativeHWManagementService";
35 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +020036 class StubInterface {
37 public:
38 virtual ~StubInterface() {}
39 // Initializes context for a device and sets up required states
40 // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
41 // and their meanings in this context is mentioned below:
42 // name = The unique name that needs to be assigned to this hardware;
43 // class = COMPONENT_TYPE_UNDEFINED;
44 // parent = nil;
45 // alias = Optional;
46 // asset_id = Optional;
47 // uri = IP Address of the Hardware;
48 std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::StartManagingDeviceResponse>> StartManagingDevice(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request) {
49 return std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::StartManagingDeviceResponse>>(StartManagingDeviceRaw(context, request));
50 }
51 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::StartManagingDeviceResponse>> AsyncStartManagingDevice(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq, void* tag) {
52 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::StartManagingDeviceResponse>>(AsyncStartManagingDeviceRaw(context, request, cq, tag));
53 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +020054 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::StartManagingDeviceResponse>> PrepareAsyncStartManagingDevice(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq) {
55 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::StartManagingDeviceResponse>>(PrepareAsyncStartManagingDeviceRaw(context, request, cq));
56 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +020057 // Stop management of a device and clean up any context and caches for that device
58 // This rpc can be called at any time, even before the StartManagingDevice operation
59 // has completed, and should be able to cleanup.
60 virtual ::grpc::Status StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::dmi::StopManagingDeviceResponse* response) = 0;
61 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StopManagingDeviceResponse>> AsyncStopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) {
62 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StopManagingDeviceResponse>>(AsyncStopManagingDeviceRaw(context, request, cq));
63 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +020064 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StopManagingDeviceResponse>> PrepareAsyncStopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) {
65 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StopManagingDeviceResponse>>(PrepareAsyncStopManagingDeviceRaw(context, request, cq));
66 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +020067 // Returns an object containing a list of devices managed by this entity
68 virtual ::grpc::Status GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dmi::ManagedDevicesResponse* response) = 0;
69 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::ManagedDevicesResponse>> AsyncGetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
70 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::ManagedDevicesResponse>>(AsyncGetManagedDevicesRaw(context, request, cq));
71 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +020072 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::ManagedDevicesResponse>> PrepareAsyncGetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
73 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::ManagedDevicesResponse>>(PrepareAsyncGetManagedDevicesRaw(context, request, cq));
74 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +020075 // Get the HW inventory details of the Device
76 std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::PhysicalInventoryResponse>> GetPhysicalInventory(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request) {
77 return std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::PhysicalInventoryResponse>>(GetPhysicalInventoryRaw(context, request));
78 }
79 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::PhysicalInventoryResponse>> AsyncGetPhysicalInventory(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
80 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::PhysicalInventoryResponse>>(AsyncGetPhysicalInventoryRaw(context, request, cq, tag));
81 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +020082 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::PhysicalInventoryResponse>> PrepareAsyncGetPhysicalInventory(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq) {
83 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::PhysicalInventoryResponse>>(PrepareAsyncGetPhysicalInventoryRaw(context, request, cq));
84 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +020085 // Get the details of a particular HW component
86 std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::HWComponentInfoGetResponse>> GetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request) {
87 return std::unique_ptr< ::grpc::ClientReaderInterface< ::dmi::HWComponentInfoGetResponse>>(GetHWComponentInfoRaw(context, request));
88 }
89 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::HWComponentInfoGetResponse>> AsyncGetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
90 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::HWComponentInfoGetResponse>>(AsyncGetHWComponentInfoRaw(context, request, cq, tag));
91 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +020092 std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::HWComponentInfoGetResponse>> PrepareAsyncGetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq) {
93 return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::dmi::HWComponentInfoGetResponse>>(PrepareAsyncGetHWComponentInfoRaw(context, request, cq));
94 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +020095 // Sets the permissible attributes of a HW component
96 virtual ::grpc::Status SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::dmi::HWComponentInfoSetResponse* response) = 0;
97 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::HWComponentInfoSetResponse>> AsyncSetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) {
98 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::HWComponentInfoSetResponse>>(AsyncSetHWComponentInfoRaw(context, request, cq));
99 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200100 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::HWComponentInfoSetResponse>> PrepareAsyncSetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) {
101 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::HWComponentInfoSetResponse>>(PrepareAsyncSetHWComponentInfoRaw(context, request, cq));
102 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200103 // Sets the location to which logs need to be shipped
104 virtual ::grpc::Status SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::dmi::SetRemoteEndpointResponse* response) = 0;
105 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>> AsyncSetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) {
106 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>>(AsyncSetLoggingEndpointRaw(context, request, cq));
107 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200108 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>> PrepareAsyncSetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) {
109 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>>(PrepareAsyncSetLoggingEndpointRaw(context, request, cq));
110 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200111 // Gets the configured location to which the logs are being shipped
112 virtual ::grpc::Status GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::dmi::GetLoggingEndpointResponse* response) = 0;
113 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLoggingEndpointResponse>> AsyncGetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
114 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLoggingEndpointResponse>>(AsyncGetLoggingEndpointRaw(context, request, cq));
115 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200116 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLoggingEndpointResponse>> PrepareAsyncGetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
117 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLoggingEndpointResponse>>(PrepareAsyncGetLoggingEndpointRaw(context, request, cq));
118 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200119 // Sets the location of the Message Bus to which events and metrics are shipped
120 virtual ::grpc::Status SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::dmi::SetRemoteEndpointResponse* response) = 0;
121 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>> AsyncSetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) {
122 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>>(AsyncSetMsgBusEndpointRaw(context, request, cq));
123 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200124 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>> PrepareAsyncSetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) {
125 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>>(PrepareAsyncSetMsgBusEndpointRaw(context, request, cq));
126 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200127 // Gets the configured location to which the events and metrics are being shipped
128 virtual ::grpc::Status GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dmi::GetMsgBusEndpointResponse* response) = 0;
129 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetMsgBusEndpointResponse>> AsyncGetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
130 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetMsgBusEndpointResponse>>(AsyncGetMsgBusEndpointRaw(context, request, cq));
131 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200132 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetMsgBusEndpointResponse>> PrepareAsyncGetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
133 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetMsgBusEndpointResponse>>(PrepareAsyncGetMsgBusEndpointRaw(context, request, cq));
134 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200135 // Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
136 // In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
137 // interface, package etc.
138 virtual ::grpc::Status GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::dmi::GetLogLevelResponse* response) = 0;
139 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>> AsyncGetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) {
140 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>>(AsyncGetLoggableEntitiesRaw(context, request, cq));
141 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200142 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>> PrepareAsyncGetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) {
143 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>>(PrepareAsyncGetLoggableEntitiesRaw(context, request, cq));
144 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200145 // Sets the log level of the device, for each given entity to a certain level.
146 // If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
147 // no entity in the list it's assumed that the caller wants to set that level for all the entities.
148 virtual ::grpc::Status SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::dmi::SetLogLevelResponse* response) = 0;
149 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetLogLevelResponse>> AsyncSetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
150 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetLogLevelResponse>>(AsyncSetLogLevelRaw(context, request, cq));
151 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200152 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetLogLevelResponse>> PrepareAsyncSetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
153 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetLogLevelResponse>>(PrepareAsyncSetLogLevelRaw(context, request, cq));
154 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200155 // Gets the configured log level for a certain entity on a certain device.
156 // If no entity is specified in the request all the entities with their log level should be returned.
157 virtual ::grpc::Status GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::dmi::GetLogLevelResponse* response) = 0;
158 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>> AsyncGetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
159 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>>(AsyncGetLogLevelRaw(context, request, cq));
160 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200161 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>> PrepareAsyncGetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
162 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>>(PrepareAsyncGetLogLevelRaw(context, request, cq));
163 }
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530164 // Performs the heartbeat check
165 virtual ::grpc::Status HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dmi::Heartbeat* response) = 0;
166 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::Heartbeat>> AsyncHeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
167 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::Heartbeat>>(AsyncHeartbeatCheckRaw(context, request, cq));
168 }
169 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::Heartbeat>> PrepareAsyncHeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
170 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::Heartbeat>>(PrepareAsyncHeartbeatCheckRaw(context, request, cq));
171 }
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530172 // Performs the reboot of the device
173 virtual ::grpc::Status RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::dmi::RebootDeviceResponse* response) = 0;
174 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::RebootDeviceResponse>> AsyncRebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) {
175 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::RebootDeviceResponse>>(AsyncRebootDeviceRaw(context, request, cq));
176 }
177 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::RebootDeviceResponse>> PrepareAsyncRebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) {
178 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::RebootDeviceResponse>>(PrepareAsyncRebootDeviceRaw(context, request, cq));
179 }
amit.ghosh93183512024-05-28 22:37:27 +0200180 // Sets the log level of the Device Manager itself
181 virtual ::grpc::Status SetDmLogLevel(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest& request, ::dmi::SetDmLogLevelResponse* response) = 0;
182 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetDmLogLevelResponse>> AsyncSetDmLogLevel(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
183 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetDmLogLevelResponse>>(AsyncSetDmLogLevelRaw(context, request, cq));
184 }
185 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetDmLogLevelResponse>> PrepareAsyncSetDmLogLevel(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
186 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetDmLogLevelResponse>>(PrepareAsyncSetDmLogLevelRaw(context, request, cq));
187 }
188 // Gets the log level at which the Device Manager is running
189 virtual ::grpc::Status GetDmLogLevel(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest& request, ::dmi::GetDmLogLevelResponse* response) = 0;
190 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetDmLogLevelResponse>> AsyncGetDmLogLevel(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
191 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetDmLogLevelResponse>>(AsyncGetDmLogLevelRaw(context, request, cq));
192 }
193 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetDmLogLevelResponse>> PrepareAsyncGetDmLogLevel(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
194 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetDmLogLevelResponse>>(PrepareAsyncGetDmLogLevelRaw(context, request, cq));
195 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200196 class experimental_async_interface {
197 public:
198 virtual ~experimental_async_interface() {}
199 // Initializes context for a device and sets up required states
200 // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
201 // and their meanings in this context is mentioned below:
202 // name = The unique name that needs to be assigned to this hardware;
203 // class = COMPONENT_TYPE_UNDEFINED;
204 // parent = nil;
205 // alias = Optional;
206 // asset_id = Optional;
207 // uri = IP Address of the Hardware;
208 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
209 virtual void StartManagingDevice(::grpc::ClientContext* context, ::dmi::ModifiableComponent* request, ::grpc::ClientReadReactor< ::dmi::StartManagingDeviceResponse>* reactor) = 0;
210 #else
211 virtual void StartManagingDevice(::grpc::ClientContext* context, ::dmi::ModifiableComponent* request, ::grpc::experimental::ClientReadReactor< ::dmi::StartManagingDeviceResponse>* reactor) = 0;
212 #endif
213 // Stop management of a device and clean up any context and caches for that device
214 // This rpc can be called at any time, even before the StartManagingDevice operation
215 // has completed, and should be able to cleanup.
216 virtual void StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response, std::function<void(::grpc::Status)>) = 0;
217 virtual void StopManagingDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StopManagingDeviceResponse* response, std::function<void(::grpc::Status)>) = 0;
218 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
219 virtual void StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
220 #else
221 virtual void StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
222 #endif
223 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
224 virtual void StopManagingDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
225 #else
226 virtual void StopManagingDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
227 #endif
228 // Returns an object containing a list of devices managed by this entity
229 virtual void GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response, std::function<void(::grpc::Status)>) = 0;
230 virtual void GetManagedDevices(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ManagedDevicesResponse* response, std::function<void(::grpc::Status)>) = 0;
231 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
232 virtual void GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
233 #else
234 virtual void GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
235 #endif
236 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
237 virtual void GetManagedDevices(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ManagedDevicesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
238 #else
239 virtual void GetManagedDevices(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ManagedDevicesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
240 #endif
241 // Get the HW inventory details of the Device
242 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
243 virtual void GetPhysicalInventory(::grpc::ClientContext* context, ::dmi::PhysicalInventoryRequest* request, ::grpc::ClientReadReactor< ::dmi::PhysicalInventoryResponse>* reactor) = 0;
244 #else
245 virtual void GetPhysicalInventory(::grpc::ClientContext* context, ::dmi::PhysicalInventoryRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::PhysicalInventoryResponse>* reactor) = 0;
246 #endif
247 // Get the details of a particular HW component
248 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
249 virtual void GetHWComponentInfo(::grpc::ClientContext* context, ::dmi::HWComponentInfoGetRequest* request, ::grpc::ClientReadReactor< ::dmi::HWComponentInfoGetResponse>* reactor) = 0;
250 #else
251 virtual void GetHWComponentInfo(::grpc::ClientContext* context, ::dmi::HWComponentInfoGetRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::HWComponentInfoGetResponse>* reactor) = 0;
252 #endif
253 // Sets the permissible attributes of a HW component
254 virtual void SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response, std::function<void(::grpc::Status)>) = 0;
255 virtual void SetHWComponentInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::HWComponentInfoSetResponse* response, std::function<void(::grpc::Status)>) = 0;
256 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
257 virtual void SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
258 #else
259 virtual void SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
260 #endif
261 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
262 virtual void SetHWComponentInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
263 #else
264 virtual void SetHWComponentInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
265 #endif
266 // Sets the location to which logs need to be shipped
267 virtual void SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) = 0;
268 virtual void SetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) = 0;
269 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
270 virtual void SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
271 #else
272 virtual void SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
273 #endif
274 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
275 virtual void SetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
276 #else
277 virtual void SetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
278 #endif
279 // Gets the configured location to which the logs are being shipped
280 virtual void GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response, std::function<void(::grpc::Status)>) = 0;
281 virtual void GetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLoggingEndpointResponse* response, std::function<void(::grpc::Status)>) = 0;
282 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
283 virtual void GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
284 #else
285 virtual void GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
286 #endif
287 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
288 virtual void GetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
289 #else
290 virtual void GetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
291 #endif
292 // Sets the location of the Message Bus to which events and metrics are shipped
293 virtual void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) = 0;
294 virtual void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) = 0;
295 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
296 virtual void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
297 #else
298 virtual void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
299 #endif
300 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
301 virtual void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
302 #else
303 virtual void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
304 #endif
305 // Gets the configured location to which the events and metrics are being shipped
306 virtual void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response, std::function<void(::grpc::Status)>) = 0;
307 virtual void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetMsgBusEndpointResponse* response, std::function<void(::grpc::Status)>) = 0;
308 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
309 virtual void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
310 #else
311 virtual void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
312 #endif
313 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
314 virtual void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
315 #else
316 virtual void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
317 #endif
318 // Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
319 // In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
320 // interface, package etc.
321 virtual void GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0;
322 virtual void GetLoggableEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0;
323 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
324 virtual void GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
325 #else
326 virtual void GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
327 #endif
328 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
329 virtual void GetLoggableEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
330 #else
331 virtual void GetLoggableEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
332 #endif
333 // Sets the log level of the device, for each given entity to a certain level.
334 // If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
335 // no entity in the list it's assumed that the caller wants to set that level for all the entities.
336 virtual void SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0;
337 virtual void SetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0;
338 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
339 virtual void SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
340 #else
341 virtual void SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
342 #endif
343 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
344 virtual void SetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
345 #else
346 virtual void SetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
347 #endif
348 // Gets the configured log level for a certain entity on a certain device.
349 // If no entity is specified in the request all the entities with their log level should be returned.
350 virtual void GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0;
351 virtual void GetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0;
352 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
353 virtual void GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
354 #else
355 virtual void GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
356 #endif
357 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
358 virtual void GetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
359 #else
360 virtual void GetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
361 #endif
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530362 // Performs the heartbeat check
363 virtual void HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response, std::function<void(::grpc::Status)>) = 0;
364 virtual void HeartbeatCheck(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::Heartbeat* response, std::function<void(::grpc::Status)>) = 0;
365 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
366 virtual void HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response, ::grpc::ClientUnaryReactor* reactor) = 0;
367 #else
368 virtual void HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
369 #endif
370 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
371 virtual void HeartbeatCheck(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::Heartbeat* response, ::grpc::ClientUnaryReactor* reactor) = 0;
372 #else
373 virtual void HeartbeatCheck(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::Heartbeat* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
374 #endif
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530375 // Performs the reboot of the device
376 virtual void RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response, std::function<void(::grpc::Status)>) = 0;
377 virtual void RebootDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::RebootDeviceResponse* response, std::function<void(::grpc::Status)>) = 0;
378 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
379 virtual void RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
380 #else
381 virtual void RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
382 #endif
383 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
384 virtual void RebootDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::RebootDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
385 #else
386 virtual void RebootDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::RebootDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
387 #endif
amit.ghosh93183512024-05-28 22:37:27 +0200388 // Sets the log level of the Device Manager itself
389 virtual void SetDmLogLevel(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest* request, ::dmi::SetDmLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0;
390 virtual void SetDmLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetDmLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0;
391 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
392 virtual void SetDmLogLevel(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest* request, ::dmi::SetDmLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
393 #else
394 virtual void SetDmLogLevel(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest* request, ::dmi::SetDmLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
395 #endif
396 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
397 virtual void SetDmLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetDmLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
398 #else
399 virtual void SetDmLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetDmLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
400 #endif
401 // Gets the log level at which the Device Manager is running
402 virtual void GetDmLogLevel(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest* request, ::dmi::GetDmLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0;
403 virtual void GetDmLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetDmLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0;
404 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
405 virtual void GetDmLogLevel(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest* request, ::dmi::GetDmLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
406 #else
407 virtual void GetDmLogLevel(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest* request, ::dmi::GetDmLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
408 #endif
409 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
410 virtual void GetDmLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetDmLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
411 #else
412 virtual void GetDmLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetDmLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
413 #endif
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200414 };
415 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
416 typedef class experimental_async_interface async_interface;
417 #endif
418 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
419 async_interface* async() { return experimental_async(); }
420 #endif
421 virtual class experimental_async_interface* experimental_async() { return nullptr; }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200422 private:
423 virtual ::grpc::ClientReaderInterface< ::dmi::StartManagingDeviceResponse>* StartManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request) = 0;
424 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::StartManagingDeviceResponse>* AsyncStartManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq, void* tag) = 0;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200425 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::StartManagingDeviceResponse>* PrepareAsyncStartManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200426 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StopManagingDeviceResponse>* AsyncStopManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200427 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StopManagingDeviceResponse>* PrepareAsyncStopManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200428 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::ManagedDevicesResponse>* AsyncGetManagedDevicesRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200429 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::ManagedDevicesResponse>* PrepareAsyncGetManagedDevicesRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200430 virtual ::grpc::ClientReaderInterface< ::dmi::PhysicalInventoryResponse>* GetPhysicalInventoryRaw(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request) = 0;
431 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::PhysicalInventoryResponse>* AsyncGetPhysicalInventoryRaw(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200432 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::PhysicalInventoryResponse>* PrepareAsyncGetPhysicalInventoryRaw(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200433 virtual ::grpc::ClientReaderInterface< ::dmi::HWComponentInfoGetResponse>* GetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request) = 0;
434 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::HWComponentInfoGetResponse>* AsyncGetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200435 virtual ::grpc::ClientAsyncReaderInterface< ::dmi::HWComponentInfoGetResponse>* PrepareAsyncGetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200436 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::HWComponentInfoSetResponse>* AsyncSetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200437 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::HWComponentInfoSetResponse>* PrepareAsyncSetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200438 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>* AsyncSetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200439 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>* PrepareAsyncSetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200440 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLoggingEndpointResponse>* AsyncGetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200441 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLoggingEndpointResponse>* PrepareAsyncGetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200442 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>* AsyncSetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200443 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>* PrepareAsyncSetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200444 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetMsgBusEndpointResponse>* AsyncGetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200445 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetMsgBusEndpointResponse>* PrepareAsyncGetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200446 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>* AsyncGetLoggableEntitiesRaw(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200447 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>* PrepareAsyncGetLoggableEntitiesRaw(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200448 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetLogLevelResponse>* AsyncSetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200449 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetLogLevelResponse>* PrepareAsyncSetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200450 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>* AsyncGetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200451 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>* PrepareAsyncGetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) = 0;
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530452 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::Heartbeat>* AsyncHeartbeatCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
453 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::Heartbeat>* PrepareAsyncHeartbeatCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530454 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::RebootDeviceResponse>* AsyncRebootDeviceRaw(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) = 0;
455 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::RebootDeviceResponse>* PrepareAsyncRebootDeviceRaw(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) = 0;
amit.ghosh93183512024-05-28 22:37:27 +0200456 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetDmLogLevelResponse>* AsyncSetDmLogLevelRaw(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) = 0;
457 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetDmLogLevelResponse>* PrepareAsyncSetDmLogLevelRaw(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) = 0;
458 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetDmLogLevelResponse>* AsyncGetDmLogLevelRaw(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) = 0;
459 virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetDmLogLevelResponse>* PrepareAsyncGetDmLogLevelRaw(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) = 0;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200460 };
461 class Stub final : public StubInterface {
462 public:
463 Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel);
464 std::unique_ptr< ::grpc::ClientReader< ::dmi::StartManagingDeviceResponse>> StartManagingDevice(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request) {
465 return std::unique_ptr< ::grpc::ClientReader< ::dmi::StartManagingDeviceResponse>>(StartManagingDeviceRaw(context, request));
466 }
467 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::StartManagingDeviceResponse>> AsyncStartManagingDevice(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq, void* tag) {
468 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::StartManagingDeviceResponse>>(AsyncStartManagingDeviceRaw(context, request, cq, tag));
469 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200470 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::StartManagingDeviceResponse>> PrepareAsyncStartManagingDevice(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq) {
471 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::StartManagingDeviceResponse>>(PrepareAsyncStartManagingDeviceRaw(context, request, cq));
472 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200473 ::grpc::Status StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::dmi::StopManagingDeviceResponse* response) override;
474 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::StopManagingDeviceResponse>> AsyncStopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) {
475 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::StopManagingDeviceResponse>>(AsyncStopManagingDeviceRaw(context, request, cq));
476 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200477 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::StopManagingDeviceResponse>> PrepareAsyncStopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) {
478 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::StopManagingDeviceResponse>>(PrepareAsyncStopManagingDeviceRaw(context, request, cq));
479 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200480 ::grpc::Status GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dmi::ManagedDevicesResponse* response) override;
481 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::ManagedDevicesResponse>> AsyncGetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
482 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::ManagedDevicesResponse>>(AsyncGetManagedDevicesRaw(context, request, cq));
483 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200484 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::ManagedDevicesResponse>> PrepareAsyncGetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
485 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::ManagedDevicesResponse>>(PrepareAsyncGetManagedDevicesRaw(context, request, cq));
486 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200487 std::unique_ptr< ::grpc::ClientReader< ::dmi::PhysicalInventoryResponse>> GetPhysicalInventory(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request) {
488 return std::unique_ptr< ::grpc::ClientReader< ::dmi::PhysicalInventoryResponse>>(GetPhysicalInventoryRaw(context, request));
489 }
490 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::PhysicalInventoryResponse>> AsyncGetPhysicalInventory(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
491 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::PhysicalInventoryResponse>>(AsyncGetPhysicalInventoryRaw(context, request, cq, tag));
492 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200493 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::PhysicalInventoryResponse>> PrepareAsyncGetPhysicalInventory(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq) {
494 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::PhysicalInventoryResponse>>(PrepareAsyncGetPhysicalInventoryRaw(context, request, cq));
495 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200496 std::unique_ptr< ::grpc::ClientReader< ::dmi::HWComponentInfoGetResponse>> GetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request) {
497 return std::unique_ptr< ::grpc::ClientReader< ::dmi::HWComponentInfoGetResponse>>(GetHWComponentInfoRaw(context, request));
498 }
499 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::HWComponentInfoGetResponse>> AsyncGetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
500 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::HWComponentInfoGetResponse>>(AsyncGetHWComponentInfoRaw(context, request, cq, tag));
501 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200502 std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::HWComponentInfoGetResponse>> PrepareAsyncGetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq) {
503 return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::HWComponentInfoGetResponse>>(PrepareAsyncGetHWComponentInfoRaw(context, request, cq));
504 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200505 ::grpc::Status SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::dmi::HWComponentInfoSetResponse* response) override;
506 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::HWComponentInfoSetResponse>> AsyncSetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) {
507 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::HWComponentInfoSetResponse>>(AsyncSetHWComponentInfoRaw(context, request, cq));
508 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200509 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::HWComponentInfoSetResponse>> PrepareAsyncSetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) {
510 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::HWComponentInfoSetResponse>>(PrepareAsyncSetHWComponentInfoRaw(context, request, cq));
511 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200512 ::grpc::Status SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::dmi::SetRemoteEndpointResponse* response) override;
513 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>> AsyncSetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) {
514 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>>(AsyncSetLoggingEndpointRaw(context, request, cq));
515 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200516 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>> PrepareAsyncSetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) {
517 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>>(PrepareAsyncSetLoggingEndpointRaw(context, request, cq));
518 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200519 ::grpc::Status GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::dmi::GetLoggingEndpointResponse* response) override;
520 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLoggingEndpointResponse>> AsyncGetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
521 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLoggingEndpointResponse>>(AsyncGetLoggingEndpointRaw(context, request, cq));
522 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200523 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLoggingEndpointResponse>> PrepareAsyncGetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
524 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLoggingEndpointResponse>>(PrepareAsyncGetLoggingEndpointRaw(context, request, cq));
525 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200526 ::grpc::Status SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::dmi::SetRemoteEndpointResponse* response) override;
527 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>> AsyncSetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) {
528 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>>(AsyncSetMsgBusEndpointRaw(context, request, cq));
529 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200530 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>> PrepareAsyncSetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) {
531 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>>(PrepareAsyncSetMsgBusEndpointRaw(context, request, cq));
532 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200533 ::grpc::Status GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dmi::GetMsgBusEndpointResponse* response) override;
534 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetMsgBusEndpointResponse>> AsyncGetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
535 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetMsgBusEndpointResponse>>(AsyncGetMsgBusEndpointRaw(context, request, cq));
536 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200537 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetMsgBusEndpointResponse>> PrepareAsyncGetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
538 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetMsgBusEndpointResponse>>(PrepareAsyncGetMsgBusEndpointRaw(context, request, cq));
539 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200540 ::grpc::Status GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::dmi::GetLogLevelResponse* response) override;
541 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>> AsyncGetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) {
542 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>>(AsyncGetLoggableEntitiesRaw(context, request, cq));
543 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200544 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>> PrepareAsyncGetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) {
545 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>>(PrepareAsyncGetLoggableEntitiesRaw(context, request, cq));
546 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200547 ::grpc::Status SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::dmi::SetLogLevelResponse* response) override;
548 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetLogLevelResponse>> AsyncSetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
549 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetLogLevelResponse>>(AsyncSetLogLevelRaw(context, request, cq));
550 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200551 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetLogLevelResponse>> PrepareAsyncSetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
552 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetLogLevelResponse>>(PrepareAsyncSetLogLevelRaw(context, request, cq));
553 }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200554 ::grpc::Status GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::dmi::GetLogLevelResponse* response) override;
555 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>> AsyncGetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
556 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>>(AsyncGetLogLevelRaw(context, request, cq));
557 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200558 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>> PrepareAsyncGetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
559 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>>(PrepareAsyncGetLogLevelRaw(context, request, cq));
560 }
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530561 ::grpc::Status HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dmi::Heartbeat* response) override;
562 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::Heartbeat>> AsyncHeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
563 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::Heartbeat>>(AsyncHeartbeatCheckRaw(context, request, cq));
564 }
565 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::Heartbeat>> PrepareAsyncHeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
566 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::Heartbeat>>(PrepareAsyncHeartbeatCheckRaw(context, request, cq));
567 }
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530568 ::grpc::Status RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::dmi::RebootDeviceResponse* response) override;
569 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::RebootDeviceResponse>> AsyncRebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) {
570 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::RebootDeviceResponse>>(AsyncRebootDeviceRaw(context, request, cq));
571 }
572 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::RebootDeviceResponse>> PrepareAsyncRebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) {
573 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::RebootDeviceResponse>>(PrepareAsyncRebootDeviceRaw(context, request, cq));
574 }
amit.ghosh93183512024-05-28 22:37:27 +0200575 ::grpc::Status SetDmLogLevel(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest& request, ::dmi::SetDmLogLevelResponse* response) override;
576 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetDmLogLevelResponse>> AsyncSetDmLogLevel(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
577 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetDmLogLevelResponse>>(AsyncSetDmLogLevelRaw(context, request, cq));
578 }
579 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetDmLogLevelResponse>> PrepareAsyncSetDmLogLevel(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
580 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetDmLogLevelResponse>>(PrepareAsyncSetDmLogLevelRaw(context, request, cq));
581 }
582 ::grpc::Status GetDmLogLevel(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest& request, ::dmi::GetDmLogLevelResponse* response) override;
583 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetDmLogLevelResponse>> AsyncGetDmLogLevel(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
584 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetDmLogLevelResponse>>(AsyncGetDmLogLevelRaw(context, request, cq));
585 }
586 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetDmLogLevelResponse>> PrepareAsyncGetDmLogLevel(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) {
587 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetDmLogLevelResponse>>(PrepareAsyncGetDmLogLevelRaw(context, request, cq));
588 }
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200589 class experimental_async final :
590 public StubInterface::experimental_async_interface {
591 public:
592 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
593 void StartManagingDevice(::grpc::ClientContext* context, ::dmi::ModifiableComponent* request, ::grpc::ClientReadReactor< ::dmi::StartManagingDeviceResponse>* reactor) override;
594 #else
595 void StartManagingDevice(::grpc::ClientContext* context, ::dmi::ModifiableComponent* request, ::grpc::experimental::ClientReadReactor< ::dmi::StartManagingDeviceResponse>* reactor) override;
596 #endif
597 void StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response, std::function<void(::grpc::Status)>) override;
598 void StopManagingDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StopManagingDeviceResponse* response, std::function<void(::grpc::Status)>) override;
599 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
600 void StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
601 #else
602 void StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
603 #endif
604 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
605 void StopManagingDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
606 #else
607 void StopManagingDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
608 #endif
609 void GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response, std::function<void(::grpc::Status)>) override;
610 void GetManagedDevices(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ManagedDevicesResponse* response, std::function<void(::grpc::Status)>) override;
611 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
612 void GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
613 #else
614 void GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
615 #endif
616 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
617 void GetManagedDevices(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ManagedDevicesResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
618 #else
619 void GetManagedDevices(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ManagedDevicesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
620 #endif
621 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
622 void GetPhysicalInventory(::grpc::ClientContext* context, ::dmi::PhysicalInventoryRequest* request, ::grpc::ClientReadReactor< ::dmi::PhysicalInventoryResponse>* reactor) override;
623 #else
624 void GetPhysicalInventory(::grpc::ClientContext* context, ::dmi::PhysicalInventoryRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::PhysicalInventoryResponse>* reactor) override;
625 #endif
626 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
627 void GetHWComponentInfo(::grpc::ClientContext* context, ::dmi::HWComponentInfoGetRequest* request, ::grpc::ClientReadReactor< ::dmi::HWComponentInfoGetResponse>* reactor) override;
628 #else
629 void GetHWComponentInfo(::grpc::ClientContext* context, ::dmi::HWComponentInfoGetRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::HWComponentInfoGetResponse>* reactor) override;
630 #endif
631 void SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response, std::function<void(::grpc::Status)>) override;
632 void SetHWComponentInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::HWComponentInfoSetResponse* response, std::function<void(::grpc::Status)>) override;
633 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
634 void SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
635 #else
636 void SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
637 #endif
638 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
639 void SetHWComponentInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
640 #else
641 void SetHWComponentInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
642 #endif
643 void SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) override;
644 void SetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) override;
645 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
646 void SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
647 #else
648 void SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
649 #endif
650 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
651 void SetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
652 #else
653 void SetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
654 #endif
655 void GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response, std::function<void(::grpc::Status)>) override;
656 void GetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLoggingEndpointResponse* response, std::function<void(::grpc::Status)>) override;
657 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
658 void GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
659 #else
660 void GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
661 #endif
662 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
663 void GetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
664 #else
665 void GetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
666 #endif
667 void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) override;
668 void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) override;
669 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
670 void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
671 #else
672 void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
673 #endif
674 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
675 void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
676 #else
677 void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
678 #endif
679 void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response, std::function<void(::grpc::Status)>) override;
680 void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetMsgBusEndpointResponse* response, std::function<void(::grpc::Status)>) override;
681 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
682 void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
683 #else
684 void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
685 #endif
686 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
687 void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
688 #else
689 void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
690 #endif
691 void GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) override;
692 void GetLoggableEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) override;
693 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
694 void GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
695 #else
696 void GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
697 #endif
698 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
699 void GetLoggableEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
700 #else
701 void GetLoggableEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
702 #endif
703 void SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response, std::function<void(::grpc::Status)>) override;
704 void SetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetLogLevelResponse* response, std::function<void(::grpc::Status)>) override;
705 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
706 void SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
707 #else
708 void SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
709 #endif
710 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
711 void SetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
712 #else
713 void SetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
714 #endif
715 void GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) override;
716 void GetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) override;
717 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
718 void GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
719 #else
720 void GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
721 #endif
722 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
723 void GetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
724 #else
725 void GetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
726 #endif
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530727 void HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response, std::function<void(::grpc::Status)>) override;
728 void HeartbeatCheck(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::Heartbeat* response, std::function<void(::grpc::Status)>) override;
729 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
730 void HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response, ::grpc::ClientUnaryReactor* reactor) override;
731 #else
732 void HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
733 #endif
734 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
735 void HeartbeatCheck(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::Heartbeat* response, ::grpc::ClientUnaryReactor* reactor) override;
736 #else
737 void HeartbeatCheck(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::Heartbeat* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
738 #endif
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530739 void RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response, std::function<void(::grpc::Status)>) override;
740 void RebootDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::RebootDeviceResponse* response, std::function<void(::grpc::Status)>) override;
741 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
742 void RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
743 #else
744 void RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
745 #endif
746 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
747 void RebootDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::RebootDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
748 #else
749 void RebootDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::RebootDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
750 #endif
amit.ghosh93183512024-05-28 22:37:27 +0200751 void SetDmLogLevel(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest* request, ::dmi::SetDmLogLevelResponse* response, std::function<void(::grpc::Status)>) override;
752 void SetDmLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetDmLogLevelResponse* response, std::function<void(::grpc::Status)>) override;
753 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
754 void SetDmLogLevel(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest* request, ::dmi::SetDmLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
755 #else
756 void SetDmLogLevel(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest* request, ::dmi::SetDmLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
757 #endif
758 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
759 void SetDmLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetDmLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
760 #else
761 void SetDmLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetDmLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
762 #endif
763 void GetDmLogLevel(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest* request, ::dmi::GetDmLogLevelResponse* response, std::function<void(::grpc::Status)>) override;
764 void GetDmLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetDmLogLevelResponse* response, std::function<void(::grpc::Status)>) override;
765 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
766 void GetDmLogLevel(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest* request, ::dmi::GetDmLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
767 #else
768 void GetDmLogLevel(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest* request, ::dmi::GetDmLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
769 #endif
770 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
771 void GetDmLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetDmLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
772 #else
773 void GetDmLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetDmLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
774 #endif
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200775 private:
776 friend class Stub;
777 explicit experimental_async(Stub* stub): stub_(stub) { }
778 Stub* stub() { return stub_; }
779 Stub* stub_;
780 };
781 class experimental_async_interface* experimental_async() override { return &async_stub_; }
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200782
783 private:
784 std::shared_ptr< ::grpc::ChannelInterface> channel_;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200785 class experimental_async async_stub_{this};
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200786 ::grpc::ClientReader< ::dmi::StartManagingDeviceResponse>* StartManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request) override;
787 ::grpc::ClientAsyncReader< ::dmi::StartManagingDeviceResponse>* AsyncStartManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq, void* tag) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200788 ::grpc::ClientAsyncReader< ::dmi::StartManagingDeviceResponse>* PrepareAsyncStartManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200789 ::grpc::ClientAsyncResponseReader< ::dmi::StopManagingDeviceResponse>* AsyncStopManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200790 ::grpc::ClientAsyncResponseReader< ::dmi::StopManagingDeviceResponse>* PrepareAsyncStopManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200791 ::grpc::ClientAsyncResponseReader< ::dmi::ManagedDevicesResponse>* AsyncGetManagedDevicesRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200792 ::grpc::ClientAsyncResponseReader< ::dmi::ManagedDevicesResponse>* PrepareAsyncGetManagedDevicesRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200793 ::grpc::ClientReader< ::dmi::PhysicalInventoryResponse>* GetPhysicalInventoryRaw(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request) override;
794 ::grpc::ClientAsyncReader< ::dmi::PhysicalInventoryResponse>* AsyncGetPhysicalInventoryRaw(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq, void* tag) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200795 ::grpc::ClientAsyncReader< ::dmi::PhysicalInventoryResponse>* PrepareAsyncGetPhysicalInventoryRaw(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200796 ::grpc::ClientReader< ::dmi::HWComponentInfoGetResponse>* GetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request) override;
797 ::grpc::ClientAsyncReader< ::dmi::HWComponentInfoGetResponse>* AsyncGetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq, void* tag) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200798 ::grpc::ClientAsyncReader< ::dmi::HWComponentInfoGetResponse>* PrepareAsyncGetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200799 ::grpc::ClientAsyncResponseReader< ::dmi::HWComponentInfoSetResponse>* AsyncSetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200800 ::grpc::ClientAsyncResponseReader< ::dmi::HWComponentInfoSetResponse>* PrepareAsyncSetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200801 ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>* AsyncSetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200802 ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>* PrepareAsyncSetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200803 ::grpc::ClientAsyncResponseReader< ::dmi::GetLoggingEndpointResponse>* AsyncGetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200804 ::grpc::ClientAsyncResponseReader< ::dmi::GetLoggingEndpointResponse>* PrepareAsyncGetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200805 ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>* AsyncSetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200806 ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>* PrepareAsyncSetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200807 ::grpc::ClientAsyncResponseReader< ::dmi::GetMsgBusEndpointResponse>* AsyncGetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200808 ::grpc::ClientAsyncResponseReader< ::dmi::GetMsgBusEndpointResponse>* PrepareAsyncGetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200809 ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>* AsyncGetLoggableEntitiesRaw(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200810 ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>* PrepareAsyncGetLoggableEntitiesRaw(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200811 ::grpc::ClientAsyncResponseReader< ::dmi::SetLogLevelResponse>* AsyncSetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200812 ::grpc::ClientAsyncResponseReader< ::dmi::SetLogLevelResponse>* PrepareAsyncSetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200813 ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>* AsyncGetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200814 ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>* PrepareAsyncGetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) override;
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530815 ::grpc::ClientAsyncResponseReader< ::dmi::Heartbeat>* AsyncHeartbeatCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
816 ::grpc::ClientAsyncResponseReader< ::dmi::Heartbeat>* PrepareAsyncHeartbeatCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530817 ::grpc::ClientAsyncResponseReader< ::dmi::RebootDeviceResponse>* AsyncRebootDeviceRaw(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) override;
818 ::grpc::ClientAsyncResponseReader< ::dmi::RebootDeviceResponse>* PrepareAsyncRebootDeviceRaw(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) override;
amit.ghosh93183512024-05-28 22:37:27 +0200819 ::grpc::ClientAsyncResponseReader< ::dmi::SetDmLogLevelResponse>* AsyncSetDmLogLevelRaw(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) override;
820 ::grpc::ClientAsyncResponseReader< ::dmi::SetDmLogLevelResponse>* PrepareAsyncSetDmLogLevelRaw(::grpc::ClientContext* context, const ::dmi::SetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) override;
821 ::grpc::ClientAsyncResponseReader< ::dmi::GetDmLogLevelResponse>* AsyncGetDmLogLevelRaw(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) override;
822 ::grpc::ClientAsyncResponseReader< ::dmi::GetDmLogLevelResponse>* PrepareAsyncGetDmLogLevelRaw(::grpc::ClientContext* context, const ::dmi::GetDmLogLevelRequest& request, ::grpc::CompletionQueue* cq) override;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200823 const ::grpc::internal::RpcMethod rpcmethod_StartManagingDevice_;
824 const ::grpc::internal::RpcMethod rpcmethod_StopManagingDevice_;
825 const ::grpc::internal::RpcMethod rpcmethod_GetManagedDevices_;
826 const ::grpc::internal::RpcMethod rpcmethod_GetPhysicalInventory_;
827 const ::grpc::internal::RpcMethod rpcmethod_GetHWComponentInfo_;
828 const ::grpc::internal::RpcMethod rpcmethod_SetHWComponentInfo_;
829 const ::grpc::internal::RpcMethod rpcmethod_SetLoggingEndpoint_;
830 const ::grpc::internal::RpcMethod rpcmethod_GetLoggingEndpoint_;
831 const ::grpc::internal::RpcMethod rpcmethod_SetMsgBusEndpoint_;
832 const ::grpc::internal::RpcMethod rpcmethod_GetMsgBusEndpoint_;
833 const ::grpc::internal::RpcMethod rpcmethod_GetLoggableEntities_;
834 const ::grpc::internal::RpcMethod rpcmethod_SetLogLevel_;
835 const ::grpc::internal::RpcMethod rpcmethod_GetLogLevel_;
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530836 const ::grpc::internal::RpcMethod rpcmethod_HeartbeatCheck_;
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530837 const ::grpc::internal::RpcMethod rpcmethod_RebootDevice_;
amit.ghosh93183512024-05-28 22:37:27 +0200838 const ::grpc::internal::RpcMethod rpcmethod_SetDmLogLevel_;
839 const ::grpc::internal::RpcMethod rpcmethod_GetDmLogLevel_;
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200840 };
841 static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
842
843 class Service : public ::grpc::Service {
844 public:
845 Service();
846 virtual ~Service();
847 // Initializes context for a device and sets up required states
848 // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
849 // and their meanings in this context is mentioned below:
850 // name = The unique name that needs to be assigned to this hardware;
851 // class = COMPONENT_TYPE_UNDEFINED;
852 // parent = nil;
853 // alias = Optional;
854 // asset_id = Optional;
855 // uri = IP Address of the Hardware;
856 virtual ::grpc::Status StartManagingDevice(::grpc::ServerContext* context, const ::dmi::ModifiableComponent* request, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* writer);
857 // Stop management of a device and clean up any context and caches for that device
858 // This rpc can be called at any time, even before the StartManagingDevice operation
859 // has completed, and should be able to cleanup.
860 virtual ::grpc::Status StopManagingDevice(::grpc::ServerContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response);
861 // Returns an object containing a list of devices managed by this entity
862 virtual ::grpc::Status GetManagedDevices(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response);
863 // Get the HW inventory details of the Device
864 virtual ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* context, const ::dmi::PhysicalInventoryRequest* request, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* writer);
865 // Get the details of a particular HW component
866 virtual ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* context, const ::dmi::HWComponentInfoGetRequest* request, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* writer);
867 // Sets the permissible attributes of a HW component
868 virtual ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response);
869 // Sets the location to which logs need to be shipped
870 virtual ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response);
871 // Gets the configured location to which the logs are being shipped
872 virtual ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response);
873 // Sets the location of the Message Bus to which events and metrics are shipped
874 virtual ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response);
875 // Gets the configured location to which the events and metrics are being shipped
876 virtual ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response);
877 // Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
878 // In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
879 // interface, package etc.
880 virtual ::grpc::Status GetLoggableEntities(::grpc::ServerContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response);
881 // Sets the log level of the device, for each given entity to a certain level.
882 // If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
883 // no entity in the list it's assumed that the caller wants to set that level for all the entities.
884 virtual ::grpc::Status SetLogLevel(::grpc::ServerContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response);
885 // Gets the configured log level for a certain entity on a certain device.
886 // If no entity is specified in the request all the entities with their log level should be returned.
887 virtual ::grpc::Status GetLogLevel(::grpc::ServerContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response);
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530888 // Performs the heartbeat check
889 virtual ::grpc::Status HeartbeatCheck(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response);
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530890 // Performs the reboot of the device
891 virtual ::grpc::Status RebootDevice(::grpc::ServerContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response);
amit.ghosh93183512024-05-28 22:37:27 +0200892 // Sets the log level of the Device Manager itself
893 virtual ::grpc::Status SetDmLogLevel(::grpc::ServerContext* context, const ::dmi::SetDmLogLevelRequest* request, ::dmi::SetDmLogLevelResponse* response);
894 // Gets the log level at which the Device Manager is running
895 virtual ::grpc::Status GetDmLogLevel(::grpc::ServerContext* context, const ::dmi::GetDmLogLevelRequest* request, ::dmi::GetDmLogLevelResponse* response);
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200896 };
897 template <class BaseClass>
898 class WithAsyncMethod_StartManagingDevice : public BaseClass {
899 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200900 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200901 public:
902 WithAsyncMethod_StartManagingDevice() {
903 ::grpc::Service::MarkMethodAsync(0);
904 }
905 ~WithAsyncMethod_StartManagingDevice() override {
906 BaseClassMustBeDerivedFromService(this);
907 }
908 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200909 ::grpc::Status StartManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* /*writer*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200910 abort();
911 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
912 }
913 void RequestStartManagingDevice(::grpc::ServerContext* context, ::dmi::ModifiableComponent* request, ::grpc::ServerAsyncWriter< ::dmi::StartManagingDeviceResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
914 ::grpc::Service::RequestAsyncServerStreaming(0, context, request, writer, new_call_cq, notification_cq, tag);
915 }
916 };
917 template <class BaseClass>
918 class WithAsyncMethod_StopManagingDevice : public BaseClass {
919 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200920 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200921 public:
922 WithAsyncMethod_StopManagingDevice() {
923 ::grpc::Service::MarkMethodAsync(1);
924 }
925 ~WithAsyncMethod_StopManagingDevice() override {
926 BaseClassMustBeDerivedFromService(this);
927 }
928 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200929 ::grpc::Status StopManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200930 abort();
931 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
932 }
933 void RequestStopManagingDevice(::grpc::ServerContext* context, ::dmi::StopManagingDeviceRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::StopManagingDeviceResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
934 ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
935 }
936 };
937 template <class BaseClass>
938 class WithAsyncMethod_GetManagedDevices : public BaseClass {
939 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200940 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200941 public:
942 WithAsyncMethod_GetManagedDevices() {
943 ::grpc::Service::MarkMethodAsync(2);
944 }
945 ~WithAsyncMethod_GetManagedDevices() override {
946 BaseClassMustBeDerivedFromService(this);
947 }
948 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200949 ::grpc::Status GetManagedDevices(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200950 abort();
951 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
952 }
953 void RequestGetManagedDevices(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::dmi::ManagedDevicesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
954 ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
955 }
956 };
957 template <class BaseClass>
958 class WithAsyncMethod_GetPhysicalInventory : public BaseClass {
959 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200960 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200961 public:
962 WithAsyncMethod_GetPhysicalInventory() {
963 ::grpc::Service::MarkMethodAsync(3);
964 }
965 ~WithAsyncMethod_GetPhysicalInventory() override {
966 BaseClassMustBeDerivedFromService(this);
967 }
968 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200969 ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* /*writer*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200970 abort();
971 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
972 }
973 void RequestGetPhysicalInventory(::grpc::ServerContext* context, ::dmi::PhysicalInventoryRequest* request, ::grpc::ServerAsyncWriter< ::dmi::PhysicalInventoryResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
974 ::grpc::Service::RequestAsyncServerStreaming(3, context, request, writer, new_call_cq, notification_cq, tag);
975 }
976 };
977 template <class BaseClass>
978 class WithAsyncMethod_GetHWComponentInfo : public BaseClass {
979 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200980 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200981 public:
982 WithAsyncMethod_GetHWComponentInfo() {
983 ::grpc::Service::MarkMethodAsync(4);
984 }
985 ~WithAsyncMethod_GetHWComponentInfo() override {
986 BaseClassMustBeDerivedFromService(this);
987 }
988 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200989 ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* /*writer*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200990 abort();
991 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
992 }
993 void RequestGetHWComponentInfo(::grpc::ServerContext* context, ::dmi::HWComponentInfoGetRequest* request, ::grpc::ServerAsyncWriter< ::dmi::HWComponentInfoGetResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
994 ::grpc::Service::RequestAsyncServerStreaming(4, context, request, writer, new_call_cq, notification_cq, tag);
995 }
996 };
997 template <class BaseClass>
998 class WithAsyncMethod_SetHWComponentInfo : public BaseClass {
999 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001000 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001001 public:
1002 WithAsyncMethod_SetHWComponentInfo() {
1003 ::grpc::Service::MarkMethodAsync(5);
1004 }
1005 ~WithAsyncMethod_SetHWComponentInfo() override {
1006 BaseClassMustBeDerivedFromService(this);
1007 }
1008 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001009 ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001010 abort();
1011 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1012 }
1013 void RequestSetHWComponentInfo(::grpc::ServerContext* context, ::dmi::HWComponentInfoSetRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::HWComponentInfoSetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
1014 ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
1015 }
1016 };
1017 template <class BaseClass>
1018 class WithAsyncMethod_SetLoggingEndpoint : public BaseClass {
1019 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001020 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001021 public:
1022 WithAsyncMethod_SetLoggingEndpoint() {
1023 ::grpc::Service::MarkMethodAsync(6);
1024 }
1025 ~WithAsyncMethod_SetLoggingEndpoint() override {
1026 BaseClassMustBeDerivedFromService(this);
1027 }
1028 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001029 ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001030 abort();
1031 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1032 }
1033 void RequestSetLoggingEndpoint(::grpc::ServerContext* context, ::dmi::SetLoggingEndpointRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::SetRemoteEndpointResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
1034 ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag);
1035 }
1036 };
1037 template <class BaseClass>
1038 class WithAsyncMethod_GetLoggingEndpoint : public BaseClass {
1039 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001040 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001041 public:
1042 WithAsyncMethod_GetLoggingEndpoint() {
1043 ::grpc::Service::MarkMethodAsync(7);
1044 }
1045 ~WithAsyncMethod_GetLoggingEndpoint() override {
1046 BaseClassMustBeDerivedFromService(this);
1047 }
1048 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001049 ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001050 abort();
1051 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1052 }
1053 void RequestGetLoggingEndpoint(::grpc::ServerContext* context, ::dmi::HardwareID* request, ::grpc::ServerAsyncResponseWriter< ::dmi::GetLoggingEndpointResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
1054 ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag);
1055 }
1056 };
1057 template <class BaseClass>
1058 class WithAsyncMethod_SetMsgBusEndpoint : public BaseClass {
1059 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001060 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001061 public:
1062 WithAsyncMethod_SetMsgBusEndpoint() {
1063 ::grpc::Service::MarkMethodAsync(8);
1064 }
1065 ~WithAsyncMethod_SetMsgBusEndpoint() override {
1066 BaseClassMustBeDerivedFromService(this);
1067 }
1068 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001069 ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001070 abort();
1071 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1072 }
1073 void RequestSetMsgBusEndpoint(::grpc::ServerContext* context, ::dmi::SetMsgBusEndpointRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::SetRemoteEndpointResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
1074 ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag);
1075 }
1076 };
1077 template <class BaseClass>
1078 class WithAsyncMethod_GetMsgBusEndpoint : public BaseClass {
1079 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001080 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001081 public:
1082 WithAsyncMethod_GetMsgBusEndpoint() {
1083 ::grpc::Service::MarkMethodAsync(9);
1084 }
1085 ~WithAsyncMethod_GetMsgBusEndpoint() override {
1086 BaseClassMustBeDerivedFromService(this);
1087 }
1088 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001089 ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001090 abort();
1091 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1092 }
1093 void RequestGetMsgBusEndpoint(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::dmi::GetMsgBusEndpointResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
1094 ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag);
1095 }
1096 };
1097 template <class BaseClass>
1098 class WithAsyncMethod_GetLoggableEntities : public BaseClass {
1099 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001100 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001101 public:
1102 WithAsyncMethod_GetLoggableEntities() {
1103 ::grpc::Service::MarkMethodAsync(10);
1104 }
1105 ~WithAsyncMethod_GetLoggableEntities() override {
1106 BaseClassMustBeDerivedFromService(this);
1107 }
1108 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001109 ::grpc::Status GetLoggableEntities(::grpc::ServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001110 abort();
1111 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1112 }
1113 void RequestGetLoggableEntities(::grpc::ServerContext* context, ::dmi::GetLoggableEntitiesRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::GetLogLevelResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
1114 ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag);
1115 }
1116 };
1117 template <class BaseClass>
1118 class WithAsyncMethod_SetLogLevel : public BaseClass {
1119 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001120 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001121 public:
1122 WithAsyncMethod_SetLogLevel() {
1123 ::grpc::Service::MarkMethodAsync(11);
1124 }
1125 ~WithAsyncMethod_SetLogLevel() override {
1126 BaseClassMustBeDerivedFromService(this);
1127 }
1128 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001129 ::grpc::Status SetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001130 abort();
1131 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1132 }
1133 void RequestSetLogLevel(::grpc::ServerContext* context, ::dmi::SetLogLevelRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::SetLogLevelResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
1134 ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag);
1135 }
1136 };
1137 template <class BaseClass>
1138 class WithAsyncMethod_GetLogLevel : public BaseClass {
1139 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001140 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001141 public:
1142 WithAsyncMethod_GetLogLevel() {
1143 ::grpc::Service::MarkMethodAsync(12);
1144 }
1145 ~WithAsyncMethod_GetLogLevel() override {
1146 BaseClassMustBeDerivedFromService(this);
1147 }
1148 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001149 ::grpc::Status GetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001150 abort();
1151 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1152 }
1153 void RequestGetLogLevel(::grpc::ServerContext* context, ::dmi::GetLogLevelRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::GetLogLevelResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
1154 ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag);
1155 }
1156 };
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +05301157 template <class BaseClass>
1158 class WithAsyncMethod_HeartbeatCheck : public BaseClass {
1159 private:
1160 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1161 public:
1162 WithAsyncMethod_HeartbeatCheck() {
1163 ::grpc::Service::MarkMethodAsync(13);
1164 }
1165 ~WithAsyncMethod_HeartbeatCheck() override {
1166 BaseClassMustBeDerivedFromService(this);
1167 }
1168 // disable synchronous version of this method
1169 ::grpc::Status HeartbeatCheck(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) override {
1170 abort();
1171 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1172 }
1173 void RequestHeartbeatCheck(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::dmi::Heartbeat>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
1174 ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag);
1175 }
1176 };
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05301177 template <class BaseClass>
1178 class WithAsyncMethod_RebootDevice : public BaseClass {
1179 private:
1180 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1181 public:
1182 WithAsyncMethod_RebootDevice() {
1183 ::grpc::Service::MarkMethodAsync(14);
1184 }
1185 ~WithAsyncMethod_RebootDevice() override {
1186 BaseClassMustBeDerivedFromService(this);
1187 }
1188 // disable synchronous version of this method
1189 ::grpc::Status RebootDevice(::grpc::ServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) override {
1190 abort();
1191 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1192 }
1193 void RequestRebootDevice(::grpc::ServerContext* context, ::dmi::RebootDeviceRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::RebootDeviceResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
1194 ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag);
1195 }
1196 };
amit.ghosh93183512024-05-28 22:37:27 +02001197 template <class BaseClass>
1198 class WithAsyncMethod_SetDmLogLevel : public BaseClass {
1199 private:
1200 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1201 public:
1202 WithAsyncMethod_SetDmLogLevel() {
1203 ::grpc::Service::MarkMethodAsync(15);
1204 }
1205 ~WithAsyncMethod_SetDmLogLevel() override {
1206 BaseClassMustBeDerivedFromService(this);
1207 }
1208 // disable synchronous version of this method
1209 ::grpc::Status SetDmLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetDmLogLevelRequest* /*request*/, ::dmi::SetDmLogLevelResponse* /*response*/) override {
1210 abort();
1211 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1212 }
1213 void RequestSetDmLogLevel(::grpc::ServerContext* context, ::dmi::SetDmLogLevelRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::SetDmLogLevelResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
1214 ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag);
1215 }
1216 };
1217 template <class BaseClass>
1218 class WithAsyncMethod_GetDmLogLevel : public BaseClass {
1219 private:
1220 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1221 public:
1222 WithAsyncMethod_GetDmLogLevel() {
1223 ::grpc::Service::MarkMethodAsync(16);
1224 }
1225 ~WithAsyncMethod_GetDmLogLevel() override {
1226 BaseClassMustBeDerivedFromService(this);
1227 }
1228 // disable synchronous version of this method
1229 ::grpc::Status GetDmLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetDmLogLevelRequest* /*request*/, ::dmi::GetDmLogLevelResponse* /*response*/) override {
1230 abort();
1231 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1232 }
1233 void RequestGetDmLogLevel(::grpc::ServerContext* context, ::dmi::GetDmLogLevelRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::GetDmLogLevelResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
1234 ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag);
1235 }
1236 };
1237 typedef WithAsyncMethod_StartManagingDevice<WithAsyncMethod_StopManagingDevice<WithAsyncMethod_GetManagedDevices<WithAsyncMethod_GetPhysicalInventory<WithAsyncMethod_GetHWComponentInfo<WithAsyncMethod_SetHWComponentInfo<WithAsyncMethod_SetLoggingEndpoint<WithAsyncMethod_GetLoggingEndpoint<WithAsyncMethod_SetMsgBusEndpoint<WithAsyncMethod_GetMsgBusEndpoint<WithAsyncMethod_GetLoggableEntities<WithAsyncMethod_SetLogLevel<WithAsyncMethod_GetLogLevel<WithAsyncMethod_HeartbeatCheck<WithAsyncMethod_RebootDevice<WithAsyncMethod_SetDmLogLevel<WithAsyncMethod_GetDmLogLevel<Service > > > > > > > > > > > > > > > > > AsyncService;
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001238 template <class BaseClass>
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02001239 class ExperimentalWithCallbackMethod_StartManagingDevice : public BaseClass {
1240 private:
1241 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1242 public:
1243 ExperimentalWithCallbackMethod_StartManagingDevice() {
1244 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1245 ::grpc::Service::
1246 #else
1247 ::grpc::Service::experimental().
1248 #endif
1249 MarkMethodCallback(0,
1250 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::dmi::ModifiableComponent, ::dmi::StartManagingDeviceResponse>(
1251 [this](
1252 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1253 ::grpc::CallbackServerContext*
1254 #else
1255 ::grpc::experimental::CallbackServerContext*
1256 #endif
1257 context, const ::dmi::ModifiableComponent* request) { return this->StartManagingDevice(context, request); }));
1258 }
1259 ~ExperimentalWithCallbackMethod_StartManagingDevice() override {
1260 BaseClassMustBeDerivedFromService(this);
1261 }
1262 // disable synchronous version of this method
1263 ::grpc::Status StartManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* /*writer*/) override {
1264 abort();
1265 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1266 }
1267 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1268 virtual ::grpc::ServerWriteReactor< ::dmi::StartManagingDeviceResponse>* StartManagingDevice(
1269 ::grpc::CallbackServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/)
1270 #else
1271 virtual ::grpc::experimental::ServerWriteReactor< ::dmi::StartManagingDeviceResponse>* StartManagingDevice(
1272 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/)
1273 #endif
1274 { return nullptr; }
1275 };
1276 template <class BaseClass>
1277 class ExperimentalWithCallbackMethod_StopManagingDevice : public BaseClass {
1278 private:
1279 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1280 public:
1281 ExperimentalWithCallbackMethod_StopManagingDevice() {
1282 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1283 ::grpc::Service::
1284 #else
1285 ::grpc::Service::experimental().
1286 #endif
1287 MarkMethodCallback(1,
1288 new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::StopManagingDeviceRequest, ::dmi::StopManagingDeviceResponse>(
1289 [this](
1290 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1291 ::grpc::CallbackServerContext*
1292 #else
1293 ::grpc::experimental::CallbackServerContext*
1294 #endif
1295 context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response) { return this->StopManagingDevice(context, request, response); }));}
1296 void SetMessageAllocatorFor_StopManagingDevice(
1297 ::grpc::experimental::MessageAllocator< ::dmi::StopManagingDeviceRequest, ::dmi::StopManagingDeviceResponse>* allocator) {
1298 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1299 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1);
1300 #else
1301 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1);
1302 #endif
1303 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::StopManagingDeviceRequest, ::dmi::StopManagingDeviceResponse>*>(handler)
1304 ->SetMessageAllocator(allocator);
1305 }
1306 ~ExperimentalWithCallbackMethod_StopManagingDevice() override {
1307 BaseClassMustBeDerivedFromService(this);
1308 }
1309 // disable synchronous version of this method
1310 ::grpc::Status StopManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) override {
1311 abort();
1312 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1313 }
1314 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1315 virtual ::grpc::ServerUnaryReactor* StopManagingDevice(
1316 ::grpc::CallbackServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/)
1317 #else
1318 virtual ::grpc::experimental::ServerUnaryReactor* StopManagingDevice(
1319 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/)
1320 #endif
1321 { return nullptr; }
1322 };
1323 template <class BaseClass>
1324 class ExperimentalWithCallbackMethod_GetManagedDevices : public BaseClass {
1325 private:
1326 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1327 public:
1328 ExperimentalWithCallbackMethod_GetManagedDevices() {
1329 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1330 ::grpc::Service::
1331 #else
1332 ::grpc::Service::experimental().
1333 #endif
1334 MarkMethodCallback(2,
1335 new ::grpc_impl::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::dmi::ManagedDevicesResponse>(
1336 [this](
1337 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1338 ::grpc::CallbackServerContext*
1339 #else
1340 ::grpc::experimental::CallbackServerContext*
1341 #endif
1342 context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response) { return this->GetManagedDevices(context, request, response); }));}
1343 void SetMessageAllocatorFor_GetManagedDevices(
1344 ::grpc::experimental::MessageAllocator< ::google::protobuf::Empty, ::dmi::ManagedDevicesResponse>* allocator) {
1345 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1346 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2);
1347 #else
1348 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2);
1349 #endif
1350 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::dmi::ManagedDevicesResponse>*>(handler)
1351 ->SetMessageAllocator(allocator);
1352 }
1353 ~ExperimentalWithCallbackMethod_GetManagedDevices() override {
1354 BaseClassMustBeDerivedFromService(this);
1355 }
1356 // disable synchronous version of this method
1357 ::grpc::Status GetManagedDevices(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) override {
1358 abort();
1359 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1360 }
1361 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1362 virtual ::grpc::ServerUnaryReactor* GetManagedDevices(
1363 ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/)
1364 #else
1365 virtual ::grpc::experimental::ServerUnaryReactor* GetManagedDevices(
1366 ::grpc::experimental::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/)
1367 #endif
1368 { return nullptr; }
1369 };
1370 template <class BaseClass>
1371 class ExperimentalWithCallbackMethod_GetPhysicalInventory : public BaseClass {
1372 private:
1373 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1374 public:
1375 ExperimentalWithCallbackMethod_GetPhysicalInventory() {
1376 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1377 ::grpc::Service::
1378 #else
1379 ::grpc::Service::experimental().
1380 #endif
1381 MarkMethodCallback(3,
1382 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::dmi::PhysicalInventoryRequest, ::dmi::PhysicalInventoryResponse>(
1383 [this](
1384 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1385 ::grpc::CallbackServerContext*
1386 #else
1387 ::grpc::experimental::CallbackServerContext*
1388 #endif
1389 context, const ::dmi::PhysicalInventoryRequest* request) { return this->GetPhysicalInventory(context, request); }));
1390 }
1391 ~ExperimentalWithCallbackMethod_GetPhysicalInventory() override {
1392 BaseClassMustBeDerivedFromService(this);
1393 }
1394 // disable synchronous version of this method
1395 ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* /*writer*/) override {
1396 abort();
1397 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1398 }
1399 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1400 virtual ::grpc::ServerWriteReactor< ::dmi::PhysicalInventoryResponse>* GetPhysicalInventory(
1401 ::grpc::CallbackServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/)
1402 #else
1403 virtual ::grpc::experimental::ServerWriteReactor< ::dmi::PhysicalInventoryResponse>* GetPhysicalInventory(
1404 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/)
1405 #endif
1406 { return nullptr; }
1407 };
1408 template <class BaseClass>
1409 class ExperimentalWithCallbackMethod_GetHWComponentInfo : public BaseClass {
1410 private:
1411 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1412 public:
1413 ExperimentalWithCallbackMethod_GetHWComponentInfo() {
1414 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1415 ::grpc::Service::
1416 #else
1417 ::grpc::Service::experimental().
1418 #endif
1419 MarkMethodCallback(4,
1420 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::dmi::HWComponentInfoGetRequest, ::dmi::HWComponentInfoGetResponse>(
1421 [this](
1422 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1423 ::grpc::CallbackServerContext*
1424 #else
1425 ::grpc::experimental::CallbackServerContext*
1426 #endif
1427 context, const ::dmi::HWComponentInfoGetRequest* request) { return this->GetHWComponentInfo(context, request); }));
1428 }
1429 ~ExperimentalWithCallbackMethod_GetHWComponentInfo() override {
1430 BaseClassMustBeDerivedFromService(this);
1431 }
1432 // disable synchronous version of this method
1433 ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* /*writer*/) override {
1434 abort();
1435 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1436 }
1437 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1438 virtual ::grpc::ServerWriteReactor< ::dmi::HWComponentInfoGetResponse>* GetHWComponentInfo(
1439 ::grpc::CallbackServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/)
1440 #else
1441 virtual ::grpc::experimental::ServerWriteReactor< ::dmi::HWComponentInfoGetResponse>* GetHWComponentInfo(
1442 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/)
1443 #endif
1444 { return nullptr; }
1445 };
1446 template <class BaseClass>
1447 class ExperimentalWithCallbackMethod_SetHWComponentInfo : public BaseClass {
1448 private:
1449 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1450 public:
1451 ExperimentalWithCallbackMethod_SetHWComponentInfo() {
1452 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1453 ::grpc::Service::
1454 #else
1455 ::grpc::Service::experimental().
1456 #endif
1457 MarkMethodCallback(5,
1458 new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::HWComponentInfoSetRequest, ::dmi::HWComponentInfoSetResponse>(
1459 [this](
1460 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1461 ::grpc::CallbackServerContext*
1462 #else
1463 ::grpc::experimental::CallbackServerContext*
1464 #endif
1465 context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response) { return this->SetHWComponentInfo(context, request, response); }));}
1466 void SetMessageAllocatorFor_SetHWComponentInfo(
1467 ::grpc::experimental::MessageAllocator< ::dmi::HWComponentInfoSetRequest, ::dmi::HWComponentInfoSetResponse>* allocator) {
1468 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1469 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5);
1470 #else
1471 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5);
1472 #endif
1473 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::HWComponentInfoSetRequest, ::dmi::HWComponentInfoSetResponse>*>(handler)
1474 ->SetMessageAllocator(allocator);
1475 }
1476 ~ExperimentalWithCallbackMethod_SetHWComponentInfo() override {
1477 BaseClassMustBeDerivedFromService(this);
1478 }
1479 // disable synchronous version of this method
1480 ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) override {
1481 abort();
1482 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1483 }
1484 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1485 virtual ::grpc::ServerUnaryReactor* SetHWComponentInfo(
1486 ::grpc::CallbackServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/)
1487 #else
1488 virtual ::grpc::experimental::ServerUnaryReactor* SetHWComponentInfo(
1489 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/)
1490 #endif
1491 { return nullptr; }
1492 };
1493 template <class BaseClass>
1494 class ExperimentalWithCallbackMethod_SetLoggingEndpoint : public BaseClass {
1495 private:
1496 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1497 public:
1498 ExperimentalWithCallbackMethod_SetLoggingEndpoint() {
1499 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1500 ::grpc::Service::
1501 #else
1502 ::grpc::Service::experimental().
1503 #endif
1504 MarkMethodCallback(6,
1505 new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetLoggingEndpointRequest, ::dmi::SetRemoteEndpointResponse>(
1506 [this](
1507 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1508 ::grpc::CallbackServerContext*
1509 #else
1510 ::grpc::experimental::CallbackServerContext*
1511 #endif
1512 context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response) { return this->SetLoggingEndpoint(context, request, response); }));}
1513 void SetMessageAllocatorFor_SetLoggingEndpoint(
1514 ::grpc::experimental::MessageAllocator< ::dmi::SetLoggingEndpointRequest, ::dmi::SetRemoteEndpointResponse>* allocator) {
1515 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1516 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6);
1517 #else
1518 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6);
1519 #endif
1520 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetLoggingEndpointRequest, ::dmi::SetRemoteEndpointResponse>*>(handler)
1521 ->SetMessageAllocator(allocator);
1522 }
1523 ~ExperimentalWithCallbackMethod_SetLoggingEndpoint() override {
1524 BaseClassMustBeDerivedFromService(this);
1525 }
1526 // disable synchronous version of this method
1527 ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override {
1528 abort();
1529 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1530 }
1531 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1532 virtual ::grpc::ServerUnaryReactor* SetLoggingEndpoint(
1533 ::grpc::CallbackServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/)
1534 #else
1535 virtual ::grpc::experimental::ServerUnaryReactor* SetLoggingEndpoint(
1536 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/)
1537 #endif
1538 { return nullptr; }
1539 };
1540 template <class BaseClass>
1541 class ExperimentalWithCallbackMethod_GetLoggingEndpoint : public BaseClass {
1542 private:
1543 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1544 public:
1545 ExperimentalWithCallbackMethod_GetLoggingEndpoint() {
1546 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1547 ::grpc::Service::
1548 #else
1549 ::grpc::Service::experimental().
1550 #endif
1551 MarkMethodCallback(7,
1552 new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::HardwareID, ::dmi::GetLoggingEndpointResponse>(
1553 [this](
1554 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1555 ::grpc::CallbackServerContext*
1556 #else
1557 ::grpc::experimental::CallbackServerContext*
1558 #endif
1559 context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response) { return this->GetLoggingEndpoint(context, request, response); }));}
1560 void SetMessageAllocatorFor_GetLoggingEndpoint(
1561 ::grpc::experimental::MessageAllocator< ::dmi::HardwareID, ::dmi::GetLoggingEndpointResponse>* allocator) {
1562 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1563 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7);
1564 #else
1565 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7);
1566 #endif
1567 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::HardwareID, ::dmi::GetLoggingEndpointResponse>*>(handler)
1568 ->SetMessageAllocator(allocator);
1569 }
1570 ~ExperimentalWithCallbackMethod_GetLoggingEndpoint() override {
1571 BaseClassMustBeDerivedFromService(this);
1572 }
1573 // disable synchronous version of this method
1574 ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) override {
1575 abort();
1576 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1577 }
1578 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1579 virtual ::grpc::ServerUnaryReactor* GetLoggingEndpoint(
1580 ::grpc::CallbackServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/)
1581 #else
1582 virtual ::grpc::experimental::ServerUnaryReactor* GetLoggingEndpoint(
1583 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/)
1584 #endif
1585 { return nullptr; }
1586 };
1587 template <class BaseClass>
1588 class ExperimentalWithCallbackMethod_SetMsgBusEndpoint : public BaseClass {
1589 private:
1590 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1591 public:
1592 ExperimentalWithCallbackMethod_SetMsgBusEndpoint() {
1593 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1594 ::grpc::Service::
1595 #else
1596 ::grpc::Service::experimental().
1597 #endif
1598 MarkMethodCallback(8,
1599 new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetMsgBusEndpointRequest, ::dmi::SetRemoteEndpointResponse>(
1600 [this](
1601 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1602 ::grpc::CallbackServerContext*
1603 #else
1604 ::grpc::experimental::CallbackServerContext*
1605 #endif
1606 context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response) { return this->SetMsgBusEndpoint(context, request, response); }));}
1607 void SetMessageAllocatorFor_SetMsgBusEndpoint(
1608 ::grpc::experimental::MessageAllocator< ::dmi::SetMsgBusEndpointRequest, ::dmi::SetRemoteEndpointResponse>* allocator) {
1609 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1610 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8);
1611 #else
1612 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8);
1613 #endif
1614 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetMsgBusEndpointRequest, ::dmi::SetRemoteEndpointResponse>*>(handler)
1615 ->SetMessageAllocator(allocator);
1616 }
1617 ~ExperimentalWithCallbackMethod_SetMsgBusEndpoint() override {
1618 BaseClassMustBeDerivedFromService(this);
1619 }
1620 // disable synchronous version of this method
1621 ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override {
1622 abort();
1623 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1624 }
1625 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1626 virtual ::grpc::ServerUnaryReactor* SetMsgBusEndpoint(
1627 ::grpc::CallbackServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/)
1628 #else
1629 virtual ::grpc::experimental::ServerUnaryReactor* SetMsgBusEndpoint(
1630 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/)
1631 #endif
1632 { return nullptr; }
1633 };
1634 template <class BaseClass>
1635 class ExperimentalWithCallbackMethod_GetMsgBusEndpoint : public BaseClass {
1636 private:
1637 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1638 public:
1639 ExperimentalWithCallbackMethod_GetMsgBusEndpoint() {
1640 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1641 ::grpc::Service::
1642 #else
1643 ::grpc::Service::experimental().
1644 #endif
1645 MarkMethodCallback(9,
1646 new ::grpc_impl::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::dmi::GetMsgBusEndpointResponse>(
1647 [this](
1648 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1649 ::grpc::CallbackServerContext*
1650 #else
1651 ::grpc::experimental::CallbackServerContext*
1652 #endif
1653 context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response) { return this->GetMsgBusEndpoint(context, request, response); }));}
1654 void SetMessageAllocatorFor_GetMsgBusEndpoint(
1655 ::grpc::experimental::MessageAllocator< ::google::protobuf::Empty, ::dmi::GetMsgBusEndpointResponse>* allocator) {
1656 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1657 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9);
1658 #else
1659 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(9);
1660 #endif
1661 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::dmi::GetMsgBusEndpointResponse>*>(handler)
1662 ->SetMessageAllocator(allocator);
1663 }
1664 ~ExperimentalWithCallbackMethod_GetMsgBusEndpoint() override {
1665 BaseClassMustBeDerivedFromService(this);
1666 }
1667 // disable synchronous version of this method
1668 ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) override {
1669 abort();
1670 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1671 }
1672 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1673 virtual ::grpc::ServerUnaryReactor* GetMsgBusEndpoint(
1674 ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/)
1675 #else
1676 virtual ::grpc::experimental::ServerUnaryReactor* GetMsgBusEndpoint(
1677 ::grpc::experimental::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/)
1678 #endif
1679 { return nullptr; }
1680 };
1681 template <class BaseClass>
1682 class ExperimentalWithCallbackMethod_GetLoggableEntities : public BaseClass {
1683 private:
1684 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1685 public:
1686 ExperimentalWithCallbackMethod_GetLoggableEntities() {
1687 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1688 ::grpc::Service::
1689 #else
1690 ::grpc::Service::experimental().
1691 #endif
1692 MarkMethodCallback(10,
1693 new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::GetLoggableEntitiesRequest, ::dmi::GetLogLevelResponse>(
1694 [this](
1695 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1696 ::grpc::CallbackServerContext*
1697 #else
1698 ::grpc::experimental::CallbackServerContext*
1699 #endif
1700 context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response) { return this->GetLoggableEntities(context, request, response); }));}
1701 void SetMessageAllocatorFor_GetLoggableEntities(
1702 ::grpc::experimental::MessageAllocator< ::dmi::GetLoggableEntitiesRequest, ::dmi::GetLogLevelResponse>* allocator) {
1703 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1704 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10);
1705 #else
1706 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(10);
1707 #endif
1708 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::GetLoggableEntitiesRequest, ::dmi::GetLogLevelResponse>*>(handler)
1709 ->SetMessageAllocator(allocator);
1710 }
1711 ~ExperimentalWithCallbackMethod_GetLoggableEntities() override {
1712 BaseClassMustBeDerivedFromService(this);
1713 }
1714 // disable synchronous version of this method
1715 ::grpc::Status GetLoggableEntities(::grpc::ServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override {
1716 abort();
1717 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1718 }
1719 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1720 virtual ::grpc::ServerUnaryReactor* GetLoggableEntities(
1721 ::grpc::CallbackServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/)
1722 #else
1723 virtual ::grpc::experimental::ServerUnaryReactor* GetLoggableEntities(
1724 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/)
1725 #endif
1726 { return nullptr; }
1727 };
1728 template <class BaseClass>
1729 class ExperimentalWithCallbackMethod_SetLogLevel : public BaseClass {
1730 private:
1731 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1732 public:
1733 ExperimentalWithCallbackMethod_SetLogLevel() {
1734 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1735 ::grpc::Service::
1736 #else
1737 ::grpc::Service::experimental().
1738 #endif
1739 MarkMethodCallback(11,
1740 new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetLogLevelRequest, ::dmi::SetLogLevelResponse>(
1741 [this](
1742 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1743 ::grpc::CallbackServerContext*
1744 #else
1745 ::grpc::experimental::CallbackServerContext*
1746 #endif
1747 context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response) { return this->SetLogLevel(context, request, response); }));}
1748 void SetMessageAllocatorFor_SetLogLevel(
1749 ::grpc::experimental::MessageAllocator< ::dmi::SetLogLevelRequest, ::dmi::SetLogLevelResponse>* allocator) {
1750 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1751 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11);
1752 #else
1753 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(11);
1754 #endif
1755 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetLogLevelRequest, ::dmi::SetLogLevelResponse>*>(handler)
1756 ->SetMessageAllocator(allocator);
1757 }
1758 ~ExperimentalWithCallbackMethod_SetLogLevel() override {
1759 BaseClassMustBeDerivedFromService(this);
1760 }
1761 // disable synchronous version of this method
1762 ::grpc::Status SetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) override {
1763 abort();
1764 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1765 }
1766 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1767 virtual ::grpc::ServerUnaryReactor* SetLogLevel(
1768 ::grpc::CallbackServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/)
1769 #else
1770 virtual ::grpc::experimental::ServerUnaryReactor* SetLogLevel(
1771 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/)
1772 #endif
1773 { return nullptr; }
1774 };
1775 template <class BaseClass>
1776 class ExperimentalWithCallbackMethod_GetLogLevel : public BaseClass {
1777 private:
1778 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1779 public:
1780 ExperimentalWithCallbackMethod_GetLogLevel() {
1781 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1782 ::grpc::Service::
1783 #else
1784 ::grpc::Service::experimental().
1785 #endif
1786 MarkMethodCallback(12,
1787 new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::GetLogLevelRequest, ::dmi::GetLogLevelResponse>(
1788 [this](
1789 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1790 ::grpc::CallbackServerContext*
1791 #else
1792 ::grpc::experimental::CallbackServerContext*
1793 #endif
1794 context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response) { return this->GetLogLevel(context, request, response); }));}
1795 void SetMessageAllocatorFor_GetLogLevel(
1796 ::grpc::experimental::MessageAllocator< ::dmi::GetLogLevelRequest, ::dmi::GetLogLevelResponse>* allocator) {
1797 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1798 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12);
1799 #else
1800 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(12);
1801 #endif
1802 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::GetLogLevelRequest, ::dmi::GetLogLevelResponse>*>(handler)
1803 ->SetMessageAllocator(allocator);
1804 }
1805 ~ExperimentalWithCallbackMethod_GetLogLevel() override {
1806 BaseClassMustBeDerivedFromService(this);
1807 }
1808 // disable synchronous version of this method
1809 ::grpc::Status GetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override {
1810 abort();
1811 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1812 }
1813 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1814 virtual ::grpc::ServerUnaryReactor* GetLogLevel(
1815 ::grpc::CallbackServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/)
1816 #else
1817 virtual ::grpc::experimental::ServerUnaryReactor* GetLogLevel(
1818 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/)
1819 #endif
1820 { return nullptr; }
1821 };
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +05301822 template <class BaseClass>
1823 class ExperimentalWithCallbackMethod_HeartbeatCheck : public BaseClass {
1824 private:
1825 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1826 public:
1827 ExperimentalWithCallbackMethod_HeartbeatCheck() {
1828 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1829 ::grpc::Service::
1830 #else
1831 ::grpc::Service::experimental().
1832 #endif
1833 MarkMethodCallback(13,
1834 new ::grpc_impl::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::dmi::Heartbeat>(
1835 [this](
1836 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1837 ::grpc::CallbackServerContext*
1838 #else
1839 ::grpc::experimental::CallbackServerContext*
1840 #endif
1841 context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response) { return this->HeartbeatCheck(context, request, response); }));}
1842 void SetMessageAllocatorFor_HeartbeatCheck(
1843 ::grpc::experimental::MessageAllocator< ::google::protobuf::Empty, ::dmi::Heartbeat>* allocator) {
1844 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1845 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13);
1846 #else
1847 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(13);
1848 #endif
1849 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::dmi::Heartbeat>*>(handler)
1850 ->SetMessageAllocator(allocator);
1851 }
1852 ~ExperimentalWithCallbackMethod_HeartbeatCheck() override {
1853 BaseClassMustBeDerivedFromService(this);
1854 }
1855 // disable synchronous version of this method
1856 ::grpc::Status HeartbeatCheck(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) override {
1857 abort();
1858 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1859 }
1860 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1861 virtual ::grpc::ServerUnaryReactor* HeartbeatCheck(
1862 ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/)
1863 #else
1864 virtual ::grpc::experimental::ServerUnaryReactor* HeartbeatCheck(
1865 ::grpc::experimental::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/)
1866 #endif
1867 { return nullptr; }
1868 };
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05301869 template <class BaseClass>
1870 class ExperimentalWithCallbackMethod_RebootDevice : public BaseClass {
1871 private:
1872 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1873 public:
1874 ExperimentalWithCallbackMethod_RebootDevice() {
1875 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1876 ::grpc::Service::
1877 #else
1878 ::grpc::Service::experimental().
1879 #endif
1880 MarkMethodCallback(14,
1881 new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::RebootDeviceRequest, ::dmi::RebootDeviceResponse>(
1882 [this](
1883 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1884 ::grpc::CallbackServerContext*
1885 #else
1886 ::grpc::experimental::CallbackServerContext*
1887 #endif
1888 context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response) { return this->RebootDevice(context, request, response); }));}
1889 void SetMessageAllocatorFor_RebootDevice(
1890 ::grpc::experimental::MessageAllocator< ::dmi::RebootDeviceRequest, ::dmi::RebootDeviceResponse>* allocator) {
1891 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1892 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14);
1893 #else
1894 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(14);
1895 #endif
1896 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::RebootDeviceRequest, ::dmi::RebootDeviceResponse>*>(handler)
1897 ->SetMessageAllocator(allocator);
1898 }
1899 ~ExperimentalWithCallbackMethod_RebootDevice() override {
1900 BaseClassMustBeDerivedFromService(this);
1901 }
1902 // disable synchronous version of this method
1903 ::grpc::Status RebootDevice(::grpc::ServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) override {
1904 abort();
1905 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1906 }
1907 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1908 virtual ::grpc::ServerUnaryReactor* RebootDevice(
1909 ::grpc::CallbackServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/)
1910 #else
1911 virtual ::grpc::experimental::ServerUnaryReactor* RebootDevice(
1912 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/)
1913 #endif
1914 { return nullptr; }
1915 };
amit.ghosh93183512024-05-28 22:37:27 +02001916 template <class BaseClass>
1917 class ExperimentalWithCallbackMethod_SetDmLogLevel : public BaseClass {
1918 private:
1919 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1920 public:
1921 ExperimentalWithCallbackMethod_SetDmLogLevel() {
1922 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1923 ::grpc::Service::
1924 #else
1925 ::grpc::Service::experimental().
1926 #endif
1927 MarkMethodCallback(15,
1928 new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetDmLogLevelRequest, ::dmi::SetDmLogLevelResponse>(
1929 [this](
1930 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1931 ::grpc::CallbackServerContext*
1932 #else
1933 ::grpc::experimental::CallbackServerContext*
1934 #endif
1935 context, const ::dmi::SetDmLogLevelRequest* request, ::dmi::SetDmLogLevelResponse* response) { return this->SetDmLogLevel(context, request, response); }));}
1936 void SetMessageAllocatorFor_SetDmLogLevel(
1937 ::grpc::experimental::MessageAllocator< ::dmi::SetDmLogLevelRequest, ::dmi::SetDmLogLevelResponse>* allocator) {
1938 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1939 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(15);
1940 #else
1941 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(15);
1942 #endif
1943 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetDmLogLevelRequest, ::dmi::SetDmLogLevelResponse>*>(handler)
1944 ->SetMessageAllocator(allocator);
1945 }
1946 ~ExperimentalWithCallbackMethod_SetDmLogLevel() override {
1947 BaseClassMustBeDerivedFromService(this);
1948 }
1949 // disable synchronous version of this method
1950 ::grpc::Status SetDmLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetDmLogLevelRequest* /*request*/, ::dmi::SetDmLogLevelResponse* /*response*/) override {
1951 abort();
1952 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1953 }
1954 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1955 virtual ::grpc::ServerUnaryReactor* SetDmLogLevel(
1956 ::grpc::CallbackServerContext* /*context*/, const ::dmi::SetDmLogLevelRequest* /*request*/, ::dmi::SetDmLogLevelResponse* /*response*/)
1957 #else
1958 virtual ::grpc::experimental::ServerUnaryReactor* SetDmLogLevel(
1959 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::SetDmLogLevelRequest* /*request*/, ::dmi::SetDmLogLevelResponse* /*response*/)
1960 #endif
1961 { return nullptr; }
1962 };
1963 template <class BaseClass>
1964 class ExperimentalWithCallbackMethod_GetDmLogLevel : public BaseClass {
1965 private:
1966 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
1967 public:
1968 ExperimentalWithCallbackMethod_GetDmLogLevel() {
1969 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1970 ::grpc::Service::
1971 #else
1972 ::grpc::Service::experimental().
1973 #endif
1974 MarkMethodCallback(16,
1975 new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::GetDmLogLevelRequest, ::dmi::GetDmLogLevelResponse>(
1976 [this](
1977 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1978 ::grpc::CallbackServerContext*
1979 #else
1980 ::grpc::experimental::CallbackServerContext*
1981 #endif
1982 context, const ::dmi::GetDmLogLevelRequest* request, ::dmi::GetDmLogLevelResponse* response) { return this->GetDmLogLevel(context, request, response); }));}
1983 void SetMessageAllocatorFor_GetDmLogLevel(
1984 ::grpc::experimental::MessageAllocator< ::dmi::GetDmLogLevelRequest, ::dmi::GetDmLogLevelResponse>* allocator) {
1985 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
1986 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(16);
1987 #else
1988 ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(16);
1989 #endif
1990 static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::GetDmLogLevelRequest, ::dmi::GetDmLogLevelResponse>*>(handler)
1991 ->SetMessageAllocator(allocator);
1992 }
1993 ~ExperimentalWithCallbackMethod_GetDmLogLevel() override {
1994 BaseClassMustBeDerivedFromService(this);
1995 }
1996 // disable synchronous version of this method
1997 ::grpc::Status GetDmLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetDmLogLevelRequest* /*request*/, ::dmi::GetDmLogLevelResponse* /*response*/) override {
1998 abort();
1999 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2000 }
2001 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2002 virtual ::grpc::ServerUnaryReactor* GetDmLogLevel(
2003 ::grpc::CallbackServerContext* /*context*/, const ::dmi::GetDmLogLevelRequest* /*request*/, ::dmi::GetDmLogLevelResponse* /*response*/)
2004 #else
2005 virtual ::grpc::experimental::ServerUnaryReactor* GetDmLogLevel(
2006 ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::GetDmLogLevelRequest* /*request*/, ::dmi::GetDmLogLevelResponse* /*response*/)
2007 #endif
2008 { return nullptr; }
2009 };
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002010 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
amit.ghosh93183512024-05-28 22:37:27 +02002011 typedef ExperimentalWithCallbackMethod_StartManagingDevice<ExperimentalWithCallbackMethod_StopManagingDevice<ExperimentalWithCallbackMethod_GetManagedDevices<ExperimentalWithCallbackMethod_GetPhysicalInventory<ExperimentalWithCallbackMethod_GetHWComponentInfo<ExperimentalWithCallbackMethod_SetHWComponentInfo<ExperimentalWithCallbackMethod_SetLoggingEndpoint<ExperimentalWithCallbackMethod_GetLoggingEndpoint<ExperimentalWithCallbackMethod_SetMsgBusEndpoint<ExperimentalWithCallbackMethod_GetMsgBusEndpoint<ExperimentalWithCallbackMethod_GetLoggableEntities<ExperimentalWithCallbackMethod_SetLogLevel<ExperimentalWithCallbackMethod_GetLogLevel<ExperimentalWithCallbackMethod_HeartbeatCheck<ExperimentalWithCallbackMethod_RebootDevice<ExperimentalWithCallbackMethod_SetDmLogLevel<ExperimentalWithCallbackMethod_GetDmLogLevel<Service > > > > > > > > > > > > > > > > > CallbackService;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002012 #endif
2013
amit.ghosh93183512024-05-28 22:37:27 +02002014 typedef ExperimentalWithCallbackMethod_StartManagingDevice<ExperimentalWithCallbackMethod_StopManagingDevice<ExperimentalWithCallbackMethod_GetManagedDevices<ExperimentalWithCallbackMethod_GetPhysicalInventory<ExperimentalWithCallbackMethod_GetHWComponentInfo<ExperimentalWithCallbackMethod_SetHWComponentInfo<ExperimentalWithCallbackMethod_SetLoggingEndpoint<ExperimentalWithCallbackMethod_GetLoggingEndpoint<ExperimentalWithCallbackMethod_SetMsgBusEndpoint<ExperimentalWithCallbackMethod_GetMsgBusEndpoint<ExperimentalWithCallbackMethod_GetLoggableEntities<ExperimentalWithCallbackMethod_SetLogLevel<ExperimentalWithCallbackMethod_GetLogLevel<ExperimentalWithCallbackMethod_HeartbeatCheck<ExperimentalWithCallbackMethod_RebootDevice<ExperimentalWithCallbackMethod_SetDmLogLevel<ExperimentalWithCallbackMethod_GetDmLogLevel<Service > > > > > > > > > > > > > > > > > ExperimentalCallbackService;
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002015 template <class BaseClass>
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002016 class WithGenericMethod_StartManagingDevice : public BaseClass {
2017 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002018 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002019 public:
2020 WithGenericMethod_StartManagingDevice() {
2021 ::grpc::Service::MarkMethodGeneric(0);
2022 }
2023 ~WithGenericMethod_StartManagingDevice() override {
2024 BaseClassMustBeDerivedFromService(this);
2025 }
2026 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002027 ::grpc::Status StartManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* /*writer*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002028 abort();
2029 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2030 }
2031 };
2032 template <class BaseClass>
2033 class WithGenericMethod_StopManagingDevice : public BaseClass {
2034 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002035 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002036 public:
2037 WithGenericMethod_StopManagingDevice() {
2038 ::grpc::Service::MarkMethodGeneric(1);
2039 }
2040 ~WithGenericMethod_StopManagingDevice() override {
2041 BaseClassMustBeDerivedFromService(this);
2042 }
2043 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002044 ::grpc::Status StopManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002045 abort();
2046 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2047 }
2048 };
2049 template <class BaseClass>
2050 class WithGenericMethod_GetManagedDevices : public BaseClass {
2051 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002052 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002053 public:
2054 WithGenericMethod_GetManagedDevices() {
2055 ::grpc::Service::MarkMethodGeneric(2);
2056 }
2057 ~WithGenericMethod_GetManagedDevices() override {
2058 BaseClassMustBeDerivedFromService(this);
2059 }
2060 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002061 ::grpc::Status GetManagedDevices(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002062 abort();
2063 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2064 }
2065 };
2066 template <class BaseClass>
2067 class WithGenericMethod_GetPhysicalInventory : public BaseClass {
2068 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002069 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002070 public:
2071 WithGenericMethod_GetPhysicalInventory() {
2072 ::grpc::Service::MarkMethodGeneric(3);
2073 }
2074 ~WithGenericMethod_GetPhysicalInventory() override {
2075 BaseClassMustBeDerivedFromService(this);
2076 }
2077 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002078 ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* /*writer*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002079 abort();
2080 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2081 }
2082 };
2083 template <class BaseClass>
2084 class WithGenericMethod_GetHWComponentInfo : public BaseClass {
2085 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002086 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002087 public:
2088 WithGenericMethod_GetHWComponentInfo() {
2089 ::grpc::Service::MarkMethodGeneric(4);
2090 }
2091 ~WithGenericMethod_GetHWComponentInfo() override {
2092 BaseClassMustBeDerivedFromService(this);
2093 }
2094 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002095 ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* /*writer*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002096 abort();
2097 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2098 }
2099 };
2100 template <class BaseClass>
2101 class WithGenericMethod_SetHWComponentInfo : public BaseClass {
2102 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002103 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002104 public:
2105 WithGenericMethod_SetHWComponentInfo() {
2106 ::grpc::Service::MarkMethodGeneric(5);
2107 }
2108 ~WithGenericMethod_SetHWComponentInfo() override {
2109 BaseClassMustBeDerivedFromService(this);
2110 }
2111 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002112 ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002113 abort();
2114 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2115 }
2116 };
2117 template <class BaseClass>
2118 class WithGenericMethod_SetLoggingEndpoint : public BaseClass {
2119 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002120 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002121 public:
2122 WithGenericMethod_SetLoggingEndpoint() {
2123 ::grpc::Service::MarkMethodGeneric(6);
2124 }
2125 ~WithGenericMethod_SetLoggingEndpoint() override {
2126 BaseClassMustBeDerivedFromService(this);
2127 }
2128 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002129 ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002130 abort();
2131 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2132 }
2133 };
2134 template <class BaseClass>
2135 class WithGenericMethod_GetLoggingEndpoint : public BaseClass {
2136 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002137 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002138 public:
2139 WithGenericMethod_GetLoggingEndpoint() {
2140 ::grpc::Service::MarkMethodGeneric(7);
2141 }
2142 ~WithGenericMethod_GetLoggingEndpoint() override {
2143 BaseClassMustBeDerivedFromService(this);
2144 }
2145 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002146 ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002147 abort();
2148 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2149 }
2150 };
2151 template <class BaseClass>
2152 class WithGenericMethod_SetMsgBusEndpoint : public BaseClass {
2153 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002154 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002155 public:
2156 WithGenericMethod_SetMsgBusEndpoint() {
2157 ::grpc::Service::MarkMethodGeneric(8);
2158 }
2159 ~WithGenericMethod_SetMsgBusEndpoint() override {
2160 BaseClassMustBeDerivedFromService(this);
2161 }
2162 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002163 ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002164 abort();
2165 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2166 }
2167 };
2168 template <class BaseClass>
2169 class WithGenericMethod_GetMsgBusEndpoint : public BaseClass {
2170 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002171 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002172 public:
2173 WithGenericMethod_GetMsgBusEndpoint() {
2174 ::grpc::Service::MarkMethodGeneric(9);
2175 }
2176 ~WithGenericMethod_GetMsgBusEndpoint() override {
2177 BaseClassMustBeDerivedFromService(this);
2178 }
2179 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002180 ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002181 abort();
2182 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2183 }
2184 };
2185 template <class BaseClass>
2186 class WithGenericMethod_GetLoggableEntities : public BaseClass {
2187 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002188 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002189 public:
2190 WithGenericMethod_GetLoggableEntities() {
2191 ::grpc::Service::MarkMethodGeneric(10);
2192 }
2193 ~WithGenericMethod_GetLoggableEntities() override {
2194 BaseClassMustBeDerivedFromService(this);
2195 }
2196 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002197 ::grpc::Status GetLoggableEntities(::grpc::ServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002198 abort();
2199 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2200 }
2201 };
2202 template <class BaseClass>
2203 class WithGenericMethod_SetLogLevel : public BaseClass {
2204 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002205 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002206 public:
2207 WithGenericMethod_SetLogLevel() {
2208 ::grpc::Service::MarkMethodGeneric(11);
2209 }
2210 ~WithGenericMethod_SetLogLevel() override {
2211 BaseClassMustBeDerivedFromService(this);
2212 }
2213 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002214 ::grpc::Status SetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002215 abort();
2216 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2217 }
2218 };
2219 template <class BaseClass>
2220 class WithGenericMethod_GetLogLevel : public BaseClass {
2221 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002222 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002223 public:
2224 WithGenericMethod_GetLogLevel() {
2225 ::grpc::Service::MarkMethodGeneric(12);
2226 }
2227 ~WithGenericMethod_GetLogLevel() override {
2228 BaseClassMustBeDerivedFromService(this);
2229 }
2230 // disable synchronous version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002231 ::grpc::Status GetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02002232 abort();
2233 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2234 }
2235 };
2236 template <class BaseClass>
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +05302237 class WithGenericMethod_HeartbeatCheck : public BaseClass {
2238 private:
2239 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2240 public:
2241 WithGenericMethod_HeartbeatCheck() {
2242 ::grpc::Service::MarkMethodGeneric(13);
2243 }
2244 ~WithGenericMethod_HeartbeatCheck() override {
2245 BaseClassMustBeDerivedFromService(this);
2246 }
2247 // disable synchronous version of this method
2248 ::grpc::Status HeartbeatCheck(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) override {
2249 abort();
2250 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2251 }
2252 };
2253 template <class BaseClass>
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05302254 class WithGenericMethod_RebootDevice : public BaseClass {
2255 private:
2256 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2257 public:
2258 WithGenericMethod_RebootDevice() {
2259 ::grpc::Service::MarkMethodGeneric(14);
2260 }
2261 ~WithGenericMethod_RebootDevice() override {
2262 BaseClassMustBeDerivedFromService(this);
2263 }
2264 // disable synchronous version of this method
2265 ::grpc::Status RebootDevice(::grpc::ServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) override {
2266 abort();
2267 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2268 }
2269 };
2270 template <class BaseClass>
amit.ghosh93183512024-05-28 22:37:27 +02002271 class WithGenericMethod_SetDmLogLevel : public BaseClass {
2272 private:
2273 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2274 public:
2275 WithGenericMethod_SetDmLogLevel() {
2276 ::grpc::Service::MarkMethodGeneric(15);
2277 }
2278 ~WithGenericMethod_SetDmLogLevel() override {
2279 BaseClassMustBeDerivedFromService(this);
2280 }
2281 // disable synchronous version of this method
2282 ::grpc::Status SetDmLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetDmLogLevelRequest* /*request*/, ::dmi::SetDmLogLevelResponse* /*response*/) override {
2283 abort();
2284 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2285 }
2286 };
2287 template <class BaseClass>
2288 class WithGenericMethod_GetDmLogLevel : public BaseClass {
2289 private:
2290 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2291 public:
2292 WithGenericMethod_GetDmLogLevel() {
2293 ::grpc::Service::MarkMethodGeneric(16);
2294 }
2295 ~WithGenericMethod_GetDmLogLevel() override {
2296 BaseClassMustBeDerivedFromService(this);
2297 }
2298 // disable synchronous version of this method
2299 ::grpc::Status GetDmLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetDmLogLevelRequest* /*request*/, ::dmi::GetDmLogLevelResponse* /*response*/) override {
2300 abort();
2301 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2302 }
2303 };
2304 template <class BaseClass>
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002305 class WithRawMethod_StartManagingDevice : public BaseClass {
2306 private:
2307 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2308 public:
2309 WithRawMethod_StartManagingDevice() {
2310 ::grpc::Service::MarkMethodRaw(0);
2311 }
2312 ~WithRawMethod_StartManagingDevice() override {
2313 BaseClassMustBeDerivedFromService(this);
2314 }
2315 // disable synchronous version of this method
2316 ::grpc::Status StartManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* /*writer*/) override {
2317 abort();
2318 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2319 }
2320 void RequestStartManagingDevice(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2321 ::grpc::Service::RequestAsyncServerStreaming(0, context, request, writer, new_call_cq, notification_cq, tag);
2322 }
2323 };
2324 template <class BaseClass>
2325 class WithRawMethod_StopManagingDevice : public BaseClass {
2326 private:
2327 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2328 public:
2329 WithRawMethod_StopManagingDevice() {
2330 ::grpc::Service::MarkMethodRaw(1);
2331 }
2332 ~WithRawMethod_StopManagingDevice() override {
2333 BaseClassMustBeDerivedFromService(this);
2334 }
2335 // disable synchronous version of this method
2336 ::grpc::Status StopManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) override {
2337 abort();
2338 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2339 }
2340 void RequestStopManagingDevice(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2341 ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
2342 }
2343 };
2344 template <class BaseClass>
2345 class WithRawMethod_GetManagedDevices : public BaseClass {
2346 private:
2347 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2348 public:
2349 WithRawMethod_GetManagedDevices() {
2350 ::grpc::Service::MarkMethodRaw(2);
2351 }
2352 ~WithRawMethod_GetManagedDevices() override {
2353 BaseClassMustBeDerivedFromService(this);
2354 }
2355 // disable synchronous version of this method
2356 ::grpc::Status GetManagedDevices(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) override {
2357 abort();
2358 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2359 }
2360 void RequestGetManagedDevices(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2361 ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
2362 }
2363 };
2364 template <class BaseClass>
2365 class WithRawMethod_GetPhysicalInventory : public BaseClass {
2366 private:
2367 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2368 public:
2369 WithRawMethod_GetPhysicalInventory() {
2370 ::grpc::Service::MarkMethodRaw(3);
2371 }
2372 ~WithRawMethod_GetPhysicalInventory() override {
2373 BaseClassMustBeDerivedFromService(this);
2374 }
2375 // disable synchronous version of this method
2376 ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* /*writer*/) override {
2377 abort();
2378 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2379 }
2380 void RequestGetPhysicalInventory(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2381 ::grpc::Service::RequestAsyncServerStreaming(3, context, request, writer, new_call_cq, notification_cq, tag);
2382 }
2383 };
2384 template <class BaseClass>
2385 class WithRawMethod_GetHWComponentInfo : public BaseClass {
2386 private:
2387 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2388 public:
2389 WithRawMethod_GetHWComponentInfo() {
2390 ::grpc::Service::MarkMethodRaw(4);
2391 }
2392 ~WithRawMethod_GetHWComponentInfo() override {
2393 BaseClassMustBeDerivedFromService(this);
2394 }
2395 // disable synchronous version of this method
2396 ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* /*writer*/) override {
2397 abort();
2398 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2399 }
2400 void RequestGetHWComponentInfo(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2401 ::grpc::Service::RequestAsyncServerStreaming(4, context, request, writer, new_call_cq, notification_cq, tag);
2402 }
2403 };
2404 template <class BaseClass>
2405 class WithRawMethod_SetHWComponentInfo : public BaseClass {
2406 private:
2407 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2408 public:
2409 WithRawMethod_SetHWComponentInfo() {
2410 ::grpc::Service::MarkMethodRaw(5);
2411 }
2412 ~WithRawMethod_SetHWComponentInfo() override {
2413 BaseClassMustBeDerivedFromService(this);
2414 }
2415 // disable synchronous version of this method
2416 ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) override {
2417 abort();
2418 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2419 }
2420 void RequestSetHWComponentInfo(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2421 ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
2422 }
2423 };
2424 template <class BaseClass>
2425 class WithRawMethod_SetLoggingEndpoint : public BaseClass {
2426 private:
2427 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2428 public:
2429 WithRawMethod_SetLoggingEndpoint() {
2430 ::grpc::Service::MarkMethodRaw(6);
2431 }
2432 ~WithRawMethod_SetLoggingEndpoint() override {
2433 BaseClassMustBeDerivedFromService(this);
2434 }
2435 // disable synchronous version of this method
2436 ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override {
2437 abort();
2438 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2439 }
2440 void RequestSetLoggingEndpoint(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2441 ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag);
2442 }
2443 };
2444 template <class BaseClass>
2445 class WithRawMethod_GetLoggingEndpoint : public BaseClass {
2446 private:
2447 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2448 public:
2449 WithRawMethod_GetLoggingEndpoint() {
2450 ::grpc::Service::MarkMethodRaw(7);
2451 }
2452 ~WithRawMethod_GetLoggingEndpoint() override {
2453 BaseClassMustBeDerivedFromService(this);
2454 }
2455 // disable synchronous version of this method
2456 ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) override {
2457 abort();
2458 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2459 }
2460 void RequestGetLoggingEndpoint(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2461 ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag);
2462 }
2463 };
2464 template <class BaseClass>
2465 class WithRawMethod_SetMsgBusEndpoint : public BaseClass {
2466 private:
2467 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2468 public:
2469 WithRawMethod_SetMsgBusEndpoint() {
2470 ::grpc::Service::MarkMethodRaw(8);
2471 }
2472 ~WithRawMethod_SetMsgBusEndpoint() override {
2473 BaseClassMustBeDerivedFromService(this);
2474 }
2475 // disable synchronous version of this method
2476 ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override {
2477 abort();
2478 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2479 }
2480 void RequestSetMsgBusEndpoint(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2481 ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag);
2482 }
2483 };
2484 template <class BaseClass>
2485 class WithRawMethod_GetMsgBusEndpoint : public BaseClass {
2486 private:
2487 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2488 public:
2489 WithRawMethod_GetMsgBusEndpoint() {
2490 ::grpc::Service::MarkMethodRaw(9);
2491 }
2492 ~WithRawMethod_GetMsgBusEndpoint() override {
2493 BaseClassMustBeDerivedFromService(this);
2494 }
2495 // disable synchronous version of this method
2496 ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) override {
2497 abort();
2498 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2499 }
2500 void RequestGetMsgBusEndpoint(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2501 ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag);
2502 }
2503 };
2504 template <class BaseClass>
2505 class WithRawMethod_GetLoggableEntities : public BaseClass {
2506 private:
2507 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2508 public:
2509 WithRawMethod_GetLoggableEntities() {
2510 ::grpc::Service::MarkMethodRaw(10);
2511 }
2512 ~WithRawMethod_GetLoggableEntities() override {
2513 BaseClassMustBeDerivedFromService(this);
2514 }
2515 // disable synchronous version of this method
2516 ::grpc::Status GetLoggableEntities(::grpc::ServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override {
2517 abort();
2518 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2519 }
2520 void RequestGetLoggableEntities(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2521 ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag);
2522 }
2523 };
2524 template <class BaseClass>
2525 class WithRawMethod_SetLogLevel : public BaseClass {
2526 private:
2527 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2528 public:
2529 WithRawMethod_SetLogLevel() {
2530 ::grpc::Service::MarkMethodRaw(11);
2531 }
2532 ~WithRawMethod_SetLogLevel() override {
2533 BaseClassMustBeDerivedFromService(this);
2534 }
2535 // disable synchronous version of this method
2536 ::grpc::Status SetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) override {
2537 abort();
2538 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2539 }
2540 void RequestSetLogLevel(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2541 ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag);
2542 }
2543 };
2544 template <class BaseClass>
2545 class WithRawMethod_GetLogLevel : public BaseClass {
2546 private:
2547 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2548 public:
2549 WithRawMethod_GetLogLevel() {
2550 ::grpc::Service::MarkMethodRaw(12);
2551 }
2552 ~WithRawMethod_GetLogLevel() override {
2553 BaseClassMustBeDerivedFromService(this);
2554 }
2555 // disable synchronous version of this method
2556 ::grpc::Status GetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override {
2557 abort();
2558 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2559 }
2560 void RequestGetLogLevel(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2561 ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag);
2562 }
2563 };
2564 template <class BaseClass>
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +05302565 class WithRawMethod_HeartbeatCheck : public BaseClass {
2566 private:
2567 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2568 public:
2569 WithRawMethod_HeartbeatCheck() {
2570 ::grpc::Service::MarkMethodRaw(13);
2571 }
2572 ~WithRawMethod_HeartbeatCheck() override {
2573 BaseClassMustBeDerivedFromService(this);
2574 }
2575 // disable synchronous version of this method
2576 ::grpc::Status HeartbeatCheck(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) override {
2577 abort();
2578 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2579 }
2580 void RequestHeartbeatCheck(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2581 ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag);
2582 }
2583 };
2584 template <class BaseClass>
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05302585 class WithRawMethod_RebootDevice : public BaseClass {
2586 private:
2587 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2588 public:
2589 WithRawMethod_RebootDevice() {
2590 ::grpc::Service::MarkMethodRaw(14);
2591 }
2592 ~WithRawMethod_RebootDevice() override {
2593 BaseClassMustBeDerivedFromService(this);
2594 }
2595 // disable synchronous version of this method
2596 ::grpc::Status RebootDevice(::grpc::ServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) override {
2597 abort();
2598 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2599 }
2600 void RequestRebootDevice(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2601 ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag);
2602 }
2603 };
2604 template <class BaseClass>
amit.ghosh93183512024-05-28 22:37:27 +02002605 class WithRawMethod_SetDmLogLevel : public BaseClass {
2606 private:
2607 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2608 public:
2609 WithRawMethod_SetDmLogLevel() {
2610 ::grpc::Service::MarkMethodRaw(15);
2611 }
2612 ~WithRawMethod_SetDmLogLevel() override {
2613 BaseClassMustBeDerivedFromService(this);
2614 }
2615 // disable synchronous version of this method
2616 ::grpc::Status SetDmLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetDmLogLevelRequest* /*request*/, ::dmi::SetDmLogLevelResponse* /*response*/) override {
2617 abort();
2618 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2619 }
2620 void RequestSetDmLogLevel(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2621 ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag);
2622 }
2623 };
2624 template <class BaseClass>
2625 class WithRawMethod_GetDmLogLevel : public BaseClass {
2626 private:
2627 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2628 public:
2629 WithRawMethod_GetDmLogLevel() {
2630 ::grpc::Service::MarkMethodRaw(16);
2631 }
2632 ~WithRawMethod_GetDmLogLevel() override {
2633 BaseClassMustBeDerivedFromService(this);
2634 }
2635 // disable synchronous version of this method
2636 ::grpc::Status GetDmLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetDmLogLevelRequest* /*request*/, ::dmi::GetDmLogLevelResponse* /*response*/) override {
2637 abort();
2638 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2639 }
2640 void RequestGetDmLogLevel(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
2641 ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag);
2642 }
2643 };
2644 template <class BaseClass>
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02002645 class ExperimentalWithRawCallbackMethod_StartManagingDevice : public BaseClass {
2646 private:
2647 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2648 public:
2649 ExperimentalWithRawCallbackMethod_StartManagingDevice() {
2650 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2651 ::grpc::Service::
2652 #else
2653 ::grpc::Service::experimental().
2654 #endif
2655 MarkMethodRawCallback(0,
2656 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
2657 [this](
2658 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2659 ::grpc::CallbackServerContext*
2660 #else
2661 ::grpc::experimental::CallbackServerContext*
2662 #endif
2663 context, const::grpc::ByteBuffer* request) { return this->StartManagingDevice(context, request); }));
2664 }
2665 ~ExperimentalWithRawCallbackMethod_StartManagingDevice() override {
2666 BaseClassMustBeDerivedFromService(this);
2667 }
2668 // disable synchronous version of this method
2669 ::grpc::Status StartManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* /*writer*/) override {
2670 abort();
2671 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2672 }
2673 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2674 virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* StartManagingDevice(
2675 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
2676 #else
2677 virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* StartManagingDevice(
2678 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
2679 #endif
2680 { return nullptr; }
2681 };
2682 template <class BaseClass>
2683 class ExperimentalWithRawCallbackMethod_StopManagingDevice : public BaseClass {
2684 private:
2685 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2686 public:
2687 ExperimentalWithRawCallbackMethod_StopManagingDevice() {
2688 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2689 ::grpc::Service::
2690 #else
2691 ::grpc::Service::experimental().
2692 #endif
2693 MarkMethodRawCallback(1,
2694 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
2695 [this](
2696 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2697 ::grpc::CallbackServerContext*
2698 #else
2699 ::grpc::experimental::CallbackServerContext*
2700 #endif
2701 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->StopManagingDevice(context, request, response); }));
2702 }
2703 ~ExperimentalWithRawCallbackMethod_StopManagingDevice() override {
2704 BaseClassMustBeDerivedFromService(this);
2705 }
2706 // disable synchronous version of this method
2707 ::grpc::Status StopManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) override {
2708 abort();
2709 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2710 }
2711 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2712 virtual ::grpc::ServerUnaryReactor* StopManagingDevice(
2713 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
2714 #else
2715 virtual ::grpc::experimental::ServerUnaryReactor* StopManagingDevice(
2716 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
2717 #endif
2718 { return nullptr; }
2719 };
2720 template <class BaseClass>
2721 class ExperimentalWithRawCallbackMethod_GetManagedDevices : public BaseClass {
2722 private:
2723 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2724 public:
2725 ExperimentalWithRawCallbackMethod_GetManagedDevices() {
2726 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2727 ::grpc::Service::
2728 #else
2729 ::grpc::Service::experimental().
2730 #endif
2731 MarkMethodRawCallback(2,
2732 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
2733 [this](
2734 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2735 ::grpc::CallbackServerContext*
2736 #else
2737 ::grpc::experimental::CallbackServerContext*
2738 #endif
2739 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetManagedDevices(context, request, response); }));
2740 }
2741 ~ExperimentalWithRawCallbackMethod_GetManagedDevices() override {
2742 BaseClassMustBeDerivedFromService(this);
2743 }
2744 // disable synchronous version of this method
2745 ::grpc::Status GetManagedDevices(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) override {
2746 abort();
2747 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2748 }
2749 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2750 virtual ::grpc::ServerUnaryReactor* GetManagedDevices(
2751 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
2752 #else
2753 virtual ::grpc::experimental::ServerUnaryReactor* GetManagedDevices(
2754 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
2755 #endif
2756 { return nullptr; }
2757 };
2758 template <class BaseClass>
2759 class ExperimentalWithRawCallbackMethod_GetPhysicalInventory : public BaseClass {
2760 private:
2761 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2762 public:
2763 ExperimentalWithRawCallbackMethod_GetPhysicalInventory() {
2764 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2765 ::grpc::Service::
2766 #else
2767 ::grpc::Service::experimental().
2768 #endif
2769 MarkMethodRawCallback(3,
2770 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
2771 [this](
2772 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2773 ::grpc::CallbackServerContext*
2774 #else
2775 ::grpc::experimental::CallbackServerContext*
2776 #endif
2777 context, const::grpc::ByteBuffer* request) { return this->GetPhysicalInventory(context, request); }));
2778 }
2779 ~ExperimentalWithRawCallbackMethod_GetPhysicalInventory() override {
2780 BaseClassMustBeDerivedFromService(this);
2781 }
2782 // disable synchronous version of this method
2783 ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* /*writer*/) override {
2784 abort();
2785 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2786 }
2787 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2788 virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* GetPhysicalInventory(
2789 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
2790 #else
2791 virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* GetPhysicalInventory(
2792 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
2793 #endif
2794 { return nullptr; }
2795 };
2796 template <class BaseClass>
2797 class ExperimentalWithRawCallbackMethod_GetHWComponentInfo : public BaseClass {
2798 private:
2799 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2800 public:
2801 ExperimentalWithRawCallbackMethod_GetHWComponentInfo() {
2802 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2803 ::grpc::Service::
2804 #else
2805 ::grpc::Service::experimental().
2806 #endif
2807 MarkMethodRawCallback(4,
2808 new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
2809 [this](
2810 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2811 ::grpc::CallbackServerContext*
2812 #else
2813 ::grpc::experimental::CallbackServerContext*
2814 #endif
2815 context, const::grpc::ByteBuffer* request) { return this->GetHWComponentInfo(context, request); }));
2816 }
2817 ~ExperimentalWithRawCallbackMethod_GetHWComponentInfo() override {
2818 BaseClassMustBeDerivedFromService(this);
2819 }
2820 // disable synchronous version of this method
2821 ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* /*writer*/) override {
2822 abort();
2823 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2824 }
2825 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2826 virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* GetHWComponentInfo(
2827 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
2828 #else
2829 virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* GetHWComponentInfo(
2830 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/)
2831 #endif
2832 { return nullptr; }
2833 };
2834 template <class BaseClass>
2835 class ExperimentalWithRawCallbackMethod_SetHWComponentInfo : public BaseClass {
2836 private:
2837 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2838 public:
2839 ExperimentalWithRawCallbackMethod_SetHWComponentInfo() {
2840 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2841 ::grpc::Service::
2842 #else
2843 ::grpc::Service::experimental().
2844 #endif
2845 MarkMethodRawCallback(5,
2846 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
2847 [this](
2848 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2849 ::grpc::CallbackServerContext*
2850 #else
2851 ::grpc::experimental::CallbackServerContext*
2852 #endif
2853 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetHWComponentInfo(context, request, response); }));
2854 }
2855 ~ExperimentalWithRawCallbackMethod_SetHWComponentInfo() override {
2856 BaseClassMustBeDerivedFromService(this);
2857 }
2858 // disable synchronous version of this method
2859 ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) override {
2860 abort();
2861 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2862 }
2863 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2864 virtual ::grpc::ServerUnaryReactor* SetHWComponentInfo(
2865 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
2866 #else
2867 virtual ::grpc::experimental::ServerUnaryReactor* SetHWComponentInfo(
2868 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
2869 #endif
2870 { return nullptr; }
2871 };
2872 template <class BaseClass>
2873 class ExperimentalWithRawCallbackMethod_SetLoggingEndpoint : public BaseClass {
2874 private:
2875 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2876 public:
2877 ExperimentalWithRawCallbackMethod_SetLoggingEndpoint() {
2878 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2879 ::grpc::Service::
2880 #else
2881 ::grpc::Service::experimental().
2882 #endif
2883 MarkMethodRawCallback(6,
2884 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
2885 [this](
2886 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2887 ::grpc::CallbackServerContext*
2888 #else
2889 ::grpc::experimental::CallbackServerContext*
2890 #endif
2891 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetLoggingEndpoint(context, request, response); }));
2892 }
2893 ~ExperimentalWithRawCallbackMethod_SetLoggingEndpoint() override {
2894 BaseClassMustBeDerivedFromService(this);
2895 }
2896 // disable synchronous version of this method
2897 ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override {
2898 abort();
2899 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2900 }
2901 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2902 virtual ::grpc::ServerUnaryReactor* SetLoggingEndpoint(
2903 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
2904 #else
2905 virtual ::grpc::experimental::ServerUnaryReactor* SetLoggingEndpoint(
2906 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
2907 #endif
2908 { return nullptr; }
2909 };
2910 template <class BaseClass>
2911 class ExperimentalWithRawCallbackMethod_GetLoggingEndpoint : public BaseClass {
2912 private:
2913 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2914 public:
2915 ExperimentalWithRawCallbackMethod_GetLoggingEndpoint() {
2916 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2917 ::grpc::Service::
2918 #else
2919 ::grpc::Service::experimental().
2920 #endif
2921 MarkMethodRawCallback(7,
2922 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
2923 [this](
2924 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2925 ::grpc::CallbackServerContext*
2926 #else
2927 ::grpc::experimental::CallbackServerContext*
2928 #endif
2929 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLoggingEndpoint(context, request, response); }));
2930 }
2931 ~ExperimentalWithRawCallbackMethod_GetLoggingEndpoint() override {
2932 BaseClassMustBeDerivedFromService(this);
2933 }
2934 // disable synchronous version of this method
2935 ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) override {
2936 abort();
2937 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2938 }
2939 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2940 virtual ::grpc::ServerUnaryReactor* GetLoggingEndpoint(
2941 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
2942 #else
2943 virtual ::grpc::experimental::ServerUnaryReactor* GetLoggingEndpoint(
2944 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
2945 #endif
2946 { return nullptr; }
2947 };
2948 template <class BaseClass>
2949 class ExperimentalWithRawCallbackMethod_SetMsgBusEndpoint : public BaseClass {
2950 private:
2951 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2952 public:
2953 ExperimentalWithRawCallbackMethod_SetMsgBusEndpoint() {
2954 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2955 ::grpc::Service::
2956 #else
2957 ::grpc::Service::experimental().
2958 #endif
2959 MarkMethodRawCallback(8,
2960 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
2961 [this](
2962 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2963 ::grpc::CallbackServerContext*
2964 #else
2965 ::grpc::experimental::CallbackServerContext*
2966 #endif
2967 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetMsgBusEndpoint(context, request, response); }));
2968 }
2969 ~ExperimentalWithRawCallbackMethod_SetMsgBusEndpoint() override {
2970 BaseClassMustBeDerivedFromService(this);
2971 }
2972 // disable synchronous version of this method
2973 ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override {
2974 abort();
2975 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
2976 }
2977 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2978 virtual ::grpc::ServerUnaryReactor* SetMsgBusEndpoint(
2979 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
2980 #else
2981 virtual ::grpc::experimental::ServerUnaryReactor* SetMsgBusEndpoint(
2982 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
2983 #endif
2984 { return nullptr; }
2985 };
2986 template <class BaseClass>
2987 class ExperimentalWithRawCallbackMethod_GetMsgBusEndpoint : public BaseClass {
2988 private:
2989 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
2990 public:
2991 ExperimentalWithRawCallbackMethod_GetMsgBusEndpoint() {
2992 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
2993 ::grpc::Service::
2994 #else
2995 ::grpc::Service::experimental().
2996 #endif
2997 MarkMethodRawCallback(9,
2998 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
2999 [this](
3000 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3001 ::grpc::CallbackServerContext*
3002 #else
3003 ::grpc::experimental::CallbackServerContext*
3004 #endif
3005 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetMsgBusEndpoint(context, request, response); }));
3006 }
3007 ~ExperimentalWithRawCallbackMethod_GetMsgBusEndpoint() override {
3008 BaseClassMustBeDerivedFromService(this);
3009 }
3010 // disable synchronous version of this method
3011 ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) override {
3012 abort();
3013 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3014 }
3015 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3016 virtual ::grpc::ServerUnaryReactor* GetMsgBusEndpoint(
3017 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3018 #else
3019 virtual ::grpc::experimental::ServerUnaryReactor* GetMsgBusEndpoint(
3020 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3021 #endif
3022 { return nullptr; }
3023 };
3024 template <class BaseClass>
3025 class ExperimentalWithRawCallbackMethod_GetLoggableEntities : public BaseClass {
3026 private:
3027 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
3028 public:
3029 ExperimentalWithRawCallbackMethod_GetLoggableEntities() {
3030 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3031 ::grpc::Service::
3032 #else
3033 ::grpc::Service::experimental().
3034 #endif
3035 MarkMethodRawCallback(10,
3036 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
3037 [this](
3038 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3039 ::grpc::CallbackServerContext*
3040 #else
3041 ::grpc::experimental::CallbackServerContext*
3042 #endif
3043 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLoggableEntities(context, request, response); }));
3044 }
3045 ~ExperimentalWithRawCallbackMethod_GetLoggableEntities() override {
3046 BaseClassMustBeDerivedFromService(this);
3047 }
3048 // disable synchronous version of this method
3049 ::grpc::Status GetLoggableEntities(::grpc::ServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override {
3050 abort();
3051 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3052 }
3053 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3054 virtual ::grpc::ServerUnaryReactor* GetLoggableEntities(
3055 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3056 #else
3057 virtual ::grpc::experimental::ServerUnaryReactor* GetLoggableEntities(
3058 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3059 #endif
3060 { return nullptr; }
3061 };
3062 template <class BaseClass>
3063 class ExperimentalWithRawCallbackMethod_SetLogLevel : public BaseClass {
3064 private:
3065 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
3066 public:
3067 ExperimentalWithRawCallbackMethod_SetLogLevel() {
3068 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3069 ::grpc::Service::
3070 #else
3071 ::grpc::Service::experimental().
3072 #endif
3073 MarkMethodRawCallback(11,
3074 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
3075 [this](
3076 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3077 ::grpc::CallbackServerContext*
3078 #else
3079 ::grpc::experimental::CallbackServerContext*
3080 #endif
3081 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetLogLevel(context, request, response); }));
3082 }
3083 ~ExperimentalWithRawCallbackMethod_SetLogLevel() override {
3084 BaseClassMustBeDerivedFromService(this);
3085 }
3086 // disable synchronous version of this method
3087 ::grpc::Status SetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) override {
3088 abort();
3089 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3090 }
3091 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3092 virtual ::grpc::ServerUnaryReactor* SetLogLevel(
3093 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3094 #else
3095 virtual ::grpc::experimental::ServerUnaryReactor* SetLogLevel(
3096 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3097 #endif
3098 { return nullptr; }
3099 };
3100 template <class BaseClass>
3101 class ExperimentalWithRawCallbackMethod_GetLogLevel : public BaseClass {
3102 private:
3103 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
3104 public:
3105 ExperimentalWithRawCallbackMethod_GetLogLevel() {
3106 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3107 ::grpc::Service::
3108 #else
3109 ::grpc::Service::experimental().
3110 #endif
3111 MarkMethodRawCallback(12,
3112 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
3113 [this](
3114 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3115 ::grpc::CallbackServerContext*
3116 #else
3117 ::grpc::experimental::CallbackServerContext*
3118 #endif
3119 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLogLevel(context, request, response); }));
3120 }
3121 ~ExperimentalWithRawCallbackMethod_GetLogLevel() override {
3122 BaseClassMustBeDerivedFromService(this);
3123 }
3124 // disable synchronous version of this method
3125 ::grpc::Status GetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override {
3126 abort();
3127 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3128 }
3129 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3130 virtual ::grpc::ServerUnaryReactor* GetLogLevel(
3131 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3132 #else
3133 virtual ::grpc::experimental::ServerUnaryReactor* GetLogLevel(
3134 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3135 #endif
3136 { return nullptr; }
3137 };
3138 template <class BaseClass>
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +05303139 class ExperimentalWithRawCallbackMethod_HeartbeatCheck : public BaseClass {
3140 private:
3141 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
3142 public:
3143 ExperimentalWithRawCallbackMethod_HeartbeatCheck() {
3144 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3145 ::grpc::Service::
3146 #else
3147 ::grpc::Service::experimental().
3148 #endif
3149 MarkMethodRawCallback(13,
3150 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
3151 [this](
3152 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3153 ::grpc::CallbackServerContext*
3154 #else
3155 ::grpc::experimental::CallbackServerContext*
3156 #endif
3157 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->HeartbeatCheck(context, request, response); }));
3158 }
3159 ~ExperimentalWithRawCallbackMethod_HeartbeatCheck() override {
3160 BaseClassMustBeDerivedFromService(this);
3161 }
3162 // disable synchronous version of this method
3163 ::grpc::Status HeartbeatCheck(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) override {
3164 abort();
3165 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3166 }
3167 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3168 virtual ::grpc::ServerUnaryReactor* HeartbeatCheck(
3169 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3170 #else
3171 virtual ::grpc::experimental::ServerUnaryReactor* HeartbeatCheck(
3172 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3173 #endif
3174 { return nullptr; }
3175 };
3176 template <class BaseClass>
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05303177 class ExperimentalWithRawCallbackMethod_RebootDevice : public BaseClass {
3178 private:
3179 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
3180 public:
3181 ExperimentalWithRawCallbackMethod_RebootDevice() {
3182 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3183 ::grpc::Service::
3184 #else
3185 ::grpc::Service::experimental().
3186 #endif
3187 MarkMethodRawCallback(14,
3188 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
3189 [this](
3190 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3191 ::grpc::CallbackServerContext*
3192 #else
3193 ::grpc::experimental::CallbackServerContext*
3194 #endif
3195 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RebootDevice(context, request, response); }));
3196 }
3197 ~ExperimentalWithRawCallbackMethod_RebootDevice() override {
3198 BaseClassMustBeDerivedFromService(this);
3199 }
3200 // disable synchronous version of this method
3201 ::grpc::Status RebootDevice(::grpc::ServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) override {
3202 abort();
3203 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3204 }
3205 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3206 virtual ::grpc::ServerUnaryReactor* RebootDevice(
3207 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3208 #else
3209 virtual ::grpc::experimental::ServerUnaryReactor* RebootDevice(
3210 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3211 #endif
3212 { return nullptr; }
3213 };
3214 template <class BaseClass>
amit.ghosh93183512024-05-28 22:37:27 +02003215 class ExperimentalWithRawCallbackMethod_SetDmLogLevel : public BaseClass {
3216 private:
3217 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
3218 public:
3219 ExperimentalWithRawCallbackMethod_SetDmLogLevel() {
3220 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3221 ::grpc::Service::
3222 #else
3223 ::grpc::Service::experimental().
3224 #endif
3225 MarkMethodRawCallback(15,
3226 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
3227 [this](
3228 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3229 ::grpc::CallbackServerContext*
3230 #else
3231 ::grpc::experimental::CallbackServerContext*
3232 #endif
3233 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetDmLogLevel(context, request, response); }));
3234 }
3235 ~ExperimentalWithRawCallbackMethod_SetDmLogLevel() override {
3236 BaseClassMustBeDerivedFromService(this);
3237 }
3238 // disable synchronous version of this method
3239 ::grpc::Status SetDmLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetDmLogLevelRequest* /*request*/, ::dmi::SetDmLogLevelResponse* /*response*/) override {
3240 abort();
3241 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3242 }
3243 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3244 virtual ::grpc::ServerUnaryReactor* SetDmLogLevel(
3245 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3246 #else
3247 virtual ::grpc::experimental::ServerUnaryReactor* SetDmLogLevel(
3248 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3249 #endif
3250 { return nullptr; }
3251 };
3252 template <class BaseClass>
3253 class ExperimentalWithRawCallbackMethod_GetDmLogLevel : public BaseClass {
3254 private:
3255 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
3256 public:
3257 ExperimentalWithRawCallbackMethod_GetDmLogLevel() {
3258 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3259 ::grpc::Service::
3260 #else
3261 ::grpc::Service::experimental().
3262 #endif
3263 MarkMethodRawCallback(16,
3264 new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
3265 [this](
3266 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3267 ::grpc::CallbackServerContext*
3268 #else
3269 ::grpc::experimental::CallbackServerContext*
3270 #endif
3271 context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetDmLogLevel(context, request, response); }));
3272 }
3273 ~ExperimentalWithRawCallbackMethod_GetDmLogLevel() override {
3274 BaseClassMustBeDerivedFromService(this);
3275 }
3276 // disable synchronous version of this method
3277 ::grpc::Status GetDmLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetDmLogLevelRequest* /*request*/, ::dmi::GetDmLogLevelResponse* /*response*/) override {
3278 abort();
3279 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3280 }
3281 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
3282 virtual ::grpc::ServerUnaryReactor* GetDmLogLevel(
3283 ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3284 #else
3285 virtual ::grpc::experimental::ServerUnaryReactor* GetDmLogLevel(
3286 ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
3287 #endif
3288 { return nullptr; }
3289 };
3290 template <class BaseClass>
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003291 class WithStreamedUnaryMethod_StopManagingDevice : public BaseClass {
3292 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003293 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003294 public:
3295 WithStreamedUnaryMethod_StopManagingDevice() {
3296 ::grpc::Service::MarkMethodStreamed(1,
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003297 new ::grpc::internal::StreamedUnaryHandler<
3298 ::dmi::StopManagingDeviceRequest, ::dmi::StopManagingDeviceResponse>(
3299 [this](::grpc_impl::ServerContext* context,
3300 ::grpc_impl::ServerUnaryStreamer<
3301 ::dmi::StopManagingDeviceRequest, ::dmi::StopManagingDeviceResponse>* streamer) {
3302 return this->StreamedStopManagingDevice(context,
3303 streamer);
3304 }));
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003305 }
3306 ~WithStreamedUnaryMethod_StopManagingDevice() override {
3307 BaseClassMustBeDerivedFromService(this);
3308 }
3309 // disable regular version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003310 ::grpc::Status StopManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003311 abort();
3312 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3313 }
3314 // replace default version of method with streamed unary
3315 virtual ::grpc::Status StreamedStopManagingDevice(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::StopManagingDeviceRequest,::dmi::StopManagingDeviceResponse>* server_unary_streamer) = 0;
3316 };
3317 template <class BaseClass>
3318 class WithStreamedUnaryMethod_GetManagedDevices : public BaseClass {
3319 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003320 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003321 public:
3322 WithStreamedUnaryMethod_GetManagedDevices() {
3323 ::grpc::Service::MarkMethodStreamed(2,
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003324 new ::grpc::internal::StreamedUnaryHandler<
3325 ::google::protobuf::Empty, ::dmi::ManagedDevicesResponse>(
3326 [this](::grpc_impl::ServerContext* context,
3327 ::grpc_impl::ServerUnaryStreamer<
3328 ::google::protobuf::Empty, ::dmi::ManagedDevicesResponse>* streamer) {
3329 return this->StreamedGetManagedDevices(context,
3330 streamer);
3331 }));
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003332 }
3333 ~WithStreamedUnaryMethod_GetManagedDevices() override {
3334 BaseClassMustBeDerivedFromService(this);
3335 }
3336 // disable regular version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003337 ::grpc::Status GetManagedDevices(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003338 abort();
3339 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3340 }
3341 // replace default version of method with streamed unary
3342 virtual ::grpc::Status StreamedGetManagedDevices(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::dmi::ManagedDevicesResponse>* server_unary_streamer) = 0;
3343 };
3344 template <class BaseClass>
3345 class WithStreamedUnaryMethod_SetHWComponentInfo : public BaseClass {
3346 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003347 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003348 public:
3349 WithStreamedUnaryMethod_SetHWComponentInfo() {
3350 ::grpc::Service::MarkMethodStreamed(5,
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003351 new ::grpc::internal::StreamedUnaryHandler<
3352 ::dmi::HWComponentInfoSetRequest, ::dmi::HWComponentInfoSetResponse>(
3353 [this](::grpc_impl::ServerContext* context,
3354 ::grpc_impl::ServerUnaryStreamer<
3355 ::dmi::HWComponentInfoSetRequest, ::dmi::HWComponentInfoSetResponse>* streamer) {
3356 return this->StreamedSetHWComponentInfo(context,
3357 streamer);
3358 }));
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003359 }
3360 ~WithStreamedUnaryMethod_SetHWComponentInfo() override {
3361 BaseClassMustBeDerivedFromService(this);
3362 }
3363 // disable regular version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003364 ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003365 abort();
3366 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3367 }
3368 // replace default version of method with streamed unary
3369 virtual ::grpc::Status StreamedSetHWComponentInfo(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::HWComponentInfoSetRequest,::dmi::HWComponentInfoSetResponse>* server_unary_streamer) = 0;
3370 };
3371 template <class BaseClass>
3372 class WithStreamedUnaryMethod_SetLoggingEndpoint : public BaseClass {
3373 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003374 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003375 public:
3376 WithStreamedUnaryMethod_SetLoggingEndpoint() {
3377 ::grpc::Service::MarkMethodStreamed(6,
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003378 new ::grpc::internal::StreamedUnaryHandler<
3379 ::dmi::SetLoggingEndpointRequest, ::dmi::SetRemoteEndpointResponse>(
3380 [this](::grpc_impl::ServerContext* context,
3381 ::grpc_impl::ServerUnaryStreamer<
3382 ::dmi::SetLoggingEndpointRequest, ::dmi::SetRemoteEndpointResponse>* streamer) {
3383 return this->StreamedSetLoggingEndpoint(context,
3384 streamer);
3385 }));
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003386 }
3387 ~WithStreamedUnaryMethod_SetLoggingEndpoint() override {
3388 BaseClassMustBeDerivedFromService(this);
3389 }
3390 // disable regular version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003391 ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003392 abort();
3393 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3394 }
3395 // replace default version of method with streamed unary
3396 virtual ::grpc::Status StreamedSetLoggingEndpoint(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::SetLoggingEndpointRequest,::dmi::SetRemoteEndpointResponse>* server_unary_streamer) = 0;
3397 };
3398 template <class BaseClass>
3399 class WithStreamedUnaryMethod_GetLoggingEndpoint : public BaseClass {
3400 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003401 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003402 public:
3403 WithStreamedUnaryMethod_GetLoggingEndpoint() {
3404 ::grpc::Service::MarkMethodStreamed(7,
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003405 new ::grpc::internal::StreamedUnaryHandler<
3406 ::dmi::HardwareID, ::dmi::GetLoggingEndpointResponse>(
3407 [this](::grpc_impl::ServerContext* context,
3408 ::grpc_impl::ServerUnaryStreamer<
3409 ::dmi::HardwareID, ::dmi::GetLoggingEndpointResponse>* streamer) {
3410 return this->StreamedGetLoggingEndpoint(context,
3411 streamer);
3412 }));
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003413 }
3414 ~WithStreamedUnaryMethod_GetLoggingEndpoint() override {
3415 BaseClassMustBeDerivedFromService(this);
3416 }
3417 // disable regular version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003418 ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003419 abort();
3420 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3421 }
3422 // replace default version of method with streamed unary
3423 virtual ::grpc::Status StreamedGetLoggingEndpoint(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::HardwareID,::dmi::GetLoggingEndpointResponse>* server_unary_streamer) = 0;
3424 };
3425 template <class BaseClass>
3426 class WithStreamedUnaryMethod_SetMsgBusEndpoint : public BaseClass {
3427 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003428 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003429 public:
3430 WithStreamedUnaryMethod_SetMsgBusEndpoint() {
3431 ::grpc::Service::MarkMethodStreamed(8,
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003432 new ::grpc::internal::StreamedUnaryHandler<
3433 ::dmi::SetMsgBusEndpointRequest, ::dmi::SetRemoteEndpointResponse>(
3434 [this](::grpc_impl::ServerContext* context,
3435 ::grpc_impl::ServerUnaryStreamer<
3436 ::dmi::SetMsgBusEndpointRequest, ::dmi::SetRemoteEndpointResponse>* streamer) {
3437 return this->StreamedSetMsgBusEndpoint(context,
3438 streamer);
3439 }));
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003440 }
3441 ~WithStreamedUnaryMethod_SetMsgBusEndpoint() override {
3442 BaseClassMustBeDerivedFromService(this);
3443 }
3444 // disable regular version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003445 ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003446 abort();
3447 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3448 }
3449 // replace default version of method with streamed unary
3450 virtual ::grpc::Status StreamedSetMsgBusEndpoint(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::SetMsgBusEndpointRequest,::dmi::SetRemoteEndpointResponse>* server_unary_streamer) = 0;
3451 };
3452 template <class BaseClass>
3453 class WithStreamedUnaryMethod_GetMsgBusEndpoint : public BaseClass {
3454 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003455 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003456 public:
3457 WithStreamedUnaryMethod_GetMsgBusEndpoint() {
3458 ::grpc::Service::MarkMethodStreamed(9,
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003459 new ::grpc::internal::StreamedUnaryHandler<
3460 ::google::protobuf::Empty, ::dmi::GetMsgBusEndpointResponse>(
3461 [this](::grpc_impl::ServerContext* context,
3462 ::grpc_impl::ServerUnaryStreamer<
3463 ::google::protobuf::Empty, ::dmi::GetMsgBusEndpointResponse>* streamer) {
3464 return this->StreamedGetMsgBusEndpoint(context,
3465 streamer);
3466 }));
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003467 }
3468 ~WithStreamedUnaryMethod_GetMsgBusEndpoint() override {
3469 BaseClassMustBeDerivedFromService(this);
3470 }
3471 // disable regular version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003472 ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003473 abort();
3474 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3475 }
3476 // replace default version of method with streamed unary
3477 virtual ::grpc::Status StreamedGetMsgBusEndpoint(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::dmi::GetMsgBusEndpointResponse>* server_unary_streamer) = 0;
3478 };
3479 template <class BaseClass>
3480 class WithStreamedUnaryMethod_GetLoggableEntities : public BaseClass {
3481 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003482 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003483 public:
3484 WithStreamedUnaryMethod_GetLoggableEntities() {
3485 ::grpc::Service::MarkMethodStreamed(10,
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003486 new ::grpc::internal::StreamedUnaryHandler<
3487 ::dmi::GetLoggableEntitiesRequest, ::dmi::GetLogLevelResponse>(
3488 [this](::grpc_impl::ServerContext* context,
3489 ::grpc_impl::ServerUnaryStreamer<
3490 ::dmi::GetLoggableEntitiesRequest, ::dmi::GetLogLevelResponse>* streamer) {
3491 return this->StreamedGetLoggableEntities(context,
3492 streamer);
3493 }));
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003494 }
3495 ~WithStreamedUnaryMethod_GetLoggableEntities() override {
3496 BaseClassMustBeDerivedFromService(this);
3497 }
3498 // disable regular version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003499 ::grpc::Status GetLoggableEntities(::grpc::ServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003500 abort();
3501 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3502 }
3503 // replace default version of method with streamed unary
3504 virtual ::grpc::Status StreamedGetLoggableEntities(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::GetLoggableEntitiesRequest,::dmi::GetLogLevelResponse>* server_unary_streamer) = 0;
3505 };
3506 template <class BaseClass>
3507 class WithStreamedUnaryMethod_SetLogLevel : public BaseClass {
3508 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003509 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003510 public:
3511 WithStreamedUnaryMethod_SetLogLevel() {
3512 ::grpc::Service::MarkMethodStreamed(11,
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003513 new ::grpc::internal::StreamedUnaryHandler<
3514 ::dmi::SetLogLevelRequest, ::dmi::SetLogLevelResponse>(
3515 [this](::grpc_impl::ServerContext* context,
3516 ::grpc_impl::ServerUnaryStreamer<
3517 ::dmi::SetLogLevelRequest, ::dmi::SetLogLevelResponse>* streamer) {
3518 return this->StreamedSetLogLevel(context,
3519 streamer);
3520 }));
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003521 }
3522 ~WithStreamedUnaryMethod_SetLogLevel() override {
3523 BaseClassMustBeDerivedFromService(this);
3524 }
3525 // disable regular version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003526 ::grpc::Status SetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003527 abort();
3528 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3529 }
3530 // replace default version of method with streamed unary
3531 virtual ::grpc::Status StreamedSetLogLevel(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::SetLogLevelRequest,::dmi::SetLogLevelResponse>* server_unary_streamer) = 0;
3532 };
3533 template <class BaseClass>
3534 class WithStreamedUnaryMethod_GetLogLevel : public BaseClass {
3535 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003536 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003537 public:
3538 WithStreamedUnaryMethod_GetLogLevel() {
3539 ::grpc::Service::MarkMethodStreamed(12,
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003540 new ::grpc::internal::StreamedUnaryHandler<
3541 ::dmi::GetLogLevelRequest, ::dmi::GetLogLevelResponse>(
3542 [this](::grpc_impl::ServerContext* context,
3543 ::grpc_impl::ServerUnaryStreamer<
3544 ::dmi::GetLogLevelRequest, ::dmi::GetLogLevelResponse>* streamer) {
3545 return this->StreamedGetLogLevel(context,
3546 streamer);
3547 }));
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003548 }
3549 ~WithStreamedUnaryMethod_GetLogLevel() override {
3550 BaseClassMustBeDerivedFromService(this);
3551 }
3552 // disable regular version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003553 ::grpc::Status GetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003554 abort();
3555 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3556 }
3557 // replace default version of method with streamed unary
3558 virtual ::grpc::Status StreamedGetLogLevel(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::GetLogLevelRequest,::dmi::GetLogLevelResponse>* server_unary_streamer) = 0;
3559 };
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +05303560 template <class BaseClass>
3561 class WithStreamedUnaryMethod_HeartbeatCheck : public BaseClass {
3562 private:
3563 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
3564 public:
3565 WithStreamedUnaryMethod_HeartbeatCheck() {
3566 ::grpc::Service::MarkMethodStreamed(13,
3567 new ::grpc::internal::StreamedUnaryHandler<
3568 ::google::protobuf::Empty, ::dmi::Heartbeat>(
3569 [this](::grpc_impl::ServerContext* context,
3570 ::grpc_impl::ServerUnaryStreamer<
3571 ::google::protobuf::Empty, ::dmi::Heartbeat>* streamer) {
3572 return this->StreamedHeartbeatCheck(context,
3573 streamer);
3574 }));
3575 }
3576 ~WithStreamedUnaryMethod_HeartbeatCheck() override {
3577 BaseClassMustBeDerivedFromService(this);
3578 }
3579 // disable regular version of this method
3580 ::grpc::Status HeartbeatCheck(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) override {
3581 abort();
3582 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3583 }
3584 // replace default version of method with streamed unary
3585 virtual ::grpc::Status StreamedHeartbeatCheck(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::dmi::Heartbeat>* server_unary_streamer) = 0;
3586 };
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05303587 template <class BaseClass>
3588 class WithStreamedUnaryMethod_RebootDevice : public BaseClass {
3589 private:
3590 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
3591 public:
3592 WithStreamedUnaryMethod_RebootDevice() {
3593 ::grpc::Service::MarkMethodStreamed(14,
3594 new ::grpc::internal::StreamedUnaryHandler<
3595 ::dmi::RebootDeviceRequest, ::dmi::RebootDeviceResponse>(
3596 [this](::grpc_impl::ServerContext* context,
3597 ::grpc_impl::ServerUnaryStreamer<
3598 ::dmi::RebootDeviceRequest, ::dmi::RebootDeviceResponse>* streamer) {
3599 return this->StreamedRebootDevice(context,
3600 streamer);
3601 }));
3602 }
3603 ~WithStreamedUnaryMethod_RebootDevice() override {
3604 BaseClassMustBeDerivedFromService(this);
3605 }
3606 // disable regular version of this method
3607 ::grpc::Status RebootDevice(::grpc::ServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) override {
3608 abort();
3609 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3610 }
3611 // replace default version of method with streamed unary
3612 virtual ::grpc::Status StreamedRebootDevice(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::RebootDeviceRequest,::dmi::RebootDeviceResponse>* server_unary_streamer) = 0;
3613 };
amit.ghosh93183512024-05-28 22:37:27 +02003614 template <class BaseClass>
3615 class WithStreamedUnaryMethod_SetDmLogLevel : public BaseClass {
3616 private:
3617 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
3618 public:
3619 WithStreamedUnaryMethod_SetDmLogLevel() {
3620 ::grpc::Service::MarkMethodStreamed(15,
3621 new ::grpc::internal::StreamedUnaryHandler<
3622 ::dmi::SetDmLogLevelRequest, ::dmi::SetDmLogLevelResponse>(
3623 [this](::grpc_impl::ServerContext* context,
3624 ::grpc_impl::ServerUnaryStreamer<
3625 ::dmi::SetDmLogLevelRequest, ::dmi::SetDmLogLevelResponse>* streamer) {
3626 return this->StreamedSetDmLogLevel(context,
3627 streamer);
3628 }));
3629 }
3630 ~WithStreamedUnaryMethod_SetDmLogLevel() override {
3631 BaseClassMustBeDerivedFromService(this);
3632 }
3633 // disable regular version of this method
3634 ::grpc::Status SetDmLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetDmLogLevelRequest* /*request*/, ::dmi::SetDmLogLevelResponse* /*response*/) override {
3635 abort();
3636 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3637 }
3638 // replace default version of method with streamed unary
3639 virtual ::grpc::Status StreamedSetDmLogLevel(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::SetDmLogLevelRequest,::dmi::SetDmLogLevelResponse>* server_unary_streamer) = 0;
3640 };
3641 template <class BaseClass>
3642 class WithStreamedUnaryMethod_GetDmLogLevel : public BaseClass {
3643 private:
3644 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
3645 public:
3646 WithStreamedUnaryMethod_GetDmLogLevel() {
3647 ::grpc::Service::MarkMethodStreamed(16,
3648 new ::grpc::internal::StreamedUnaryHandler<
3649 ::dmi::GetDmLogLevelRequest, ::dmi::GetDmLogLevelResponse>(
3650 [this](::grpc_impl::ServerContext* context,
3651 ::grpc_impl::ServerUnaryStreamer<
3652 ::dmi::GetDmLogLevelRequest, ::dmi::GetDmLogLevelResponse>* streamer) {
3653 return this->StreamedGetDmLogLevel(context,
3654 streamer);
3655 }));
3656 }
3657 ~WithStreamedUnaryMethod_GetDmLogLevel() override {
3658 BaseClassMustBeDerivedFromService(this);
3659 }
3660 // disable regular version of this method
3661 ::grpc::Status GetDmLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetDmLogLevelRequest* /*request*/, ::dmi::GetDmLogLevelResponse* /*response*/) override {
3662 abort();
3663 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3664 }
3665 // replace default version of method with streamed unary
3666 virtual ::grpc::Status StreamedGetDmLogLevel(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::GetDmLogLevelRequest,::dmi::GetDmLogLevelResponse>* server_unary_streamer) = 0;
3667 };
3668 typedef WithStreamedUnaryMethod_StopManagingDevice<WithStreamedUnaryMethod_GetManagedDevices<WithStreamedUnaryMethod_SetHWComponentInfo<WithStreamedUnaryMethod_SetLoggingEndpoint<WithStreamedUnaryMethod_GetLoggingEndpoint<WithStreamedUnaryMethod_SetMsgBusEndpoint<WithStreamedUnaryMethod_GetMsgBusEndpoint<WithStreamedUnaryMethod_GetLoggableEntities<WithStreamedUnaryMethod_SetLogLevel<WithStreamedUnaryMethod_GetLogLevel<WithStreamedUnaryMethod_HeartbeatCheck<WithStreamedUnaryMethod_RebootDevice<WithStreamedUnaryMethod_SetDmLogLevel<WithStreamedUnaryMethod_GetDmLogLevel<Service > > > > > > > > > > > > > > StreamedUnaryService;
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003669 template <class BaseClass>
3670 class WithSplitStreamingMethod_StartManagingDevice : public BaseClass {
3671 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003672 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003673 public:
3674 WithSplitStreamingMethod_StartManagingDevice() {
3675 ::grpc::Service::MarkMethodStreamed(0,
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003676 new ::grpc::internal::SplitServerStreamingHandler<
3677 ::dmi::ModifiableComponent, ::dmi::StartManagingDeviceResponse>(
3678 [this](::grpc_impl::ServerContext* context,
3679 ::grpc_impl::ServerSplitStreamer<
3680 ::dmi::ModifiableComponent, ::dmi::StartManagingDeviceResponse>* streamer) {
3681 return this->StreamedStartManagingDevice(context,
3682 streamer);
3683 }));
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003684 }
3685 ~WithSplitStreamingMethod_StartManagingDevice() override {
3686 BaseClassMustBeDerivedFromService(this);
3687 }
3688 // disable regular version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003689 ::grpc::Status StartManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* /*writer*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003690 abort();
3691 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3692 }
3693 // replace default version of method with split streamed
3694 virtual ::grpc::Status StreamedStartManagingDevice(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::dmi::ModifiableComponent,::dmi::StartManagingDeviceResponse>* server_split_streamer) = 0;
3695 };
3696 template <class BaseClass>
3697 class WithSplitStreamingMethod_GetPhysicalInventory : public BaseClass {
3698 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003699 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003700 public:
3701 WithSplitStreamingMethod_GetPhysicalInventory() {
3702 ::grpc::Service::MarkMethodStreamed(3,
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003703 new ::grpc::internal::SplitServerStreamingHandler<
3704 ::dmi::PhysicalInventoryRequest, ::dmi::PhysicalInventoryResponse>(
3705 [this](::grpc_impl::ServerContext* context,
3706 ::grpc_impl::ServerSplitStreamer<
3707 ::dmi::PhysicalInventoryRequest, ::dmi::PhysicalInventoryResponse>* streamer) {
3708 return this->StreamedGetPhysicalInventory(context,
3709 streamer);
3710 }));
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003711 }
3712 ~WithSplitStreamingMethod_GetPhysicalInventory() override {
3713 BaseClassMustBeDerivedFromService(this);
3714 }
3715 // disable regular version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003716 ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* /*writer*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003717 abort();
3718 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3719 }
3720 // replace default version of method with split streamed
3721 virtual ::grpc::Status StreamedGetPhysicalInventory(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::dmi::PhysicalInventoryRequest,::dmi::PhysicalInventoryResponse>* server_split_streamer) = 0;
3722 };
3723 template <class BaseClass>
3724 class WithSplitStreamingMethod_GetHWComponentInfo : public BaseClass {
3725 private:
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003726 void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003727 public:
3728 WithSplitStreamingMethod_GetHWComponentInfo() {
3729 ::grpc::Service::MarkMethodStreamed(4,
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003730 new ::grpc::internal::SplitServerStreamingHandler<
3731 ::dmi::HWComponentInfoGetRequest, ::dmi::HWComponentInfoGetResponse>(
3732 [this](::grpc_impl::ServerContext* context,
3733 ::grpc_impl::ServerSplitStreamer<
3734 ::dmi::HWComponentInfoGetRequest, ::dmi::HWComponentInfoGetResponse>* streamer) {
3735 return this->StreamedGetHWComponentInfo(context,
3736 streamer);
3737 }));
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003738 }
3739 ~WithSplitStreamingMethod_GetHWComponentInfo() override {
3740 BaseClassMustBeDerivedFromService(this);
3741 }
3742 // disable regular version of this method
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02003743 ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* /*writer*/) override {
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003744 abort();
3745 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
3746 }
3747 // replace default version of method with split streamed
3748 virtual ::grpc::Status StreamedGetHWComponentInfo(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::dmi::HWComponentInfoGetRequest,::dmi::HWComponentInfoGetResponse>* server_split_streamer) = 0;
3749 };
3750 typedef WithSplitStreamingMethod_StartManagingDevice<WithSplitStreamingMethod_GetPhysicalInventory<WithSplitStreamingMethod_GetHWComponentInfo<Service > > > SplitStreamedService;
amit.ghosh93183512024-05-28 22:37:27 +02003751 typedef WithSplitStreamingMethod_StartManagingDevice<WithStreamedUnaryMethod_StopManagingDevice<WithStreamedUnaryMethod_GetManagedDevices<WithSplitStreamingMethod_GetPhysicalInventory<WithSplitStreamingMethod_GetHWComponentInfo<WithStreamedUnaryMethod_SetHWComponentInfo<WithStreamedUnaryMethod_SetLoggingEndpoint<WithStreamedUnaryMethod_GetLoggingEndpoint<WithStreamedUnaryMethod_SetMsgBusEndpoint<WithStreamedUnaryMethod_GetMsgBusEndpoint<WithStreamedUnaryMethod_GetLoggableEntities<WithStreamedUnaryMethod_SetLogLevel<WithStreamedUnaryMethod_GetLogLevel<WithStreamedUnaryMethod_HeartbeatCheck<WithStreamedUnaryMethod_RebootDevice<WithStreamedUnaryMethod_SetDmLogLevel<WithStreamedUnaryMethod_GetDmLogLevel<Service > > > > > > > > > > > > > > > > > StreamedService;
Andrea Campanellac795b7d2021-04-14 13:24:44 +02003752};
3753
3754} // namespace dmi
3755
3756
3757#endif // GRPC_dmi_2fhw_5fmanagement_5fservice_2eproto__INCLUDED