Line data Source code
1 : // Generated by the gRPC C++ plugin.
2 : // If you make any local change, they will be lost.
3 : // source: plotserver_events.proto
4 :
5 : #include "plotserver_events.pb.h"
6 : #include "plotserver_events.grpc.pb.h"
7 :
8 : #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/method_handler_impl.h>
15 : #include <grpcpp/impl/codegen/rpc_service_method.h>
16 : #include <grpcpp/impl/codegen/server_callback.h>
17 : #include <grpcpp/impl/codegen/service_type.h>
18 : #include <grpcpp/impl/codegen/sync_stream.h>
19 : namespace rpc {
20 : namespace gui {
21 :
22 : static const char* plotserver_events_method_names[] = {
23 : "/rpc.gui.plotserver_events/button",
24 : "/rpc.gui.plotserver_events/check",
25 : "/rpc.gui.plotserver_events/radio",
26 : "/rpc.gui.plotserver_events/linetext",
27 : "/rpc.gui.plotserver_events/slidevalue",
28 : "/rpc.gui.plotserver_events/exiting",
29 : "/rpc.gui.plotserver_events/closing",
30 : };
31 :
32 0 : std::unique_ptr< plotserver_events::Stub> plotserver_events::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
33 : (void)options;
34 0 : std::unique_ptr< plotserver_events::Stub> stub(new plotserver_events::Stub(channel));
35 0 : return stub;
36 : }
37 :
38 0 : plotserver_events::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
39 0 : : channel_(channel), rpcmethod_button_(plotserver_events_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
40 0 : , rpcmethod_check_(plotserver_events_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
41 0 : , rpcmethod_radio_(plotserver_events_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
42 0 : , rpcmethod_linetext_(plotserver_events_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
43 0 : , rpcmethod_slidevalue_(plotserver_events_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
44 0 : , rpcmethod_exiting_(plotserver_events_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
45 0 : , rpcmethod_closing_(plotserver_events_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
46 0 : {}
47 :
48 0 : ::grpc::Status plotserver_events::Stub::button(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent& request, ::google::protobuf::Empty* response) {
49 0 : return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_button_, context, request, response);
50 : }
51 :
52 0 : void plotserver_events::Stub::experimental_async::button(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)> f) {
53 0 : return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_button_, context, request, response, std::move(f));
54 : }
55 :
56 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::AsyncbuttonRaw(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent& request, ::grpc::CompletionQueue* cq) {
57 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_button_, context, request, true);
58 : }
59 :
60 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::PrepareAsyncbuttonRaw(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent& request, ::grpc::CompletionQueue* cq) {
61 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_button_, context, request, false);
62 : }
63 :
64 0 : ::grpc::Status plotserver_events::Stub::check(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent& request, ::google::protobuf::Empty* response) {
65 0 : return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_check_, context, request, response);
66 : }
67 :
68 0 : void plotserver_events::Stub::experimental_async::check(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)> f) {
69 0 : return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_check_, context, request, response, std::move(f));
70 : }
71 :
72 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::AsynccheckRaw(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent& request, ::grpc::CompletionQueue* cq) {
73 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_check_, context, request, true);
74 : }
75 :
76 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::PrepareAsynccheckRaw(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent& request, ::grpc::CompletionQueue* cq) {
77 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_check_, context, request, false);
78 : }
79 :
80 0 : ::grpc::Status plotserver_events::Stub::radio(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent& request, ::google::protobuf::Empty* response) {
81 0 : return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_radio_, context, request, response);
82 : }
83 :
84 0 : void plotserver_events::Stub::experimental_async::radio(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)> f) {
85 0 : return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_radio_, context, request, response, std::move(f));
86 : }
87 :
88 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::AsyncradioRaw(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent& request, ::grpc::CompletionQueue* cq) {
89 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_radio_, context, request, true);
90 : }
91 :
92 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::PrepareAsyncradioRaw(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent& request, ::grpc::CompletionQueue* cq) {
93 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_radio_, context, request, false);
94 : }
95 :
96 0 : ::grpc::Status plotserver_events::Stub::linetext(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent& request, ::google::protobuf::Empty* response) {
97 0 : return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_linetext_, context, request, response);
98 : }
99 :
100 0 : void plotserver_events::Stub::experimental_async::linetext(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)> f) {
101 0 : return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_linetext_, context, request, response, std::move(f));
102 : }
103 :
104 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::AsynclinetextRaw(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent& request, ::grpc::CompletionQueue* cq) {
105 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_linetext_, context, request, true);
106 : }
107 :
108 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::PrepareAsynclinetextRaw(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent& request, ::grpc::CompletionQueue* cq) {
109 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_linetext_, context, request, false);
110 : }
111 :
112 0 : ::grpc::Status plotserver_events::Stub::slidevalue(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent& request, ::google::protobuf::Empty* response) {
113 0 : return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_slidevalue_, context, request, response);
114 : }
115 :
116 0 : void plotserver_events::Stub::experimental_async::slidevalue(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)> f) {
117 0 : return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_slidevalue_, context, request, response, std::move(f));
118 : }
119 :
120 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::AsyncslidevalueRaw(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent& request, ::grpc::CompletionQueue* cq) {
121 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_slidevalue_, context, request, true);
122 : }
123 :
124 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::PrepareAsyncslidevalueRaw(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent& request, ::grpc::CompletionQueue* cq) {
125 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_slidevalue_, context, request, false);
126 : }
127 :
128 0 : ::grpc::Status plotserver_events::Stub::exiting(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::google::protobuf::Empty* response) {
129 0 : return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_exiting_, context, request, response);
130 : }
131 :
132 0 : void plotserver_events::Stub::experimental_async::exiting(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)> f) {
133 0 : return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_exiting_, context, request, response, std::move(f));
134 : }
135 :
136 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::AsyncexitingRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
137 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_exiting_, context, request, true);
138 : }
139 :
140 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::PrepareAsyncexitingRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
141 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_exiting_, context, request, false);
142 : }
143 :
144 0 : ::grpc::Status plotserver_events::Stub::closing(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent& request, ::google::protobuf::Empty* response) {
145 0 : return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_closing_, context, request, response);
146 : }
147 :
148 0 : void plotserver_events::Stub::experimental_async::closing(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)> f) {
149 0 : return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_closing_, context, request, response, std::move(f));
150 : }
151 :
152 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::AsyncclosingRaw(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent& request, ::grpc::CompletionQueue* cq) {
153 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_closing_, context, request, true);
154 : }
155 :
156 0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* plotserver_events::Stub::PrepareAsyncclosingRaw(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent& request, ::grpc::CompletionQueue* cq) {
157 0 : return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_closing_, context, request, false);
158 : }
159 :
160 0 : plotserver_events::Service::Service() {
161 0 : AddMethod(new ::grpc::internal::RpcServiceMethod(
162 : plotserver_events_method_names[0],
163 : ::grpc::internal::RpcMethod::NORMAL_RPC,
164 0 : new ::grpc::internal::RpcMethodHandler< plotserver_events::Service, ::rpc::gui::ButtonEvent, ::google::protobuf::Empty>(
165 0 : std::mem_fn(&plotserver_events::Service::button), this)));
166 0 : AddMethod(new ::grpc::internal::RpcServiceMethod(
167 : plotserver_events_method_names[1],
168 : ::grpc::internal::RpcMethod::NORMAL_RPC,
169 0 : new ::grpc::internal::RpcMethodHandler< plotserver_events::Service, ::rpc::gui::CheckEvent, ::google::protobuf::Empty>(
170 0 : std::mem_fn(&plotserver_events::Service::check), this)));
171 0 : AddMethod(new ::grpc::internal::RpcServiceMethod(
172 : plotserver_events_method_names[2],
173 : ::grpc::internal::RpcMethod::NORMAL_RPC,
174 0 : new ::grpc::internal::RpcMethodHandler< plotserver_events::Service, ::rpc::gui::RadioEvent, ::google::protobuf::Empty>(
175 0 : std::mem_fn(&plotserver_events::Service::radio), this)));
176 0 : AddMethod(new ::grpc::internal::RpcServiceMethod(
177 : plotserver_events_method_names[3],
178 : ::grpc::internal::RpcMethod::NORMAL_RPC,
179 0 : new ::grpc::internal::RpcMethodHandler< plotserver_events::Service, ::rpc::gui::LineTextEvent, ::google::protobuf::Empty>(
180 0 : std::mem_fn(&plotserver_events::Service::linetext), this)));
181 0 : AddMethod(new ::grpc::internal::RpcServiceMethod(
182 : plotserver_events_method_names[4],
183 : ::grpc::internal::RpcMethod::NORMAL_RPC,
184 0 : new ::grpc::internal::RpcMethodHandler< plotserver_events::Service, ::rpc::gui::SlideValueEvent, ::google::protobuf::Empty>(
185 0 : std::mem_fn(&plotserver_events::Service::slidevalue), this)));
186 0 : AddMethod(new ::grpc::internal::RpcServiceMethod(
187 : plotserver_events_method_names[5],
188 : ::grpc::internal::RpcMethod::NORMAL_RPC,
189 0 : new ::grpc::internal::RpcMethodHandler< plotserver_events::Service, ::google::protobuf::Empty, ::google::protobuf::Empty>(
190 0 : std::mem_fn(&plotserver_events::Service::exiting), this)));
191 0 : AddMethod(new ::grpc::internal::RpcServiceMethod(
192 : plotserver_events_method_names[6],
193 : ::grpc::internal::RpcMethod::NORMAL_RPC,
194 0 : new ::grpc::internal::RpcMethodHandler< plotserver_events::Service, ::rpc::gui::ClosingEvent, ::google::protobuf::Empty>(
195 0 : std::mem_fn(&plotserver_events::Service::closing), this)));
196 0 : }
197 :
198 0 : plotserver_events::Service::~Service() {
199 0 : }
200 :
201 0 : ::grpc::Status plotserver_events::Service::button(::grpc::ServerContext* context, const ::rpc::gui::ButtonEvent* request, ::google::protobuf::Empty* response) {
202 : (void) context;
203 : (void) request;
204 : (void) response;
205 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
206 : }
207 :
208 0 : ::grpc::Status plotserver_events::Service::check(::grpc::ServerContext* context, const ::rpc::gui::CheckEvent* request, ::google::protobuf::Empty* response) {
209 : (void) context;
210 : (void) request;
211 : (void) response;
212 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
213 : }
214 :
215 0 : ::grpc::Status plotserver_events::Service::radio(::grpc::ServerContext* context, const ::rpc::gui::RadioEvent* request, ::google::protobuf::Empty* response) {
216 : (void) context;
217 : (void) request;
218 : (void) response;
219 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
220 : }
221 :
222 0 : ::grpc::Status plotserver_events::Service::linetext(::grpc::ServerContext* context, const ::rpc::gui::LineTextEvent* request, ::google::protobuf::Empty* response) {
223 : (void) context;
224 : (void) request;
225 : (void) response;
226 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
227 : }
228 :
229 0 : ::grpc::Status plotserver_events::Service::slidevalue(::grpc::ServerContext* context, const ::rpc::gui::SlideValueEvent* request, ::google::protobuf::Empty* response) {
230 : (void) context;
231 : (void) request;
232 : (void) response;
233 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
234 : }
235 :
236 0 : ::grpc::Status plotserver_events::Service::exiting(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) {
237 : (void) context;
238 : (void) request;
239 : (void) response;
240 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
241 : }
242 :
243 0 : ::grpc::Status plotserver_events::Service::closing(::grpc::ServerContext* context, const ::rpc::gui::ClosingEvent* request, ::google::protobuf::Empty* response) {
244 : (void) context;
245 : (void) request;
246 : (void) response;
247 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
248 : }
249 :
250 :
251 : } // namespace rpc
252 : } // namespace gui
253 :
|