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 : #ifndef GRPC_plotserver_5fevents_2eproto__INCLUDED
5 : #define GRPC_plotserver_5fevents_2eproto__INCLUDED
6 :
7 : #include "plotserver_events.pb.h"
8 :
9 : #include <functional>
10 : #include <grpcpp/impl/codegen/async_generic_service.h>
11 : #include <grpcpp/impl/codegen/async_stream.h>
12 : #include <grpcpp/impl/codegen/async_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/proto_utils.h>
16 : #include <grpcpp/impl/codegen/rpc_method.h>
17 : #include <grpcpp/impl/codegen/server_callback.h>
18 : #include <grpcpp/impl/codegen/service_type.h>
19 : #include <grpcpp/impl/codegen/status.h>
20 : #include <grpcpp/impl/codegen/stub_options.h>
21 : #include <grpcpp/impl/codegen/sync_stream.h>
22 :
23 : namespace grpc {
24 : class CompletionQueue;
25 : class Channel;
26 : class ServerCompletionQueue;
27 : class ServerContext;
28 : } // namespace grpc
29 :
30 : namespace rpc {
31 : namespace gui {
32 :
33 : class plotserver_events final {
34 : public:
35 : static constexpr char const* service_full_name() {
36 : return "rpc.gui.plotserver_events";
37 : }
38 : class StubInterface {
39 : public:
40 0 : virtual ~StubInterface() {}
41 : virtual ::grpc::Status button(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent& request, ::google::protobuf::Empty* response) = 0;
42 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> Asyncbutton(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent& request, ::grpc::CompletionQueue* cq) {
43 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncbuttonRaw(context, request, cq));
44 : }
45 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncbutton(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent& request, ::grpc::CompletionQueue* cq) {
46 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncbuttonRaw(context, request, cq));
47 : }
48 : virtual ::grpc::Status check(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent& request, ::google::protobuf::Empty* response) = 0;
49 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> Asynccheck(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent& request, ::grpc::CompletionQueue* cq) {
50 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsynccheckRaw(context, request, cq));
51 : }
52 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsynccheck(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent& request, ::grpc::CompletionQueue* cq) {
53 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsynccheckRaw(context, request, cq));
54 : }
55 : virtual ::grpc::Status radio(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent& request, ::google::protobuf::Empty* response) = 0;
56 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> Asyncradio(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent& request, ::grpc::CompletionQueue* cq) {
57 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncradioRaw(context, request, cq));
58 : }
59 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncradio(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent& request, ::grpc::CompletionQueue* cq) {
60 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncradioRaw(context, request, cq));
61 : }
62 : virtual ::grpc::Status linetext(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent& request, ::google::protobuf::Empty* response) = 0;
63 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> Asynclinetext(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent& request, ::grpc::CompletionQueue* cq) {
64 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsynclinetextRaw(context, request, cq));
65 : }
66 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsynclinetext(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent& request, ::grpc::CompletionQueue* cq) {
67 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsynclinetextRaw(context, request, cq));
68 : }
69 : virtual ::grpc::Status slidevalue(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent& request, ::google::protobuf::Empty* response) = 0;
70 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> Asyncslidevalue(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent& request, ::grpc::CompletionQueue* cq) {
71 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncslidevalueRaw(context, request, cq));
72 : }
73 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncslidevalue(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent& request, ::grpc::CompletionQueue* cq) {
74 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncslidevalueRaw(context, request, cq));
75 : }
76 : virtual ::grpc::Status exiting(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::google::protobuf::Empty* response) = 0;
77 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> Asyncexiting(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
78 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncexitingRaw(context, request, cq));
79 : }
80 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncexiting(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
81 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncexitingRaw(context, request, cq));
82 : }
83 : virtual ::grpc::Status closing(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent& request, ::google::protobuf::Empty* response) = 0;
84 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> Asyncclosing(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent& request, ::grpc::CompletionQueue* cq) {
85 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncclosingRaw(context, request, cq));
86 : }
87 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncclosing(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent& request, ::grpc::CompletionQueue* cq) {
88 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncclosingRaw(context, request, cq));
89 : }
90 : class experimental_async_interface {
91 : public:
92 0 : virtual ~experimental_async_interface() {}
93 : virtual void button(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) = 0;
94 : virtual void check(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) = 0;
95 : virtual void radio(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) = 0;
96 : virtual void linetext(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) = 0;
97 : virtual void slidevalue(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) = 0;
98 : virtual void exiting(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) = 0;
99 : virtual void closing(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) = 0;
100 : };
101 0 : virtual class experimental_async_interface* experimental_async() { return nullptr; }
102 : private:
103 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncbuttonRaw(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent& request, ::grpc::CompletionQueue* cq) = 0;
104 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncbuttonRaw(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent& request, ::grpc::CompletionQueue* cq) = 0;
105 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsynccheckRaw(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent& request, ::grpc::CompletionQueue* cq) = 0;
106 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsynccheckRaw(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent& request, ::grpc::CompletionQueue* cq) = 0;
107 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncradioRaw(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent& request, ::grpc::CompletionQueue* cq) = 0;
108 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncradioRaw(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent& request, ::grpc::CompletionQueue* cq) = 0;
109 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsynclinetextRaw(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent& request, ::grpc::CompletionQueue* cq) = 0;
110 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsynclinetextRaw(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent& request, ::grpc::CompletionQueue* cq) = 0;
111 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncslidevalueRaw(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent& request, ::grpc::CompletionQueue* cq) = 0;
112 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncslidevalueRaw(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent& request, ::grpc::CompletionQueue* cq) = 0;
113 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncexitingRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
114 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncexitingRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
115 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncclosingRaw(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent& request, ::grpc::CompletionQueue* cq) = 0;
116 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncclosingRaw(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent& request, ::grpc::CompletionQueue* cq) = 0;
117 : };
118 : class Stub final : public StubInterface {
119 : public:
120 : Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel);
121 : ::grpc::Status button(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent& request, ::google::protobuf::Empty* response) override;
122 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> Asyncbutton(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent& request, ::grpc::CompletionQueue* cq) {
123 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncbuttonRaw(context, request, cq));
124 : }
125 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncbutton(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent& request, ::grpc::CompletionQueue* cq) {
126 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncbuttonRaw(context, request, cq));
127 : }
128 : ::grpc::Status check(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent& request, ::google::protobuf::Empty* response) override;
129 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> Asynccheck(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent& request, ::grpc::CompletionQueue* cq) {
130 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsynccheckRaw(context, request, cq));
131 : }
132 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsynccheck(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent& request, ::grpc::CompletionQueue* cq) {
133 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsynccheckRaw(context, request, cq));
134 : }
135 : ::grpc::Status radio(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent& request, ::google::protobuf::Empty* response) override;
136 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> Asyncradio(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent& request, ::grpc::CompletionQueue* cq) {
137 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncradioRaw(context, request, cq));
138 : }
139 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncradio(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent& request, ::grpc::CompletionQueue* cq) {
140 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncradioRaw(context, request, cq));
141 : }
142 : ::grpc::Status linetext(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent& request, ::google::protobuf::Empty* response) override;
143 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> Asynclinetext(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent& request, ::grpc::CompletionQueue* cq) {
144 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsynclinetextRaw(context, request, cq));
145 : }
146 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsynclinetext(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent& request, ::grpc::CompletionQueue* cq) {
147 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsynclinetextRaw(context, request, cq));
148 : }
149 : ::grpc::Status slidevalue(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent& request, ::google::protobuf::Empty* response) override;
150 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> Asyncslidevalue(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent& request, ::grpc::CompletionQueue* cq) {
151 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncslidevalueRaw(context, request, cq));
152 : }
153 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncslidevalue(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent& request, ::grpc::CompletionQueue* cq) {
154 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncslidevalueRaw(context, request, cq));
155 : }
156 : ::grpc::Status exiting(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::google::protobuf::Empty* response) override;
157 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> Asyncexiting(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
158 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncexitingRaw(context, request, cq));
159 : }
160 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncexiting(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
161 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncexitingRaw(context, request, cq));
162 : }
163 : ::grpc::Status closing(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent& request, ::google::protobuf::Empty* response) override;
164 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> Asyncclosing(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent& request, ::grpc::CompletionQueue* cq) {
165 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncclosingRaw(context, request, cq));
166 : }
167 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncclosing(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent& request, ::grpc::CompletionQueue* cq) {
168 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncclosingRaw(context, request, cq));
169 : }
170 : class experimental_async final :
171 : public StubInterface::experimental_async_interface {
172 : public:
173 : void button(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) override;
174 : void check(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) override;
175 : void radio(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) override;
176 : void linetext(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) override;
177 : void slidevalue(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) override;
178 : void exiting(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) override;
179 : void closing(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) override;
180 : private:
181 : friend class Stub;
182 0 : explicit experimental_async(Stub* stub): stub_(stub) { }
183 : Stub* stub() { return stub_; }
184 : Stub* stub_;
185 : };
186 0 : class experimental_async_interface* experimental_async() override { return &async_stub_; }
187 :
188 : private:
189 : std::shared_ptr< ::grpc::ChannelInterface> channel_;
190 : class experimental_async async_stub_{this};
191 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncbuttonRaw(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent& request, ::grpc::CompletionQueue* cq) override;
192 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncbuttonRaw(::grpc::ClientContext* context, const ::rpc::gui::ButtonEvent& request, ::grpc::CompletionQueue* cq) override;
193 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsynccheckRaw(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent& request, ::grpc::CompletionQueue* cq) override;
194 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsynccheckRaw(::grpc::ClientContext* context, const ::rpc::gui::CheckEvent& request, ::grpc::CompletionQueue* cq) override;
195 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncradioRaw(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent& request, ::grpc::CompletionQueue* cq) override;
196 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncradioRaw(::grpc::ClientContext* context, const ::rpc::gui::RadioEvent& request, ::grpc::CompletionQueue* cq) override;
197 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsynclinetextRaw(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent& request, ::grpc::CompletionQueue* cq) override;
198 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsynclinetextRaw(::grpc::ClientContext* context, const ::rpc::gui::LineTextEvent& request, ::grpc::CompletionQueue* cq) override;
199 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncslidevalueRaw(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent& request, ::grpc::CompletionQueue* cq) override;
200 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncslidevalueRaw(::grpc::ClientContext* context, const ::rpc::gui::SlideValueEvent& request, ::grpc::CompletionQueue* cq) override;
201 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncexitingRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
202 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncexitingRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
203 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncclosingRaw(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent& request, ::grpc::CompletionQueue* cq) override;
204 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncclosingRaw(::grpc::ClientContext* context, const ::rpc::gui::ClosingEvent& request, ::grpc::CompletionQueue* cq) override;
205 : const ::grpc::internal::RpcMethod rpcmethod_button_;
206 : const ::grpc::internal::RpcMethod rpcmethod_check_;
207 : const ::grpc::internal::RpcMethod rpcmethod_radio_;
208 : const ::grpc::internal::RpcMethod rpcmethod_linetext_;
209 : const ::grpc::internal::RpcMethod rpcmethod_slidevalue_;
210 : const ::grpc::internal::RpcMethod rpcmethod_exiting_;
211 : const ::grpc::internal::RpcMethod rpcmethod_closing_;
212 : };
213 : static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
214 :
215 : class Service : public ::grpc::Service {
216 : public:
217 : Service();
218 : virtual ~Service();
219 : virtual ::grpc::Status button(::grpc::ServerContext* context, const ::rpc::gui::ButtonEvent* request, ::google::protobuf::Empty* response);
220 : virtual ::grpc::Status check(::grpc::ServerContext* context, const ::rpc::gui::CheckEvent* request, ::google::protobuf::Empty* response);
221 : virtual ::grpc::Status radio(::grpc::ServerContext* context, const ::rpc::gui::RadioEvent* request, ::google::protobuf::Empty* response);
222 : virtual ::grpc::Status linetext(::grpc::ServerContext* context, const ::rpc::gui::LineTextEvent* request, ::google::protobuf::Empty* response);
223 : virtual ::grpc::Status slidevalue(::grpc::ServerContext* context, const ::rpc::gui::SlideValueEvent* request, ::google::protobuf::Empty* response);
224 : virtual ::grpc::Status exiting(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response);
225 : virtual ::grpc::Status closing(::grpc::ServerContext* context, const ::rpc::gui::ClosingEvent* request, ::google::protobuf::Empty* response);
226 : };
227 : template <class BaseClass>
228 : class WithAsyncMethod_button : public BaseClass {
229 : private:
230 : void BaseClassMustBeDerivedFromService(const Service *service) {}
231 : public:
232 : WithAsyncMethod_button() {
233 : ::grpc::Service::MarkMethodAsync(0);
234 : }
235 : ~WithAsyncMethod_button() override {
236 : BaseClassMustBeDerivedFromService(this);
237 : }
238 : // disable synchronous version of this method
239 : ::grpc::Status button(::grpc::ServerContext* context, const ::rpc::gui::ButtonEvent* request, ::google::protobuf::Empty* response) override {
240 : abort();
241 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
242 : }
243 : void Requestbutton(::grpc::ServerContext* context, ::rpc::gui::ButtonEvent* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
244 : ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
245 : }
246 : };
247 : template <class BaseClass>
248 : class WithAsyncMethod_check : public BaseClass {
249 : private:
250 : void BaseClassMustBeDerivedFromService(const Service *service) {}
251 : public:
252 : WithAsyncMethod_check() {
253 : ::grpc::Service::MarkMethodAsync(1);
254 : }
255 : ~WithAsyncMethod_check() override {
256 : BaseClassMustBeDerivedFromService(this);
257 : }
258 : // disable synchronous version of this method
259 : ::grpc::Status check(::grpc::ServerContext* context, const ::rpc::gui::CheckEvent* request, ::google::protobuf::Empty* response) override {
260 : abort();
261 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
262 : }
263 : void Requestcheck(::grpc::ServerContext* context, ::rpc::gui::CheckEvent* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
264 : ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
265 : }
266 : };
267 : template <class BaseClass>
268 : class WithAsyncMethod_radio : public BaseClass {
269 : private:
270 : void BaseClassMustBeDerivedFromService(const Service *service) {}
271 : public:
272 : WithAsyncMethod_radio() {
273 : ::grpc::Service::MarkMethodAsync(2);
274 : }
275 : ~WithAsyncMethod_radio() override {
276 : BaseClassMustBeDerivedFromService(this);
277 : }
278 : // disable synchronous version of this method
279 : ::grpc::Status radio(::grpc::ServerContext* context, const ::rpc::gui::RadioEvent* request, ::google::protobuf::Empty* response) override {
280 : abort();
281 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
282 : }
283 : void Requestradio(::grpc::ServerContext* context, ::rpc::gui::RadioEvent* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
284 : ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
285 : }
286 : };
287 : template <class BaseClass>
288 : class WithAsyncMethod_linetext : public BaseClass {
289 : private:
290 : void BaseClassMustBeDerivedFromService(const Service *service) {}
291 : public:
292 : WithAsyncMethod_linetext() {
293 : ::grpc::Service::MarkMethodAsync(3);
294 : }
295 : ~WithAsyncMethod_linetext() override {
296 : BaseClassMustBeDerivedFromService(this);
297 : }
298 : // disable synchronous version of this method
299 : ::grpc::Status linetext(::grpc::ServerContext* context, const ::rpc::gui::LineTextEvent* request, ::google::protobuf::Empty* response) override {
300 : abort();
301 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
302 : }
303 : void Requestlinetext(::grpc::ServerContext* context, ::rpc::gui::LineTextEvent* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
304 : ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
305 : }
306 : };
307 : template <class BaseClass>
308 : class WithAsyncMethod_slidevalue : public BaseClass {
309 : private:
310 : void BaseClassMustBeDerivedFromService(const Service *service) {}
311 : public:
312 : WithAsyncMethod_slidevalue() {
313 : ::grpc::Service::MarkMethodAsync(4);
314 : }
315 : ~WithAsyncMethod_slidevalue() override {
316 : BaseClassMustBeDerivedFromService(this);
317 : }
318 : // disable synchronous version of this method
319 : ::grpc::Status slidevalue(::grpc::ServerContext* context, const ::rpc::gui::SlideValueEvent* request, ::google::protobuf::Empty* response) override {
320 : abort();
321 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
322 : }
323 : void Requestslidevalue(::grpc::ServerContext* context, ::rpc::gui::SlideValueEvent* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
324 : ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag);
325 : }
326 : };
327 : template <class BaseClass>
328 : class WithAsyncMethod_exiting : public BaseClass {
329 : private:
330 : void BaseClassMustBeDerivedFromService(const Service *service) {}
331 : public:
332 : WithAsyncMethod_exiting() {
333 : ::grpc::Service::MarkMethodAsync(5);
334 : }
335 : ~WithAsyncMethod_exiting() override {
336 : BaseClassMustBeDerivedFromService(this);
337 : }
338 : // disable synchronous version of this method
339 : ::grpc::Status exiting(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
340 : abort();
341 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
342 : }
343 : void Requestexiting(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
344 : ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
345 : }
346 : };
347 : template <class BaseClass>
348 : class WithAsyncMethod_closing : public BaseClass {
349 : private:
350 : void BaseClassMustBeDerivedFromService(const Service *service) {}
351 : public:
352 : WithAsyncMethod_closing() {
353 : ::grpc::Service::MarkMethodAsync(6);
354 : }
355 : ~WithAsyncMethod_closing() override {
356 : BaseClassMustBeDerivedFromService(this);
357 : }
358 : // disable synchronous version of this method
359 : ::grpc::Status closing(::grpc::ServerContext* context, const ::rpc::gui::ClosingEvent* request, ::google::protobuf::Empty* response) override {
360 : abort();
361 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
362 : }
363 : void Requestclosing(::grpc::ServerContext* context, ::rpc::gui::ClosingEvent* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
364 : ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag);
365 : }
366 : };
367 : typedef WithAsyncMethod_button<WithAsyncMethod_check<WithAsyncMethod_radio<WithAsyncMethod_linetext<WithAsyncMethod_slidevalue<WithAsyncMethod_exiting<WithAsyncMethod_closing<Service > > > > > > > AsyncService;
368 : template <class BaseClass>
369 : class ExperimentalWithCallbackMethod_button : public BaseClass {
370 : private:
371 : void BaseClassMustBeDerivedFromService(const Service *service) {}
372 : public:
373 : ExperimentalWithCallbackMethod_button() {
374 : ::grpc::Service::experimental().MarkMethodCallback(0,
375 : new ::grpc::internal::CallbackUnaryHandler< ::rpc::gui::ButtonEvent, ::google::protobuf::Empty>(
376 : [this](::grpc::ServerContext* context,
377 : const ::rpc::gui::ButtonEvent* request,
378 : ::google::protobuf::Empty* response,
379 : ::grpc::experimental::ServerCallbackRpcController* controller) {
380 : return this->button(context, request, response, controller);
381 : }));
382 : }
383 : ~ExperimentalWithCallbackMethod_button() override {
384 : BaseClassMustBeDerivedFromService(this);
385 : }
386 : // disable synchronous version of this method
387 : ::grpc::Status button(::grpc::ServerContext* context, const ::rpc::gui::ButtonEvent* request, ::google::protobuf::Empty* response) override {
388 : abort();
389 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
390 : }
391 : virtual void button(::grpc::ServerContext* context, const ::rpc::gui::ButtonEvent* request, ::google::protobuf::Empty* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
392 : };
393 : template <class BaseClass>
394 : class ExperimentalWithCallbackMethod_check : public BaseClass {
395 : private:
396 : void BaseClassMustBeDerivedFromService(const Service *service) {}
397 : public:
398 : ExperimentalWithCallbackMethod_check() {
399 : ::grpc::Service::experimental().MarkMethodCallback(1,
400 : new ::grpc::internal::CallbackUnaryHandler< ::rpc::gui::CheckEvent, ::google::protobuf::Empty>(
401 : [this](::grpc::ServerContext* context,
402 : const ::rpc::gui::CheckEvent* request,
403 : ::google::protobuf::Empty* response,
404 : ::grpc::experimental::ServerCallbackRpcController* controller) {
405 : return this->check(context, request, response, controller);
406 : }));
407 : }
408 : ~ExperimentalWithCallbackMethod_check() override {
409 : BaseClassMustBeDerivedFromService(this);
410 : }
411 : // disable synchronous version of this method
412 : ::grpc::Status check(::grpc::ServerContext* context, const ::rpc::gui::CheckEvent* request, ::google::protobuf::Empty* response) override {
413 : abort();
414 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
415 : }
416 : virtual void check(::grpc::ServerContext* context, const ::rpc::gui::CheckEvent* request, ::google::protobuf::Empty* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
417 : };
418 : template <class BaseClass>
419 : class ExperimentalWithCallbackMethod_radio : public BaseClass {
420 : private:
421 : void BaseClassMustBeDerivedFromService(const Service *service) {}
422 : public:
423 : ExperimentalWithCallbackMethod_radio() {
424 : ::grpc::Service::experimental().MarkMethodCallback(2,
425 : new ::grpc::internal::CallbackUnaryHandler< ::rpc::gui::RadioEvent, ::google::protobuf::Empty>(
426 : [this](::grpc::ServerContext* context,
427 : const ::rpc::gui::RadioEvent* request,
428 : ::google::protobuf::Empty* response,
429 : ::grpc::experimental::ServerCallbackRpcController* controller) {
430 : return this->radio(context, request, response, controller);
431 : }));
432 : }
433 : ~ExperimentalWithCallbackMethod_radio() override {
434 : BaseClassMustBeDerivedFromService(this);
435 : }
436 : // disable synchronous version of this method
437 : ::grpc::Status radio(::grpc::ServerContext* context, const ::rpc::gui::RadioEvent* request, ::google::protobuf::Empty* response) override {
438 : abort();
439 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
440 : }
441 : virtual void radio(::grpc::ServerContext* context, const ::rpc::gui::RadioEvent* request, ::google::protobuf::Empty* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
442 : };
443 : template <class BaseClass>
444 : class ExperimentalWithCallbackMethod_linetext : public BaseClass {
445 : private:
446 : void BaseClassMustBeDerivedFromService(const Service *service) {}
447 : public:
448 : ExperimentalWithCallbackMethod_linetext() {
449 : ::grpc::Service::experimental().MarkMethodCallback(3,
450 : new ::grpc::internal::CallbackUnaryHandler< ::rpc::gui::LineTextEvent, ::google::protobuf::Empty>(
451 : [this](::grpc::ServerContext* context,
452 : const ::rpc::gui::LineTextEvent* request,
453 : ::google::protobuf::Empty* response,
454 : ::grpc::experimental::ServerCallbackRpcController* controller) {
455 : return this->linetext(context, request, response, controller);
456 : }));
457 : }
458 : ~ExperimentalWithCallbackMethod_linetext() override {
459 : BaseClassMustBeDerivedFromService(this);
460 : }
461 : // disable synchronous version of this method
462 : ::grpc::Status linetext(::grpc::ServerContext* context, const ::rpc::gui::LineTextEvent* request, ::google::protobuf::Empty* response) override {
463 : abort();
464 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
465 : }
466 : virtual void linetext(::grpc::ServerContext* context, const ::rpc::gui::LineTextEvent* request, ::google::protobuf::Empty* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
467 : };
468 : template <class BaseClass>
469 : class ExperimentalWithCallbackMethod_slidevalue : public BaseClass {
470 : private:
471 : void BaseClassMustBeDerivedFromService(const Service *service) {}
472 : public:
473 : ExperimentalWithCallbackMethod_slidevalue() {
474 : ::grpc::Service::experimental().MarkMethodCallback(4,
475 : new ::grpc::internal::CallbackUnaryHandler< ::rpc::gui::SlideValueEvent, ::google::protobuf::Empty>(
476 : [this](::grpc::ServerContext* context,
477 : const ::rpc::gui::SlideValueEvent* request,
478 : ::google::protobuf::Empty* response,
479 : ::grpc::experimental::ServerCallbackRpcController* controller) {
480 : return this->slidevalue(context, request, response, controller);
481 : }));
482 : }
483 : ~ExperimentalWithCallbackMethod_slidevalue() override {
484 : BaseClassMustBeDerivedFromService(this);
485 : }
486 : // disable synchronous version of this method
487 : ::grpc::Status slidevalue(::grpc::ServerContext* context, const ::rpc::gui::SlideValueEvent* request, ::google::protobuf::Empty* response) override {
488 : abort();
489 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
490 : }
491 : virtual void slidevalue(::grpc::ServerContext* context, const ::rpc::gui::SlideValueEvent* request, ::google::protobuf::Empty* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
492 : };
493 : template <class BaseClass>
494 : class ExperimentalWithCallbackMethod_exiting : public BaseClass {
495 : private:
496 : void BaseClassMustBeDerivedFromService(const Service *service) {}
497 : public:
498 : ExperimentalWithCallbackMethod_exiting() {
499 : ::grpc::Service::experimental().MarkMethodCallback(5,
500 : new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::google::protobuf::Empty>(
501 : [this](::grpc::ServerContext* context,
502 : const ::google::protobuf::Empty* request,
503 : ::google::protobuf::Empty* response,
504 : ::grpc::experimental::ServerCallbackRpcController* controller) {
505 : return this->exiting(context, request, response, controller);
506 : }));
507 : }
508 : ~ExperimentalWithCallbackMethod_exiting() override {
509 : BaseClassMustBeDerivedFromService(this);
510 : }
511 : // disable synchronous version of this method
512 : ::grpc::Status exiting(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
513 : abort();
514 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
515 : }
516 : virtual void exiting(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
517 : };
518 : template <class BaseClass>
519 : class ExperimentalWithCallbackMethod_closing : public BaseClass {
520 : private:
521 : void BaseClassMustBeDerivedFromService(const Service *service) {}
522 : public:
523 : ExperimentalWithCallbackMethod_closing() {
524 : ::grpc::Service::experimental().MarkMethodCallback(6,
525 : new ::grpc::internal::CallbackUnaryHandler< ::rpc::gui::ClosingEvent, ::google::protobuf::Empty>(
526 : [this](::grpc::ServerContext* context,
527 : const ::rpc::gui::ClosingEvent* request,
528 : ::google::protobuf::Empty* response,
529 : ::grpc::experimental::ServerCallbackRpcController* controller) {
530 : return this->closing(context, request, response, controller);
531 : }));
532 : }
533 : ~ExperimentalWithCallbackMethod_closing() override {
534 : BaseClassMustBeDerivedFromService(this);
535 : }
536 : // disable synchronous version of this method
537 : ::grpc::Status closing(::grpc::ServerContext* context, const ::rpc::gui::ClosingEvent* request, ::google::protobuf::Empty* response) override {
538 : abort();
539 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
540 : }
541 : virtual void closing(::grpc::ServerContext* context, const ::rpc::gui::ClosingEvent* request, ::google::protobuf::Empty* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
542 : };
543 : typedef ExperimentalWithCallbackMethod_button<ExperimentalWithCallbackMethod_check<ExperimentalWithCallbackMethod_radio<ExperimentalWithCallbackMethod_linetext<ExperimentalWithCallbackMethod_slidevalue<ExperimentalWithCallbackMethod_exiting<ExperimentalWithCallbackMethod_closing<Service > > > > > > > ExperimentalCallbackService;
544 : template <class BaseClass>
545 : class WithGenericMethod_button : public BaseClass {
546 : private:
547 : void BaseClassMustBeDerivedFromService(const Service *service) {}
548 : public:
549 : WithGenericMethod_button() {
550 : ::grpc::Service::MarkMethodGeneric(0);
551 : }
552 : ~WithGenericMethod_button() override {
553 : BaseClassMustBeDerivedFromService(this);
554 : }
555 : // disable synchronous version of this method
556 : ::grpc::Status button(::grpc::ServerContext* context, const ::rpc::gui::ButtonEvent* request, ::google::protobuf::Empty* response) override {
557 : abort();
558 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
559 : }
560 : };
561 : template <class BaseClass>
562 : class WithGenericMethod_check : public BaseClass {
563 : private:
564 : void BaseClassMustBeDerivedFromService(const Service *service) {}
565 : public:
566 : WithGenericMethod_check() {
567 : ::grpc::Service::MarkMethodGeneric(1);
568 : }
569 : ~WithGenericMethod_check() override {
570 : BaseClassMustBeDerivedFromService(this);
571 : }
572 : // disable synchronous version of this method
573 : ::grpc::Status check(::grpc::ServerContext* context, const ::rpc::gui::CheckEvent* request, ::google::protobuf::Empty* response) override {
574 : abort();
575 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
576 : }
577 : };
578 : template <class BaseClass>
579 : class WithGenericMethod_radio : public BaseClass {
580 : private:
581 : void BaseClassMustBeDerivedFromService(const Service *service) {}
582 : public:
583 : WithGenericMethod_radio() {
584 : ::grpc::Service::MarkMethodGeneric(2);
585 : }
586 : ~WithGenericMethod_radio() override {
587 : BaseClassMustBeDerivedFromService(this);
588 : }
589 : // disable synchronous version of this method
590 : ::grpc::Status radio(::grpc::ServerContext* context, const ::rpc::gui::RadioEvent* request, ::google::protobuf::Empty* response) override {
591 : abort();
592 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
593 : }
594 : };
595 : template <class BaseClass>
596 : class WithGenericMethod_linetext : public BaseClass {
597 : private:
598 : void BaseClassMustBeDerivedFromService(const Service *service) {}
599 : public:
600 : WithGenericMethod_linetext() {
601 : ::grpc::Service::MarkMethodGeneric(3);
602 : }
603 : ~WithGenericMethod_linetext() override {
604 : BaseClassMustBeDerivedFromService(this);
605 : }
606 : // disable synchronous version of this method
607 : ::grpc::Status linetext(::grpc::ServerContext* context, const ::rpc::gui::LineTextEvent* request, ::google::protobuf::Empty* response) override {
608 : abort();
609 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
610 : }
611 : };
612 : template <class BaseClass>
613 : class WithGenericMethod_slidevalue : public BaseClass {
614 : private:
615 : void BaseClassMustBeDerivedFromService(const Service *service) {}
616 : public:
617 : WithGenericMethod_slidevalue() {
618 : ::grpc::Service::MarkMethodGeneric(4);
619 : }
620 : ~WithGenericMethod_slidevalue() override {
621 : BaseClassMustBeDerivedFromService(this);
622 : }
623 : // disable synchronous version of this method
624 : ::grpc::Status slidevalue(::grpc::ServerContext* context, const ::rpc::gui::SlideValueEvent* request, ::google::protobuf::Empty* response) override {
625 : abort();
626 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
627 : }
628 : };
629 : template <class BaseClass>
630 : class WithGenericMethod_exiting : public BaseClass {
631 : private:
632 : void BaseClassMustBeDerivedFromService(const Service *service) {}
633 : public:
634 : WithGenericMethod_exiting() {
635 : ::grpc::Service::MarkMethodGeneric(5);
636 : }
637 : ~WithGenericMethod_exiting() override {
638 : BaseClassMustBeDerivedFromService(this);
639 : }
640 : // disable synchronous version of this method
641 : ::grpc::Status exiting(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
642 : abort();
643 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
644 : }
645 : };
646 : template <class BaseClass>
647 : class WithGenericMethod_closing : public BaseClass {
648 : private:
649 : void BaseClassMustBeDerivedFromService(const Service *service) {}
650 : public:
651 : WithGenericMethod_closing() {
652 : ::grpc::Service::MarkMethodGeneric(6);
653 : }
654 : ~WithGenericMethod_closing() override {
655 : BaseClassMustBeDerivedFromService(this);
656 : }
657 : // disable synchronous version of this method
658 : ::grpc::Status closing(::grpc::ServerContext* context, const ::rpc::gui::ClosingEvent* request, ::google::protobuf::Empty* response) override {
659 : abort();
660 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
661 : }
662 : };
663 : template <class BaseClass>
664 : class WithRawMethod_button : public BaseClass {
665 : private:
666 : void BaseClassMustBeDerivedFromService(const Service *service) {}
667 : public:
668 : WithRawMethod_button() {
669 : ::grpc::Service::MarkMethodRaw(0);
670 : }
671 : ~WithRawMethod_button() override {
672 : BaseClassMustBeDerivedFromService(this);
673 : }
674 : // disable synchronous version of this method
675 : ::grpc::Status button(::grpc::ServerContext* context, const ::rpc::gui::ButtonEvent* request, ::google::protobuf::Empty* response) override {
676 : abort();
677 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
678 : }
679 : void Requestbutton(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
680 : ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
681 : }
682 : };
683 : template <class BaseClass>
684 : class WithRawMethod_check : public BaseClass {
685 : private:
686 : void BaseClassMustBeDerivedFromService(const Service *service) {}
687 : public:
688 : WithRawMethod_check() {
689 : ::grpc::Service::MarkMethodRaw(1);
690 : }
691 : ~WithRawMethod_check() override {
692 : BaseClassMustBeDerivedFromService(this);
693 : }
694 : // disable synchronous version of this method
695 : ::grpc::Status check(::grpc::ServerContext* context, const ::rpc::gui::CheckEvent* request, ::google::protobuf::Empty* response) override {
696 : abort();
697 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
698 : }
699 : void Requestcheck(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
700 : ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
701 : }
702 : };
703 : template <class BaseClass>
704 : class WithRawMethod_radio : public BaseClass {
705 : private:
706 : void BaseClassMustBeDerivedFromService(const Service *service) {}
707 : public:
708 : WithRawMethod_radio() {
709 : ::grpc::Service::MarkMethodRaw(2);
710 : }
711 : ~WithRawMethod_radio() override {
712 : BaseClassMustBeDerivedFromService(this);
713 : }
714 : // disable synchronous version of this method
715 : ::grpc::Status radio(::grpc::ServerContext* context, const ::rpc::gui::RadioEvent* request, ::google::protobuf::Empty* response) override {
716 : abort();
717 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
718 : }
719 : void Requestradio(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
720 : ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
721 : }
722 : };
723 : template <class BaseClass>
724 : class WithRawMethod_linetext : public BaseClass {
725 : private:
726 : void BaseClassMustBeDerivedFromService(const Service *service) {}
727 : public:
728 : WithRawMethod_linetext() {
729 : ::grpc::Service::MarkMethodRaw(3);
730 : }
731 : ~WithRawMethod_linetext() override {
732 : BaseClassMustBeDerivedFromService(this);
733 : }
734 : // disable synchronous version of this method
735 : ::grpc::Status linetext(::grpc::ServerContext* context, const ::rpc::gui::LineTextEvent* request, ::google::protobuf::Empty* response) override {
736 : abort();
737 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
738 : }
739 : void Requestlinetext(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
740 : ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
741 : }
742 : };
743 : template <class BaseClass>
744 : class WithRawMethod_slidevalue : public BaseClass {
745 : private:
746 : void BaseClassMustBeDerivedFromService(const Service *service) {}
747 : public:
748 : WithRawMethod_slidevalue() {
749 : ::grpc::Service::MarkMethodRaw(4);
750 : }
751 : ~WithRawMethod_slidevalue() override {
752 : BaseClassMustBeDerivedFromService(this);
753 : }
754 : // disable synchronous version of this method
755 : ::grpc::Status slidevalue(::grpc::ServerContext* context, const ::rpc::gui::SlideValueEvent* request, ::google::protobuf::Empty* response) override {
756 : abort();
757 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
758 : }
759 : void Requestslidevalue(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
760 : ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag);
761 : }
762 : };
763 : template <class BaseClass>
764 : class WithRawMethod_exiting : public BaseClass {
765 : private:
766 : void BaseClassMustBeDerivedFromService(const Service *service) {}
767 : public:
768 : WithRawMethod_exiting() {
769 : ::grpc::Service::MarkMethodRaw(5);
770 : }
771 : ~WithRawMethod_exiting() override {
772 : BaseClassMustBeDerivedFromService(this);
773 : }
774 : // disable synchronous version of this method
775 : ::grpc::Status exiting(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
776 : abort();
777 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
778 : }
779 : void Requestexiting(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
780 : ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag);
781 : }
782 : };
783 : template <class BaseClass>
784 : class WithRawMethod_closing : public BaseClass {
785 : private:
786 : void BaseClassMustBeDerivedFromService(const Service *service) {}
787 : public:
788 : WithRawMethod_closing() {
789 : ::grpc::Service::MarkMethodRaw(6);
790 : }
791 : ~WithRawMethod_closing() override {
792 : BaseClassMustBeDerivedFromService(this);
793 : }
794 : // disable synchronous version of this method
795 : ::grpc::Status closing(::grpc::ServerContext* context, const ::rpc::gui::ClosingEvent* request, ::google::protobuf::Empty* response) override {
796 : abort();
797 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
798 : }
799 : void Requestclosing(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
800 : ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag);
801 : }
802 : };
803 : template <class BaseClass>
804 : class ExperimentalWithRawCallbackMethod_button : public BaseClass {
805 : private:
806 : void BaseClassMustBeDerivedFromService(const Service *service) {}
807 : public:
808 : ExperimentalWithRawCallbackMethod_button() {
809 : ::grpc::Service::experimental().MarkMethodRawCallback(0,
810 : new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
811 : [this](::grpc::ServerContext* context,
812 : const ::grpc::ByteBuffer* request,
813 : ::grpc::ByteBuffer* response,
814 : ::grpc::experimental::ServerCallbackRpcController* controller) {
815 : this->button(context, request, response, controller);
816 : }));
817 : }
818 : ~ExperimentalWithRawCallbackMethod_button() override {
819 : BaseClassMustBeDerivedFromService(this);
820 : }
821 : // disable synchronous version of this method
822 : ::grpc::Status button(::grpc::ServerContext* context, const ::rpc::gui::ButtonEvent* request, ::google::protobuf::Empty* response) override {
823 : abort();
824 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
825 : }
826 : virtual void button(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
827 : };
828 : template <class BaseClass>
829 : class ExperimentalWithRawCallbackMethod_check : public BaseClass {
830 : private:
831 : void BaseClassMustBeDerivedFromService(const Service *service) {}
832 : public:
833 : ExperimentalWithRawCallbackMethod_check() {
834 : ::grpc::Service::experimental().MarkMethodRawCallback(1,
835 : new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
836 : [this](::grpc::ServerContext* context,
837 : const ::grpc::ByteBuffer* request,
838 : ::grpc::ByteBuffer* response,
839 : ::grpc::experimental::ServerCallbackRpcController* controller) {
840 : this->check(context, request, response, controller);
841 : }));
842 : }
843 : ~ExperimentalWithRawCallbackMethod_check() override {
844 : BaseClassMustBeDerivedFromService(this);
845 : }
846 : // disable synchronous version of this method
847 : ::grpc::Status check(::grpc::ServerContext* context, const ::rpc::gui::CheckEvent* request, ::google::protobuf::Empty* response) override {
848 : abort();
849 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
850 : }
851 : virtual void check(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
852 : };
853 : template <class BaseClass>
854 : class ExperimentalWithRawCallbackMethod_radio : public BaseClass {
855 : private:
856 : void BaseClassMustBeDerivedFromService(const Service *service) {}
857 : public:
858 : ExperimentalWithRawCallbackMethod_radio() {
859 : ::grpc::Service::experimental().MarkMethodRawCallback(2,
860 : new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
861 : [this](::grpc::ServerContext* context,
862 : const ::grpc::ByteBuffer* request,
863 : ::grpc::ByteBuffer* response,
864 : ::grpc::experimental::ServerCallbackRpcController* controller) {
865 : this->radio(context, request, response, controller);
866 : }));
867 : }
868 : ~ExperimentalWithRawCallbackMethod_radio() override {
869 : BaseClassMustBeDerivedFromService(this);
870 : }
871 : // disable synchronous version of this method
872 : ::grpc::Status radio(::grpc::ServerContext* context, const ::rpc::gui::RadioEvent* request, ::google::protobuf::Empty* response) override {
873 : abort();
874 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
875 : }
876 : virtual void radio(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
877 : };
878 : template <class BaseClass>
879 : class ExperimentalWithRawCallbackMethod_linetext : public BaseClass {
880 : private:
881 : void BaseClassMustBeDerivedFromService(const Service *service) {}
882 : public:
883 : ExperimentalWithRawCallbackMethod_linetext() {
884 : ::grpc::Service::experimental().MarkMethodRawCallback(3,
885 : new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
886 : [this](::grpc::ServerContext* context,
887 : const ::grpc::ByteBuffer* request,
888 : ::grpc::ByteBuffer* response,
889 : ::grpc::experimental::ServerCallbackRpcController* controller) {
890 : this->linetext(context, request, response, controller);
891 : }));
892 : }
893 : ~ExperimentalWithRawCallbackMethod_linetext() override {
894 : BaseClassMustBeDerivedFromService(this);
895 : }
896 : // disable synchronous version of this method
897 : ::grpc::Status linetext(::grpc::ServerContext* context, const ::rpc::gui::LineTextEvent* request, ::google::protobuf::Empty* response) override {
898 : abort();
899 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
900 : }
901 : virtual void linetext(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
902 : };
903 : template <class BaseClass>
904 : class ExperimentalWithRawCallbackMethod_slidevalue : public BaseClass {
905 : private:
906 : void BaseClassMustBeDerivedFromService(const Service *service) {}
907 : public:
908 : ExperimentalWithRawCallbackMethod_slidevalue() {
909 : ::grpc::Service::experimental().MarkMethodRawCallback(4,
910 : new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
911 : [this](::grpc::ServerContext* context,
912 : const ::grpc::ByteBuffer* request,
913 : ::grpc::ByteBuffer* response,
914 : ::grpc::experimental::ServerCallbackRpcController* controller) {
915 : this->slidevalue(context, request, response, controller);
916 : }));
917 : }
918 : ~ExperimentalWithRawCallbackMethod_slidevalue() override {
919 : BaseClassMustBeDerivedFromService(this);
920 : }
921 : // disable synchronous version of this method
922 : ::grpc::Status slidevalue(::grpc::ServerContext* context, const ::rpc::gui::SlideValueEvent* request, ::google::protobuf::Empty* response) override {
923 : abort();
924 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
925 : }
926 : virtual void slidevalue(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
927 : };
928 : template <class BaseClass>
929 : class ExperimentalWithRawCallbackMethod_exiting : public BaseClass {
930 : private:
931 : void BaseClassMustBeDerivedFromService(const Service *service) {}
932 : public:
933 : ExperimentalWithRawCallbackMethod_exiting() {
934 : ::grpc::Service::experimental().MarkMethodRawCallback(5,
935 : new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
936 : [this](::grpc::ServerContext* context,
937 : const ::grpc::ByteBuffer* request,
938 : ::grpc::ByteBuffer* response,
939 : ::grpc::experimental::ServerCallbackRpcController* controller) {
940 : this->exiting(context, request, response, controller);
941 : }));
942 : }
943 : ~ExperimentalWithRawCallbackMethod_exiting() override {
944 : BaseClassMustBeDerivedFromService(this);
945 : }
946 : // disable synchronous version of this method
947 : ::grpc::Status exiting(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
948 : abort();
949 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
950 : }
951 : virtual void exiting(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
952 : };
953 : template <class BaseClass>
954 : class ExperimentalWithRawCallbackMethod_closing : public BaseClass {
955 : private:
956 : void BaseClassMustBeDerivedFromService(const Service *service) {}
957 : public:
958 : ExperimentalWithRawCallbackMethod_closing() {
959 : ::grpc::Service::experimental().MarkMethodRawCallback(6,
960 : new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
961 : [this](::grpc::ServerContext* context,
962 : const ::grpc::ByteBuffer* request,
963 : ::grpc::ByteBuffer* response,
964 : ::grpc::experimental::ServerCallbackRpcController* controller) {
965 : this->closing(context, request, response, controller);
966 : }));
967 : }
968 : ~ExperimentalWithRawCallbackMethod_closing() override {
969 : BaseClassMustBeDerivedFromService(this);
970 : }
971 : // disable synchronous version of this method
972 : ::grpc::Status closing(::grpc::ServerContext* context, const ::rpc::gui::ClosingEvent* request, ::google::protobuf::Empty* response) override {
973 : abort();
974 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
975 : }
976 : virtual void closing(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
977 : };
978 : template <class BaseClass>
979 : class WithStreamedUnaryMethod_button : public BaseClass {
980 : private:
981 : void BaseClassMustBeDerivedFromService(const Service *service) {}
982 : public:
983 : WithStreamedUnaryMethod_button() {
984 : ::grpc::Service::MarkMethodStreamed(0,
985 : new ::grpc::internal::StreamedUnaryHandler< ::rpc::gui::ButtonEvent, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_button<BaseClass>::Streamedbutton, this, std::placeholders::_1, std::placeholders::_2)));
986 : }
987 : ~WithStreamedUnaryMethod_button() override {
988 : BaseClassMustBeDerivedFromService(this);
989 : }
990 : // disable regular version of this method
991 : ::grpc::Status button(::grpc::ServerContext* context, const ::rpc::gui::ButtonEvent* request, ::google::protobuf::Empty* response) override {
992 : abort();
993 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
994 : }
995 : // replace default version of method with streamed unary
996 : virtual ::grpc::Status Streamedbutton(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rpc::gui::ButtonEvent,::google::protobuf::Empty>* server_unary_streamer) = 0;
997 : };
998 : template <class BaseClass>
999 : class WithStreamedUnaryMethod_check : public BaseClass {
1000 : private:
1001 : void BaseClassMustBeDerivedFromService(const Service *service) {}
1002 : public:
1003 : WithStreamedUnaryMethod_check() {
1004 : ::grpc::Service::MarkMethodStreamed(1,
1005 : new ::grpc::internal::StreamedUnaryHandler< ::rpc::gui::CheckEvent, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_check<BaseClass>::Streamedcheck, this, std::placeholders::_1, std::placeholders::_2)));
1006 : }
1007 : ~WithStreamedUnaryMethod_check() override {
1008 : BaseClassMustBeDerivedFromService(this);
1009 : }
1010 : // disable regular version of this method
1011 : ::grpc::Status check(::grpc::ServerContext* context, const ::rpc::gui::CheckEvent* request, ::google::protobuf::Empty* response) override {
1012 : abort();
1013 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1014 : }
1015 : // replace default version of method with streamed unary
1016 : virtual ::grpc::Status Streamedcheck(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rpc::gui::CheckEvent,::google::protobuf::Empty>* server_unary_streamer) = 0;
1017 : };
1018 : template <class BaseClass>
1019 : class WithStreamedUnaryMethod_radio : public BaseClass {
1020 : private:
1021 : void BaseClassMustBeDerivedFromService(const Service *service) {}
1022 : public:
1023 : WithStreamedUnaryMethod_radio() {
1024 : ::grpc::Service::MarkMethodStreamed(2,
1025 : new ::grpc::internal::StreamedUnaryHandler< ::rpc::gui::RadioEvent, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_radio<BaseClass>::Streamedradio, this, std::placeholders::_1, std::placeholders::_2)));
1026 : }
1027 : ~WithStreamedUnaryMethod_radio() override {
1028 : BaseClassMustBeDerivedFromService(this);
1029 : }
1030 : // disable regular version of this method
1031 : ::grpc::Status radio(::grpc::ServerContext* context, const ::rpc::gui::RadioEvent* request, ::google::protobuf::Empty* response) override {
1032 : abort();
1033 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1034 : }
1035 : // replace default version of method with streamed unary
1036 : virtual ::grpc::Status Streamedradio(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rpc::gui::RadioEvent,::google::protobuf::Empty>* server_unary_streamer) = 0;
1037 : };
1038 : template <class BaseClass>
1039 : class WithStreamedUnaryMethod_linetext : public BaseClass {
1040 : private:
1041 : void BaseClassMustBeDerivedFromService(const Service *service) {}
1042 : public:
1043 : WithStreamedUnaryMethod_linetext() {
1044 : ::grpc::Service::MarkMethodStreamed(3,
1045 : new ::grpc::internal::StreamedUnaryHandler< ::rpc::gui::LineTextEvent, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_linetext<BaseClass>::Streamedlinetext, this, std::placeholders::_1, std::placeholders::_2)));
1046 : }
1047 : ~WithStreamedUnaryMethod_linetext() override {
1048 : BaseClassMustBeDerivedFromService(this);
1049 : }
1050 : // disable regular version of this method
1051 : ::grpc::Status linetext(::grpc::ServerContext* context, const ::rpc::gui::LineTextEvent* request, ::google::protobuf::Empty* response) override {
1052 : abort();
1053 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1054 : }
1055 : // replace default version of method with streamed unary
1056 : virtual ::grpc::Status Streamedlinetext(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rpc::gui::LineTextEvent,::google::protobuf::Empty>* server_unary_streamer) = 0;
1057 : };
1058 : template <class BaseClass>
1059 : class WithStreamedUnaryMethod_slidevalue : public BaseClass {
1060 : private:
1061 : void BaseClassMustBeDerivedFromService(const Service *service) {}
1062 : public:
1063 : WithStreamedUnaryMethod_slidevalue() {
1064 : ::grpc::Service::MarkMethodStreamed(4,
1065 : new ::grpc::internal::StreamedUnaryHandler< ::rpc::gui::SlideValueEvent, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_slidevalue<BaseClass>::Streamedslidevalue, this, std::placeholders::_1, std::placeholders::_2)));
1066 : }
1067 : ~WithStreamedUnaryMethod_slidevalue() override {
1068 : BaseClassMustBeDerivedFromService(this);
1069 : }
1070 : // disable regular version of this method
1071 : ::grpc::Status slidevalue(::grpc::ServerContext* context, const ::rpc::gui::SlideValueEvent* request, ::google::protobuf::Empty* response) override {
1072 : abort();
1073 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1074 : }
1075 : // replace default version of method with streamed unary
1076 : virtual ::grpc::Status Streamedslidevalue(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rpc::gui::SlideValueEvent,::google::protobuf::Empty>* server_unary_streamer) = 0;
1077 : };
1078 : template <class BaseClass>
1079 : class WithStreamedUnaryMethod_exiting : public BaseClass {
1080 : private:
1081 : void BaseClassMustBeDerivedFromService(const Service *service) {}
1082 : public:
1083 : WithStreamedUnaryMethod_exiting() {
1084 : ::grpc::Service::MarkMethodStreamed(5,
1085 : new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_exiting<BaseClass>::Streamedexiting, this, std::placeholders::_1, std::placeholders::_2)));
1086 : }
1087 : ~WithStreamedUnaryMethod_exiting() override {
1088 : BaseClassMustBeDerivedFromService(this);
1089 : }
1090 : // disable regular version of this method
1091 : ::grpc::Status exiting(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
1092 : abort();
1093 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1094 : }
1095 : // replace default version of method with streamed unary
1096 : virtual ::grpc::Status Streamedexiting(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::google::protobuf::Empty>* server_unary_streamer) = 0;
1097 : };
1098 : template <class BaseClass>
1099 : class WithStreamedUnaryMethod_closing : public BaseClass {
1100 : private:
1101 : void BaseClassMustBeDerivedFromService(const Service *service) {}
1102 : public:
1103 : WithStreamedUnaryMethod_closing() {
1104 : ::grpc::Service::MarkMethodStreamed(6,
1105 : new ::grpc::internal::StreamedUnaryHandler< ::rpc::gui::ClosingEvent, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_closing<BaseClass>::Streamedclosing, this, std::placeholders::_1, std::placeholders::_2)));
1106 : }
1107 : ~WithStreamedUnaryMethod_closing() override {
1108 : BaseClassMustBeDerivedFromService(this);
1109 : }
1110 : // disable regular version of this method
1111 : ::grpc::Status closing(::grpc::ServerContext* context, const ::rpc::gui::ClosingEvent* request, ::google::protobuf::Empty* response) override {
1112 : abort();
1113 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
1114 : }
1115 : // replace default version of method with streamed unary
1116 : virtual ::grpc::Status Streamedclosing(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::rpc::gui::ClosingEvent,::google::protobuf::Empty>* server_unary_streamer) = 0;
1117 : };
1118 : typedef WithStreamedUnaryMethod_button<WithStreamedUnaryMethod_check<WithStreamedUnaryMethod_radio<WithStreamedUnaryMethod_linetext<WithStreamedUnaryMethod_slidevalue<WithStreamedUnaryMethod_exiting<WithStreamedUnaryMethod_closing<Service > > > > > > > StreamedUnaryService;
1119 : typedef Service SplitStreamedService;
1120 : typedef WithStreamedUnaryMethod_button<WithStreamedUnaryMethod_check<WithStreamedUnaryMethod_radio<WithStreamedUnaryMethod_linetext<WithStreamedUnaryMethod_slidevalue<WithStreamedUnaryMethod_exiting<WithStreamedUnaryMethod_closing<Service > > > > > > > StreamedService;
1121 : };
1122 :
1123 : } // namespace gui
1124 : } // namespace rpc
1125 :
1126 :
1127 : #endif // GRPC_plotserver_5fevents_2eproto__INCLUDED
|