Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1 | // Generated by the gRPC C++ plugin. |
| 2 | // If you make any local change, they will be lost. |
| 3 | // source: dmi/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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 9 | #include <functional> |
| 10 | #include <grpc/impl/codegen/port_platform.h> |
| 11 | #include <grpcpp/impl/codegen/async_generic_service.h> |
| 12 | #include <grpcpp/impl/codegen/async_stream.h> |
| 13 | #include <grpcpp/impl/codegen/async_unary_call.h> |
| 14 | #include <grpcpp/impl/codegen/client_callback.h> |
| 15 | #include <grpcpp/impl/codegen/client_context.h> |
| 16 | #include <grpcpp/impl/codegen/completion_queue.h> |
| 17 | #include <grpcpp/impl/codegen/message_allocator.h> |
| 18 | #include <grpcpp/impl/codegen/method_handler.h> |
| 19 | #include <grpcpp/impl/codegen/proto_utils.h> |
| 20 | #include <grpcpp/impl/codegen/rpc_method.h> |
| 21 | #include <grpcpp/impl/codegen/server_callback.h> |
| 22 | #include <grpcpp/impl/codegen/server_callback_handlers.h> |
| 23 | #include <grpcpp/impl/codegen/server_context.h> |
| 24 | #include <grpcpp/impl/codegen/service_type.h> |
| 25 | #include <grpcpp/impl/codegen/status.h> |
| 26 | #include <grpcpp/impl/codegen/stub_options.h> |
| 27 | #include <grpcpp/impl/codegen/sync_stream.h> |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 28 | |
| 29 | namespace dmi { |
| 30 | |
| 31 | class NativeHWManagementService final { |
| 32 | public: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 33 | static constexpr char const* service_full_name() { |
| 34 | return "dmi.NativeHWManagementService"; |
| 35 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 36 | 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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 54 | 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 Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 57 | // 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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 64 | 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 Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 67 | // 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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 72 | 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 Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 75 | // 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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 82 | 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 Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 85 | // 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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 92 | 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 Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 95 | // 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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 100 | 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 Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 103 | // 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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 108 | 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 Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 111 | // 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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 116 | 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 Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 119 | // 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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 124 | 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 Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 127 | // 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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 132 | 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 Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 135 | // 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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 142 | 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 Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 145 | // 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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 152 | 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 Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 155 | // 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 Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 161 | 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 Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 164 | // 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 Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 172 | // 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 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 180 | class experimental_async_interface { |
| 181 | public: |
| 182 | virtual ~experimental_async_interface() {} |
| 183 | // Initializes context for a device and sets up required states
|
| 184 | // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
|
| 185 | // and their meanings in this context is mentioned below:
|
| 186 | // name = The unique name that needs to be assigned to this hardware;
|
| 187 | // class = COMPONENT_TYPE_UNDEFINED;
|
| 188 | // parent = nil;
|
| 189 | // alias = Optional;
|
| 190 | // asset_id = Optional;
|
| 191 | // uri = IP Address of the Hardware;
|
| 192 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 193 | virtual void StartManagingDevice(::grpc::ClientContext* context, ::dmi::ModifiableComponent* request, ::grpc::ClientReadReactor< ::dmi::StartManagingDeviceResponse>* reactor) = 0; |
| 194 | #else |
| 195 | virtual void StartManagingDevice(::grpc::ClientContext* context, ::dmi::ModifiableComponent* request, ::grpc::experimental::ClientReadReactor< ::dmi::StartManagingDeviceResponse>* reactor) = 0; |
| 196 | #endif |
| 197 | // Stop management of a device and clean up any context and caches for that device
|
| 198 | // This rpc can be called at any time, even before the StartManagingDevice operation
|
| 199 | // has completed, and should be able to cleanup.
|
| 200 | virtual void StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 201 | virtual void StopManagingDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StopManagingDeviceResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 202 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 203 | virtual void StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 204 | #else |
| 205 | virtual void StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 206 | #endif |
| 207 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 208 | virtual void StopManagingDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 209 | #else |
| 210 | virtual void StopManagingDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 211 | #endif |
| 212 | // Returns an object containing a list of devices managed by this entity
|
| 213 | virtual void GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 214 | virtual void GetManagedDevices(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ManagedDevicesResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 215 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 216 | virtual void GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 217 | #else |
| 218 | virtual void GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 219 | #endif |
| 220 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 221 | virtual void GetManagedDevices(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ManagedDevicesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 222 | #else |
| 223 | virtual void GetManagedDevices(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ManagedDevicesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 224 | #endif |
| 225 | // Get the HW inventory details of the Device
|
| 226 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 227 | virtual void GetPhysicalInventory(::grpc::ClientContext* context, ::dmi::PhysicalInventoryRequest* request, ::grpc::ClientReadReactor< ::dmi::PhysicalInventoryResponse>* reactor) = 0; |
| 228 | #else |
| 229 | virtual void GetPhysicalInventory(::grpc::ClientContext* context, ::dmi::PhysicalInventoryRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::PhysicalInventoryResponse>* reactor) = 0; |
| 230 | #endif |
| 231 | // Get the details of a particular HW component
|
| 232 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 233 | virtual void GetHWComponentInfo(::grpc::ClientContext* context, ::dmi::HWComponentInfoGetRequest* request, ::grpc::ClientReadReactor< ::dmi::HWComponentInfoGetResponse>* reactor) = 0; |
| 234 | #else |
| 235 | virtual void GetHWComponentInfo(::grpc::ClientContext* context, ::dmi::HWComponentInfoGetRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::HWComponentInfoGetResponse>* reactor) = 0; |
| 236 | #endif |
| 237 | // Sets the permissible attributes of a HW component
|
| 238 | virtual void SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 239 | virtual void SetHWComponentInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::HWComponentInfoSetResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 240 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 241 | virtual void SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 242 | #else |
| 243 | virtual void SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 244 | #endif |
| 245 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 246 | virtual void SetHWComponentInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 247 | #else |
| 248 | virtual void SetHWComponentInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 249 | #endif |
| 250 | // Sets the location to which logs need to be shipped
|
| 251 | virtual void SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 252 | virtual void SetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 253 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 254 | virtual void SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 255 | #else |
| 256 | virtual void SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 257 | #endif |
| 258 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 259 | virtual void SetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 260 | #else |
| 261 | virtual void SetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 262 | #endif |
| 263 | // Gets the configured location to which the logs are being shipped
|
| 264 | virtual void GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 265 | virtual void GetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLoggingEndpointResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 266 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 267 | virtual void GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 268 | #else |
| 269 | virtual void GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 270 | #endif |
| 271 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 272 | virtual void GetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 273 | #else |
| 274 | virtual void GetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 275 | #endif |
| 276 | // Sets the location of the Message Bus to which events and metrics are shipped
|
| 277 | virtual void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 278 | virtual void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 279 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 280 | virtual void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 281 | #else |
| 282 | virtual void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 283 | #endif |
| 284 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 285 | virtual void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 286 | #else |
| 287 | virtual void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 288 | #endif |
| 289 | // Gets the configured location to which the events and metrics are being shipped
|
| 290 | virtual void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 291 | virtual void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetMsgBusEndpointResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 292 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 293 | virtual void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 294 | #else |
| 295 | virtual void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 296 | #endif |
| 297 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 298 | virtual void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 299 | #else |
| 300 | virtual void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 301 | #endif |
| 302 | // Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
|
| 303 | // In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
|
| 304 | // interface, package etc.
|
| 305 | virtual void GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 306 | virtual void GetLoggableEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 307 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 308 | virtual void GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 309 | #else |
| 310 | virtual void GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 311 | #endif |
| 312 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 313 | virtual void GetLoggableEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 314 | #else |
| 315 | virtual void GetLoggableEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 316 | #endif |
| 317 | // Sets the log level of the device, for each given entity to a certain level.
|
| 318 | // If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
|
| 319 | // no entity in the list it's assumed that the caller wants to set that level for all the entities.
|
| 320 | virtual void SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 321 | virtual void SetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 322 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 323 | virtual void SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 324 | #else |
| 325 | virtual void SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 326 | #endif |
| 327 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 328 | virtual void SetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 329 | #else |
| 330 | virtual void SetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 331 | #endif |
| 332 | // Gets the configured log level for a certain entity on a certain device.
|
| 333 | // If no entity is specified in the request all the entities with their log level should be returned.
|
| 334 | virtual void GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 335 | virtual void GetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 336 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 337 | virtual void GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 338 | #else |
| 339 | virtual void GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 340 | #endif |
| 341 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 342 | virtual void GetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 343 | #else |
| 344 | virtual void GetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 345 | #endif |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 346 | // Performs the heartbeat check
|
| 347 | virtual void HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response, std::function<void(::grpc::Status)>) = 0; |
| 348 | virtual void HeartbeatCheck(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::Heartbeat* response, std::function<void(::grpc::Status)>) = 0; |
| 349 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 350 | virtual void HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 351 | #else |
| 352 | virtual void HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 353 | #endif |
| 354 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 355 | virtual void HeartbeatCheck(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::Heartbeat* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 356 | #else |
| 357 | virtual void HeartbeatCheck(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::Heartbeat* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 358 | #endif |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 359 | // Performs the reboot of the device
|
| 360 | virtual void RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 361 | virtual void RebootDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::RebootDeviceResponse* response, std::function<void(::grpc::Status)>) = 0; |
| 362 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 363 | virtual void RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 364 | #else |
| 365 | virtual void RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 366 | #endif |
| 367 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 368 | virtual void RebootDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::RebootDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; |
| 369 | #else |
| 370 | virtual void RebootDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::RebootDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; |
| 371 | #endif |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 372 | }; |
| 373 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 374 | typedef class experimental_async_interface async_interface; |
| 375 | #endif |
| 376 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 377 | async_interface* async() { return experimental_async(); } |
| 378 | #endif |
| 379 | virtual class experimental_async_interface* experimental_async() { return nullptr; } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 380 | private: |
| 381 | virtual ::grpc::ClientReaderInterface< ::dmi::StartManagingDeviceResponse>* StartManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request) = 0; |
| 382 | virtual ::grpc::ClientAsyncReaderInterface< ::dmi::StartManagingDeviceResponse>* AsyncStartManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq, void* tag) = 0; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 383 | virtual ::grpc::ClientAsyncReaderInterface< ::dmi::StartManagingDeviceResponse>* PrepareAsyncStartManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 384 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StopManagingDeviceResponse>* AsyncStopManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 385 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::StopManagingDeviceResponse>* PrepareAsyncStopManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 386 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::ManagedDevicesResponse>* AsyncGetManagedDevicesRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 387 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::ManagedDevicesResponse>* PrepareAsyncGetManagedDevicesRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 388 | virtual ::grpc::ClientReaderInterface< ::dmi::PhysicalInventoryResponse>* GetPhysicalInventoryRaw(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request) = 0; |
| 389 | virtual ::grpc::ClientAsyncReaderInterface< ::dmi::PhysicalInventoryResponse>* AsyncGetPhysicalInventoryRaw(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 390 | virtual ::grpc::ClientAsyncReaderInterface< ::dmi::PhysicalInventoryResponse>* PrepareAsyncGetPhysicalInventoryRaw(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 391 | virtual ::grpc::ClientReaderInterface< ::dmi::HWComponentInfoGetResponse>* GetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request) = 0; |
| 392 | virtual ::grpc::ClientAsyncReaderInterface< ::dmi::HWComponentInfoGetResponse>* AsyncGetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 393 | virtual ::grpc::ClientAsyncReaderInterface< ::dmi::HWComponentInfoGetResponse>* PrepareAsyncGetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 394 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::HWComponentInfoSetResponse>* AsyncSetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 395 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::HWComponentInfoSetResponse>* PrepareAsyncSetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 396 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>* AsyncSetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 397 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>* PrepareAsyncSetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 398 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLoggingEndpointResponse>* AsyncGetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 399 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLoggingEndpointResponse>* PrepareAsyncGetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 400 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>* AsyncSetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 401 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetRemoteEndpointResponse>* PrepareAsyncSetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 402 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetMsgBusEndpointResponse>* AsyncGetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 403 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetMsgBusEndpointResponse>* PrepareAsyncGetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 404 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>* AsyncGetLoggableEntitiesRaw(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 405 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>* PrepareAsyncGetLoggableEntitiesRaw(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 406 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetLogLevelResponse>* AsyncSetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 407 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::SetLogLevelResponse>* PrepareAsyncSetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 408 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>* AsyncGetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 409 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::GetLogLevelResponse>* PrepareAsyncGetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 410 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::Heartbeat>* AsyncHeartbeatCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; |
| 411 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::Heartbeat>* PrepareAsyncHeartbeatCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 412 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::RebootDeviceResponse>* AsyncRebootDeviceRaw(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) = 0; |
| 413 | virtual ::grpc::ClientAsyncResponseReaderInterface< ::dmi::RebootDeviceResponse>* PrepareAsyncRebootDeviceRaw(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) = 0; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 414 | }; |
| 415 | class Stub final : public StubInterface { |
| 416 | public: |
| 417 | Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); |
| 418 | std::unique_ptr< ::grpc::ClientReader< ::dmi::StartManagingDeviceResponse>> StartManagingDevice(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request) { |
| 419 | return std::unique_ptr< ::grpc::ClientReader< ::dmi::StartManagingDeviceResponse>>(StartManagingDeviceRaw(context, request)); |
| 420 | } |
| 421 | std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::StartManagingDeviceResponse>> AsyncStartManagingDevice(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq, void* tag) { |
| 422 | return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::StartManagingDeviceResponse>>(AsyncStartManagingDeviceRaw(context, request, cq, tag)); |
| 423 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 424 | std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::StartManagingDeviceResponse>> PrepareAsyncStartManagingDevice(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq) { |
| 425 | return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::StartManagingDeviceResponse>>(PrepareAsyncStartManagingDeviceRaw(context, request, cq)); |
| 426 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 427 | ::grpc::Status StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::dmi::StopManagingDeviceResponse* response) override; |
| 428 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::StopManagingDeviceResponse>> AsyncStopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) { |
| 429 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::StopManagingDeviceResponse>>(AsyncStopManagingDeviceRaw(context, request, cq)); |
| 430 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 431 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::StopManagingDeviceResponse>> PrepareAsyncStopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) { |
| 432 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::StopManagingDeviceResponse>>(PrepareAsyncStopManagingDeviceRaw(context, request, cq)); |
| 433 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 434 | ::grpc::Status GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dmi::ManagedDevicesResponse* response) override; |
| 435 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::ManagedDevicesResponse>> AsyncGetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { |
| 436 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::ManagedDevicesResponse>>(AsyncGetManagedDevicesRaw(context, request, cq)); |
| 437 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 438 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::ManagedDevicesResponse>> PrepareAsyncGetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { |
| 439 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::ManagedDevicesResponse>>(PrepareAsyncGetManagedDevicesRaw(context, request, cq)); |
| 440 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 441 | std::unique_ptr< ::grpc::ClientReader< ::dmi::PhysicalInventoryResponse>> GetPhysicalInventory(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request) { |
| 442 | return std::unique_ptr< ::grpc::ClientReader< ::dmi::PhysicalInventoryResponse>>(GetPhysicalInventoryRaw(context, request)); |
| 443 | } |
| 444 | std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::PhysicalInventoryResponse>> AsyncGetPhysicalInventory(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq, void* tag) { |
| 445 | return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::PhysicalInventoryResponse>>(AsyncGetPhysicalInventoryRaw(context, request, cq, tag)); |
| 446 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 447 | std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::PhysicalInventoryResponse>> PrepareAsyncGetPhysicalInventory(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq) { |
| 448 | return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::PhysicalInventoryResponse>>(PrepareAsyncGetPhysicalInventoryRaw(context, request, cq)); |
| 449 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 450 | std::unique_ptr< ::grpc::ClientReader< ::dmi::HWComponentInfoGetResponse>> GetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request) { |
| 451 | return std::unique_ptr< ::grpc::ClientReader< ::dmi::HWComponentInfoGetResponse>>(GetHWComponentInfoRaw(context, request)); |
| 452 | } |
| 453 | std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::HWComponentInfoGetResponse>> AsyncGetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq, void* tag) { |
| 454 | return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::HWComponentInfoGetResponse>>(AsyncGetHWComponentInfoRaw(context, request, cq, tag)); |
| 455 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 456 | std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::HWComponentInfoGetResponse>> PrepareAsyncGetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq) { |
| 457 | return std::unique_ptr< ::grpc::ClientAsyncReader< ::dmi::HWComponentInfoGetResponse>>(PrepareAsyncGetHWComponentInfoRaw(context, request, cq)); |
| 458 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 459 | ::grpc::Status SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::dmi::HWComponentInfoSetResponse* response) override; |
| 460 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::HWComponentInfoSetResponse>> AsyncSetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) { |
| 461 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::HWComponentInfoSetResponse>>(AsyncSetHWComponentInfoRaw(context, request, cq)); |
| 462 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 463 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::HWComponentInfoSetResponse>> PrepareAsyncSetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) { |
| 464 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::HWComponentInfoSetResponse>>(PrepareAsyncSetHWComponentInfoRaw(context, request, cq)); |
| 465 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 466 | ::grpc::Status SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::dmi::SetRemoteEndpointResponse* response) override; |
| 467 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>> AsyncSetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) { |
| 468 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>>(AsyncSetLoggingEndpointRaw(context, request, cq)); |
| 469 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 470 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>> PrepareAsyncSetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) { |
| 471 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>>(PrepareAsyncSetLoggingEndpointRaw(context, request, cq)); |
| 472 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 473 | ::grpc::Status GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::dmi::GetLoggingEndpointResponse* response) override; |
| 474 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLoggingEndpointResponse>> AsyncGetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) { |
| 475 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLoggingEndpointResponse>>(AsyncGetLoggingEndpointRaw(context, request, cq)); |
| 476 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 477 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLoggingEndpointResponse>> PrepareAsyncGetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) { |
| 478 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLoggingEndpointResponse>>(PrepareAsyncGetLoggingEndpointRaw(context, request, cq)); |
| 479 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 480 | ::grpc::Status SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::dmi::SetRemoteEndpointResponse* response) override; |
| 481 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>> AsyncSetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) { |
| 482 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>>(AsyncSetMsgBusEndpointRaw(context, request, cq)); |
| 483 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 484 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>> PrepareAsyncSetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) { |
| 485 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>>(PrepareAsyncSetMsgBusEndpointRaw(context, request, cq)); |
| 486 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 487 | ::grpc::Status GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dmi::GetMsgBusEndpointResponse* response) override; |
| 488 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetMsgBusEndpointResponse>> AsyncGetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { |
| 489 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetMsgBusEndpointResponse>>(AsyncGetMsgBusEndpointRaw(context, request, cq)); |
| 490 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 491 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetMsgBusEndpointResponse>> PrepareAsyncGetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { |
| 492 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetMsgBusEndpointResponse>>(PrepareAsyncGetMsgBusEndpointRaw(context, request, cq)); |
| 493 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 494 | ::grpc::Status GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::dmi::GetLogLevelResponse* response) override; |
| 495 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>> AsyncGetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) { |
| 496 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>>(AsyncGetLoggableEntitiesRaw(context, request, cq)); |
| 497 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 498 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>> PrepareAsyncGetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) { |
| 499 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>>(PrepareAsyncGetLoggableEntitiesRaw(context, request, cq)); |
| 500 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 501 | ::grpc::Status SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::dmi::SetLogLevelResponse* response) override; |
| 502 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetLogLevelResponse>> AsyncSetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) { |
| 503 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetLogLevelResponse>>(AsyncSetLogLevelRaw(context, request, cq)); |
| 504 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 505 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetLogLevelResponse>> PrepareAsyncSetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) { |
| 506 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::SetLogLevelResponse>>(PrepareAsyncSetLogLevelRaw(context, request, cq)); |
| 507 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 508 | ::grpc::Status GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::dmi::GetLogLevelResponse* response) override; |
| 509 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>> AsyncGetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) { |
| 510 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>>(AsyncGetLogLevelRaw(context, request, cq)); |
| 511 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 512 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>> PrepareAsyncGetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) { |
| 513 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>>(PrepareAsyncGetLogLevelRaw(context, request, cq)); |
| 514 | } |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 515 | ::grpc::Status HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::dmi::Heartbeat* response) override; |
| 516 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::Heartbeat>> AsyncHeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { |
| 517 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::Heartbeat>>(AsyncHeartbeatCheckRaw(context, request, cq)); |
| 518 | } |
| 519 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::Heartbeat>> PrepareAsyncHeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { |
| 520 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::Heartbeat>>(PrepareAsyncHeartbeatCheckRaw(context, request, cq)); |
| 521 | } |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 522 | ::grpc::Status RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::dmi::RebootDeviceResponse* response) override; |
| 523 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::RebootDeviceResponse>> AsyncRebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) { |
| 524 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::RebootDeviceResponse>>(AsyncRebootDeviceRaw(context, request, cq)); |
| 525 | } |
| 526 | std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::RebootDeviceResponse>> PrepareAsyncRebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) { |
| 527 | return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::dmi::RebootDeviceResponse>>(PrepareAsyncRebootDeviceRaw(context, request, cq)); |
| 528 | } |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 529 | class experimental_async final : |
| 530 | public StubInterface::experimental_async_interface { |
| 531 | public: |
| 532 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 533 | void StartManagingDevice(::grpc::ClientContext* context, ::dmi::ModifiableComponent* request, ::grpc::ClientReadReactor< ::dmi::StartManagingDeviceResponse>* reactor) override; |
| 534 | #else |
| 535 | void StartManagingDevice(::grpc::ClientContext* context, ::dmi::ModifiableComponent* request, ::grpc::experimental::ClientReadReactor< ::dmi::StartManagingDeviceResponse>* reactor) override; |
| 536 | #endif |
| 537 | void StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response, std::function<void(::grpc::Status)>) override; |
| 538 | void StopManagingDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StopManagingDeviceResponse* response, std::function<void(::grpc::Status)>) override; |
| 539 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 540 | void StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 541 | #else |
| 542 | void StopManagingDevice(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 543 | #endif |
| 544 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 545 | void StopManagingDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 546 | #else |
| 547 | void StopManagingDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::StopManagingDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 548 | #endif |
| 549 | void GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response, std::function<void(::grpc::Status)>) override; |
| 550 | void GetManagedDevices(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ManagedDevicesResponse* response, std::function<void(::grpc::Status)>) override; |
| 551 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 552 | void GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 553 | #else |
| 554 | void GetManagedDevices(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 555 | #endif |
| 556 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 557 | void GetManagedDevices(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ManagedDevicesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 558 | #else |
| 559 | void GetManagedDevices(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ManagedDevicesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 560 | #endif |
| 561 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 562 | void GetPhysicalInventory(::grpc::ClientContext* context, ::dmi::PhysicalInventoryRequest* request, ::grpc::ClientReadReactor< ::dmi::PhysicalInventoryResponse>* reactor) override; |
| 563 | #else |
| 564 | void GetPhysicalInventory(::grpc::ClientContext* context, ::dmi::PhysicalInventoryRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::PhysicalInventoryResponse>* reactor) override; |
| 565 | #endif |
| 566 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 567 | void GetHWComponentInfo(::grpc::ClientContext* context, ::dmi::HWComponentInfoGetRequest* request, ::grpc::ClientReadReactor< ::dmi::HWComponentInfoGetResponse>* reactor) override; |
| 568 | #else |
| 569 | void GetHWComponentInfo(::grpc::ClientContext* context, ::dmi::HWComponentInfoGetRequest* request, ::grpc::experimental::ClientReadReactor< ::dmi::HWComponentInfoGetResponse>* reactor) override; |
| 570 | #endif |
| 571 | void SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response, std::function<void(::grpc::Status)>) override; |
| 572 | void SetHWComponentInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::HWComponentInfoSetResponse* response, std::function<void(::grpc::Status)>) override; |
| 573 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 574 | void SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 575 | #else |
| 576 | void SetHWComponentInfo(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 577 | #endif |
| 578 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 579 | void SetHWComponentInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 580 | #else |
| 581 | void SetHWComponentInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::HWComponentInfoSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 582 | #endif |
| 583 | void SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) override; |
| 584 | void SetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) override; |
| 585 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 586 | void SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 587 | #else |
| 588 | void SetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 589 | #endif |
| 590 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 591 | void SetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 592 | #else |
| 593 | void SetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 594 | #endif |
| 595 | void GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response, std::function<void(::grpc::Status)>) override; |
| 596 | void GetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLoggingEndpointResponse* response, std::function<void(::grpc::Status)>) override; |
| 597 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 598 | void GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 599 | #else |
| 600 | void GetLoggingEndpoint(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 601 | #endif |
| 602 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 603 | void GetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 604 | #else |
| 605 | void GetLoggingEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLoggingEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 606 | #endif |
| 607 | void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) override; |
| 608 | void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, std::function<void(::grpc::Status)>) override; |
| 609 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 610 | void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 611 | #else |
| 612 | void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 613 | #endif |
| 614 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 615 | void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 616 | #else |
| 617 | void SetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetRemoteEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 618 | #endif |
| 619 | void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response, std::function<void(::grpc::Status)>) override; |
| 620 | void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetMsgBusEndpointResponse* response, std::function<void(::grpc::Status)>) override; |
| 621 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 622 | void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 623 | #else |
| 624 | void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 625 | #endif |
| 626 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 627 | void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 628 | #else |
| 629 | void GetMsgBusEndpoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetMsgBusEndpointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 630 | #endif |
| 631 | void GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) override; |
| 632 | void GetLoggableEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) override; |
| 633 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 634 | void GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 635 | #else |
| 636 | void GetLoggableEntities(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 637 | #endif |
| 638 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 639 | void GetLoggableEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 640 | #else |
| 641 | void GetLoggableEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 642 | #endif |
| 643 | void SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response, std::function<void(::grpc::Status)>) override; |
| 644 | void SetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetLogLevelResponse* response, std::function<void(::grpc::Status)>) override; |
| 645 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 646 | void SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 647 | #else |
| 648 | void SetLogLevel(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 649 | #endif |
| 650 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 651 | void SetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 652 | #else |
| 653 | void SetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::SetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 654 | #endif |
| 655 | void GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) override; |
| 656 | void GetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, std::function<void(::grpc::Status)>) override; |
| 657 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 658 | void GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 659 | #else |
| 660 | void GetLogLevel(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 661 | #endif |
| 662 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 663 | void GetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 664 | #else |
| 665 | void GetLogLevel(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::GetLogLevelResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 666 | #endif |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 667 | void HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response, std::function<void(::grpc::Status)>) override; |
| 668 | void HeartbeatCheck(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::Heartbeat* response, std::function<void(::grpc::Status)>) override; |
| 669 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 670 | void HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 671 | #else |
| 672 | void HeartbeatCheck(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 673 | #endif |
| 674 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 675 | void HeartbeatCheck(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::Heartbeat* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 676 | #else |
| 677 | void HeartbeatCheck(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::Heartbeat* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 678 | #endif |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 679 | void RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response, std::function<void(::grpc::Status)>) override; |
| 680 | void RebootDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::RebootDeviceResponse* response, std::function<void(::grpc::Status)>) override; |
| 681 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 682 | void RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 683 | #else |
| 684 | void RebootDevice(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 685 | #endif |
| 686 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 687 | void RebootDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::RebootDeviceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; |
| 688 | #else |
| 689 | void RebootDevice(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::RebootDeviceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; |
| 690 | #endif |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 691 | private: |
| 692 | friend class Stub; |
| 693 | explicit experimental_async(Stub* stub): stub_(stub) { } |
| 694 | Stub* stub() { return stub_; } |
| 695 | Stub* stub_; |
| 696 | }; |
| 697 | class experimental_async_interface* experimental_async() override { return &async_stub_; } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 698 | |
| 699 | private: |
| 700 | std::shared_ptr< ::grpc::ChannelInterface> channel_; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 701 | class experimental_async async_stub_{this}; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 702 | ::grpc::ClientReader< ::dmi::StartManagingDeviceResponse>* StartManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request) override; |
| 703 | ::grpc::ClientAsyncReader< ::dmi::StartManagingDeviceResponse>* AsyncStartManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq, void* tag) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 704 | ::grpc::ClientAsyncReader< ::dmi::StartManagingDeviceResponse>* PrepareAsyncStartManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::ModifiableComponent& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 705 | ::grpc::ClientAsyncResponseReader< ::dmi::StopManagingDeviceResponse>* AsyncStopManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 706 | ::grpc::ClientAsyncResponseReader< ::dmi::StopManagingDeviceResponse>* PrepareAsyncStopManagingDeviceRaw(::grpc::ClientContext* context, const ::dmi::StopManagingDeviceRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 707 | ::grpc::ClientAsyncResponseReader< ::dmi::ManagedDevicesResponse>* AsyncGetManagedDevicesRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 708 | ::grpc::ClientAsyncResponseReader< ::dmi::ManagedDevicesResponse>* PrepareAsyncGetManagedDevicesRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 709 | ::grpc::ClientReader< ::dmi::PhysicalInventoryResponse>* GetPhysicalInventoryRaw(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request) override; |
| 710 | ::grpc::ClientAsyncReader< ::dmi::PhysicalInventoryResponse>* AsyncGetPhysicalInventoryRaw(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 711 | ::grpc::ClientAsyncReader< ::dmi::PhysicalInventoryResponse>* PrepareAsyncGetPhysicalInventoryRaw(::grpc::ClientContext* context, const ::dmi::PhysicalInventoryRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 712 | ::grpc::ClientReader< ::dmi::HWComponentInfoGetResponse>* GetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request) override; |
| 713 | ::grpc::ClientAsyncReader< ::dmi::HWComponentInfoGetResponse>* AsyncGetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 714 | ::grpc::ClientAsyncReader< ::dmi::HWComponentInfoGetResponse>* PrepareAsyncGetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoGetRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 715 | ::grpc::ClientAsyncResponseReader< ::dmi::HWComponentInfoSetResponse>* AsyncSetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 716 | ::grpc::ClientAsyncResponseReader< ::dmi::HWComponentInfoSetResponse>* PrepareAsyncSetHWComponentInfoRaw(::grpc::ClientContext* context, const ::dmi::HWComponentInfoSetRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 717 | ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>* AsyncSetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 718 | ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>* PrepareAsyncSetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetLoggingEndpointRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 719 | ::grpc::ClientAsyncResponseReader< ::dmi::GetLoggingEndpointResponse>* AsyncGetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 720 | ::grpc::ClientAsyncResponseReader< ::dmi::GetLoggingEndpointResponse>* PrepareAsyncGetLoggingEndpointRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 721 | ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>* AsyncSetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 722 | ::grpc::ClientAsyncResponseReader< ::dmi::SetRemoteEndpointResponse>* PrepareAsyncSetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::dmi::SetMsgBusEndpointRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 723 | ::grpc::ClientAsyncResponseReader< ::dmi::GetMsgBusEndpointResponse>* AsyncGetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 724 | ::grpc::ClientAsyncResponseReader< ::dmi::GetMsgBusEndpointResponse>* PrepareAsyncGetMsgBusEndpointRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 725 | ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>* AsyncGetLoggableEntitiesRaw(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 726 | ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>* PrepareAsyncGetLoggableEntitiesRaw(::grpc::ClientContext* context, const ::dmi::GetLoggableEntitiesRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 727 | ::grpc::ClientAsyncResponseReader< ::dmi::SetLogLevelResponse>* AsyncSetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 728 | ::grpc::ClientAsyncResponseReader< ::dmi::SetLogLevelResponse>* PrepareAsyncSetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::SetLogLevelRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 729 | ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>* AsyncGetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 730 | ::grpc::ClientAsyncResponseReader< ::dmi::GetLogLevelResponse>* PrepareAsyncGetLogLevelRaw(::grpc::ClientContext* context, const ::dmi::GetLogLevelRequest& request, ::grpc::CompletionQueue* cq) override; |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 731 | ::grpc::ClientAsyncResponseReader< ::dmi::Heartbeat>* AsyncHeartbeatCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; |
| 732 | ::grpc::ClientAsyncResponseReader< ::dmi::Heartbeat>* PrepareAsyncHeartbeatCheckRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 733 | ::grpc::ClientAsyncResponseReader< ::dmi::RebootDeviceResponse>* AsyncRebootDeviceRaw(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) override; |
| 734 | ::grpc::ClientAsyncResponseReader< ::dmi::RebootDeviceResponse>* PrepareAsyncRebootDeviceRaw(::grpc::ClientContext* context, const ::dmi::RebootDeviceRequest& request, ::grpc::CompletionQueue* cq) override; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 735 | const ::grpc::internal::RpcMethod rpcmethod_StartManagingDevice_; |
| 736 | const ::grpc::internal::RpcMethod rpcmethod_StopManagingDevice_; |
| 737 | const ::grpc::internal::RpcMethod rpcmethod_GetManagedDevices_; |
| 738 | const ::grpc::internal::RpcMethod rpcmethod_GetPhysicalInventory_; |
| 739 | const ::grpc::internal::RpcMethod rpcmethod_GetHWComponentInfo_; |
| 740 | const ::grpc::internal::RpcMethod rpcmethod_SetHWComponentInfo_; |
| 741 | const ::grpc::internal::RpcMethod rpcmethod_SetLoggingEndpoint_; |
| 742 | const ::grpc::internal::RpcMethod rpcmethod_GetLoggingEndpoint_; |
| 743 | const ::grpc::internal::RpcMethod rpcmethod_SetMsgBusEndpoint_; |
| 744 | const ::grpc::internal::RpcMethod rpcmethod_GetMsgBusEndpoint_; |
| 745 | const ::grpc::internal::RpcMethod rpcmethod_GetLoggableEntities_; |
| 746 | const ::grpc::internal::RpcMethod rpcmethod_SetLogLevel_; |
| 747 | const ::grpc::internal::RpcMethod rpcmethod_GetLogLevel_; |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 748 | const ::grpc::internal::RpcMethod rpcmethod_HeartbeatCheck_; |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 749 | const ::grpc::internal::RpcMethod rpcmethod_RebootDevice_; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 750 | }; |
| 751 | static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); |
| 752 | |
| 753 | class Service : public ::grpc::Service { |
| 754 | public: |
| 755 | Service(); |
| 756 | virtual ~Service(); |
| 757 | // Initializes context for a device and sets up required states
|
| 758 | // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
|
| 759 | // and their meanings in this context is mentioned below:
|
| 760 | // name = The unique name that needs to be assigned to this hardware;
|
| 761 | // class = COMPONENT_TYPE_UNDEFINED;
|
| 762 | // parent = nil;
|
| 763 | // alias = Optional;
|
| 764 | // asset_id = Optional;
|
| 765 | // uri = IP Address of the Hardware;
|
| 766 | virtual ::grpc::Status StartManagingDevice(::grpc::ServerContext* context, const ::dmi::ModifiableComponent* request, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* writer); |
| 767 | // Stop management of a device and clean up any context and caches for that device
|
| 768 | // This rpc can be called at any time, even before the StartManagingDevice operation
|
| 769 | // has completed, and should be able to cleanup.
|
| 770 | virtual ::grpc::Status StopManagingDevice(::grpc::ServerContext* context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response); |
| 771 | // Returns an object containing a list of devices managed by this entity
|
| 772 | virtual ::grpc::Status GetManagedDevices(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response); |
| 773 | // Get the HW inventory details of the Device
|
| 774 | virtual ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* context, const ::dmi::PhysicalInventoryRequest* request, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* writer); |
| 775 | // Get the details of a particular HW component
|
| 776 | virtual ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* context, const ::dmi::HWComponentInfoGetRequest* request, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* writer); |
| 777 | // Sets the permissible attributes of a HW component
|
| 778 | virtual ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response); |
| 779 | // Sets the location to which logs need to be shipped
|
| 780 | virtual ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response); |
| 781 | // Gets the configured location to which the logs are being shipped
|
| 782 | virtual ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response); |
| 783 | // Sets the location of the Message Bus to which events and metrics are shipped
|
| 784 | virtual ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response); |
| 785 | // Gets the configured location to which the events and metrics are being shipped
|
| 786 | virtual ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response); |
| 787 | // Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
|
| 788 | // In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
|
| 789 | // interface, package etc.
|
| 790 | virtual ::grpc::Status GetLoggableEntities(::grpc::ServerContext* context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response); |
| 791 | // Sets the log level of the device, for each given entity to a certain level.
|
| 792 | // If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
|
| 793 | // no entity in the list it's assumed that the caller wants to set that level for all the entities.
|
| 794 | virtual ::grpc::Status SetLogLevel(::grpc::ServerContext* context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response); |
| 795 | // Gets the configured log level for a certain entity on a certain device.
|
| 796 | // If no entity is specified in the request all the entities with their log level should be returned.
|
| 797 | virtual ::grpc::Status GetLogLevel(::grpc::ServerContext* context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response); |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 798 | // Performs the heartbeat check
|
| 799 | virtual ::grpc::Status HeartbeatCheck(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response); |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 800 | // Performs the reboot of the device
|
| 801 | virtual ::grpc::Status RebootDevice(::grpc::ServerContext* context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 802 | }; |
| 803 | template <class BaseClass> |
| 804 | class WithAsyncMethod_StartManagingDevice : public BaseClass { |
| 805 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 806 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 807 | public: |
| 808 | WithAsyncMethod_StartManagingDevice() { |
| 809 | ::grpc::Service::MarkMethodAsync(0); |
| 810 | } |
| 811 | ~WithAsyncMethod_StartManagingDevice() override { |
| 812 | BaseClassMustBeDerivedFromService(this); |
| 813 | } |
| 814 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 815 | ::grpc::Status StartManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* /*writer*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 816 | abort(); |
| 817 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 818 | } |
| 819 | void RequestStartManagingDevice(::grpc::ServerContext* context, ::dmi::ModifiableComponent* request, ::grpc::ServerAsyncWriter< ::dmi::StartManagingDeviceResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 820 | ::grpc::Service::RequestAsyncServerStreaming(0, context, request, writer, new_call_cq, notification_cq, tag); |
| 821 | } |
| 822 | }; |
| 823 | template <class BaseClass> |
| 824 | class WithAsyncMethod_StopManagingDevice : public BaseClass { |
| 825 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 826 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 827 | public: |
| 828 | WithAsyncMethod_StopManagingDevice() { |
| 829 | ::grpc::Service::MarkMethodAsync(1); |
| 830 | } |
| 831 | ~WithAsyncMethod_StopManagingDevice() override { |
| 832 | BaseClassMustBeDerivedFromService(this); |
| 833 | } |
| 834 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 835 | ::grpc::Status StopManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 836 | abort(); |
| 837 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 838 | } |
| 839 | void RequestStopManagingDevice(::grpc::ServerContext* context, ::dmi::StopManagingDeviceRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::StopManagingDeviceResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 840 | ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); |
| 841 | } |
| 842 | }; |
| 843 | template <class BaseClass> |
| 844 | class WithAsyncMethod_GetManagedDevices : public BaseClass { |
| 845 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 846 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 847 | public: |
| 848 | WithAsyncMethod_GetManagedDevices() { |
| 849 | ::grpc::Service::MarkMethodAsync(2); |
| 850 | } |
| 851 | ~WithAsyncMethod_GetManagedDevices() override { |
| 852 | BaseClassMustBeDerivedFromService(this); |
| 853 | } |
| 854 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 855 | ::grpc::Status GetManagedDevices(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 856 | abort(); |
| 857 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 858 | } |
| 859 | 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) { |
| 860 | ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); |
| 861 | } |
| 862 | }; |
| 863 | template <class BaseClass> |
| 864 | class WithAsyncMethod_GetPhysicalInventory : public BaseClass { |
| 865 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 866 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 867 | public: |
| 868 | WithAsyncMethod_GetPhysicalInventory() { |
| 869 | ::grpc::Service::MarkMethodAsync(3); |
| 870 | } |
| 871 | ~WithAsyncMethod_GetPhysicalInventory() override { |
| 872 | BaseClassMustBeDerivedFromService(this); |
| 873 | } |
| 874 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 875 | ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* /*writer*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 876 | abort(); |
| 877 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 878 | } |
| 879 | void RequestGetPhysicalInventory(::grpc::ServerContext* context, ::dmi::PhysicalInventoryRequest* request, ::grpc::ServerAsyncWriter< ::dmi::PhysicalInventoryResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 880 | ::grpc::Service::RequestAsyncServerStreaming(3, context, request, writer, new_call_cq, notification_cq, tag); |
| 881 | } |
| 882 | }; |
| 883 | template <class BaseClass> |
| 884 | class WithAsyncMethod_GetHWComponentInfo : public BaseClass { |
| 885 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 886 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 887 | public: |
| 888 | WithAsyncMethod_GetHWComponentInfo() { |
| 889 | ::grpc::Service::MarkMethodAsync(4); |
| 890 | } |
| 891 | ~WithAsyncMethod_GetHWComponentInfo() override { |
| 892 | BaseClassMustBeDerivedFromService(this); |
| 893 | } |
| 894 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 895 | ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* /*writer*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 896 | abort(); |
| 897 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 898 | } |
| 899 | void RequestGetHWComponentInfo(::grpc::ServerContext* context, ::dmi::HWComponentInfoGetRequest* request, ::grpc::ServerAsyncWriter< ::dmi::HWComponentInfoGetResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 900 | ::grpc::Service::RequestAsyncServerStreaming(4, context, request, writer, new_call_cq, notification_cq, tag); |
| 901 | } |
| 902 | }; |
| 903 | template <class BaseClass> |
| 904 | class WithAsyncMethod_SetHWComponentInfo : public BaseClass { |
| 905 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 906 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 907 | public: |
| 908 | WithAsyncMethod_SetHWComponentInfo() { |
| 909 | ::grpc::Service::MarkMethodAsync(5); |
| 910 | } |
| 911 | ~WithAsyncMethod_SetHWComponentInfo() override { |
| 912 | BaseClassMustBeDerivedFromService(this); |
| 913 | } |
| 914 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 915 | ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 916 | abort(); |
| 917 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 918 | } |
| 919 | void RequestSetHWComponentInfo(::grpc::ServerContext* context, ::dmi::HWComponentInfoSetRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::HWComponentInfoSetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 920 | ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); |
| 921 | } |
| 922 | }; |
| 923 | template <class BaseClass> |
| 924 | class WithAsyncMethod_SetLoggingEndpoint : public BaseClass { |
| 925 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 926 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 927 | public: |
| 928 | WithAsyncMethod_SetLoggingEndpoint() { |
| 929 | ::grpc::Service::MarkMethodAsync(6); |
| 930 | } |
| 931 | ~WithAsyncMethod_SetLoggingEndpoint() override { |
| 932 | BaseClassMustBeDerivedFromService(this); |
| 933 | } |
| 934 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 935 | ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 936 | abort(); |
| 937 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 938 | } |
| 939 | void RequestSetLoggingEndpoint(::grpc::ServerContext* context, ::dmi::SetLoggingEndpointRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::SetRemoteEndpointResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 940 | ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); |
| 941 | } |
| 942 | }; |
| 943 | template <class BaseClass> |
| 944 | class WithAsyncMethod_GetLoggingEndpoint : public BaseClass { |
| 945 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 946 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 947 | public: |
| 948 | WithAsyncMethod_GetLoggingEndpoint() { |
| 949 | ::grpc::Service::MarkMethodAsync(7); |
| 950 | } |
| 951 | ~WithAsyncMethod_GetLoggingEndpoint() override { |
| 952 | BaseClassMustBeDerivedFromService(this); |
| 953 | } |
| 954 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 955 | ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 956 | abort(); |
| 957 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 958 | } |
| 959 | void RequestGetLoggingEndpoint(::grpc::ServerContext* context, ::dmi::HardwareID* request, ::grpc::ServerAsyncResponseWriter< ::dmi::GetLoggingEndpointResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 960 | ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); |
| 961 | } |
| 962 | }; |
| 963 | template <class BaseClass> |
| 964 | class WithAsyncMethod_SetMsgBusEndpoint : public BaseClass { |
| 965 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 966 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 967 | public: |
| 968 | WithAsyncMethod_SetMsgBusEndpoint() { |
| 969 | ::grpc::Service::MarkMethodAsync(8); |
| 970 | } |
| 971 | ~WithAsyncMethod_SetMsgBusEndpoint() override { |
| 972 | BaseClassMustBeDerivedFromService(this); |
| 973 | } |
| 974 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 975 | ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 976 | abort(); |
| 977 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 978 | } |
| 979 | void RequestSetMsgBusEndpoint(::grpc::ServerContext* context, ::dmi::SetMsgBusEndpointRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::SetRemoteEndpointResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 980 | ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); |
| 981 | } |
| 982 | }; |
| 983 | template <class BaseClass> |
| 984 | class WithAsyncMethod_GetMsgBusEndpoint : public BaseClass { |
| 985 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 986 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 987 | public: |
| 988 | WithAsyncMethod_GetMsgBusEndpoint() { |
| 989 | ::grpc::Service::MarkMethodAsync(9); |
| 990 | } |
| 991 | ~WithAsyncMethod_GetMsgBusEndpoint() override { |
| 992 | BaseClassMustBeDerivedFromService(this); |
| 993 | } |
| 994 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 995 | ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 996 | abort(); |
| 997 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 998 | } |
| 999 | 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) { |
| 1000 | ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); |
| 1001 | } |
| 1002 | }; |
| 1003 | template <class BaseClass> |
| 1004 | class WithAsyncMethod_GetLoggableEntities : public BaseClass { |
| 1005 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1006 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1007 | public: |
| 1008 | WithAsyncMethod_GetLoggableEntities() { |
| 1009 | ::grpc::Service::MarkMethodAsync(10); |
| 1010 | } |
| 1011 | ~WithAsyncMethod_GetLoggableEntities() override { |
| 1012 | BaseClassMustBeDerivedFromService(this); |
| 1013 | } |
| 1014 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1015 | ::grpc::Status GetLoggableEntities(::grpc::ServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1016 | abort(); |
| 1017 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1018 | } |
| 1019 | void RequestGetLoggableEntities(::grpc::ServerContext* context, ::dmi::GetLoggableEntitiesRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::GetLogLevelResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 1020 | ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); |
| 1021 | } |
| 1022 | }; |
| 1023 | template <class BaseClass> |
| 1024 | class WithAsyncMethod_SetLogLevel : public BaseClass { |
| 1025 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1026 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1027 | public: |
| 1028 | WithAsyncMethod_SetLogLevel() { |
| 1029 | ::grpc::Service::MarkMethodAsync(11); |
| 1030 | } |
| 1031 | ~WithAsyncMethod_SetLogLevel() override { |
| 1032 | BaseClassMustBeDerivedFromService(this); |
| 1033 | } |
| 1034 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1035 | ::grpc::Status SetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1036 | abort(); |
| 1037 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1038 | } |
| 1039 | void RequestSetLogLevel(::grpc::ServerContext* context, ::dmi::SetLogLevelRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::SetLogLevelResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 1040 | ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); |
| 1041 | } |
| 1042 | }; |
| 1043 | template <class BaseClass> |
| 1044 | class WithAsyncMethod_GetLogLevel : public BaseClass { |
| 1045 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1046 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1047 | public: |
| 1048 | WithAsyncMethod_GetLogLevel() { |
| 1049 | ::grpc::Service::MarkMethodAsync(12); |
| 1050 | } |
| 1051 | ~WithAsyncMethod_GetLogLevel() override { |
| 1052 | BaseClassMustBeDerivedFromService(this); |
| 1053 | } |
| 1054 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1055 | ::grpc::Status GetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1056 | abort(); |
| 1057 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1058 | } |
| 1059 | void RequestGetLogLevel(::grpc::ServerContext* context, ::dmi::GetLogLevelRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::GetLogLevelResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 1060 | ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); |
| 1061 | } |
| 1062 | }; |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 1063 | template <class BaseClass> |
| 1064 | class WithAsyncMethod_HeartbeatCheck : public BaseClass { |
| 1065 | private: |
| 1066 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1067 | public: |
| 1068 | WithAsyncMethod_HeartbeatCheck() { |
| 1069 | ::grpc::Service::MarkMethodAsync(13); |
| 1070 | } |
| 1071 | ~WithAsyncMethod_HeartbeatCheck() override { |
| 1072 | BaseClassMustBeDerivedFromService(this); |
| 1073 | } |
| 1074 | // disable synchronous version of this method |
| 1075 | ::grpc::Status HeartbeatCheck(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) override { |
| 1076 | abort(); |
| 1077 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1078 | } |
| 1079 | 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) { |
| 1080 | ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); |
| 1081 | } |
| 1082 | }; |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 1083 | template <class BaseClass> |
| 1084 | class WithAsyncMethod_RebootDevice : public BaseClass { |
| 1085 | private: |
| 1086 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1087 | public: |
| 1088 | WithAsyncMethod_RebootDevice() { |
| 1089 | ::grpc::Service::MarkMethodAsync(14); |
| 1090 | } |
| 1091 | ~WithAsyncMethod_RebootDevice() override { |
| 1092 | BaseClassMustBeDerivedFromService(this); |
| 1093 | } |
| 1094 | // disable synchronous version of this method |
| 1095 | ::grpc::Status RebootDevice(::grpc::ServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) override { |
| 1096 | abort(); |
| 1097 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1098 | } |
| 1099 | void RequestRebootDevice(::grpc::ServerContext* context, ::dmi::RebootDeviceRequest* request, ::grpc::ServerAsyncResponseWriter< ::dmi::RebootDeviceResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 1100 | ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); |
| 1101 | } |
| 1102 | }; |
| 1103 | 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<Service > > > > > > > > > > > > > > > AsyncService; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1104 | template <class BaseClass> |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1105 | class ExperimentalWithCallbackMethod_StartManagingDevice : public BaseClass { |
| 1106 | private: |
| 1107 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1108 | public: |
| 1109 | ExperimentalWithCallbackMethod_StartManagingDevice() { |
| 1110 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1111 | ::grpc::Service:: |
| 1112 | #else |
| 1113 | ::grpc::Service::experimental(). |
| 1114 | #endif |
| 1115 | MarkMethodCallback(0, |
| 1116 | new ::grpc_impl::internal::CallbackServerStreamingHandler< ::dmi::ModifiableComponent, ::dmi::StartManagingDeviceResponse>( |
| 1117 | [this]( |
| 1118 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1119 | ::grpc::CallbackServerContext* |
| 1120 | #else |
| 1121 | ::grpc::experimental::CallbackServerContext* |
| 1122 | #endif |
| 1123 | context, const ::dmi::ModifiableComponent* request) { return this->StartManagingDevice(context, request); })); |
| 1124 | } |
| 1125 | ~ExperimentalWithCallbackMethod_StartManagingDevice() override { |
| 1126 | BaseClassMustBeDerivedFromService(this); |
| 1127 | } |
| 1128 | // disable synchronous version of this method |
| 1129 | ::grpc::Status StartManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* /*writer*/) override { |
| 1130 | abort(); |
| 1131 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1132 | } |
| 1133 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1134 | virtual ::grpc::ServerWriteReactor< ::dmi::StartManagingDeviceResponse>* StartManagingDevice( |
| 1135 | ::grpc::CallbackServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/) |
| 1136 | #else |
| 1137 | virtual ::grpc::experimental::ServerWriteReactor< ::dmi::StartManagingDeviceResponse>* StartManagingDevice( |
| 1138 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/) |
| 1139 | #endif |
| 1140 | { return nullptr; } |
| 1141 | }; |
| 1142 | template <class BaseClass> |
| 1143 | class ExperimentalWithCallbackMethod_StopManagingDevice : public BaseClass { |
| 1144 | private: |
| 1145 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1146 | public: |
| 1147 | ExperimentalWithCallbackMethod_StopManagingDevice() { |
| 1148 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1149 | ::grpc::Service:: |
| 1150 | #else |
| 1151 | ::grpc::Service::experimental(). |
| 1152 | #endif |
| 1153 | MarkMethodCallback(1, |
| 1154 | new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::StopManagingDeviceRequest, ::dmi::StopManagingDeviceResponse>( |
| 1155 | [this]( |
| 1156 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1157 | ::grpc::CallbackServerContext* |
| 1158 | #else |
| 1159 | ::grpc::experimental::CallbackServerContext* |
| 1160 | #endif |
| 1161 | context, const ::dmi::StopManagingDeviceRequest* request, ::dmi::StopManagingDeviceResponse* response) { return this->StopManagingDevice(context, request, response); }));} |
| 1162 | void SetMessageAllocatorFor_StopManagingDevice( |
| 1163 | ::grpc::experimental::MessageAllocator< ::dmi::StopManagingDeviceRequest, ::dmi::StopManagingDeviceResponse>* allocator) { |
| 1164 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1165 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); |
| 1166 | #else |
| 1167 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); |
| 1168 | #endif |
| 1169 | static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::StopManagingDeviceRequest, ::dmi::StopManagingDeviceResponse>*>(handler) |
| 1170 | ->SetMessageAllocator(allocator); |
| 1171 | } |
| 1172 | ~ExperimentalWithCallbackMethod_StopManagingDevice() override { |
| 1173 | BaseClassMustBeDerivedFromService(this); |
| 1174 | } |
| 1175 | // disable synchronous version of this method |
| 1176 | ::grpc::Status StopManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) override { |
| 1177 | abort(); |
| 1178 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1179 | } |
| 1180 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1181 | virtual ::grpc::ServerUnaryReactor* StopManagingDevice( |
| 1182 | ::grpc::CallbackServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) |
| 1183 | #else |
| 1184 | virtual ::grpc::experimental::ServerUnaryReactor* StopManagingDevice( |
| 1185 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) |
| 1186 | #endif |
| 1187 | { return nullptr; } |
| 1188 | }; |
| 1189 | template <class BaseClass> |
| 1190 | class ExperimentalWithCallbackMethod_GetManagedDevices : public BaseClass { |
| 1191 | private: |
| 1192 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1193 | public: |
| 1194 | ExperimentalWithCallbackMethod_GetManagedDevices() { |
| 1195 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1196 | ::grpc::Service:: |
| 1197 | #else |
| 1198 | ::grpc::Service::experimental(). |
| 1199 | #endif |
| 1200 | MarkMethodCallback(2, |
| 1201 | new ::grpc_impl::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::dmi::ManagedDevicesResponse>( |
| 1202 | [this]( |
| 1203 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1204 | ::grpc::CallbackServerContext* |
| 1205 | #else |
| 1206 | ::grpc::experimental::CallbackServerContext* |
| 1207 | #endif |
| 1208 | context, const ::google::protobuf::Empty* request, ::dmi::ManagedDevicesResponse* response) { return this->GetManagedDevices(context, request, response); }));} |
| 1209 | void SetMessageAllocatorFor_GetManagedDevices( |
| 1210 | ::grpc::experimental::MessageAllocator< ::google::protobuf::Empty, ::dmi::ManagedDevicesResponse>* allocator) { |
| 1211 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1212 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); |
| 1213 | #else |
| 1214 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); |
| 1215 | #endif |
| 1216 | static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::dmi::ManagedDevicesResponse>*>(handler) |
| 1217 | ->SetMessageAllocator(allocator); |
| 1218 | } |
| 1219 | ~ExperimentalWithCallbackMethod_GetManagedDevices() override { |
| 1220 | BaseClassMustBeDerivedFromService(this); |
| 1221 | } |
| 1222 | // disable synchronous version of this method |
| 1223 | ::grpc::Status GetManagedDevices(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) override { |
| 1224 | abort(); |
| 1225 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1226 | } |
| 1227 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1228 | virtual ::grpc::ServerUnaryReactor* GetManagedDevices( |
| 1229 | ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) |
| 1230 | #else |
| 1231 | virtual ::grpc::experimental::ServerUnaryReactor* GetManagedDevices( |
| 1232 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) |
| 1233 | #endif |
| 1234 | { return nullptr; } |
| 1235 | }; |
| 1236 | template <class BaseClass> |
| 1237 | class ExperimentalWithCallbackMethod_GetPhysicalInventory : public BaseClass { |
| 1238 | private: |
| 1239 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1240 | public: |
| 1241 | ExperimentalWithCallbackMethod_GetPhysicalInventory() { |
| 1242 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1243 | ::grpc::Service:: |
| 1244 | #else |
| 1245 | ::grpc::Service::experimental(). |
| 1246 | #endif |
| 1247 | MarkMethodCallback(3, |
| 1248 | new ::grpc_impl::internal::CallbackServerStreamingHandler< ::dmi::PhysicalInventoryRequest, ::dmi::PhysicalInventoryResponse>( |
| 1249 | [this]( |
| 1250 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1251 | ::grpc::CallbackServerContext* |
| 1252 | #else |
| 1253 | ::grpc::experimental::CallbackServerContext* |
| 1254 | #endif |
| 1255 | context, const ::dmi::PhysicalInventoryRequest* request) { return this->GetPhysicalInventory(context, request); })); |
| 1256 | } |
| 1257 | ~ExperimentalWithCallbackMethod_GetPhysicalInventory() override { |
| 1258 | BaseClassMustBeDerivedFromService(this); |
| 1259 | } |
| 1260 | // disable synchronous version of this method |
| 1261 | ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* /*writer*/) override { |
| 1262 | abort(); |
| 1263 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1264 | } |
| 1265 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1266 | virtual ::grpc::ServerWriteReactor< ::dmi::PhysicalInventoryResponse>* GetPhysicalInventory( |
| 1267 | ::grpc::CallbackServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/) |
| 1268 | #else |
| 1269 | virtual ::grpc::experimental::ServerWriteReactor< ::dmi::PhysicalInventoryResponse>* GetPhysicalInventory( |
| 1270 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/) |
| 1271 | #endif |
| 1272 | { return nullptr; } |
| 1273 | }; |
| 1274 | template <class BaseClass> |
| 1275 | class ExperimentalWithCallbackMethod_GetHWComponentInfo : public BaseClass { |
| 1276 | private: |
| 1277 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1278 | public: |
| 1279 | ExperimentalWithCallbackMethod_GetHWComponentInfo() { |
| 1280 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1281 | ::grpc::Service:: |
| 1282 | #else |
| 1283 | ::grpc::Service::experimental(). |
| 1284 | #endif |
| 1285 | MarkMethodCallback(4, |
| 1286 | new ::grpc_impl::internal::CallbackServerStreamingHandler< ::dmi::HWComponentInfoGetRequest, ::dmi::HWComponentInfoGetResponse>( |
| 1287 | [this]( |
| 1288 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1289 | ::grpc::CallbackServerContext* |
| 1290 | #else |
| 1291 | ::grpc::experimental::CallbackServerContext* |
| 1292 | #endif |
| 1293 | context, const ::dmi::HWComponentInfoGetRequest* request) { return this->GetHWComponentInfo(context, request); })); |
| 1294 | } |
| 1295 | ~ExperimentalWithCallbackMethod_GetHWComponentInfo() override { |
| 1296 | BaseClassMustBeDerivedFromService(this); |
| 1297 | } |
| 1298 | // disable synchronous version of this method |
| 1299 | ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* /*writer*/) override { |
| 1300 | abort(); |
| 1301 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1302 | } |
| 1303 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1304 | virtual ::grpc::ServerWriteReactor< ::dmi::HWComponentInfoGetResponse>* GetHWComponentInfo( |
| 1305 | ::grpc::CallbackServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/) |
| 1306 | #else |
| 1307 | virtual ::grpc::experimental::ServerWriteReactor< ::dmi::HWComponentInfoGetResponse>* GetHWComponentInfo( |
| 1308 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/) |
| 1309 | #endif |
| 1310 | { return nullptr; } |
| 1311 | }; |
| 1312 | template <class BaseClass> |
| 1313 | class ExperimentalWithCallbackMethod_SetHWComponentInfo : public BaseClass { |
| 1314 | private: |
| 1315 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1316 | public: |
| 1317 | ExperimentalWithCallbackMethod_SetHWComponentInfo() { |
| 1318 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1319 | ::grpc::Service:: |
| 1320 | #else |
| 1321 | ::grpc::Service::experimental(). |
| 1322 | #endif |
| 1323 | MarkMethodCallback(5, |
| 1324 | new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::HWComponentInfoSetRequest, ::dmi::HWComponentInfoSetResponse>( |
| 1325 | [this]( |
| 1326 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1327 | ::grpc::CallbackServerContext* |
| 1328 | #else |
| 1329 | ::grpc::experimental::CallbackServerContext* |
| 1330 | #endif |
| 1331 | context, const ::dmi::HWComponentInfoSetRequest* request, ::dmi::HWComponentInfoSetResponse* response) { return this->SetHWComponentInfo(context, request, response); }));} |
| 1332 | void SetMessageAllocatorFor_SetHWComponentInfo( |
| 1333 | ::grpc::experimental::MessageAllocator< ::dmi::HWComponentInfoSetRequest, ::dmi::HWComponentInfoSetResponse>* allocator) { |
| 1334 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1335 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); |
| 1336 | #else |
| 1337 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); |
| 1338 | #endif |
| 1339 | static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::HWComponentInfoSetRequest, ::dmi::HWComponentInfoSetResponse>*>(handler) |
| 1340 | ->SetMessageAllocator(allocator); |
| 1341 | } |
| 1342 | ~ExperimentalWithCallbackMethod_SetHWComponentInfo() override { |
| 1343 | BaseClassMustBeDerivedFromService(this); |
| 1344 | } |
| 1345 | // disable synchronous version of this method |
| 1346 | ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) override { |
| 1347 | abort(); |
| 1348 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1349 | } |
| 1350 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1351 | virtual ::grpc::ServerUnaryReactor* SetHWComponentInfo( |
| 1352 | ::grpc::CallbackServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) |
| 1353 | #else |
| 1354 | virtual ::grpc::experimental::ServerUnaryReactor* SetHWComponentInfo( |
| 1355 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) |
| 1356 | #endif |
| 1357 | { return nullptr; } |
| 1358 | }; |
| 1359 | template <class BaseClass> |
| 1360 | class ExperimentalWithCallbackMethod_SetLoggingEndpoint : public BaseClass { |
| 1361 | private: |
| 1362 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1363 | public: |
| 1364 | ExperimentalWithCallbackMethod_SetLoggingEndpoint() { |
| 1365 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1366 | ::grpc::Service:: |
| 1367 | #else |
| 1368 | ::grpc::Service::experimental(). |
| 1369 | #endif |
| 1370 | MarkMethodCallback(6, |
| 1371 | new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetLoggingEndpointRequest, ::dmi::SetRemoteEndpointResponse>( |
| 1372 | [this]( |
| 1373 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1374 | ::grpc::CallbackServerContext* |
| 1375 | #else |
| 1376 | ::grpc::experimental::CallbackServerContext* |
| 1377 | #endif |
| 1378 | context, const ::dmi::SetLoggingEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response) { return this->SetLoggingEndpoint(context, request, response); }));} |
| 1379 | void SetMessageAllocatorFor_SetLoggingEndpoint( |
| 1380 | ::grpc::experimental::MessageAllocator< ::dmi::SetLoggingEndpointRequest, ::dmi::SetRemoteEndpointResponse>* allocator) { |
| 1381 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1382 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); |
| 1383 | #else |
| 1384 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); |
| 1385 | #endif |
| 1386 | static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetLoggingEndpointRequest, ::dmi::SetRemoteEndpointResponse>*>(handler) |
| 1387 | ->SetMessageAllocator(allocator); |
| 1388 | } |
| 1389 | ~ExperimentalWithCallbackMethod_SetLoggingEndpoint() override { |
| 1390 | BaseClassMustBeDerivedFromService(this); |
| 1391 | } |
| 1392 | // disable synchronous version of this method |
| 1393 | ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override { |
| 1394 | abort(); |
| 1395 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1396 | } |
| 1397 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1398 | virtual ::grpc::ServerUnaryReactor* SetLoggingEndpoint( |
| 1399 | ::grpc::CallbackServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) |
| 1400 | #else |
| 1401 | virtual ::grpc::experimental::ServerUnaryReactor* SetLoggingEndpoint( |
| 1402 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) |
| 1403 | #endif |
| 1404 | { return nullptr; } |
| 1405 | }; |
| 1406 | template <class BaseClass> |
| 1407 | class ExperimentalWithCallbackMethod_GetLoggingEndpoint : public BaseClass { |
| 1408 | private: |
| 1409 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1410 | public: |
| 1411 | ExperimentalWithCallbackMethod_GetLoggingEndpoint() { |
| 1412 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1413 | ::grpc::Service:: |
| 1414 | #else |
| 1415 | ::grpc::Service::experimental(). |
| 1416 | #endif |
| 1417 | MarkMethodCallback(7, |
| 1418 | new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::HardwareID, ::dmi::GetLoggingEndpointResponse>( |
| 1419 | [this]( |
| 1420 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1421 | ::grpc::CallbackServerContext* |
| 1422 | #else |
| 1423 | ::grpc::experimental::CallbackServerContext* |
| 1424 | #endif |
| 1425 | context, const ::dmi::HardwareID* request, ::dmi::GetLoggingEndpointResponse* response) { return this->GetLoggingEndpoint(context, request, response); }));} |
| 1426 | void SetMessageAllocatorFor_GetLoggingEndpoint( |
| 1427 | ::grpc::experimental::MessageAllocator< ::dmi::HardwareID, ::dmi::GetLoggingEndpointResponse>* allocator) { |
| 1428 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1429 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); |
| 1430 | #else |
| 1431 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); |
| 1432 | #endif |
| 1433 | static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::HardwareID, ::dmi::GetLoggingEndpointResponse>*>(handler) |
| 1434 | ->SetMessageAllocator(allocator); |
| 1435 | } |
| 1436 | ~ExperimentalWithCallbackMethod_GetLoggingEndpoint() override { |
| 1437 | BaseClassMustBeDerivedFromService(this); |
| 1438 | } |
| 1439 | // disable synchronous version of this method |
| 1440 | ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) override { |
| 1441 | abort(); |
| 1442 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1443 | } |
| 1444 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1445 | virtual ::grpc::ServerUnaryReactor* GetLoggingEndpoint( |
| 1446 | ::grpc::CallbackServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) |
| 1447 | #else |
| 1448 | virtual ::grpc::experimental::ServerUnaryReactor* GetLoggingEndpoint( |
| 1449 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) |
| 1450 | #endif |
| 1451 | { return nullptr; } |
| 1452 | }; |
| 1453 | template <class BaseClass> |
| 1454 | class ExperimentalWithCallbackMethod_SetMsgBusEndpoint : public BaseClass { |
| 1455 | private: |
| 1456 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1457 | public: |
| 1458 | ExperimentalWithCallbackMethod_SetMsgBusEndpoint() { |
| 1459 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1460 | ::grpc::Service:: |
| 1461 | #else |
| 1462 | ::grpc::Service::experimental(). |
| 1463 | #endif |
| 1464 | MarkMethodCallback(8, |
| 1465 | new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetMsgBusEndpointRequest, ::dmi::SetRemoteEndpointResponse>( |
| 1466 | [this]( |
| 1467 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1468 | ::grpc::CallbackServerContext* |
| 1469 | #else |
| 1470 | ::grpc::experimental::CallbackServerContext* |
| 1471 | #endif |
| 1472 | context, const ::dmi::SetMsgBusEndpointRequest* request, ::dmi::SetRemoteEndpointResponse* response) { return this->SetMsgBusEndpoint(context, request, response); }));} |
| 1473 | void SetMessageAllocatorFor_SetMsgBusEndpoint( |
| 1474 | ::grpc::experimental::MessageAllocator< ::dmi::SetMsgBusEndpointRequest, ::dmi::SetRemoteEndpointResponse>* allocator) { |
| 1475 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1476 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); |
| 1477 | #else |
| 1478 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8); |
| 1479 | #endif |
| 1480 | static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetMsgBusEndpointRequest, ::dmi::SetRemoteEndpointResponse>*>(handler) |
| 1481 | ->SetMessageAllocator(allocator); |
| 1482 | } |
| 1483 | ~ExperimentalWithCallbackMethod_SetMsgBusEndpoint() override { |
| 1484 | BaseClassMustBeDerivedFromService(this); |
| 1485 | } |
| 1486 | // disable synchronous version of this method |
| 1487 | ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override { |
| 1488 | abort(); |
| 1489 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1490 | } |
| 1491 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1492 | virtual ::grpc::ServerUnaryReactor* SetMsgBusEndpoint( |
| 1493 | ::grpc::CallbackServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) |
| 1494 | #else |
| 1495 | virtual ::grpc::experimental::ServerUnaryReactor* SetMsgBusEndpoint( |
| 1496 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) |
| 1497 | #endif |
| 1498 | { return nullptr; } |
| 1499 | }; |
| 1500 | template <class BaseClass> |
| 1501 | class ExperimentalWithCallbackMethod_GetMsgBusEndpoint : public BaseClass { |
| 1502 | private: |
| 1503 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1504 | public: |
| 1505 | ExperimentalWithCallbackMethod_GetMsgBusEndpoint() { |
| 1506 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1507 | ::grpc::Service:: |
| 1508 | #else |
| 1509 | ::grpc::Service::experimental(). |
| 1510 | #endif |
| 1511 | MarkMethodCallback(9, |
| 1512 | new ::grpc_impl::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::dmi::GetMsgBusEndpointResponse>( |
| 1513 | [this]( |
| 1514 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1515 | ::grpc::CallbackServerContext* |
| 1516 | #else |
| 1517 | ::grpc::experimental::CallbackServerContext* |
| 1518 | #endif |
| 1519 | context, const ::google::protobuf::Empty* request, ::dmi::GetMsgBusEndpointResponse* response) { return this->GetMsgBusEndpoint(context, request, response); }));} |
| 1520 | void SetMessageAllocatorFor_GetMsgBusEndpoint( |
| 1521 | ::grpc::experimental::MessageAllocator< ::google::protobuf::Empty, ::dmi::GetMsgBusEndpointResponse>* allocator) { |
| 1522 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1523 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); |
| 1524 | #else |
| 1525 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(9); |
| 1526 | #endif |
| 1527 | static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::dmi::GetMsgBusEndpointResponse>*>(handler) |
| 1528 | ->SetMessageAllocator(allocator); |
| 1529 | } |
| 1530 | ~ExperimentalWithCallbackMethod_GetMsgBusEndpoint() override { |
| 1531 | BaseClassMustBeDerivedFromService(this); |
| 1532 | } |
| 1533 | // disable synchronous version of this method |
| 1534 | ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) override { |
| 1535 | abort(); |
| 1536 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1537 | } |
| 1538 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1539 | virtual ::grpc::ServerUnaryReactor* GetMsgBusEndpoint( |
| 1540 | ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) |
| 1541 | #else |
| 1542 | virtual ::grpc::experimental::ServerUnaryReactor* GetMsgBusEndpoint( |
| 1543 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) |
| 1544 | #endif |
| 1545 | { return nullptr; } |
| 1546 | }; |
| 1547 | template <class BaseClass> |
| 1548 | class ExperimentalWithCallbackMethod_GetLoggableEntities : public BaseClass { |
| 1549 | private: |
| 1550 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1551 | public: |
| 1552 | ExperimentalWithCallbackMethod_GetLoggableEntities() { |
| 1553 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1554 | ::grpc::Service:: |
| 1555 | #else |
| 1556 | ::grpc::Service::experimental(). |
| 1557 | #endif |
| 1558 | MarkMethodCallback(10, |
| 1559 | new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::GetLoggableEntitiesRequest, ::dmi::GetLogLevelResponse>( |
| 1560 | [this]( |
| 1561 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1562 | ::grpc::CallbackServerContext* |
| 1563 | #else |
| 1564 | ::grpc::experimental::CallbackServerContext* |
| 1565 | #endif |
| 1566 | context, const ::dmi::GetLoggableEntitiesRequest* request, ::dmi::GetLogLevelResponse* response) { return this->GetLoggableEntities(context, request, response); }));} |
| 1567 | void SetMessageAllocatorFor_GetLoggableEntities( |
| 1568 | ::grpc::experimental::MessageAllocator< ::dmi::GetLoggableEntitiesRequest, ::dmi::GetLogLevelResponse>* allocator) { |
| 1569 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1570 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); |
| 1571 | #else |
| 1572 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(10); |
| 1573 | #endif |
| 1574 | static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::GetLoggableEntitiesRequest, ::dmi::GetLogLevelResponse>*>(handler) |
| 1575 | ->SetMessageAllocator(allocator); |
| 1576 | } |
| 1577 | ~ExperimentalWithCallbackMethod_GetLoggableEntities() override { |
| 1578 | BaseClassMustBeDerivedFromService(this); |
| 1579 | } |
| 1580 | // disable synchronous version of this method |
| 1581 | ::grpc::Status GetLoggableEntities(::grpc::ServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override { |
| 1582 | abort(); |
| 1583 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1584 | } |
| 1585 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1586 | virtual ::grpc::ServerUnaryReactor* GetLoggableEntities( |
| 1587 | ::grpc::CallbackServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) |
| 1588 | #else |
| 1589 | virtual ::grpc::experimental::ServerUnaryReactor* GetLoggableEntities( |
| 1590 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) |
| 1591 | #endif |
| 1592 | { return nullptr; } |
| 1593 | }; |
| 1594 | template <class BaseClass> |
| 1595 | class ExperimentalWithCallbackMethod_SetLogLevel : public BaseClass { |
| 1596 | private: |
| 1597 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1598 | public: |
| 1599 | ExperimentalWithCallbackMethod_SetLogLevel() { |
| 1600 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1601 | ::grpc::Service:: |
| 1602 | #else |
| 1603 | ::grpc::Service::experimental(). |
| 1604 | #endif |
| 1605 | MarkMethodCallback(11, |
| 1606 | new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetLogLevelRequest, ::dmi::SetLogLevelResponse>( |
| 1607 | [this]( |
| 1608 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1609 | ::grpc::CallbackServerContext* |
| 1610 | #else |
| 1611 | ::grpc::experimental::CallbackServerContext* |
| 1612 | #endif |
| 1613 | context, const ::dmi::SetLogLevelRequest* request, ::dmi::SetLogLevelResponse* response) { return this->SetLogLevel(context, request, response); }));} |
| 1614 | void SetMessageAllocatorFor_SetLogLevel( |
| 1615 | ::grpc::experimental::MessageAllocator< ::dmi::SetLogLevelRequest, ::dmi::SetLogLevelResponse>* allocator) { |
| 1616 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1617 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); |
| 1618 | #else |
| 1619 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(11); |
| 1620 | #endif |
| 1621 | static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::SetLogLevelRequest, ::dmi::SetLogLevelResponse>*>(handler) |
| 1622 | ->SetMessageAllocator(allocator); |
| 1623 | } |
| 1624 | ~ExperimentalWithCallbackMethod_SetLogLevel() override { |
| 1625 | BaseClassMustBeDerivedFromService(this); |
| 1626 | } |
| 1627 | // disable synchronous version of this method |
| 1628 | ::grpc::Status SetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) override { |
| 1629 | abort(); |
| 1630 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1631 | } |
| 1632 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1633 | virtual ::grpc::ServerUnaryReactor* SetLogLevel( |
| 1634 | ::grpc::CallbackServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) |
| 1635 | #else |
| 1636 | virtual ::grpc::experimental::ServerUnaryReactor* SetLogLevel( |
| 1637 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) |
| 1638 | #endif |
| 1639 | { return nullptr; } |
| 1640 | }; |
| 1641 | template <class BaseClass> |
| 1642 | class ExperimentalWithCallbackMethod_GetLogLevel : public BaseClass { |
| 1643 | private: |
| 1644 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1645 | public: |
| 1646 | ExperimentalWithCallbackMethod_GetLogLevel() { |
| 1647 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1648 | ::grpc::Service:: |
| 1649 | #else |
| 1650 | ::grpc::Service::experimental(). |
| 1651 | #endif |
| 1652 | MarkMethodCallback(12, |
| 1653 | new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::GetLogLevelRequest, ::dmi::GetLogLevelResponse>( |
| 1654 | [this]( |
| 1655 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1656 | ::grpc::CallbackServerContext* |
| 1657 | #else |
| 1658 | ::grpc::experimental::CallbackServerContext* |
| 1659 | #endif |
| 1660 | context, const ::dmi::GetLogLevelRequest* request, ::dmi::GetLogLevelResponse* response) { return this->GetLogLevel(context, request, response); }));} |
| 1661 | void SetMessageAllocatorFor_GetLogLevel( |
| 1662 | ::grpc::experimental::MessageAllocator< ::dmi::GetLogLevelRequest, ::dmi::GetLogLevelResponse>* allocator) { |
| 1663 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1664 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); |
| 1665 | #else |
| 1666 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(12); |
| 1667 | #endif |
| 1668 | static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::GetLogLevelRequest, ::dmi::GetLogLevelResponse>*>(handler) |
| 1669 | ->SetMessageAllocator(allocator); |
| 1670 | } |
| 1671 | ~ExperimentalWithCallbackMethod_GetLogLevel() override { |
| 1672 | BaseClassMustBeDerivedFromService(this); |
| 1673 | } |
| 1674 | // disable synchronous version of this method |
| 1675 | ::grpc::Status GetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override { |
| 1676 | abort(); |
| 1677 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1678 | } |
| 1679 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1680 | virtual ::grpc::ServerUnaryReactor* GetLogLevel( |
| 1681 | ::grpc::CallbackServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) |
| 1682 | #else |
| 1683 | virtual ::grpc::experimental::ServerUnaryReactor* GetLogLevel( |
| 1684 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) |
| 1685 | #endif |
| 1686 | { return nullptr; } |
| 1687 | }; |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 1688 | template <class BaseClass> |
| 1689 | class ExperimentalWithCallbackMethod_HeartbeatCheck : public BaseClass { |
| 1690 | private: |
| 1691 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1692 | public: |
| 1693 | ExperimentalWithCallbackMethod_HeartbeatCheck() { |
| 1694 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1695 | ::grpc::Service:: |
| 1696 | #else |
| 1697 | ::grpc::Service::experimental(). |
| 1698 | #endif |
| 1699 | MarkMethodCallback(13, |
| 1700 | new ::grpc_impl::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::dmi::Heartbeat>( |
| 1701 | [this]( |
| 1702 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1703 | ::grpc::CallbackServerContext* |
| 1704 | #else |
| 1705 | ::grpc::experimental::CallbackServerContext* |
| 1706 | #endif |
| 1707 | context, const ::google::protobuf::Empty* request, ::dmi::Heartbeat* response) { return this->HeartbeatCheck(context, request, response); }));} |
| 1708 | void SetMessageAllocatorFor_HeartbeatCheck( |
| 1709 | ::grpc::experimental::MessageAllocator< ::google::protobuf::Empty, ::dmi::Heartbeat>* allocator) { |
| 1710 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1711 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13); |
| 1712 | #else |
| 1713 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(13); |
| 1714 | #endif |
| 1715 | static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::dmi::Heartbeat>*>(handler) |
| 1716 | ->SetMessageAllocator(allocator); |
| 1717 | } |
| 1718 | ~ExperimentalWithCallbackMethod_HeartbeatCheck() override { |
| 1719 | BaseClassMustBeDerivedFromService(this); |
| 1720 | } |
| 1721 | // disable synchronous version of this method |
| 1722 | ::grpc::Status HeartbeatCheck(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) override { |
| 1723 | abort(); |
| 1724 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1725 | } |
| 1726 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1727 | virtual ::grpc::ServerUnaryReactor* HeartbeatCheck( |
| 1728 | ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) |
| 1729 | #else |
| 1730 | virtual ::grpc::experimental::ServerUnaryReactor* HeartbeatCheck( |
| 1731 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) |
| 1732 | #endif |
| 1733 | { return nullptr; } |
| 1734 | }; |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 1735 | template <class BaseClass> |
| 1736 | class ExperimentalWithCallbackMethod_RebootDevice : public BaseClass { |
| 1737 | private: |
| 1738 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 1739 | public: |
| 1740 | ExperimentalWithCallbackMethod_RebootDevice() { |
| 1741 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1742 | ::grpc::Service:: |
| 1743 | #else |
| 1744 | ::grpc::Service::experimental(). |
| 1745 | #endif |
| 1746 | MarkMethodCallback(14, |
| 1747 | new ::grpc_impl::internal::CallbackUnaryHandler< ::dmi::RebootDeviceRequest, ::dmi::RebootDeviceResponse>( |
| 1748 | [this]( |
| 1749 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1750 | ::grpc::CallbackServerContext* |
| 1751 | #else |
| 1752 | ::grpc::experimental::CallbackServerContext* |
| 1753 | #endif |
| 1754 | context, const ::dmi::RebootDeviceRequest* request, ::dmi::RebootDeviceResponse* response) { return this->RebootDevice(context, request, response); }));} |
| 1755 | void SetMessageAllocatorFor_RebootDevice( |
| 1756 | ::grpc::experimental::MessageAllocator< ::dmi::RebootDeviceRequest, ::dmi::RebootDeviceResponse>* allocator) { |
| 1757 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1758 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14); |
| 1759 | #else |
| 1760 | ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(14); |
| 1761 | #endif |
| 1762 | static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::dmi::RebootDeviceRequest, ::dmi::RebootDeviceResponse>*>(handler) |
| 1763 | ->SetMessageAllocator(allocator); |
| 1764 | } |
| 1765 | ~ExperimentalWithCallbackMethod_RebootDevice() override { |
| 1766 | BaseClassMustBeDerivedFromService(this); |
| 1767 | } |
| 1768 | // disable synchronous version of this method |
| 1769 | ::grpc::Status RebootDevice(::grpc::ServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) override { |
| 1770 | abort(); |
| 1771 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1772 | } |
| 1773 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 1774 | virtual ::grpc::ServerUnaryReactor* RebootDevice( |
| 1775 | ::grpc::CallbackServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) |
| 1776 | #else |
| 1777 | virtual ::grpc::experimental::ServerUnaryReactor* RebootDevice( |
| 1778 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) |
| 1779 | #endif |
| 1780 | { return nullptr; } |
| 1781 | }; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1782 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 1783 | 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<Service > > > > > > > > > > > > > > > CallbackService; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1784 | #endif |
| 1785 | |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 1786 | 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<Service > > > > > > > > > > > > > > > ExperimentalCallbackService; |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1787 | template <class BaseClass> |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1788 | class WithGenericMethod_StartManagingDevice : public BaseClass { |
| 1789 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1790 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1791 | public: |
| 1792 | WithGenericMethod_StartManagingDevice() { |
| 1793 | ::grpc::Service::MarkMethodGeneric(0); |
| 1794 | } |
| 1795 | ~WithGenericMethod_StartManagingDevice() override { |
| 1796 | BaseClassMustBeDerivedFromService(this); |
| 1797 | } |
| 1798 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1799 | ::grpc::Status StartManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* /*writer*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1800 | abort(); |
| 1801 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1802 | } |
| 1803 | }; |
| 1804 | template <class BaseClass> |
| 1805 | class WithGenericMethod_StopManagingDevice : public BaseClass { |
| 1806 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1807 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1808 | public: |
| 1809 | WithGenericMethod_StopManagingDevice() { |
| 1810 | ::grpc::Service::MarkMethodGeneric(1); |
| 1811 | } |
| 1812 | ~WithGenericMethod_StopManagingDevice() override { |
| 1813 | BaseClassMustBeDerivedFromService(this); |
| 1814 | } |
| 1815 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1816 | ::grpc::Status StopManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1817 | abort(); |
| 1818 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1819 | } |
| 1820 | }; |
| 1821 | template <class BaseClass> |
| 1822 | class WithGenericMethod_GetManagedDevices : public BaseClass { |
| 1823 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1824 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1825 | public: |
| 1826 | WithGenericMethod_GetManagedDevices() { |
| 1827 | ::grpc::Service::MarkMethodGeneric(2); |
| 1828 | } |
| 1829 | ~WithGenericMethod_GetManagedDevices() override { |
| 1830 | BaseClassMustBeDerivedFromService(this); |
| 1831 | } |
| 1832 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1833 | ::grpc::Status GetManagedDevices(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1834 | abort(); |
| 1835 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1836 | } |
| 1837 | }; |
| 1838 | template <class BaseClass> |
| 1839 | class WithGenericMethod_GetPhysicalInventory : public BaseClass { |
| 1840 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1841 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1842 | public: |
| 1843 | WithGenericMethod_GetPhysicalInventory() { |
| 1844 | ::grpc::Service::MarkMethodGeneric(3); |
| 1845 | } |
| 1846 | ~WithGenericMethod_GetPhysicalInventory() override { |
| 1847 | BaseClassMustBeDerivedFromService(this); |
| 1848 | } |
| 1849 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1850 | ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* /*writer*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1851 | abort(); |
| 1852 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1853 | } |
| 1854 | }; |
| 1855 | template <class BaseClass> |
| 1856 | class WithGenericMethod_GetHWComponentInfo : public BaseClass { |
| 1857 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1858 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1859 | public: |
| 1860 | WithGenericMethod_GetHWComponentInfo() { |
| 1861 | ::grpc::Service::MarkMethodGeneric(4); |
| 1862 | } |
| 1863 | ~WithGenericMethod_GetHWComponentInfo() override { |
| 1864 | BaseClassMustBeDerivedFromService(this); |
| 1865 | } |
| 1866 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1867 | ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* /*writer*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1868 | abort(); |
| 1869 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1870 | } |
| 1871 | }; |
| 1872 | template <class BaseClass> |
| 1873 | class WithGenericMethod_SetHWComponentInfo : public BaseClass { |
| 1874 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1875 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1876 | public: |
| 1877 | WithGenericMethod_SetHWComponentInfo() { |
| 1878 | ::grpc::Service::MarkMethodGeneric(5); |
| 1879 | } |
| 1880 | ~WithGenericMethod_SetHWComponentInfo() override { |
| 1881 | BaseClassMustBeDerivedFromService(this); |
| 1882 | } |
| 1883 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1884 | ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1885 | abort(); |
| 1886 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1887 | } |
| 1888 | }; |
| 1889 | template <class BaseClass> |
| 1890 | class WithGenericMethod_SetLoggingEndpoint : public BaseClass { |
| 1891 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1892 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1893 | public: |
| 1894 | WithGenericMethod_SetLoggingEndpoint() { |
| 1895 | ::grpc::Service::MarkMethodGeneric(6); |
| 1896 | } |
| 1897 | ~WithGenericMethod_SetLoggingEndpoint() override { |
| 1898 | BaseClassMustBeDerivedFromService(this); |
| 1899 | } |
| 1900 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1901 | ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1902 | abort(); |
| 1903 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1904 | } |
| 1905 | }; |
| 1906 | template <class BaseClass> |
| 1907 | class WithGenericMethod_GetLoggingEndpoint : public BaseClass { |
| 1908 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1909 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1910 | public: |
| 1911 | WithGenericMethod_GetLoggingEndpoint() { |
| 1912 | ::grpc::Service::MarkMethodGeneric(7); |
| 1913 | } |
| 1914 | ~WithGenericMethod_GetLoggingEndpoint() override { |
| 1915 | BaseClassMustBeDerivedFromService(this); |
| 1916 | } |
| 1917 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1918 | ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1919 | abort(); |
| 1920 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1921 | } |
| 1922 | }; |
| 1923 | template <class BaseClass> |
| 1924 | class WithGenericMethod_SetMsgBusEndpoint : public BaseClass { |
| 1925 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1926 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1927 | public: |
| 1928 | WithGenericMethod_SetMsgBusEndpoint() { |
| 1929 | ::grpc::Service::MarkMethodGeneric(8); |
| 1930 | } |
| 1931 | ~WithGenericMethod_SetMsgBusEndpoint() override { |
| 1932 | BaseClassMustBeDerivedFromService(this); |
| 1933 | } |
| 1934 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1935 | ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1936 | abort(); |
| 1937 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1938 | } |
| 1939 | }; |
| 1940 | template <class BaseClass> |
| 1941 | class WithGenericMethod_GetMsgBusEndpoint : public BaseClass { |
| 1942 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1943 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1944 | public: |
| 1945 | WithGenericMethod_GetMsgBusEndpoint() { |
| 1946 | ::grpc::Service::MarkMethodGeneric(9); |
| 1947 | } |
| 1948 | ~WithGenericMethod_GetMsgBusEndpoint() override { |
| 1949 | BaseClassMustBeDerivedFromService(this); |
| 1950 | } |
| 1951 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1952 | ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1953 | abort(); |
| 1954 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1955 | } |
| 1956 | }; |
| 1957 | template <class BaseClass> |
| 1958 | class WithGenericMethod_GetLoggableEntities : public BaseClass { |
| 1959 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1960 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1961 | public: |
| 1962 | WithGenericMethod_GetLoggableEntities() { |
| 1963 | ::grpc::Service::MarkMethodGeneric(10); |
| 1964 | } |
| 1965 | ~WithGenericMethod_GetLoggableEntities() override { |
| 1966 | BaseClassMustBeDerivedFromService(this); |
| 1967 | } |
| 1968 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1969 | ::grpc::Status GetLoggableEntities(::grpc::ServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1970 | abort(); |
| 1971 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1972 | } |
| 1973 | }; |
| 1974 | template <class BaseClass> |
| 1975 | class WithGenericMethod_SetLogLevel : public BaseClass { |
| 1976 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1977 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1978 | public: |
| 1979 | WithGenericMethod_SetLogLevel() { |
| 1980 | ::grpc::Service::MarkMethodGeneric(11); |
| 1981 | } |
| 1982 | ~WithGenericMethod_SetLogLevel() override { |
| 1983 | BaseClassMustBeDerivedFromService(this); |
| 1984 | } |
| 1985 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1986 | ::grpc::Status SetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1987 | abort(); |
| 1988 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 1989 | } |
| 1990 | }; |
| 1991 | template <class BaseClass> |
| 1992 | class WithGenericMethod_GetLogLevel : public BaseClass { |
| 1993 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 1994 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1995 | public: |
| 1996 | WithGenericMethod_GetLogLevel() { |
| 1997 | ::grpc::Service::MarkMethodGeneric(12); |
| 1998 | } |
| 1999 | ~WithGenericMethod_GetLogLevel() override { |
| 2000 | BaseClassMustBeDerivedFromService(this); |
| 2001 | } |
| 2002 | // disable synchronous version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 2003 | ::grpc::Status GetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 2004 | abort(); |
| 2005 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2006 | } |
| 2007 | }; |
| 2008 | template <class BaseClass> |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 2009 | class WithGenericMethod_HeartbeatCheck : public BaseClass { |
| 2010 | private: |
| 2011 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2012 | public: |
| 2013 | WithGenericMethod_HeartbeatCheck() { |
| 2014 | ::grpc::Service::MarkMethodGeneric(13); |
| 2015 | } |
| 2016 | ~WithGenericMethod_HeartbeatCheck() override { |
| 2017 | BaseClassMustBeDerivedFromService(this); |
| 2018 | } |
| 2019 | // disable synchronous version of this method |
| 2020 | ::grpc::Status HeartbeatCheck(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) override { |
| 2021 | abort(); |
| 2022 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2023 | } |
| 2024 | }; |
| 2025 | template <class BaseClass> |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 2026 | class WithGenericMethod_RebootDevice : public BaseClass { |
| 2027 | private: |
| 2028 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2029 | public: |
| 2030 | WithGenericMethod_RebootDevice() { |
| 2031 | ::grpc::Service::MarkMethodGeneric(14); |
| 2032 | } |
| 2033 | ~WithGenericMethod_RebootDevice() override { |
| 2034 | BaseClassMustBeDerivedFromService(this); |
| 2035 | } |
| 2036 | // disable synchronous version of this method |
| 2037 | ::grpc::Status RebootDevice(::grpc::ServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) override { |
| 2038 | abort(); |
| 2039 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2040 | } |
| 2041 | }; |
| 2042 | template <class BaseClass> |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 2043 | class WithRawMethod_StartManagingDevice : public BaseClass { |
| 2044 | private: |
| 2045 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2046 | public: |
| 2047 | WithRawMethod_StartManagingDevice() { |
| 2048 | ::grpc::Service::MarkMethodRaw(0); |
| 2049 | } |
| 2050 | ~WithRawMethod_StartManagingDevice() override { |
| 2051 | BaseClassMustBeDerivedFromService(this); |
| 2052 | } |
| 2053 | // disable synchronous version of this method |
| 2054 | ::grpc::Status StartManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* /*writer*/) override { |
| 2055 | abort(); |
| 2056 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2057 | } |
| 2058 | void RequestStartManagingDevice(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2059 | ::grpc::Service::RequestAsyncServerStreaming(0, context, request, writer, new_call_cq, notification_cq, tag); |
| 2060 | } |
| 2061 | }; |
| 2062 | template <class BaseClass> |
| 2063 | class WithRawMethod_StopManagingDevice : public BaseClass { |
| 2064 | private: |
| 2065 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2066 | public: |
| 2067 | WithRawMethod_StopManagingDevice() { |
| 2068 | ::grpc::Service::MarkMethodRaw(1); |
| 2069 | } |
| 2070 | ~WithRawMethod_StopManagingDevice() override { |
| 2071 | BaseClassMustBeDerivedFromService(this); |
| 2072 | } |
| 2073 | // disable synchronous version of this method |
| 2074 | ::grpc::Status StopManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) override { |
| 2075 | abort(); |
| 2076 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2077 | } |
| 2078 | void RequestStopManagingDevice(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2079 | ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); |
| 2080 | } |
| 2081 | }; |
| 2082 | template <class BaseClass> |
| 2083 | class WithRawMethod_GetManagedDevices : public BaseClass { |
| 2084 | private: |
| 2085 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2086 | public: |
| 2087 | WithRawMethod_GetManagedDevices() { |
| 2088 | ::grpc::Service::MarkMethodRaw(2); |
| 2089 | } |
| 2090 | ~WithRawMethod_GetManagedDevices() override { |
| 2091 | BaseClassMustBeDerivedFromService(this); |
| 2092 | } |
| 2093 | // disable synchronous version of this method |
| 2094 | ::grpc::Status GetManagedDevices(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) override { |
| 2095 | abort(); |
| 2096 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2097 | } |
| 2098 | void RequestGetManagedDevices(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2099 | ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); |
| 2100 | } |
| 2101 | }; |
| 2102 | template <class BaseClass> |
| 2103 | class WithRawMethod_GetPhysicalInventory : public BaseClass { |
| 2104 | private: |
| 2105 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2106 | public: |
| 2107 | WithRawMethod_GetPhysicalInventory() { |
| 2108 | ::grpc::Service::MarkMethodRaw(3); |
| 2109 | } |
| 2110 | ~WithRawMethod_GetPhysicalInventory() override { |
| 2111 | BaseClassMustBeDerivedFromService(this); |
| 2112 | } |
| 2113 | // disable synchronous version of this method |
| 2114 | ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* /*writer*/) override { |
| 2115 | abort(); |
| 2116 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2117 | } |
| 2118 | void RequestGetPhysicalInventory(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2119 | ::grpc::Service::RequestAsyncServerStreaming(3, context, request, writer, new_call_cq, notification_cq, tag); |
| 2120 | } |
| 2121 | }; |
| 2122 | template <class BaseClass> |
| 2123 | class WithRawMethod_GetHWComponentInfo : public BaseClass { |
| 2124 | private: |
| 2125 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2126 | public: |
| 2127 | WithRawMethod_GetHWComponentInfo() { |
| 2128 | ::grpc::Service::MarkMethodRaw(4); |
| 2129 | } |
| 2130 | ~WithRawMethod_GetHWComponentInfo() override { |
| 2131 | BaseClassMustBeDerivedFromService(this); |
| 2132 | } |
| 2133 | // disable synchronous version of this method |
| 2134 | ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* /*writer*/) override { |
| 2135 | abort(); |
| 2136 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2137 | } |
| 2138 | void RequestGetHWComponentInfo(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2139 | ::grpc::Service::RequestAsyncServerStreaming(4, context, request, writer, new_call_cq, notification_cq, tag); |
| 2140 | } |
| 2141 | }; |
| 2142 | template <class BaseClass> |
| 2143 | class WithRawMethod_SetHWComponentInfo : public BaseClass { |
| 2144 | private: |
| 2145 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2146 | public: |
| 2147 | WithRawMethod_SetHWComponentInfo() { |
| 2148 | ::grpc::Service::MarkMethodRaw(5); |
| 2149 | } |
| 2150 | ~WithRawMethod_SetHWComponentInfo() override { |
| 2151 | BaseClassMustBeDerivedFromService(this); |
| 2152 | } |
| 2153 | // disable synchronous version of this method |
| 2154 | ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) override { |
| 2155 | abort(); |
| 2156 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2157 | } |
| 2158 | void RequestSetHWComponentInfo(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2159 | ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); |
| 2160 | } |
| 2161 | }; |
| 2162 | template <class BaseClass> |
| 2163 | class WithRawMethod_SetLoggingEndpoint : public BaseClass { |
| 2164 | private: |
| 2165 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2166 | public: |
| 2167 | WithRawMethod_SetLoggingEndpoint() { |
| 2168 | ::grpc::Service::MarkMethodRaw(6); |
| 2169 | } |
| 2170 | ~WithRawMethod_SetLoggingEndpoint() override { |
| 2171 | BaseClassMustBeDerivedFromService(this); |
| 2172 | } |
| 2173 | // disable synchronous version of this method |
| 2174 | ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override { |
| 2175 | abort(); |
| 2176 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2177 | } |
| 2178 | void RequestSetLoggingEndpoint(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2179 | ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); |
| 2180 | } |
| 2181 | }; |
| 2182 | template <class BaseClass> |
| 2183 | class WithRawMethod_GetLoggingEndpoint : public BaseClass { |
| 2184 | private: |
| 2185 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2186 | public: |
| 2187 | WithRawMethod_GetLoggingEndpoint() { |
| 2188 | ::grpc::Service::MarkMethodRaw(7); |
| 2189 | } |
| 2190 | ~WithRawMethod_GetLoggingEndpoint() override { |
| 2191 | BaseClassMustBeDerivedFromService(this); |
| 2192 | } |
| 2193 | // disable synchronous version of this method |
| 2194 | ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) override { |
| 2195 | abort(); |
| 2196 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2197 | } |
| 2198 | void RequestGetLoggingEndpoint(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2199 | ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); |
| 2200 | } |
| 2201 | }; |
| 2202 | template <class BaseClass> |
| 2203 | class WithRawMethod_SetMsgBusEndpoint : public BaseClass { |
| 2204 | private: |
| 2205 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2206 | public: |
| 2207 | WithRawMethod_SetMsgBusEndpoint() { |
| 2208 | ::grpc::Service::MarkMethodRaw(8); |
| 2209 | } |
| 2210 | ~WithRawMethod_SetMsgBusEndpoint() override { |
| 2211 | BaseClassMustBeDerivedFromService(this); |
| 2212 | } |
| 2213 | // disable synchronous version of this method |
| 2214 | ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override { |
| 2215 | abort(); |
| 2216 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2217 | } |
| 2218 | void RequestSetMsgBusEndpoint(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2219 | ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); |
| 2220 | } |
| 2221 | }; |
| 2222 | template <class BaseClass> |
| 2223 | class WithRawMethod_GetMsgBusEndpoint : public BaseClass { |
| 2224 | private: |
| 2225 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2226 | public: |
| 2227 | WithRawMethod_GetMsgBusEndpoint() { |
| 2228 | ::grpc::Service::MarkMethodRaw(9); |
| 2229 | } |
| 2230 | ~WithRawMethod_GetMsgBusEndpoint() override { |
| 2231 | BaseClassMustBeDerivedFromService(this); |
| 2232 | } |
| 2233 | // disable synchronous version of this method |
| 2234 | ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) override { |
| 2235 | abort(); |
| 2236 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2237 | } |
| 2238 | void RequestGetMsgBusEndpoint(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2239 | ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); |
| 2240 | } |
| 2241 | }; |
| 2242 | template <class BaseClass> |
| 2243 | class WithRawMethod_GetLoggableEntities : public BaseClass { |
| 2244 | private: |
| 2245 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2246 | public: |
| 2247 | WithRawMethod_GetLoggableEntities() { |
| 2248 | ::grpc::Service::MarkMethodRaw(10); |
| 2249 | } |
| 2250 | ~WithRawMethod_GetLoggableEntities() override { |
| 2251 | BaseClassMustBeDerivedFromService(this); |
| 2252 | } |
| 2253 | // disable synchronous version of this method |
| 2254 | ::grpc::Status GetLoggableEntities(::grpc::ServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override { |
| 2255 | abort(); |
| 2256 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2257 | } |
| 2258 | void RequestGetLoggableEntities(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2259 | ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); |
| 2260 | } |
| 2261 | }; |
| 2262 | template <class BaseClass> |
| 2263 | class WithRawMethod_SetLogLevel : public BaseClass { |
| 2264 | private: |
| 2265 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2266 | public: |
| 2267 | WithRawMethod_SetLogLevel() { |
| 2268 | ::grpc::Service::MarkMethodRaw(11); |
| 2269 | } |
| 2270 | ~WithRawMethod_SetLogLevel() override { |
| 2271 | BaseClassMustBeDerivedFromService(this); |
| 2272 | } |
| 2273 | // disable synchronous version of this method |
| 2274 | ::grpc::Status SetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) override { |
| 2275 | abort(); |
| 2276 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2277 | } |
| 2278 | void RequestSetLogLevel(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2279 | ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); |
| 2280 | } |
| 2281 | }; |
| 2282 | template <class BaseClass> |
| 2283 | class WithRawMethod_GetLogLevel : public BaseClass { |
| 2284 | private: |
| 2285 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2286 | public: |
| 2287 | WithRawMethod_GetLogLevel() { |
| 2288 | ::grpc::Service::MarkMethodRaw(12); |
| 2289 | } |
| 2290 | ~WithRawMethod_GetLogLevel() override { |
| 2291 | BaseClassMustBeDerivedFromService(this); |
| 2292 | } |
| 2293 | // disable synchronous version of this method |
| 2294 | ::grpc::Status GetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override { |
| 2295 | abort(); |
| 2296 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2297 | } |
| 2298 | void RequestGetLogLevel(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2299 | ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); |
| 2300 | } |
| 2301 | }; |
| 2302 | template <class BaseClass> |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 2303 | class WithRawMethod_HeartbeatCheck : public BaseClass { |
| 2304 | private: |
| 2305 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2306 | public: |
| 2307 | WithRawMethod_HeartbeatCheck() { |
| 2308 | ::grpc::Service::MarkMethodRaw(13); |
| 2309 | } |
| 2310 | ~WithRawMethod_HeartbeatCheck() override { |
| 2311 | BaseClassMustBeDerivedFromService(this); |
| 2312 | } |
| 2313 | // disable synchronous version of this method |
| 2314 | ::grpc::Status HeartbeatCheck(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) override { |
| 2315 | abort(); |
| 2316 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2317 | } |
| 2318 | void RequestHeartbeatCheck(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2319 | ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); |
| 2320 | } |
| 2321 | }; |
| 2322 | template <class BaseClass> |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 2323 | class WithRawMethod_RebootDevice : public BaseClass { |
| 2324 | private: |
| 2325 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2326 | public: |
| 2327 | WithRawMethod_RebootDevice() { |
| 2328 | ::grpc::Service::MarkMethodRaw(14); |
| 2329 | } |
| 2330 | ~WithRawMethod_RebootDevice() override { |
| 2331 | BaseClassMustBeDerivedFromService(this); |
| 2332 | } |
| 2333 | // disable synchronous version of this method |
| 2334 | ::grpc::Status RebootDevice(::grpc::ServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) override { |
| 2335 | abort(); |
| 2336 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2337 | } |
| 2338 | void RequestRebootDevice(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
| 2339 | ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); |
| 2340 | } |
| 2341 | }; |
| 2342 | template <class BaseClass> |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 2343 | class ExperimentalWithRawCallbackMethod_StartManagingDevice : public BaseClass { |
| 2344 | private: |
| 2345 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2346 | public: |
| 2347 | ExperimentalWithRawCallbackMethod_StartManagingDevice() { |
| 2348 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2349 | ::grpc::Service:: |
| 2350 | #else |
| 2351 | ::grpc::Service::experimental(). |
| 2352 | #endif |
| 2353 | MarkMethodRawCallback(0, |
| 2354 | new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2355 | [this]( |
| 2356 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2357 | ::grpc::CallbackServerContext* |
| 2358 | #else |
| 2359 | ::grpc::experimental::CallbackServerContext* |
| 2360 | #endif |
| 2361 | context, const::grpc::ByteBuffer* request) { return this->StartManagingDevice(context, request); })); |
| 2362 | } |
| 2363 | ~ExperimentalWithRawCallbackMethod_StartManagingDevice() override { |
| 2364 | BaseClassMustBeDerivedFromService(this); |
| 2365 | } |
| 2366 | // disable synchronous version of this method |
| 2367 | ::grpc::Status StartManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* /*writer*/) override { |
| 2368 | abort(); |
| 2369 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2370 | } |
| 2371 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2372 | virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* StartManagingDevice( |
| 2373 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) |
| 2374 | #else |
| 2375 | virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* StartManagingDevice( |
| 2376 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) |
| 2377 | #endif |
| 2378 | { return nullptr; } |
| 2379 | }; |
| 2380 | template <class BaseClass> |
| 2381 | class ExperimentalWithRawCallbackMethod_StopManagingDevice : public BaseClass { |
| 2382 | private: |
| 2383 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2384 | public: |
| 2385 | ExperimentalWithRawCallbackMethod_StopManagingDevice() { |
| 2386 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2387 | ::grpc::Service:: |
| 2388 | #else |
| 2389 | ::grpc::Service::experimental(). |
| 2390 | #endif |
| 2391 | MarkMethodRawCallback(1, |
| 2392 | new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2393 | [this]( |
| 2394 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2395 | ::grpc::CallbackServerContext* |
| 2396 | #else |
| 2397 | ::grpc::experimental::CallbackServerContext* |
| 2398 | #endif |
| 2399 | context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->StopManagingDevice(context, request, response); })); |
| 2400 | } |
| 2401 | ~ExperimentalWithRawCallbackMethod_StopManagingDevice() override { |
| 2402 | BaseClassMustBeDerivedFromService(this); |
| 2403 | } |
| 2404 | // disable synchronous version of this method |
| 2405 | ::grpc::Status StopManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) override { |
| 2406 | abort(); |
| 2407 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2408 | } |
| 2409 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2410 | virtual ::grpc::ServerUnaryReactor* StopManagingDevice( |
| 2411 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2412 | #else |
| 2413 | virtual ::grpc::experimental::ServerUnaryReactor* StopManagingDevice( |
| 2414 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2415 | #endif |
| 2416 | { return nullptr; } |
| 2417 | }; |
| 2418 | template <class BaseClass> |
| 2419 | class ExperimentalWithRawCallbackMethod_GetManagedDevices : public BaseClass { |
| 2420 | private: |
| 2421 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2422 | public: |
| 2423 | ExperimentalWithRawCallbackMethod_GetManagedDevices() { |
| 2424 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2425 | ::grpc::Service:: |
| 2426 | #else |
| 2427 | ::grpc::Service::experimental(). |
| 2428 | #endif |
| 2429 | MarkMethodRawCallback(2, |
| 2430 | new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2431 | [this]( |
| 2432 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2433 | ::grpc::CallbackServerContext* |
| 2434 | #else |
| 2435 | ::grpc::experimental::CallbackServerContext* |
| 2436 | #endif |
| 2437 | context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetManagedDevices(context, request, response); })); |
| 2438 | } |
| 2439 | ~ExperimentalWithRawCallbackMethod_GetManagedDevices() override { |
| 2440 | BaseClassMustBeDerivedFromService(this); |
| 2441 | } |
| 2442 | // disable synchronous version of this method |
| 2443 | ::grpc::Status GetManagedDevices(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) override { |
| 2444 | abort(); |
| 2445 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2446 | } |
| 2447 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2448 | virtual ::grpc::ServerUnaryReactor* GetManagedDevices( |
| 2449 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2450 | #else |
| 2451 | virtual ::grpc::experimental::ServerUnaryReactor* GetManagedDevices( |
| 2452 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2453 | #endif |
| 2454 | { return nullptr; } |
| 2455 | }; |
| 2456 | template <class BaseClass> |
| 2457 | class ExperimentalWithRawCallbackMethod_GetPhysicalInventory : public BaseClass { |
| 2458 | private: |
| 2459 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2460 | public: |
| 2461 | ExperimentalWithRawCallbackMethod_GetPhysicalInventory() { |
| 2462 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2463 | ::grpc::Service:: |
| 2464 | #else |
| 2465 | ::grpc::Service::experimental(). |
| 2466 | #endif |
| 2467 | MarkMethodRawCallback(3, |
| 2468 | new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2469 | [this]( |
| 2470 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2471 | ::grpc::CallbackServerContext* |
| 2472 | #else |
| 2473 | ::grpc::experimental::CallbackServerContext* |
| 2474 | #endif |
| 2475 | context, const::grpc::ByteBuffer* request) { return this->GetPhysicalInventory(context, request); })); |
| 2476 | } |
| 2477 | ~ExperimentalWithRawCallbackMethod_GetPhysicalInventory() override { |
| 2478 | BaseClassMustBeDerivedFromService(this); |
| 2479 | } |
| 2480 | // disable synchronous version of this method |
| 2481 | ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* /*writer*/) override { |
| 2482 | abort(); |
| 2483 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2484 | } |
| 2485 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2486 | virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* GetPhysicalInventory( |
| 2487 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) |
| 2488 | #else |
| 2489 | virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* GetPhysicalInventory( |
| 2490 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) |
| 2491 | #endif |
| 2492 | { return nullptr; } |
| 2493 | }; |
| 2494 | template <class BaseClass> |
| 2495 | class ExperimentalWithRawCallbackMethod_GetHWComponentInfo : public BaseClass { |
| 2496 | private: |
| 2497 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2498 | public: |
| 2499 | ExperimentalWithRawCallbackMethod_GetHWComponentInfo() { |
| 2500 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2501 | ::grpc::Service:: |
| 2502 | #else |
| 2503 | ::grpc::Service::experimental(). |
| 2504 | #endif |
| 2505 | MarkMethodRawCallback(4, |
| 2506 | new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2507 | [this]( |
| 2508 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2509 | ::grpc::CallbackServerContext* |
| 2510 | #else |
| 2511 | ::grpc::experimental::CallbackServerContext* |
| 2512 | #endif |
| 2513 | context, const::grpc::ByteBuffer* request) { return this->GetHWComponentInfo(context, request); })); |
| 2514 | } |
| 2515 | ~ExperimentalWithRawCallbackMethod_GetHWComponentInfo() override { |
| 2516 | BaseClassMustBeDerivedFromService(this); |
| 2517 | } |
| 2518 | // disable synchronous version of this method |
| 2519 | ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* /*writer*/) override { |
| 2520 | abort(); |
| 2521 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2522 | } |
| 2523 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2524 | virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* GetHWComponentInfo( |
| 2525 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) |
| 2526 | #else |
| 2527 | virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* GetHWComponentInfo( |
| 2528 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) |
| 2529 | #endif |
| 2530 | { return nullptr; } |
| 2531 | }; |
| 2532 | template <class BaseClass> |
| 2533 | class ExperimentalWithRawCallbackMethod_SetHWComponentInfo : public BaseClass { |
| 2534 | private: |
| 2535 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2536 | public: |
| 2537 | ExperimentalWithRawCallbackMethod_SetHWComponentInfo() { |
| 2538 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2539 | ::grpc::Service:: |
| 2540 | #else |
| 2541 | ::grpc::Service::experimental(). |
| 2542 | #endif |
| 2543 | MarkMethodRawCallback(5, |
| 2544 | new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2545 | [this]( |
| 2546 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2547 | ::grpc::CallbackServerContext* |
| 2548 | #else |
| 2549 | ::grpc::experimental::CallbackServerContext* |
| 2550 | #endif |
| 2551 | context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetHWComponentInfo(context, request, response); })); |
| 2552 | } |
| 2553 | ~ExperimentalWithRawCallbackMethod_SetHWComponentInfo() override { |
| 2554 | BaseClassMustBeDerivedFromService(this); |
| 2555 | } |
| 2556 | // disable synchronous version of this method |
| 2557 | ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) override { |
| 2558 | abort(); |
| 2559 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2560 | } |
| 2561 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2562 | virtual ::grpc::ServerUnaryReactor* SetHWComponentInfo( |
| 2563 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2564 | #else |
| 2565 | virtual ::grpc::experimental::ServerUnaryReactor* SetHWComponentInfo( |
| 2566 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2567 | #endif |
| 2568 | { return nullptr; } |
| 2569 | }; |
| 2570 | template <class BaseClass> |
| 2571 | class ExperimentalWithRawCallbackMethod_SetLoggingEndpoint : public BaseClass { |
| 2572 | private: |
| 2573 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2574 | public: |
| 2575 | ExperimentalWithRawCallbackMethod_SetLoggingEndpoint() { |
| 2576 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2577 | ::grpc::Service:: |
| 2578 | #else |
| 2579 | ::grpc::Service::experimental(). |
| 2580 | #endif |
| 2581 | MarkMethodRawCallback(6, |
| 2582 | new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2583 | [this]( |
| 2584 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2585 | ::grpc::CallbackServerContext* |
| 2586 | #else |
| 2587 | ::grpc::experimental::CallbackServerContext* |
| 2588 | #endif |
| 2589 | context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetLoggingEndpoint(context, request, response); })); |
| 2590 | } |
| 2591 | ~ExperimentalWithRawCallbackMethod_SetLoggingEndpoint() override { |
| 2592 | BaseClassMustBeDerivedFromService(this); |
| 2593 | } |
| 2594 | // disable synchronous version of this method |
| 2595 | ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override { |
| 2596 | abort(); |
| 2597 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2598 | } |
| 2599 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2600 | virtual ::grpc::ServerUnaryReactor* SetLoggingEndpoint( |
| 2601 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2602 | #else |
| 2603 | virtual ::grpc::experimental::ServerUnaryReactor* SetLoggingEndpoint( |
| 2604 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2605 | #endif |
| 2606 | { return nullptr; } |
| 2607 | }; |
| 2608 | template <class BaseClass> |
| 2609 | class ExperimentalWithRawCallbackMethod_GetLoggingEndpoint : public BaseClass { |
| 2610 | private: |
| 2611 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2612 | public: |
| 2613 | ExperimentalWithRawCallbackMethod_GetLoggingEndpoint() { |
| 2614 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2615 | ::grpc::Service:: |
| 2616 | #else |
| 2617 | ::grpc::Service::experimental(). |
| 2618 | #endif |
| 2619 | MarkMethodRawCallback(7, |
| 2620 | new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2621 | [this]( |
| 2622 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2623 | ::grpc::CallbackServerContext* |
| 2624 | #else |
| 2625 | ::grpc::experimental::CallbackServerContext* |
| 2626 | #endif |
| 2627 | context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLoggingEndpoint(context, request, response); })); |
| 2628 | } |
| 2629 | ~ExperimentalWithRawCallbackMethod_GetLoggingEndpoint() override { |
| 2630 | BaseClassMustBeDerivedFromService(this); |
| 2631 | } |
| 2632 | // disable synchronous version of this method |
| 2633 | ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) override { |
| 2634 | abort(); |
| 2635 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2636 | } |
| 2637 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2638 | virtual ::grpc::ServerUnaryReactor* GetLoggingEndpoint( |
| 2639 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2640 | #else |
| 2641 | virtual ::grpc::experimental::ServerUnaryReactor* GetLoggingEndpoint( |
| 2642 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2643 | #endif |
| 2644 | { return nullptr; } |
| 2645 | }; |
| 2646 | template <class BaseClass> |
| 2647 | class ExperimentalWithRawCallbackMethod_SetMsgBusEndpoint : public BaseClass { |
| 2648 | private: |
| 2649 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2650 | public: |
| 2651 | ExperimentalWithRawCallbackMethod_SetMsgBusEndpoint() { |
| 2652 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2653 | ::grpc::Service:: |
| 2654 | #else |
| 2655 | ::grpc::Service::experimental(). |
| 2656 | #endif |
| 2657 | MarkMethodRawCallback(8, |
| 2658 | new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2659 | [this]( |
| 2660 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2661 | ::grpc::CallbackServerContext* |
| 2662 | #else |
| 2663 | ::grpc::experimental::CallbackServerContext* |
| 2664 | #endif |
| 2665 | context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetMsgBusEndpoint(context, request, response); })); |
| 2666 | } |
| 2667 | ~ExperimentalWithRawCallbackMethod_SetMsgBusEndpoint() override { |
| 2668 | BaseClassMustBeDerivedFromService(this); |
| 2669 | } |
| 2670 | // disable synchronous version of this method |
| 2671 | ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override { |
| 2672 | abort(); |
| 2673 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2674 | } |
| 2675 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2676 | virtual ::grpc::ServerUnaryReactor* SetMsgBusEndpoint( |
| 2677 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2678 | #else |
| 2679 | virtual ::grpc::experimental::ServerUnaryReactor* SetMsgBusEndpoint( |
| 2680 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2681 | #endif |
| 2682 | { return nullptr; } |
| 2683 | }; |
| 2684 | template <class BaseClass> |
| 2685 | class ExperimentalWithRawCallbackMethod_GetMsgBusEndpoint : public BaseClass { |
| 2686 | private: |
| 2687 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2688 | public: |
| 2689 | ExperimentalWithRawCallbackMethod_GetMsgBusEndpoint() { |
| 2690 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2691 | ::grpc::Service:: |
| 2692 | #else |
| 2693 | ::grpc::Service::experimental(). |
| 2694 | #endif |
| 2695 | MarkMethodRawCallback(9, |
| 2696 | new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2697 | [this]( |
| 2698 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2699 | ::grpc::CallbackServerContext* |
| 2700 | #else |
| 2701 | ::grpc::experimental::CallbackServerContext* |
| 2702 | #endif |
| 2703 | context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetMsgBusEndpoint(context, request, response); })); |
| 2704 | } |
| 2705 | ~ExperimentalWithRawCallbackMethod_GetMsgBusEndpoint() override { |
| 2706 | BaseClassMustBeDerivedFromService(this); |
| 2707 | } |
| 2708 | // disable synchronous version of this method |
| 2709 | ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) override { |
| 2710 | abort(); |
| 2711 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2712 | } |
| 2713 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2714 | virtual ::grpc::ServerUnaryReactor* GetMsgBusEndpoint( |
| 2715 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2716 | #else |
| 2717 | virtual ::grpc::experimental::ServerUnaryReactor* GetMsgBusEndpoint( |
| 2718 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2719 | #endif |
| 2720 | { return nullptr; } |
| 2721 | }; |
| 2722 | template <class BaseClass> |
| 2723 | class ExperimentalWithRawCallbackMethod_GetLoggableEntities : public BaseClass { |
| 2724 | private: |
| 2725 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2726 | public: |
| 2727 | ExperimentalWithRawCallbackMethod_GetLoggableEntities() { |
| 2728 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2729 | ::grpc::Service:: |
| 2730 | #else |
| 2731 | ::grpc::Service::experimental(). |
| 2732 | #endif |
| 2733 | MarkMethodRawCallback(10, |
| 2734 | new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2735 | [this]( |
| 2736 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2737 | ::grpc::CallbackServerContext* |
| 2738 | #else |
| 2739 | ::grpc::experimental::CallbackServerContext* |
| 2740 | #endif |
| 2741 | context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLoggableEntities(context, request, response); })); |
| 2742 | } |
| 2743 | ~ExperimentalWithRawCallbackMethod_GetLoggableEntities() override { |
| 2744 | BaseClassMustBeDerivedFromService(this); |
| 2745 | } |
| 2746 | // disable synchronous version of this method |
| 2747 | ::grpc::Status GetLoggableEntities(::grpc::ServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override { |
| 2748 | abort(); |
| 2749 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2750 | } |
| 2751 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2752 | virtual ::grpc::ServerUnaryReactor* GetLoggableEntities( |
| 2753 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2754 | #else |
| 2755 | virtual ::grpc::experimental::ServerUnaryReactor* GetLoggableEntities( |
| 2756 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2757 | #endif |
| 2758 | { return nullptr; } |
| 2759 | }; |
| 2760 | template <class BaseClass> |
| 2761 | class ExperimentalWithRawCallbackMethod_SetLogLevel : public BaseClass { |
| 2762 | private: |
| 2763 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2764 | public: |
| 2765 | ExperimentalWithRawCallbackMethod_SetLogLevel() { |
| 2766 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2767 | ::grpc::Service:: |
| 2768 | #else |
| 2769 | ::grpc::Service::experimental(). |
| 2770 | #endif |
| 2771 | MarkMethodRawCallback(11, |
| 2772 | new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2773 | [this]( |
| 2774 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2775 | ::grpc::CallbackServerContext* |
| 2776 | #else |
| 2777 | ::grpc::experimental::CallbackServerContext* |
| 2778 | #endif |
| 2779 | context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetLogLevel(context, request, response); })); |
| 2780 | } |
| 2781 | ~ExperimentalWithRawCallbackMethod_SetLogLevel() override { |
| 2782 | BaseClassMustBeDerivedFromService(this); |
| 2783 | } |
| 2784 | // disable synchronous version of this method |
| 2785 | ::grpc::Status SetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) override { |
| 2786 | abort(); |
| 2787 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2788 | } |
| 2789 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2790 | virtual ::grpc::ServerUnaryReactor* SetLogLevel( |
| 2791 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2792 | #else |
| 2793 | virtual ::grpc::experimental::ServerUnaryReactor* SetLogLevel( |
| 2794 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2795 | #endif |
| 2796 | { return nullptr; } |
| 2797 | }; |
| 2798 | template <class BaseClass> |
| 2799 | class ExperimentalWithRawCallbackMethod_GetLogLevel : public BaseClass { |
| 2800 | private: |
| 2801 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2802 | public: |
| 2803 | ExperimentalWithRawCallbackMethod_GetLogLevel() { |
| 2804 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2805 | ::grpc::Service:: |
| 2806 | #else |
| 2807 | ::grpc::Service::experimental(). |
| 2808 | #endif |
| 2809 | MarkMethodRawCallback(12, |
| 2810 | new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2811 | [this]( |
| 2812 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2813 | ::grpc::CallbackServerContext* |
| 2814 | #else |
| 2815 | ::grpc::experimental::CallbackServerContext* |
| 2816 | #endif |
| 2817 | context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLogLevel(context, request, response); })); |
| 2818 | } |
| 2819 | ~ExperimentalWithRawCallbackMethod_GetLogLevel() override { |
| 2820 | BaseClassMustBeDerivedFromService(this); |
| 2821 | } |
| 2822 | // disable synchronous version of this method |
| 2823 | ::grpc::Status GetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override { |
| 2824 | abort(); |
| 2825 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2826 | } |
| 2827 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2828 | virtual ::grpc::ServerUnaryReactor* GetLogLevel( |
| 2829 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2830 | #else |
| 2831 | virtual ::grpc::experimental::ServerUnaryReactor* GetLogLevel( |
| 2832 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2833 | #endif |
| 2834 | { return nullptr; } |
| 2835 | }; |
| 2836 | template <class BaseClass> |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 2837 | class ExperimentalWithRawCallbackMethod_HeartbeatCheck : public BaseClass { |
| 2838 | private: |
| 2839 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2840 | public: |
| 2841 | ExperimentalWithRawCallbackMethod_HeartbeatCheck() { |
| 2842 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2843 | ::grpc::Service:: |
| 2844 | #else |
| 2845 | ::grpc::Service::experimental(). |
| 2846 | #endif |
| 2847 | MarkMethodRawCallback(13, |
| 2848 | new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2849 | [this]( |
| 2850 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2851 | ::grpc::CallbackServerContext* |
| 2852 | #else |
| 2853 | ::grpc::experimental::CallbackServerContext* |
| 2854 | #endif |
| 2855 | context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->HeartbeatCheck(context, request, response); })); |
| 2856 | } |
| 2857 | ~ExperimentalWithRawCallbackMethod_HeartbeatCheck() override { |
| 2858 | BaseClassMustBeDerivedFromService(this); |
| 2859 | } |
| 2860 | // disable synchronous version of this method |
| 2861 | ::grpc::Status HeartbeatCheck(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) override { |
| 2862 | abort(); |
| 2863 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2864 | } |
| 2865 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2866 | virtual ::grpc::ServerUnaryReactor* HeartbeatCheck( |
| 2867 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2868 | #else |
| 2869 | virtual ::grpc::experimental::ServerUnaryReactor* HeartbeatCheck( |
| 2870 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2871 | #endif |
| 2872 | { return nullptr; } |
| 2873 | }; |
| 2874 | template <class BaseClass> |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 2875 | class ExperimentalWithRawCallbackMethod_RebootDevice : public BaseClass { |
| 2876 | private: |
| 2877 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 2878 | public: |
| 2879 | ExperimentalWithRawCallbackMethod_RebootDevice() { |
| 2880 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2881 | ::grpc::Service:: |
| 2882 | #else |
| 2883 | ::grpc::Service::experimental(). |
| 2884 | #endif |
| 2885 | MarkMethodRawCallback(14, |
| 2886 | new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( |
| 2887 | [this]( |
| 2888 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2889 | ::grpc::CallbackServerContext* |
| 2890 | #else |
| 2891 | ::grpc::experimental::CallbackServerContext* |
| 2892 | #endif |
| 2893 | context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RebootDevice(context, request, response); })); |
| 2894 | } |
| 2895 | ~ExperimentalWithRawCallbackMethod_RebootDevice() override { |
| 2896 | BaseClassMustBeDerivedFromService(this); |
| 2897 | } |
| 2898 | // disable synchronous version of this method |
| 2899 | ::grpc::Status RebootDevice(::grpc::ServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) override { |
| 2900 | abort(); |
| 2901 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2902 | } |
| 2903 | #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL |
| 2904 | virtual ::grpc::ServerUnaryReactor* RebootDevice( |
| 2905 | ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2906 | #else |
| 2907 | virtual ::grpc::experimental::ServerUnaryReactor* RebootDevice( |
| 2908 | ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) |
| 2909 | #endif |
| 2910 | { return nullptr; } |
| 2911 | }; |
| 2912 | template <class BaseClass> |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 2913 | class WithStreamedUnaryMethod_StopManagingDevice : public BaseClass { |
| 2914 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 2915 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 2916 | public: |
| 2917 | WithStreamedUnaryMethod_StopManagingDevice() { |
| 2918 | ::grpc::Service::MarkMethodStreamed(1, |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 2919 | new ::grpc::internal::StreamedUnaryHandler< |
| 2920 | ::dmi::StopManagingDeviceRequest, ::dmi::StopManagingDeviceResponse>( |
| 2921 | [this](::grpc_impl::ServerContext* context, |
| 2922 | ::grpc_impl::ServerUnaryStreamer< |
| 2923 | ::dmi::StopManagingDeviceRequest, ::dmi::StopManagingDeviceResponse>* streamer) { |
| 2924 | return this->StreamedStopManagingDevice(context, |
| 2925 | streamer); |
| 2926 | })); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 2927 | } |
| 2928 | ~WithStreamedUnaryMethod_StopManagingDevice() override { |
| 2929 | BaseClassMustBeDerivedFromService(this); |
| 2930 | } |
| 2931 | // disable regular version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 2932 | ::grpc::Status StopManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::StopManagingDeviceRequest* /*request*/, ::dmi::StopManagingDeviceResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 2933 | abort(); |
| 2934 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2935 | } |
| 2936 | // replace default version of method with streamed unary |
| 2937 | virtual ::grpc::Status StreamedStopManagingDevice(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::StopManagingDeviceRequest,::dmi::StopManagingDeviceResponse>* server_unary_streamer) = 0; |
| 2938 | }; |
| 2939 | template <class BaseClass> |
| 2940 | class WithStreamedUnaryMethod_GetManagedDevices : public BaseClass { |
| 2941 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 2942 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 2943 | public: |
| 2944 | WithStreamedUnaryMethod_GetManagedDevices() { |
| 2945 | ::grpc::Service::MarkMethodStreamed(2, |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 2946 | new ::grpc::internal::StreamedUnaryHandler< |
| 2947 | ::google::protobuf::Empty, ::dmi::ManagedDevicesResponse>( |
| 2948 | [this](::grpc_impl::ServerContext* context, |
| 2949 | ::grpc_impl::ServerUnaryStreamer< |
| 2950 | ::google::protobuf::Empty, ::dmi::ManagedDevicesResponse>* streamer) { |
| 2951 | return this->StreamedGetManagedDevices(context, |
| 2952 | streamer); |
| 2953 | })); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 2954 | } |
| 2955 | ~WithStreamedUnaryMethod_GetManagedDevices() override { |
| 2956 | BaseClassMustBeDerivedFromService(this); |
| 2957 | } |
| 2958 | // disable regular version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 2959 | ::grpc::Status GetManagedDevices(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::ManagedDevicesResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 2960 | abort(); |
| 2961 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2962 | } |
| 2963 | // replace default version of method with streamed unary |
| 2964 | virtual ::grpc::Status StreamedGetManagedDevices(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::dmi::ManagedDevicesResponse>* server_unary_streamer) = 0; |
| 2965 | }; |
| 2966 | template <class BaseClass> |
| 2967 | class WithStreamedUnaryMethod_SetHWComponentInfo : public BaseClass { |
| 2968 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 2969 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 2970 | public: |
| 2971 | WithStreamedUnaryMethod_SetHWComponentInfo() { |
| 2972 | ::grpc::Service::MarkMethodStreamed(5, |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 2973 | new ::grpc::internal::StreamedUnaryHandler< |
| 2974 | ::dmi::HWComponentInfoSetRequest, ::dmi::HWComponentInfoSetResponse>( |
| 2975 | [this](::grpc_impl::ServerContext* context, |
| 2976 | ::grpc_impl::ServerUnaryStreamer< |
| 2977 | ::dmi::HWComponentInfoSetRequest, ::dmi::HWComponentInfoSetResponse>* streamer) { |
| 2978 | return this->StreamedSetHWComponentInfo(context, |
| 2979 | streamer); |
| 2980 | })); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 2981 | } |
| 2982 | ~WithStreamedUnaryMethod_SetHWComponentInfo() override { |
| 2983 | BaseClassMustBeDerivedFromService(this); |
| 2984 | } |
| 2985 | // disable regular version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 2986 | ::grpc::Status SetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoSetRequest* /*request*/, ::dmi::HWComponentInfoSetResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 2987 | abort(); |
| 2988 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 2989 | } |
| 2990 | // replace default version of method with streamed unary |
| 2991 | virtual ::grpc::Status StreamedSetHWComponentInfo(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::HWComponentInfoSetRequest,::dmi::HWComponentInfoSetResponse>* server_unary_streamer) = 0; |
| 2992 | }; |
| 2993 | template <class BaseClass> |
| 2994 | class WithStreamedUnaryMethod_SetLoggingEndpoint : public BaseClass { |
| 2995 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 2996 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 2997 | public: |
| 2998 | WithStreamedUnaryMethod_SetLoggingEndpoint() { |
| 2999 | ::grpc::Service::MarkMethodStreamed(6, |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3000 | new ::grpc::internal::StreamedUnaryHandler< |
| 3001 | ::dmi::SetLoggingEndpointRequest, ::dmi::SetRemoteEndpointResponse>( |
| 3002 | [this](::grpc_impl::ServerContext* context, |
| 3003 | ::grpc_impl::ServerUnaryStreamer< |
| 3004 | ::dmi::SetLoggingEndpointRequest, ::dmi::SetRemoteEndpointResponse>* streamer) { |
| 3005 | return this->StreamedSetLoggingEndpoint(context, |
| 3006 | streamer); |
| 3007 | })); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3008 | } |
| 3009 | ~WithStreamedUnaryMethod_SetLoggingEndpoint() override { |
| 3010 | BaseClassMustBeDerivedFromService(this); |
| 3011 | } |
| 3012 | // disable regular version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3013 | ::grpc::Status SetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetLoggingEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3014 | abort(); |
| 3015 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 3016 | } |
| 3017 | // replace default version of method with streamed unary |
| 3018 | virtual ::grpc::Status StreamedSetLoggingEndpoint(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::SetLoggingEndpointRequest,::dmi::SetRemoteEndpointResponse>* server_unary_streamer) = 0; |
| 3019 | }; |
| 3020 | template <class BaseClass> |
| 3021 | class WithStreamedUnaryMethod_GetLoggingEndpoint : public BaseClass { |
| 3022 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3023 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3024 | public: |
| 3025 | WithStreamedUnaryMethod_GetLoggingEndpoint() { |
| 3026 | ::grpc::Service::MarkMethodStreamed(7, |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3027 | new ::grpc::internal::StreamedUnaryHandler< |
| 3028 | ::dmi::HardwareID, ::dmi::GetLoggingEndpointResponse>( |
| 3029 | [this](::grpc_impl::ServerContext* context, |
| 3030 | ::grpc_impl::ServerUnaryStreamer< |
| 3031 | ::dmi::HardwareID, ::dmi::GetLoggingEndpointResponse>* streamer) { |
| 3032 | return this->StreamedGetLoggingEndpoint(context, |
| 3033 | streamer); |
| 3034 | })); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3035 | } |
| 3036 | ~WithStreamedUnaryMethod_GetLoggingEndpoint() override { |
| 3037 | BaseClassMustBeDerivedFromService(this); |
| 3038 | } |
| 3039 | // disable regular version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3040 | ::grpc::Status GetLoggingEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::HardwareID* /*request*/, ::dmi::GetLoggingEndpointResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3041 | abort(); |
| 3042 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 3043 | } |
| 3044 | // replace default version of method with streamed unary |
| 3045 | virtual ::grpc::Status StreamedGetLoggingEndpoint(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::HardwareID,::dmi::GetLoggingEndpointResponse>* server_unary_streamer) = 0; |
| 3046 | }; |
| 3047 | template <class BaseClass> |
| 3048 | class WithStreamedUnaryMethod_SetMsgBusEndpoint : public BaseClass { |
| 3049 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3050 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3051 | public: |
| 3052 | WithStreamedUnaryMethod_SetMsgBusEndpoint() { |
| 3053 | ::grpc::Service::MarkMethodStreamed(8, |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3054 | new ::grpc::internal::StreamedUnaryHandler< |
| 3055 | ::dmi::SetMsgBusEndpointRequest, ::dmi::SetRemoteEndpointResponse>( |
| 3056 | [this](::grpc_impl::ServerContext* context, |
| 3057 | ::grpc_impl::ServerUnaryStreamer< |
| 3058 | ::dmi::SetMsgBusEndpointRequest, ::dmi::SetRemoteEndpointResponse>* streamer) { |
| 3059 | return this->StreamedSetMsgBusEndpoint(context, |
| 3060 | streamer); |
| 3061 | })); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3062 | } |
| 3063 | ~WithStreamedUnaryMethod_SetMsgBusEndpoint() override { |
| 3064 | BaseClassMustBeDerivedFromService(this); |
| 3065 | } |
| 3066 | // disable regular version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3067 | ::grpc::Status SetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::dmi::SetMsgBusEndpointRequest* /*request*/, ::dmi::SetRemoteEndpointResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3068 | abort(); |
| 3069 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 3070 | } |
| 3071 | // replace default version of method with streamed unary |
| 3072 | virtual ::grpc::Status StreamedSetMsgBusEndpoint(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::SetMsgBusEndpointRequest,::dmi::SetRemoteEndpointResponse>* server_unary_streamer) = 0; |
| 3073 | }; |
| 3074 | template <class BaseClass> |
| 3075 | class WithStreamedUnaryMethod_GetMsgBusEndpoint : public BaseClass { |
| 3076 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3077 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3078 | public: |
| 3079 | WithStreamedUnaryMethod_GetMsgBusEndpoint() { |
| 3080 | ::grpc::Service::MarkMethodStreamed(9, |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3081 | new ::grpc::internal::StreamedUnaryHandler< |
| 3082 | ::google::protobuf::Empty, ::dmi::GetMsgBusEndpointResponse>( |
| 3083 | [this](::grpc_impl::ServerContext* context, |
| 3084 | ::grpc_impl::ServerUnaryStreamer< |
| 3085 | ::google::protobuf::Empty, ::dmi::GetMsgBusEndpointResponse>* streamer) { |
| 3086 | return this->StreamedGetMsgBusEndpoint(context, |
| 3087 | streamer); |
| 3088 | })); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3089 | } |
| 3090 | ~WithStreamedUnaryMethod_GetMsgBusEndpoint() override { |
| 3091 | BaseClassMustBeDerivedFromService(this); |
| 3092 | } |
| 3093 | // disable regular version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3094 | ::grpc::Status GetMsgBusEndpoint(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::GetMsgBusEndpointResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3095 | abort(); |
| 3096 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 3097 | } |
| 3098 | // replace default version of method with streamed unary |
| 3099 | virtual ::grpc::Status StreamedGetMsgBusEndpoint(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::dmi::GetMsgBusEndpointResponse>* server_unary_streamer) = 0; |
| 3100 | }; |
| 3101 | template <class BaseClass> |
| 3102 | class WithStreamedUnaryMethod_GetLoggableEntities : public BaseClass { |
| 3103 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3104 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3105 | public: |
| 3106 | WithStreamedUnaryMethod_GetLoggableEntities() { |
| 3107 | ::grpc::Service::MarkMethodStreamed(10, |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3108 | new ::grpc::internal::StreamedUnaryHandler< |
| 3109 | ::dmi::GetLoggableEntitiesRequest, ::dmi::GetLogLevelResponse>( |
| 3110 | [this](::grpc_impl::ServerContext* context, |
| 3111 | ::grpc_impl::ServerUnaryStreamer< |
| 3112 | ::dmi::GetLoggableEntitiesRequest, ::dmi::GetLogLevelResponse>* streamer) { |
| 3113 | return this->StreamedGetLoggableEntities(context, |
| 3114 | streamer); |
| 3115 | })); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3116 | } |
| 3117 | ~WithStreamedUnaryMethod_GetLoggableEntities() override { |
| 3118 | BaseClassMustBeDerivedFromService(this); |
| 3119 | } |
| 3120 | // disable regular version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3121 | ::grpc::Status GetLoggableEntities(::grpc::ServerContext* /*context*/, const ::dmi::GetLoggableEntitiesRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3122 | abort(); |
| 3123 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 3124 | } |
| 3125 | // replace default version of method with streamed unary |
| 3126 | virtual ::grpc::Status StreamedGetLoggableEntities(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::GetLoggableEntitiesRequest,::dmi::GetLogLevelResponse>* server_unary_streamer) = 0; |
| 3127 | }; |
| 3128 | template <class BaseClass> |
| 3129 | class WithStreamedUnaryMethod_SetLogLevel : public BaseClass { |
| 3130 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3131 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3132 | public: |
| 3133 | WithStreamedUnaryMethod_SetLogLevel() { |
| 3134 | ::grpc::Service::MarkMethodStreamed(11, |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3135 | new ::grpc::internal::StreamedUnaryHandler< |
| 3136 | ::dmi::SetLogLevelRequest, ::dmi::SetLogLevelResponse>( |
| 3137 | [this](::grpc_impl::ServerContext* context, |
| 3138 | ::grpc_impl::ServerUnaryStreamer< |
| 3139 | ::dmi::SetLogLevelRequest, ::dmi::SetLogLevelResponse>* streamer) { |
| 3140 | return this->StreamedSetLogLevel(context, |
| 3141 | streamer); |
| 3142 | })); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3143 | } |
| 3144 | ~WithStreamedUnaryMethod_SetLogLevel() override { |
| 3145 | BaseClassMustBeDerivedFromService(this); |
| 3146 | } |
| 3147 | // disable regular version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3148 | ::grpc::Status SetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::SetLogLevelRequest* /*request*/, ::dmi::SetLogLevelResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3149 | abort(); |
| 3150 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 3151 | } |
| 3152 | // replace default version of method with streamed unary |
| 3153 | virtual ::grpc::Status StreamedSetLogLevel(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::SetLogLevelRequest,::dmi::SetLogLevelResponse>* server_unary_streamer) = 0; |
| 3154 | }; |
| 3155 | template <class BaseClass> |
| 3156 | class WithStreamedUnaryMethod_GetLogLevel : public BaseClass { |
| 3157 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3158 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3159 | public: |
| 3160 | WithStreamedUnaryMethod_GetLogLevel() { |
| 3161 | ::grpc::Service::MarkMethodStreamed(12, |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3162 | new ::grpc::internal::StreamedUnaryHandler< |
| 3163 | ::dmi::GetLogLevelRequest, ::dmi::GetLogLevelResponse>( |
| 3164 | [this](::grpc_impl::ServerContext* context, |
| 3165 | ::grpc_impl::ServerUnaryStreamer< |
| 3166 | ::dmi::GetLogLevelRequest, ::dmi::GetLogLevelResponse>* streamer) { |
| 3167 | return this->StreamedGetLogLevel(context, |
| 3168 | streamer); |
| 3169 | })); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3170 | } |
| 3171 | ~WithStreamedUnaryMethod_GetLogLevel() override { |
| 3172 | BaseClassMustBeDerivedFromService(this); |
| 3173 | } |
| 3174 | // disable regular version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3175 | ::grpc::Status GetLogLevel(::grpc::ServerContext* /*context*/, const ::dmi::GetLogLevelRequest* /*request*/, ::dmi::GetLogLevelResponse* /*response*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3176 | abort(); |
| 3177 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 3178 | } |
| 3179 | // replace default version of method with streamed unary |
| 3180 | virtual ::grpc::Status StreamedGetLogLevel(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::GetLogLevelRequest,::dmi::GetLogLevelResponse>* server_unary_streamer) = 0; |
| 3181 | }; |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 3182 | template <class BaseClass> |
| 3183 | class WithStreamedUnaryMethod_HeartbeatCheck : public BaseClass { |
| 3184 | private: |
| 3185 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 3186 | public: |
| 3187 | WithStreamedUnaryMethod_HeartbeatCheck() { |
| 3188 | ::grpc::Service::MarkMethodStreamed(13, |
| 3189 | new ::grpc::internal::StreamedUnaryHandler< |
| 3190 | ::google::protobuf::Empty, ::dmi::Heartbeat>( |
| 3191 | [this](::grpc_impl::ServerContext* context, |
| 3192 | ::grpc_impl::ServerUnaryStreamer< |
| 3193 | ::google::protobuf::Empty, ::dmi::Heartbeat>* streamer) { |
| 3194 | return this->StreamedHeartbeatCheck(context, |
| 3195 | streamer); |
| 3196 | })); |
| 3197 | } |
| 3198 | ~WithStreamedUnaryMethod_HeartbeatCheck() override { |
| 3199 | BaseClassMustBeDerivedFromService(this); |
| 3200 | } |
| 3201 | // disable regular version of this method |
| 3202 | ::grpc::Status HeartbeatCheck(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::dmi::Heartbeat* /*response*/) override { |
| 3203 | abort(); |
| 3204 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 3205 | } |
| 3206 | // replace default version of method with streamed unary |
| 3207 | virtual ::grpc::Status StreamedHeartbeatCheck(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::dmi::Heartbeat>* server_unary_streamer) = 0; |
| 3208 | }; |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 3209 | template <class BaseClass> |
| 3210 | class WithStreamedUnaryMethod_RebootDevice : public BaseClass { |
| 3211 | private: |
| 3212 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
| 3213 | public: |
| 3214 | WithStreamedUnaryMethod_RebootDevice() { |
| 3215 | ::grpc::Service::MarkMethodStreamed(14, |
| 3216 | new ::grpc::internal::StreamedUnaryHandler< |
| 3217 | ::dmi::RebootDeviceRequest, ::dmi::RebootDeviceResponse>( |
| 3218 | [this](::grpc_impl::ServerContext* context, |
| 3219 | ::grpc_impl::ServerUnaryStreamer< |
| 3220 | ::dmi::RebootDeviceRequest, ::dmi::RebootDeviceResponse>* streamer) { |
| 3221 | return this->StreamedRebootDevice(context, |
| 3222 | streamer); |
| 3223 | })); |
| 3224 | } |
| 3225 | ~WithStreamedUnaryMethod_RebootDevice() override { |
| 3226 | BaseClassMustBeDerivedFromService(this); |
| 3227 | } |
| 3228 | // disable regular version of this method |
| 3229 | ::grpc::Status RebootDevice(::grpc::ServerContext* /*context*/, const ::dmi::RebootDeviceRequest* /*request*/, ::dmi::RebootDeviceResponse* /*response*/) override { |
| 3230 | abort(); |
| 3231 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 3232 | } |
| 3233 | // replace default version of method with streamed unary |
| 3234 | virtual ::grpc::Status StreamedRebootDevice(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::dmi::RebootDeviceRequest,::dmi::RebootDeviceResponse>* server_unary_streamer) = 0; |
| 3235 | }; |
| 3236 | 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<Service > > > > > > > > > > > > StreamedUnaryService; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3237 | template <class BaseClass> |
| 3238 | class WithSplitStreamingMethod_StartManagingDevice : public BaseClass { |
| 3239 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3240 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3241 | public: |
| 3242 | WithSplitStreamingMethod_StartManagingDevice() { |
| 3243 | ::grpc::Service::MarkMethodStreamed(0, |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3244 | new ::grpc::internal::SplitServerStreamingHandler< |
| 3245 | ::dmi::ModifiableComponent, ::dmi::StartManagingDeviceResponse>( |
| 3246 | [this](::grpc_impl::ServerContext* context, |
| 3247 | ::grpc_impl::ServerSplitStreamer< |
| 3248 | ::dmi::ModifiableComponent, ::dmi::StartManagingDeviceResponse>* streamer) { |
| 3249 | return this->StreamedStartManagingDevice(context, |
| 3250 | streamer); |
| 3251 | })); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3252 | } |
| 3253 | ~WithSplitStreamingMethod_StartManagingDevice() override { |
| 3254 | BaseClassMustBeDerivedFromService(this); |
| 3255 | } |
| 3256 | // disable regular version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3257 | ::grpc::Status StartManagingDevice(::grpc::ServerContext* /*context*/, const ::dmi::ModifiableComponent* /*request*/, ::grpc::ServerWriter< ::dmi::StartManagingDeviceResponse>* /*writer*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3258 | abort(); |
| 3259 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 3260 | } |
| 3261 | // replace default version of method with split streamed |
| 3262 | virtual ::grpc::Status StreamedStartManagingDevice(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::dmi::ModifiableComponent,::dmi::StartManagingDeviceResponse>* server_split_streamer) = 0; |
| 3263 | }; |
| 3264 | template <class BaseClass> |
| 3265 | class WithSplitStreamingMethod_GetPhysicalInventory : public BaseClass { |
| 3266 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3267 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3268 | public: |
| 3269 | WithSplitStreamingMethod_GetPhysicalInventory() { |
| 3270 | ::grpc::Service::MarkMethodStreamed(3, |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3271 | new ::grpc::internal::SplitServerStreamingHandler< |
| 3272 | ::dmi::PhysicalInventoryRequest, ::dmi::PhysicalInventoryResponse>( |
| 3273 | [this](::grpc_impl::ServerContext* context, |
| 3274 | ::grpc_impl::ServerSplitStreamer< |
| 3275 | ::dmi::PhysicalInventoryRequest, ::dmi::PhysicalInventoryResponse>* streamer) { |
| 3276 | return this->StreamedGetPhysicalInventory(context, |
| 3277 | streamer); |
| 3278 | })); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3279 | } |
| 3280 | ~WithSplitStreamingMethod_GetPhysicalInventory() override { |
| 3281 | BaseClassMustBeDerivedFromService(this); |
| 3282 | } |
| 3283 | // disable regular version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3284 | ::grpc::Status GetPhysicalInventory(::grpc::ServerContext* /*context*/, const ::dmi::PhysicalInventoryRequest* /*request*/, ::grpc::ServerWriter< ::dmi::PhysicalInventoryResponse>* /*writer*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3285 | abort(); |
| 3286 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 3287 | } |
| 3288 | // replace default version of method with split streamed |
| 3289 | virtual ::grpc::Status StreamedGetPhysicalInventory(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::dmi::PhysicalInventoryRequest,::dmi::PhysicalInventoryResponse>* server_split_streamer) = 0; |
| 3290 | }; |
| 3291 | template <class BaseClass> |
| 3292 | class WithSplitStreamingMethod_GetHWComponentInfo : public BaseClass { |
| 3293 | private: |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3294 | void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3295 | public: |
| 3296 | WithSplitStreamingMethod_GetHWComponentInfo() { |
| 3297 | ::grpc::Service::MarkMethodStreamed(4, |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3298 | new ::grpc::internal::SplitServerStreamingHandler< |
| 3299 | ::dmi::HWComponentInfoGetRequest, ::dmi::HWComponentInfoGetResponse>( |
| 3300 | [this](::grpc_impl::ServerContext* context, |
| 3301 | ::grpc_impl::ServerSplitStreamer< |
| 3302 | ::dmi::HWComponentInfoGetRequest, ::dmi::HWComponentInfoGetResponse>* streamer) { |
| 3303 | return this->StreamedGetHWComponentInfo(context, |
| 3304 | streamer); |
| 3305 | })); |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3306 | } |
| 3307 | ~WithSplitStreamingMethod_GetHWComponentInfo() override { |
| 3308 | BaseClassMustBeDerivedFromService(this); |
| 3309 | } |
| 3310 | // disable regular version of this method |
Andrea Campanella | 03d4e7a | 2021-04-28 15:34:46 +0200 | [diff] [blame] | 3311 | ::grpc::Status GetHWComponentInfo(::grpc::ServerContext* /*context*/, const ::dmi::HWComponentInfoGetRequest* /*request*/, ::grpc::ServerWriter< ::dmi::HWComponentInfoGetResponse>* /*writer*/) override { |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3312 | abort(); |
| 3313 | return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
| 3314 | } |
| 3315 | // replace default version of method with split streamed |
| 3316 | virtual ::grpc::Status StreamedGetHWComponentInfo(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::dmi::HWComponentInfoGetRequest,::dmi::HWComponentInfoGetResponse>* server_split_streamer) = 0; |
| 3317 | }; |
| 3318 | typedef WithSplitStreamingMethod_StartManagingDevice<WithSplitStreamingMethod_GetPhysicalInventory<WithSplitStreamingMethod_GetHWComponentInfo<Service > > > SplitStreamedService; |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 3319 | 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<Service > > > > > > > > > > > > > > > StreamedService; |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 3320 | }; |
| 3321 | |
| 3322 | } // namespace dmi |
| 3323 | |
| 3324 | |
| 3325 | #endif // GRPC_dmi_2fhw_5fmanagement_5fservice_2eproto__INCLUDED |