blob: 7168f79558a690ab6697c794f563a6a1022c4216 [file] [log] [blame]
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001// Generated by the gRPC C++ plugin.
2// If you make any local change, they will be lost.
3// source: dmi/hw_events_mgmt_service.proto
4
5#include "dmi/hw_events_mgmt_service.pb.h"
6#include "dmi/hw_events_mgmt_service.grpc.pb.h"
7
Andrea Campanella03d4e7a2021-04-28 15:34:46 +02008#include <functional>
9#include <grpcpp/impl/codegen/async_stream.h>
10#include <grpcpp/impl/codegen/async_unary_call.h>
11#include <grpcpp/impl/codegen/channel_interface.h>
12#include <grpcpp/impl/codegen/client_unary_call.h>
13#include <grpcpp/impl/codegen/client_callback.h>
14#include <grpcpp/impl/codegen/message_allocator.h>
15#include <grpcpp/impl/codegen/method_handler.h>
16#include <grpcpp/impl/codegen/rpc_service_method.h>
17#include <grpcpp/impl/codegen/server_callback.h>
18#include <grpcpp/impl/codegen/server_callback_handlers.h>
19#include <grpcpp/impl/codegen/server_context.h>
20#include <grpcpp/impl/codegen/service_type.h>
21#include <grpcpp/impl/codegen/sync_stream.h>
Andrea Campanellac795b7d2021-04-14 13:24:44 +020022namespace dmi {
23
24static const char* NativeEventsManagementService_method_names[] = {
25 "/dmi.NativeEventsManagementService/ListEvents",
26 "/dmi.NativeEventsManagementService/UpdateEventsConfiguration",
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +053027 "/dmi.NativeEventsManagementService/StreamEvents",
Andrea Campanellac795b7d2021-04-14 13:24:44 +020028};
29
30std::unique_ptr< NativeEventsManagementService::Stub> NativeEventsManagementService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
Andrea Campanella03d4e7a2021-04-28 15:34:46 +020031 (void)options;
Andrea Campanellac795b7d2021-04-14 13:24:44 +020032 std::unique_ptr< NativeEventsManagementService::Stub> stub(new NativeEventsManagementService::Stub(channel));
33 return stub;
34}
35
36NativeEventsManagementService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
Andrea Campanella03d4e7a2021-04-28 15:34:46 +020037 : channel_(channel), rpcmethod_ListEvents_(NativeEventsManagementService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
38 , rpcmethod_UpdateEventsConfiguration_(NativeEventsManagementService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
39 , rpcmethod_StreamEvents_(NativeEventsManagementService_method_names[2], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel)
Andrea Campanellac795b7d2021-04-14 13:24:44 +020040 {}
41
42::grpc::Status NativeEventsManagementService::Stub::ListEvents(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::dmi::ListEventsResponse* response) {
Andrea Campanella03d4e7a2021-04-28 15:34:46 +020043 return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListEvents_, context, request, response);
44}
45
46void NativeEventsManagementService::Stub::experimental_async::ListEvents(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::ListEventsResponse* response, std::function<void(::grpc::Status)> f) {
47 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListEvents_, context, request, response, std::move(f));
48}
49
50void NativeEventsManagementService::Stub::experimental_async::ListEvents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ListEventsResponse* response, std::function<void(::grpc::Status)> f) {
51 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListEvents_, context, request, response, std::move(f));
52}
53
54void NativeEventsManagementService::Stub::experimental_async::ListEvents(::grpc::ClientContext* context, const ::dmi::HardwareID* request, ::dmi::ListEventsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
55 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListEvents_, context, request, response, reactor);
56}
57
58void NativeEventsManagementService::Stub::experimental_async::ListEvents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::ListEventsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
59 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListEvents_, context, request, response, reactor);
Andrea Campanellac795b7d2021-04-14 13:24:44 +020060}
61
62::grpc::ClientAsyncResponseReader< ::dmi::ListEventsResponse>* NativeEventsManagementService::Stub::AsyncListEventsRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
Andrea Campanella03d4e7a2021-04-28 15:34:46 +020063 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::dmi::ListEventsResponse>::Create(channel_.get(), cq, rpcmethod_ListEvents_, context, request, true);
64}
65
66::grpc::ClientAsyncResponseReader< ::dmi::ListEventsResponse>* NativeEventsManagementService::Stub::PrepareAsyncListEventsRaw(::grpc::ClientContext* context, const ::dmi::HardwareID& request, ::grpc::CompletionQueue* cq) {
67 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::dmi::ListEventsResponse>::Create(channel_.get(), cq, rpcmethod_ListEvents_, context, request, false);
Andrea Campanellac795b7d2021-04-14 13:24:44 +020068}
69
70::grpc::Status NativeEventsManagementService::Stub::UpdateEventsConfiguration(::grpc::ClientContext* context, const ::dmi::EventsConfigurationRequest& request, ::dmi::EventsConfigurationResponse* response) {
Andrea Campanella03d4e7a2021-04-28 15:34:46 +020071 return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateEventsConfiguration_, context, request, response);
72}
73
74void NativeEventsManagementService::Stub::experimental_async::UpdateEventsConfiguration(::grpc::ClientContext* context, const ::dmi::EventsConfigurationRequest* request, ::dmi::EventsConfigurationResponse* response, std::function<void(::grpc::Status)> f) {
75 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateEventsConfiguration_, context, request, response, std::move(f));
76}
77
78void NativeEventsManagementService::Stub::experimental_async::UpdateEventsConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::EventsConfigurationResponse* response, std::function<void(::grpc::Status)> f) {
79 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateEventsConfiguration_, context, request, response, std::move(f));
80}
81
82void NativeEventsManagementService::Stub::experimental_async::UpdateEventsConfiguration(::grpc::ClientContext* context, const ::dmi::EventsConfigurationRequest* request, ::dmi::EventsConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
83 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateEventsConfiguration_, context, request, response, reactor);
84}
85
86void NativeEventsManagementService::Stub::experimental_async::UpdateEventsConfiguration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::dmi::EventsConfigurationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
87 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateEventsConfiguration_, context, request, response, reactor);
Andrea Campanellac795b7d2021-04-14 13:24:44 +020088}
89
90::grpc::ClientAsyncResponseReader< ::dmi::EventsConfigurationResponse>* NativeEventsManagementService::Stub::AsyncUpdateEventsConfigurationRaw(::grpc::ClientContext* context, const ::dmi::EventsConfigurationRequest& request, ::grpc::CompletionQueue* cq) {
Andrea Campanella03d4e7a2021-04-28 15:34:46 +020091 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::dmi::EventsConfigurationResponse>::Create(channel_.get(), cq, rpcmethod_UpdateEventsConfiguration_, context, request, true);
92}
93
94::grpc::ClientAsyncResponseReader< ::dmi::EventsConfigurationResponse>* NativeEventsManagementService::Stub::PrepareAsyncUpdateEventsConfigurationRaw(::grpc::ClientContext* context, const ::dmi::EventsConfigurationRequest& request, ::grpc::CompletionQueue* cq) {
95 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::dmi::EventsConfigurationResponse>::Create(channel_.get(), cq, rpcmethod_UpdateEventsConfiguration_, context, request, false);
Andrea Campanellac795b7d2021-04-14 13:24:44 +020096}
97
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +053098::grpc::ClientReader< ::dmi::Event>* NativeEventsManagementService::Stub::StreamEventsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request) {
Andrea Campanella03d4e7a2021-04-28 15:34:46 +020099 return ::grpc_impl::internal::ClientReaderFactory< ::dmi::Event>::Create(channel_.get(), rpcmethod_StreamEvents_, context, request);
100}
101
102void NativeEventsManagementService::Stub::experimental_async::StreamEvents(::grpc::ClientContext* context, ::google::protobuf::Empty* request, ::grpc::experimental::ClientReadReactor< ::dmi::Event>* reactor) {
103 ::grpc_impl::internal::ClientCallbackReaderFactory< ::dmi::Event>::Create(stub_->channel_.get(), stub_->rpcmethod_StreamEvents_, context, request, reactor);
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +0530104}
105
106::grpc::ClientAsyncReader< ::dmi::Event>* NativeEventsManagementService::Stub::AsyncStreamEventsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq, void* tag) {
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200107 return ::grpc_impl::internal::ClientAsyncReaderFactory< ::dmi::Event>::Create(channel_.get(), cq, rpcmethod_StreamEvents_, context, request, true, tag);
108}
109
110::grpc::ClientAsyncReader< ::dmi::Event>* NativeEventsManagementService::Stub::PrepareAsyncStreamEventsRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
111 return ::grpc_impl::internal::ClientAsyncReaderFactory< ::dmi::Event>::Create(channel_.get(), cq, rpcmethod_StreamEvents_, context, request, false, nullptr);
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +0530112}
113
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200114NativeEventsManagementService::Service::Service() {
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200115 AddMethod(new ::grpc::internal::RpcServiceMethod(
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200116 NativeEventsManagementService_method_names[0],
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200117 ::grpc::internal::RpcMethod::NORMAL_RPC,
118 new ::grpc::internal::RpcMethodHandler< NativeEventsManagementService::Service, ::dmi::HardwareID, ::dmi::ListEventsResponse>(
119 [](NativeEventsManagementService::Service* service,
120 ::grpc_impl::ServerContext* ctx,
121 const ::dmi::HardwareID* req,
122 ::dmi::ListEventsResponse* resp) {
123 return service->ListEvents(ctx, req, resp);
124 }, this)));
125 AddMethod(new ::grpc::internal::RpcServiceMethod(
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200126 NativeEventsManagementService_method_names[1],
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200127 ::grpc::internal::RpcMethod::NORMAL_RPC,
128 new ::grpc::internal::RpcMethodHandler< NativeEventsManagementService::Service, ::dmi::EventsConfigurationRequest, ::dmi::EventsConfigurationResponse>(
129 [](NativeEventsManagementService::Service* service,
130 ::grpc_impl::ServerContext* ctx,
131 const ::dmi::EventsConfigurationRequest* req,
132 ::dmi::EventsConfigurationResponse* resp) {
133 return service->UpdateEventsConfiguration(ctx, req, resp);
134 }, this)));
135 AddMethod(new ::grpc::internal::RpcServiceMethod(
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +0530136 NativeEventsManagementService_method_names[2],
Andrea Campanella03d4e7a2021-04-28 15:34:46 +0200137 ::grpc::internal::RpcMethod::SERVER_STREAMING,
138 new ::grpc::internal::ServerStreamingHandler< NativeEventsManagementService::Service, ::google::protobuf::Empty, ::dmi::Event>(
139 [](NativeEventsManagementService::Service* service,
140 ::grpc_impl::ServerContext* ctx,
141 const ::google::protobuf::Empty* req,
142 ::grpc_impl::ServerWriter<::dmi::Event>* writer) {
143 return service->StreamEvents(ctx, req, writer);
144 }, this)));
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200145}
146
147NativeEventsManagementService::Service::~Service() {
148}
149
150::grpc::Status NativeEventsManagementService::Service::ListEvents(::grpc::ServerContext* context, const ::dmi::HardwareID* request, ::dmi::ListEventsResponse* response) {
151 (void) context;
152 (void) request;
153 (void) response;
154 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
155}
156
157::grpc::Status NativeEventsManagementService::Service::UpdateEventsConfiguration(::grpc::ServerContext* context, const ::dmi::EventsConfigurationRequest* request, ::dmi::EventsConfigurationResponse* response) {
158 (void) context;
159 (void) request;
160 (void) response;
161 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
162}
163
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +0530164::grpc::Status NativeEventsManagementService::Service::StreamEvents(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::grpc::ServerWriter< ::dmi::Event>* writer) {
165 (void) context;
166 (void) request;
167 (void) writer;
168 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
169}
170
Andrea Campanellac795b7d2021-04-14 13:24:44 +0200171
172} // namespace dmi
173