Line data Source code
1 : // Generated by the gRPC C++ plugin.
2 : // If you make any local change, they will be lost.
3 : // source: service.proto
4 :
5 : #include "service.pb.h"
6 : #include "service.grpc.pb.h"
7 :
8 : #include <functional>
9 : #include <grpcpp/support/async_stream.h>
10 : #include <grpcpp/support/async_unary_call.h>
11 : #include <grpcpp/impl/channel_interface.h>
12 : #include <grpcpp/impl/client_unary_call.h>
13 : #include <grpcpp/support/client_callback.h>
14 : #include <grpcpp/support/message_allocator.h>
15 : #include <grpcpp/support/method_handler.h>
16 : #include <grpcpp/impl/rpc_service_method.h>
17 : #include <grpcpp/support/server_callback.h>
18 : #include <grpcpp/impl/server_callback_handlers.h>
19 : #include <grpcpp/server_context.h>
20 : #include <grpcpp/impl/service_type.h>
21 : #include <grpcpp/support/sync_stream.h>
22 : #include <grpcpp/ports_def.inc>
23 : namespace Odb {
24 : namespace Grpc {
25 :
26 : static const char* OdbDesignService_method_names[] = {
27 : "/Odb.Grpc.OdbDesignService/GetDesign",
28 : "/Odb.Grpc.OdbDesignService/GetDesignStream",
29 : "/Odb.Grpc.OdbDesignService/GetLayerFeaturesStream",
30 : "/Odb.Grpc.OdbDesignService/GetLayerFeaturesBatchStream",
31 : "/Odb.Grpc.OdbDesignService/GetLayerSymbols",
32 : "/Odb.Grpc.OdbDesignService/GetStandardFonts",
33 : "/Odb.Grpc.OdbDesignService/RequestLoadDesign",
34 : "/Odb.Grpc.OdbDesignService/HealthCheck",
35 : };
36 :
37 23 : std::unique_ptr< OdbDesignService::Stub> OdbDesignService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
38 : (void)options;
39 23 : std::unique_ptr< OdbDesignService::Stub> stub(new OdbDesignService::Stub(channel, options));
40 23 : return stub;
41 : }
42 :
43 23 : OdbDesignService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
44 23 : : channel_(channel), rpcmethod_GetDesign_(OdbDesignService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
45 23 : , rpcmethod_GetDesignStream_(OdbDesignService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel)
46 23 : , rpcmethod_GetLayerFeaturesStream_(OdbDesignService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel)
47 23 : , rpcmethod_GetLayerFeaturesBatchStream_(OdbDesignService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel)
48 23 : , rpcmethod_GetLayerSymbols_(OdbDesignService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
49 23 : , rpcmethod_GetStandardFonts_(OdbDesignService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
50 23 : , rpcmethod_RequestLoadDesign_(OdbDesignService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
51 46 : , rpcmethod_HealthCheck_(OdbDesignService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
52 23 : {}
53 :
54 5 : ::grpc::Status OdbDesignService::Stub::GetDesign(::grpc::ClientContext* context, const ::Odb::Grpc::GetDesignRequest& request, ::Odb::Lib::Protobuf::ProductModel::Design* response) {
55 5 : return ::grpc::internal::BlockingUnaryCall< ::Odb::Grpc::GetDesignRequest, ::Odb::Lib::Protobuf::ProductModel::Design, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetDesign_, context, request, response);
56 : }
57 :
58 0 : void OdbDesignService::Stub::async::GetDesign(::grpc::ClientContext* context, const ::Odb::Grpc::GetDesignRequest* request, ::Odb::Lib::Protobuf::ProductModel::Design* response, std::function<void(::grpc::Status)> f) {
59 0 : ::grpc::internal::CallbackUnaryCall< ::Odb::Grpc::GetDesignRequest, ::Odb::Lib::Protobuf::ProductModel::Design, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDesign_, context, request, response, std::move(f));
60 0 : }
61 :
62 0 : void OdbDesignService::Stub::async::GetDesign(::grpc::ClientContext* context, const ::Odb::Grpc::GetDesignRequest* request, ::Odb::Lib::Protobuf::ProductModel::Design* response, ::grpc::ClientUnaryReactor* reactor) {
63 0 : ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDesign_, context, request, response, reactor);
64 0 : }
65 :
66 0 : ::grpc::ClientAsyncResponseReader< ::Odb::Lib::Protobuf::ProductModel::Design>* OdbDesignService::Stub::PrepareAsyncGetDesignRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetDesignRequest& request, ::grpc::CompletionQueue* cq) {
67 0 : return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::Odb::Lib::Protobuf::ProductModel::Design, ::Odb::Grpc::GetDesignRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetDesign_, context, request);
68 : }
69 :
70 0 : ::grpc::ClientAsyncResponseReader< ::Odb::Lib::Protobuf::ProductModel::Design>* OdbDesignService::Stub::AsyncGetDesignRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetDesignRequest& request, ::grpc::CompletionQueue* cq) {
71 : auto* result =
72 0 : this->PrepareAsyncGetDesignRaw(context, request, cq);
73 0 : result->StartCall();
74 0 : return result;
75 : }
76 :
77 19 : ::grpc::ClientReader< ::Odb::Grpc::DesignChunk>* OdbDesignService::Stub::GetDesignStreamRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetDesignRequest& request) {
78 19 : return ::grpc::internal::ClientReaderFactory< ::Odb::Grpc::DesignChunk>::Create(channel_.get(), rpcmethod_GetDesignStream_, context, request);
79 : }
80 :
81 0 : void OdbDesignService::Stub::async::GetDesignStream(::grpc::ClientContext* context, const ::Odb::Grpc::GetDesignRequest* request, ::grpc::ClientReadReactor< ::Odb::Grpc::DesignChunk>* reactor) {
82 0 : ::grpc::internal::ClientCallbackReaderFactory< ::Odb::Grpc::DesignChunk>::Create(stub_->channel_.get(), stub_->rpcmethod_GetDesignStream_, context, request, reactor);
83 0 : }
84 :
85 0 : ::grpc::ClientAsyncReader< ::Odb::Grpc::DesignChunk>* OdbDesignService::Stub::AsyncGetDesignStreamRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetDesignRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
86 0 : return ::grpc::internal::ClientAsyncReaderFactory< ::Odb::Grpc::DesignChunk>::Create(channel_.get(), cq, rpcmethod_GetDesignStream_, context, request, true, tag);
87 : }
88 :
89 0 : ::grpc::ClientAsyncReader< ::Odb::Grpc::DesignChunk>* OdbDesignService::Stub::PrepareAsyncGetDesignStreamRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetDesignRequest& request, ::grpc::CompletionQueue* cq) {
90 0 : return ::grpc::internal::ClientAsyncReaderFactory< ::Odb::Grpc::DesignChunk>::Create(channel_.get(), cq, rpcmethod_GetDesignStream_, context, request, false, nullptr);
91 : }
92 :
93 0 : ::grpc::ClientReader< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>* OdbDesignService::Stub::GetLayerFeaturesStreamRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetLayerFeaturesRequest& request) {
94 0 : return ::grpc::internal::ClientReaderFactory< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>::Create(channel_.get(), rpcmethod_GetLayerFeaturesStream_, context, request);
95 : }
96 :
97 0 : void OdbDesignService::Stub::async::GetLayerFeaturesStream(::grpc::ClientContext* context, const ::Odb::Grpc::GetLayerFeaturesRequest* request, ::grpc::ClientReadReactor< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>* reactor) {
98 0 : ::grpc::internal::ClientCallbackReaderFactory< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>::Create(stub_->channel_.get(), stub_->rpcmethod_GetLayerFeaturesStream_, context, request, reactor);
99 0 : }
100 :
101 0 : ::grpc::ClientAsyncReader< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>* OdbDesignService::Stub::AsyncGetLayerFeaturesStreamRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetLayerFeaturesRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
102 0 : return ::grpc::internal::ClientAsyncReaderFactory< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>::Create(channel_.get(), cq, rpcmethod_GetLayerFeaturesStream_, context, request, true, tag);
103 : }
104 :
105 0 : ::grpc::ClientAsyncReader< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>* OdbDesignService::Stub::PrepareAsyncGetLayerFeaturesStreamRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetLayerFeaturesRequest& request, ::grpc::CompletionQueue* cq) {
106 0 : return ::grpc::internal::ClientAsyncReaderFactory< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>::Create(channel_.get(), cq, rpcmethod_GetLayerFeaturesStream_, context, request, false, nullptr);
107 : }
108 :
109 0 : ::grpc::ClientReader< ::Odb::Grpc::FeatureRecordBatch>* OdbDesignService::Stub::GetLayerFeaturesBatchStreamRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetLayerFeaturesRequest& request) {
110 0 : return ::grpc::internal::ClientReaderFactory< ::Odb::Grpc::FeatureRecordBatch>::Create(channel_.get(), rpcmethod_GetLayerFeaturesBatchStream_, context, request);
111 : }
112 :
113 0 : void OdbDesignService::Stub::async::GetLayerFeaturesBatchStream(::grpc::ClientContext* context, const ::Odb::Grpc::GetLayerFeaturesRequest* request, ::grpc::ClientReadReactor< ::Odb::Grpc::FeatureRecordBatch>* reactor) {
114 0 : ::grpc::internal::ClientCallbackReaderFactory< ::Odb::Grpc::FeatureRecordBatch>::Create(stub_->channel_.get(), stub_->rpcmethod_GetLayerFeaturesBatchStream_, context, request, reactor);
115 0 : }
116 :
117 0 : ::grpc::ClientAsyncReader< ::Odb::Grpc::FeatureRecordBatch>* OdbDesignService::Stub::AsyncGetLayerFeaturesBatchStreamRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetLayerFeaturesRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
118 0 : return ::grpc::internal::ClientAsyncReaderFactory< ::Odb::Grpc::FeatureRecordBatch>::Create(channel_.get(), cq, rpcmethod_GetLayerFeaturesBatchStream_, context, request, true, tag);
119 : }
120 :
121 0 : ::grpc::ClientAsyncReader< ::Odb::Grpc::FeatureRecordBatch>* OdbDesignService::Stub::PrepareAsyncGetLayerFeaturesBatchStreamRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetLayerFeaturesRequest& request, ::grpc::CompletionQueue* cq) {
122 0 : return ::grpc::internal::ClientAsyncReaderFactory< ::Odb::Grpc::FeatureRecordBatch>::Create(channel_.get(), cq, rpcmethod_GetLayerFeaturesBatchStream_, context, request, false, nullptr);
123 : }
124 :
125 0 : ::grpc::Status OdbDesignService::Stub::GetLayerSymbols(::grpc::ClientContext* context, const ::Odb::Grpc::GetLayerSymbolsRequest& request, ::Odb::Grpc::GetLayerSymbolsResponse* response) {
126 0 : return ::grpc::internal::BlockingUnaryCall< ::Odb::Grpc::GetLayerSymbolsRequest, ::Odb::Grpc::GetLayerSymbolsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetLayerSymbols_, context, request, response);
127 : }
128 :
129 0 : void OdbDesignService::Stub::async::GetLayerSymbols(::grpc::ClientContext* context, const ::Odb::Grpc::GetLayerSymbolsRequest* request, ::Odb::Grpc::GetLayerSymbolsResponse* response, std::function<void(::grpc::Status)> f) {
130 0 : ::grpc::internal::CallbackUnaryCall< ::Odb::Grpc::GetLayerSymbolsRequest, ::Odb::Grpc::GetLayerSymbolsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLayerSymbols_, context, request, response, std::move(f));
131 0 : }
132 :
133 0 : void OdbDesignService::Stub::async::GetLayerSymbols(::grpc::ClientContext* context, const ::Odb::Grpc::GetLayerSymbolsRequest* request, ::Odb::Grpc::GetLayerSymbolsResponse* response, ::grpc::ClientUnaryReactor* reactor) {
134 0 : ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLayerSymbols_, context, request, response, reactor);
135 0 : }
136 :
137 0 : ::grpc::ClientAsyncResponseReader< ::Odb::Grpc::GetLayerSymbolsResponse>* OdbDesignService::Stub::PrepareAsyncGetLayerSymbolsRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetLayerSymbolsRequest& request, ::grpc::CompletionQueue* cq) {
138 0 : return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::Odb::Grpc::GetLayerSymbolsResponse, ::Odb::Grpc::GetLayerSymbolsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetLayerSymbols_, context, request);
139 : }
140 :
141 0 : ::grpc::ClientAsyncResponseReader< ::Odb::Grpc::GetLayerSymbolsResponse>* OdbDesignService::Stub::AsyncGetLayerSymbolsRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetLayerSymbolsRequest& request, ::grpc::CompletionQueue* cq) {
142 : auto* result =
143 0 : this->PrepareAsyncGetLayerSymbolsRaw(context, request, cq);
144 0 : result->StartCall();
145 0 : return result;
146 : }
147 :
148 0 : ::grpc::Status OdbDesignService::Stub::GetStandardFonts(::grpc::ClientContext* context, const ::Odb::Grpc::GetStandardFontsRequest& request, ::Odb::Lib::Protobuf::StandardFontsFile* response) {
149 0 : return ::grpc::internal::BlockingUnaryCall< ::Odb::Grpc::GetStandardFontsRequest, ::Odb::Lib::Protobuf::StandardFontsFile, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetStandardFonts_, context, request, response);
150 : }
151 :
152 0 : void OdbDesignService::Stub::async::GetStandardFonts(::grpc::ClientContext* context, const ::Odb::Grpc::GetStandardFontsRequest* request, ::Odb::Lib::Protobuf::StandardFontsFile* response, std::function<void(::grpc::Status)> f) {
153 0 : ::grpc::internal::CallbackUnaryCall< ::Odb::Grpc::GetStandardFontsRequest, ::Odb::Lib::Protobuf::StandardFontsFile, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetStandardFonts_, context, request, response, std::move(f));
154 0 : }
155 :
156 0 : void OdbDesignService::Stub::async::GetStandardFonts(::grpc::ClientContext* context, const ::Odb::Grpc::GetStandardFontsRequest* request, ::Odb::Lib::Protobuf::StandardFontsFile* response, ::grpc::ClientUnaryReactor* reactor) {
157 0 : ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetStandardFonts_, context, request, response, reactor);
158 0 : }
159 :
160 0 : ::grpc::ClientAsyncResponseReader< ::Odb::Lib::Protobuf::StandardFontsFile>* OdbDesignService::Stub::PrepareAsyncGetStandardFontsRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetStandardFontsRequest& request, ::grpc::CompletionQueue* cq) {
161 0 : return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::Odb::Lib::Protobuf::StandardFontsFile, ::Odb::Grpc::GetStandardFontsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetStandardFonts_, context, request);
162 : }
163 :
164 0 : ::grpc::ClientAsyncResponseReader< ::Odb::Lib::Protobuf::StandardFontsFile>* OdbDesignService::Stub::AsyncGetStandardFontsRaw(::grpc::ClientContext* context, const ::Odb::Grpc::GetStandardFontsRequest& request, ::grpc::CompletionQueue* cq) {
165 : auto* result =
166 0 : this->PrepareAsyncGetStandardFontsRaw(context, request, cq);
167 0 : result->StartCall();
168 0 : return result;
169 : }
170 :
171 0 : ::grpc::Status OdbDesignService::Stub::RequestLoadDesign(::grpc::ClientContext* context, const ::Odb::Grpc::RequestLoadDesignRequest& request, ::Odb::Grpc::RequestLoadDesignResponse* response) {
172 0 : return ::grpc::internal::BlockingUnaryCall< ::Odb::Grpc::RequestLoadDesignRequest, ::Odb::Grpc::RequestLoadDesignResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RequestLoadDesign_, context, request, response);
173 : }
174 :
175 0 : void OdbDesignService::Stub::async::RequestLoadDesign(::grpc::ClientContext* context, const ::Odb::Grpc::RequestLoadDesignRequest* request, ::Odb::Grpc::RequestLoadDesignResponse* response, std::function<void(::grpc::Status)> f) {
176 0 : ::grpc::internal::CallbackUnaryCall< ::Odb::Grpc::RequestLoadDesignRequest, ::Odb::Grpc::RequestLoadDesignResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RequestLoadDesign_, context, request, response, std::move(f));
177 0 : }
178 :
179 0 : void OdbDesignService::Stub::async::RequestLoadDesign(::grpc::ClientContext* context, const ::Odb::Grpc::RequestLoadDesignRequest* request, ::Odb::Grpc::RequestLoadDesignResponse* response, ::grpc::ClientUnaryReactor* reactor) {
180 0 : ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RequestLoadDesign_, context, request, response, reactor);
181 0 : }
182 :
183 0 : ::grpc::ClientAsyncResponseReader< ::Odb::Grpc::RequestLoadDesignResponse>* OdbDesignService::Stub::PrepareAsyncRequestLoadDesignRaw(::grpc::ClientContext* context, const ::Odb::Grpc::RequestLoadDesignRequest& request, ::grpc::CompletionQueue* cq) {
184 0 : return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::Odb::Grpc::RequestLoadDesignResponse, ::Odb::Grpc::RequestLoadDesignRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RequestLoadDesign_, context, request);
185 : }
186 :
187 0 : ::grpc::ClientAsyncResponseReader< ::Odb::Grpc::RequestLoadDesignResponse>* OdbDesignService::Stub::AsyncRequestLoadDesignRaw(::grpc::ClientContext* context, const ::Odb::Grpc::RequestLoadDesignRequest& request, ::grpc::CompletionQueue* cq) {
188 : auto* result =
189 0 : this->PrepareAsyncRequestLoadDesignRaw(context, request, cq);
190 0 : result->StartCall();
191 0 : return result;
192 : }
193 :
194 0 : ::grpc::Status OdbDesignService::Stub::HealthCheck(::grpc::ClientContext* context, const ::Odb::Grpc::HealthCheckRequest& request, ::Odb::Grpc::HealthCheckResponse* response) {
195 0 : return ::grpc::internal::BlockingUnaryCall< ::Odb::Grpc::HealthCheckRequest, ::Odb::Grpc::HealthCheckResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_HealthCheck_, context, request, response);
196 : }
197 :
198 0 : void OdbDesignService::Stub::async::HealthCheck(::grpc::ClientContext* context, const ::Odb::Grpc::HealthCheckRequest* request, ::Odb::Grpc::HealthCheckResponse* response, std::function<void(::grpc::Status)> f) {
199 0 : ::grpc::internal::CallbackUnaryCall< ::Odb::Grpc::HealthCheckRequest, ::Odb::Grpc::HealthCheckResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_HealthCheck_, context, request, response, std::move(f));
200 0 : }
201 :
202 0 : void OdbDesignService::Stub::async::HealthCheck(::grpc::ClientContext* context, const ::Odb::Grpc::HealthCheckRequest* request, ::Odb::Grpc::HealthCheckResponse* response, ::grpc::ClientUnaryReactor* reactor) {
203 0 : ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_HealthCheck_, context, request, response, reactor);
204 0 : }
205 :
206 0 : ::grpc::ClientAsyncResponseReader< ::Odb::Grpc::HealthCheckResponse>* OdbDesignService::Stub::PrepareAsyncHealthCheckRaw(::grpc::ClientContext* context, const ::Odb::Grpc::HealthCheckRequest& request, ::grpc::CompletionQueue* cq) {
207 0 : return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::Odb::Grpc::HealthCheckResponse, ::Odb::Grpc::HealthCheckRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_HealthCheck_, context, request);
208 : }
209 :
210 0 : ::grpc::ClientAsyncResponseReader< ::Odb::Grpc::HealthCheckResponse>* OdbDesignService::Stub::AsyncHealthCheckRaw(::grpc::ClientContext* context, const ::Odb::Grpc::HealthCheckRequest& request, ::grpc::CompletionQueue* cq) {
211 : auto* result =
212 0 : this->PrepareAsyncHealthCheckRaw(context, request, cq);
213 0 : result->StartCall();
214 0 : return result;
215 : }
216 :
217 58 : OdbDesignService::Service::Service() {
218 58 : AddMethod(new ::grpc::internal::RpcServiceMethod(
219 : OdbDesignService_method_names[0],
220 : ::grpc::internal::RpcMethod::NORMAL_RPC,
221 : new ::grpc::internal::RpcMethodHandler< OdbDesignService::Service, ::Odb::Grpc::GetDesignRequest, ::Odb::Lib::Protobuf::ProductModel::Design, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
222 0 : [](OdbDesignService::Service* service,
223 : ::grpc::ServerContext* ctx,
224 : const ::Odb::Grpc::GetDesignRequest* req,
225 : ::Odb::Lib::Protobuf::ProductModel::Design* resp) {
226 5 : return service->GetDesign(ctx, req, resp);
227 116 : }, this)));
228 58 : AddMethod(new ::grpc::internal::RpcServiceMethod(
229 : OdbDesignService_method_names[1],
230 : ::grpc::internal::RpcMethod::SERVER_STREAMING,
231 : new ::grpc::internal::ServerStreamingHandler< OdbDesignService::Service, ::Odb::Grpc::GetDesignRequest, ::Odb::Grpc::DesignChunk>(
232 0 : [](OdbDesignService::Service* service,
233 : ::grpc::ServerContext* ctx,
234 : const ::Odb::Grpc::GetDesignRequest* req,
235 : ::grpc::ServerWriter<::Odb::Grpc::DesignChunk>* writer) {
236 19 : return service->GetDesignStream(ctx, req, writer);
237 116 : }, this)));
238 58 : AddMethod(new ::grpc::internal::RpcServiceMethod(
239 : OdbDesignService_method_names[2],
240 : ::grpc::internal::RpcMethod::SERVER_STREAMING,
241 : new ::grpc::internal::ServerStreamingHandler< OdbDesignService::Service, ::Odb::Grpc::GetLayerFeaturesRequest, ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>(
242 0 : [](OdbDesignService::Service* service,
243 : ::grpc::ServerContext* ctx,
244 : const ::Odb::Grpc::GetLayerFeaturesRequest* req,
245 : ::grpc::ServerWriter<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>* writer) {
246 0 : return service->GetLayerFeaturesStream(ctx, req, writer);
247 116 : }, this)));
248 58 : AddMethod(new ::grpc::internal::RpcServiceMethod(
249 : OdbDesignService_method_names[3],
250 : ::grpc::internal::RpcMethod::SERVER_STREAMING,
251 : new ::grpc::internal::ServerStreamingHandler< OdbDesignService::Service, ::Odb::Grpc::GetLayerFeaturesRequest, ::Odb::Grpc::FeatureRecordBatch>(
252 0 : [](OdbDesignService::Service* service,
253 : ::grpc::ServerContext* ctx,
254 : const ::Odb::Grpc::GetLayerFeaturesRequest* req,
255 : ::grpc::ServerWriter<::Odb::Grpc::FeatureRecordBatch>* writer) {
256 0 : return service->GetLayerFeaturesBatchStream(ctx, req, writer);
257 116 : }, this)));
258 58 : AddMethod(new ::grpc::internal::RpcServiceMethod(
259 : OdbDesignService_method_names[4],
260 : ::grpc::internal::RpcMethod::NORMAL_RPC,
261 : new ::grpc::internal::RpcMethodHandler< OdbDesignService::Service, ::Odb::Grpc::GetLayerSymbolsRequest, ::Odb::Grpc::GetLayerSymbolsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
262 0 : [](OdbDesignService::Service* service,
263 : ::grpc::ServerContext* ctx,
264 : const ::Odb::Grpc::GetLayerSymbolsRequest* req,
265 : ::Odb::Grpc::GetLayerSymbolsResponse* resp) {
266 0 : return service->GetLayerSymbols(ctx, req, resp);
267 116 : }, this)));
268 58 : AddMethod(new ::grpc::internal::RpcServiceMethod(
269 : OdbDesignService_method_names[5],
270 : ::grpc::internal::RpcMethod::NORMAL_RPC,
271 : new ::grpc::internal::RpcMethodHandler< OdbDesignService::Service, ::Odb::Grpc::GetStandardFontsRequest, ::Odb::Lib::Protobuf::StandardFontsFile, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
272 0 : [](OdbDesignService::Service* service,
273 : ::grpc::ServerContext* ctx,
274 : const ::Odb::Grpc::GetStandardFontsRequest* req,
275 : ::Odb::Lib::Protobuf::StandardFontsFile* resp) {
276 0 : return service->GetStandardFonts(ctx, req, resp);
277 116 : }, this)));
278 58 : AddMethod(new ::grpc::internal::RpcServiceMethod(
279 : OdbDesignService_method_names[6],
280 : ::grpc::internal::RpcMethod::NORMAL_RPC,
281 : new ::grpc::internal::RpcMethodHandler< OdbDesignService::Service, ::Odb::Grpc::RequestLoadDesignRequest, ::Odb::Grpc::RequestLoadDesignResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
282 0 : [](OdbDesignService::Service* service,
283 : ::grpc::ServerContext* ctx,
284 : const ::Odb::Grpc::RequestLoadDesignRequest* req,
285 : ::Odb::Grpc::RequestLoadDesignResponse* resp) {
286 0 : return service->RequestLoadDesign(ctx, req, resp);
287 116 : }, this)));
288 58 : AddMethod(new ::grpc::internal::RpcServiceMethod(
289 : OdbDesignService_method_names[7],
290 : ::grpc::internal::RpcMethod::NORMAL_RPC,
291 : new ::grpc::internal::RpcMethodHandler< OdbDesignService::Service, ::Odb::Grpc::HealthCheckRequest, ::Odb::Grpc::HealthCheckResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
292 0 : [](OdbDesignService::Service* service,
293 : ::grpc::ServerContext* ctx,
294 : const ::Odb::Grpc::HealthCheckRequest* req,
295 : ::Odb::Grpc::HealthCheckResponse* resp) {
296 0 : return service->HealthCheck(ctx, req, resp);
297 116 : }, this)));
298 58 : }
299 :
300 58 : OdbDesignService::Service::~Service() {
301 58 : }
302 :
303 0 : ::grpc::Status OdbDesignService::Service::GetDesign(::grpc::ServerContext* context, const ::Odb::Grpc::GetDesignRequest* request, ::Odb::Lib::Protobuf::ProductModel::Design* response) {
304 : (void) context;
305 : (void) request;
306 : (void) response;
307 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
308 : }
309 :
310 0 : ::grpc::Status OdbDesignService::Service::GetDesignStream(::grpc::ServerContext* context, const ::Odb::Grpc::GetDesignRequest* request, ::grpc::ServerWriter< ::Odb::Grpc::DesignChunk>* writer) {
311 : (void) context;
312 : (void) request;
313 : (void) writer;
314 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
315 : }
316 :
317 0 : ::grpc::Status OdbDesignService::Service::GetLayerFeaturesStream(::grpc::ServerContext* context, const ::Odb::Grpc::GetLayerFeaturesRequest* request, ::grpc::ServerWriter< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>* writer) {
318 : (void) context;
319 : (void) request;
320 : (void) writer;
321 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
322 : }
323 :
324 0 : ::grpc::Status OdbDesignService::Service::GetLayerFeaturesBatchStream(::grpc::ServerContext* context, const ::Odb::Grpc::GetLayerFeaturesRequest* request, ::grpc::ServerWriter< ::Odb::Grpc::FeatureRecordBatch>* writer) {
325 : (void) context;
326 : (void) request;
327 : (void) writer;
328 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
329 : }
330 :
331 0 : ::grpc::Status OdbDesignService::Service::GetLayerSymbols(::grpc::ServerContext* context, const ::Odb::Grpc::GetLayerSymbolsRequest* request, ::Odb::Grpc::GetLayerSymbolsResponse* response) {
332 : (void) context;
333 : (void) request;
334 : (void) response;
335 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
336 : }
337 :
338 0 : ::grpc::Status OdbDesignService::Service::GetStandardFonts(::grpc::ServerContext* context, const ::Odb::Grpc::GetStandardFontsRequest* request, ::Odb::Lib::Protobuf::StandardFontsFile* response) {
339 : (void) context;
340 : (void) request;
341 : (void) response;
342 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
343 : }
344 :
345 0 : ::grpc::Status OdbDesignService::Service::RequestLoadDesign(::grpc::ServerContext* context, const ::Odb::Grpc::RequestLoadDesignRequest* request, ::Odb::Grpc::RequestLoadDesignResponse* response) {
346 : (void) context;
347 : (void) request;
348 : (void) response;
349 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
350 : }
351 :
352 0 : ::grpc::Status OdbDesignService::Service::HealthCheck(::grpc::ServerContext* context, const ::Odb::Grpc::HealthCheckRequest* request, ::Odb::Grpc::HealthCheckResponse* response) {
353 : (void) context;
354 : (void) request;
355 : (void) response;
356 0 : return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
357 : }
358 :
359 :
360 : } // namespace Odb
361 : } // namespace Grpc
362 : #include <grpcpp/ports_undef.inc>
363 :
|