-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalimama.grpc.pb.cc
288 lines (235 loc) · 18.5 KB
/
alimama.grpc.pb.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
// Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: alimama.proto
#include "alimama.pb.h"
#include "alimama.grpc.pb.h"
#include <functional>
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl/codegen/async_unary_call.h>
#include <grpcpp/impl/codegen/channel_interface.h>
#include <grpcpp/impl/codegen/client_unary_call.h>
#include <grpcpp/impl/codegen/client_callback.h>
#include <grpcpp/impl/codegen/message_allocator.h>
#include <grpcpp/impl/codegen/method_handler.h>
#include <grpcpp/impl/codegen/rpc_service_method.h>
#include <grpcpp/impl/codegen/server_callback.h>
#include <grpcpp/impl/codegen/server_callback_handlers.h>
#include <grpcpp/impl/codegen/server_context.h>
#include <grpcpp/impl/codegen/service_type.h>
#include <grpcpp/impl/codegen/sync_stream.h>
namespace alimama {
namespace proto {
static const char* ModelService_method_names[] = {
"/alimama.proto.ModelService/Get",
};
std::unique_ptr< ModelService::Stub> ModelService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
(void)options;
std::unique_ptr< ModelService::Stub> stub(new ModelService::Stub(channel));
return stub;
}
ModelService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
: channel_(channel), rpcmethod_Get_(ModelService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
{}
::grpc::Status ModelService::Stub::Get(::grpc::ClientContext* context, const ::alimama::proto::Request& request, ::alimama::proto::Response* response) {
return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Get_, context, request, response);
}
void ModelService::Stub::experimental_async::Get(::grpc::ClientContext* context, const ::alimama::proto::Request* request, ::alimama::proto::Response* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Get_, context, request, response, std::move(f));
}
void ModelService::Stub::experimental_async::Get(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::alimama::proto::Response* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Get_, context, request, response, std::move(f));
}
void ModelService::Stub::experimental_async::Get(::grpc::ClientContext* context, const ::alimama::proto::Request* request, ::alimama::proto::Response* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Get_, context, request, response, reactor);
}
void ModelService::Stub::experimental_async::Get(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::alimama::proto::Response* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Get_, context, request, response, reactor);
}
::grpc::ClientAsyncResponseReader< ::alimama::proto::Response>* ModelService::Stub::AsyncGetRaw(::grpc::ClientContext* context, const ::alimama::proto::Request& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::alimama::proto::Response>::Create(channel_.get(), cq, rpcmethod_Get_, context, request, true);
}
::grpc::ClientAsyncResponseReader< ::alimama::proto::Response>* ModelService::Stub::PrepareAsyncGetRaw(::grpc::ClientContext* context, const ::alimama::proto::Request& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::alimama::proto::Response>::Create(channel_.get(), cq, rpcmethod_Get_, context, request, false);
}
ModelService::Service::Service() {
AddMethod(new ::grpc::internal::RpcServiceMethod(
ModelService_method_names[0],
::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< ModelService::Service, ::alimama::proto::Request, ::alimama::proto::Response>(
[](ModelService::Service* service,
::grpc_impl::ServerContext* ctx,
const ::alimama::proto::Request* req,
::alimama::proto::Response* resp) {
return service->Get(ctx, req, resp);
}, this)));
}
ModelService::Service::~Service() {
}
::grpc::Status ModelService::Service::Get(::grpc::ServerContext* context, const ::alimama::proto::Request* request, ::alimama::proto::Response* response) {
(void) context;
(void) request;
(void) response;
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
static const char* NodeService_method_names[] = {
"/alimama.proto.NodeService/GetBlockData",
"/alimama.proto.NodeService/SendCopy",
"/alimama.proto.NodeService/LoadAndRemove",
"/alimama.proto.NodeService/Slice2Block",
};
std::unique_ptr< NodeService::Stub> NodeService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
(void)options;
std::unique_ptr< NodeService::Stub> stub(new NodeService::Stub(channel));
return stub;
}
NodeService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
: channel_(channel), rpcmethod_GetBlockData_(NodeService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
, rpcmethod_SendCopy_(NodeService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
, rpcmethod_LoadAndRemove_(NodeService_method_names[2], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel)
, rpcmethod_Slice2Block_(NodeService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
{}
::grpc::Status NodeService::Stub::GetBlockData(::grpc::ClientContext* context, const ::alimama::proto::GetBlockDataRequest& request, ::alimama::proto::GetBlockDataResponse* response) {
return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetBlockData_, context, request, response);
}
void NodeService::Stub::experimental_async::GetBlockData(::grpc::ClientContext* context, const ::alimama::proto::GetBlockDataRequest* request, ::alimama::proto::GetBlockDataResponse* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetBlockData_, context, request, response, std::move(f));
}
void NodeService::Stub::experimental_async::GetBlockData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::alimama::proto::GetBlockDataResponse* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetBlockData_, context, request, response, std::move(f));
}
void NodeService::Stub::experimental_async::GetBlockData(::grpc::ClientContext* context, const ::alimama::proto::GetBlockDataRequest* request, ::alimama::proto::GetBlockDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetBlockData_, context, request, response, reactor);
}
void NodeService::Stub::experimental_async::GetBlockData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::alimama::proto::GetBlockDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetBlockData_, context, request, response, reactor);
}
::grpc::ClientAsyncResponseReader< ::alimama::proto::GetBlockDataResponse>* NodeService::Stub::AsyncGetBlockDataRaw(::grpc::ClientContext* context, const ::alimama::proto::GetBlockDataRequest& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::alimama::proto::GetBlockDataResponse>::Create(channel_.get(), cq, rpcmethod_GetBlockData_, context, request, true);
}
::grpc::ClientAsyncResponseReader< ::alimama::proto::GetBlockDataResponse>* NodeService::Stub::PrepareAsyncGetBlockDataRaw(::grpc::ClientContext* context, const ::alimama::proto::GetBlockDataRequest& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::alimama::proto::GetBlockDataResponse>::Create(channel_.get(), cq, rpcmethod_GetBlockData_, context, request, false);
}
::grpc::Status NodeService::Stub::SendCopy(::grpc::ClientContext* context, const ::alimama::proto::SendCopyRequest& request, ::alimama::proto::SendCopyResponse* response) {
return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SendCopy_, context, request, response);
}
void NodeService::Stub::experimental_async::SendCopy(::grpc::ClientContext* context, const ::alimama::proto::SendCopyRequest* request, ::alimama::proto::SendCopyResponse* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SendCopy_, context, request, response, std::move(f));
}
void NodeService::Stub::experimental_async::SendCopy(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::alimama::proto::SendCopyResponse* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SendCopy_, context, request, response, std::move(f));
}
void NodeService::Stub::experimental_async::SendCopy(::grpc::ClientContext* context, const ::alimama::proto::SendCopyRequest* request, ::alimama::proto::SendCopyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SendCopy_, context, request, response, reactor);
}
void NodeService::Stub::experimental_async::SendCopy(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::alimama::proto::SendCopyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SendCopy_, context, request, response, reactor);
}
::grpc::ClientAsyncResponseReader< ::alimama::proto::SendCopyResponse>* NodeService::Stub::AsyncSendCopyRaw(::grpc::ClientContext* context, const ::alimama::proto::SendCopyRequest& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::alimama::proto::SendCopyResponse>::Create(channel_.get(), cq, rpcmethod_SendCopy_, context, request, true);
}
::grpc::ClientAsyncResponseReader< ::alimama::proto::SendCopyResponse>* NodeService::Stub::PrepareAsyncSendCopyRaw(::grpc::ClientContext* context, const ::alimama::proto::SendCopyRequest& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::alimama::proto::SendCopyResponse>::Create(channel_.get(), cq, rpcmethod_SendCopy_, context, request, false);
}
::grpc::ClientReader< ::alimama::proto::LoadAndRemoveResponse>* NodeService::Stub::LoadAndRemoveRaw(::grpc::ClientContext* context, const ::alimama::proto::LoadAndRemoveRequest& request) {
return ::grpc_impl::internal::ClientReaderFactory< ::alimama::proto::LoadAndRemoveResponse>::Create(channel_.get(), rpcmethod_LoadAndRemove_, context, request);
}
void NodeService::Stub::experimental_async::LoadAndRemove(::grpc::ClientContext* context, ::alimama::proto::LoadAndRemoveRequest* request, ::grpc::experimental::ClientReadReactor< ::alimama::proto::LoadAndRemoveResponse>* reactor) {
::grpc_impl::internal::ClientCallbackReaderFactory< ::alimama::proto::LoadAndRemoveResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_LoadAndRemove_, context, request, reactor);
}
::grpc::ClientAsyncReader< ::alimama::proto::LoadAndRemoveResponse>* NodeService::Stub::AsyncLoadAndRemoveRaw(::grpc::ClientContext* context, const ::alimama::proto::LoadAndRemoveRequest& request, ::grpc::CompletionQueue* cq, void* tag) {
return ::grpc_impl::internal::ClientAsyncReaderFactory< ::alimama::proto::LoadAndRemoveResponse>::Create(channel_.get(), cq, rpcmethod_LoadAndRemove_, context, request, true, tag);
}
::grpc::ClientAsyncReader< ::alimama::proto::LoadAndRemoveResponse>* NodeService::Stub::PrepareAsyncLoadAndRemoveRaw(::grpc::ClientContext* context, const ::alimama::proto::LoadAndRemoveRequest& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncReaderFactory< ::alimama::proto::LoadAndRemoveResponse>::Create(channel_.get(), cq, rpcmethod_LoadAndRemove_, context, request, false, nullptr);
}
::grpc::Status NodeService::Stub::Slice2Block(::grpc::ClientContext* context, const ::alimama::proto::Slice2BlockRequest& request, ::alimama::proto::Slice2BlockResponse* response) {
return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Slice2Block_, context, request, response);
}
void NodeService::Stub::experimental_async::Slice2Block(::grpc::ClientContext* context, const ::alimama::proto::Slice2BlockRequest* request, ::alimama::proto::Slice2BlockResponse* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Slice2Block_, context, request, response, std::move(f));
}
void NodeService::Stub::experimental_async::Slice2Block(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::alimama::proto::Slice2BlockResponse* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Slice2Block_, context, request, response, std::move(f));
}
void NodeService::Stub::experimental_async::Slice2Block(::grpc::ClientContext* context, const ::alimama::proto::Slice2BlockRequest* request, ::alimama::proto::Slice2BlockResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Slice2Block_, context, request, response, reactor);
}
void NodeService::Stub::experimental_async::Slice2Block(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::alimama::proto::Slice2BlockResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Slice2Block_, context, request, response, reactor);
}
::grpc::ClientAsyncResponseReader< ::alimama::proto::Slice2BlockResponse>* NodeService::Stub::AsyncSlice2BlockRaw(::grpc::ClientContext* context, const ::alimama::proto::Slice2BlockRequest& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::alimama::proto::Slice2BlockResponse>::Create(channel_.get(), cq, rpcmethod_Slice2Block_, context, request, true);
}
::grpc::ClientAsyncResponseReader< ::alimama::proto::Slice2BlockResponse>* NodeService::Stub::PrepareAsyncSlice2BlockRaw(::grpc::ClientContext* context, const ::alimama::proto::Slice2BlockRequest& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::alimama::proto::Slice2BlockResponse>::Create(channel_.get(), cq, rpcmethod_Slice2Block_, context, request, false);
}
NodeService::Service::Service() {
AddMethod(new ::grpc::internal::RpcServiceMethod(
NodeService_method_names[0],
::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< NodeService::Service, ::alimama::proto::GetBlockDataRequest, ::alimama::proto::GetBlockDataResponse>(
[](NodeService::Service* service,
::grpc_impl::ServerContext* ctx,
const ::alimama::proto::GetBlockDataRequest* req,
::alimama::proto::GetBlockDataResponse* resp) {
return service->GetBlockData(ctx, req, resp);
}, this)));
AddMethod(new ::grpc::internal::RpcServiceMethod(
NodeService_method_names[1],
::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< NodeService::Service, ::alimama::proto::SendCopyRequest, ::alimama::proto::SendCopyResponse>(
[](NodeService::Service* service,
::grpc_impl::ServerContext* ctx,
const ::alimama::proto::SendCopyRequest* req,
::alimama::proto::SendCopyResponse* resp) {
return service->SendCopy(ctx, req, resp);
}, this)));
AddMethod(new ::grpc::internal::RpcServiceMethod(
NodeService_method_names[2],
::grpc::internal::RpcMethod::SERVER_STREAMING,
new ::grpc::internal::ServerStreamingHandler< NodeService::Service, ::alimama::proto::LoadAndRemoveRequest, ::alimama::proto::LoadAndRemoveResponse>(
[](NodeService::Service* service,
::grpc_impl::ServerContext* ctx,
const ::alimama::proto::LoadAndRemoveRequest* req,
::grpc_impl::ServerWriter<::alimama::proto::LoadAndRemoveResponse>* writer) {
return service->LoadAndRemove(ctx, req, writer);
}, this)));
AddMethod(new ::grpc::internal::RpcServiceMethod(
NodeService_method_names[3],
::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< NodeService::Service, ::alimama::proto::Slice2BlockRequest, ::alimama::proto::Slice2BlockResponse>(
[](NodeService::Service* service,
::grpc_impl::ServerContext* ctx,
const ::alimama::proto::Slice2BlockRequest* req,
::alimama::proto::Slice2BlockResponse* resp) {
return service->Slice2Block(ctx, req, resp);
}, this)));
}
NodeService::Service::~Service() {
}
::grpc::Status NodeService::Service::GetBlockData(::grpc::ServerContext* context, const ::alimama::proto::GetBlockDataRequest* request, ::alimama::proto::GetBlockDataResponse* response) {
(void) context;
(void) request;
(void) response;
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
::grpc::Status NodeService::Service::SendCopy(::grpc::ServerContext* context, const ::alimama::proto::SendCopyRequest* request, ::alimama::proto::SendCopyResponse* response) {
(void) context;
(void) request;
(void) response;
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
::grpc::Status NodeService::Service::LoadAndRemove(::grpc::ServerContext* context, const ::alimama::proto::LoadAndRemoveRequest* request, ::grpc::ServerWriter< ::alimama::proto::LoadAndRemoveResponse>* writer) {
(void) context;
(void) request;
(void) writer;
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
::grpc::Status NodeService::Service::Slice2Block(::grpc::ServerContext* context, const ::alimama::proto::Slice2BlockRequest* request, ::alimama::proto::Slice2BlockResponse* response) {
(void) context;
(void) request;
(void) response;
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
} // namespace alimama
} // namespace proto