-
Notifications
You must be signed in to change notification settings - Fork 39
/
zen_notice.grpc.pb.cc
167 lines (133 loc) · 11 KB
/
zen_notice.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
// Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: zen_notice.proto
#include "zen_notice.pb.h"
#include "zen_notice.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/method_handler.h>
#include <grpcpp/impl/codegen/rpc_service_method.h>
#include <grpcpp/impl/codegen/server_callback.h>
#include <grpcpp/impl/codegen/service_type.h>
#include <grpcpp/impl/codegen/sync_stream.h>
namespace zen_notice {
static const char* ZenNoticeHandle_method_names[] = {
"/zen_notice.ZenNoticeHandle/NoticeLine",
"/zen_notice.ZenNoticeHandle/NoticeDraw",
"/zen_notice.ZenNoticeHandle/NoticeTrade",
};
std::unique_ptr< ZenNoticeHandle::Stub> ZenNoticeHandle::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
(void)options;
std::unique_ptr< ZenNoticeHandle::Stub> stub(new ZenNoticeHandle::Stub(channel));
return stub;
}
ZenNoticeHandle::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
: channel_(channel), rpcmethod_NoticeLine_(ZenNoticeHandle_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
, rpcmethod_NoticeDraw_(ZenNoticeHandle_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
, rpcmethod_NoticeTrade_(ZenNoticeHandle_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
{}
::grpc::Status ZenNoticeHandle::Stub::NoticeLine(::grpc::ClientContext* context, const ::zen_notice::NoticeLineReq& request, ::zen_notice::NoticeLineRsp* response) {
return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_NoticeLine_, context, request, response);
}
void ZenNoticeHandle::Stub::experimental_async::NoticeLine(::grpc::ClientContext* context, const ::zen_notice::NoticeLineReq* request, ::zen_notice::NoticeLineRsp* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NoticeLine_, context, request, response, std::move(f));
}
void ZenNoticeHandle::Stub::experimental_async::NoticeLine(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::zen_notice::NoticeLineRsp* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NoticeLine_, context, request, response, std::move(f));
}
void ZenNoticeHandle::Stub::experimental_async::NoticeLine(::grpc::ClientContext* context, const ::zen_notice::NoticeLineReq* request, ::zen_notice::NoticeLineRsp* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NoticeLine_, context, request, response, reactor);
}
void ZenNoticeHandle::Stub::experimental_async::NoticeLine(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::zen_notice::NoticeLineRsp* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NoticeLine_, context, request, response, reactor);
}
::grpc::ClientAsyncResponseReader< ::zen_notice::NoticeLineRsp>* ZenNoticeHandle::Stub::AsyncNoticeLineRaw(::grpc::ClientContext* context, const ::zen_notice::NoticeLineReq& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::zen_notice::NoticeLineRsp>::Create(channel_.get(), cq, rpcmethod_NoticeLine_, context, request, true);
}
::grpc::ClientAsyncResponseReader< ::zen_notice::NoticeLineRsp>* ZenNoticeHandle::Stub::PrepareAsyncNoticeLineRaw(::grpc::ClientContext* context, const ::zen_notice::NoticeLineReq& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::zen_notice::NoticeLineRsp>::Create(channel_.get(), cq, rpcmethod_NoticeLine_, context, request, false);
}
::grpc::Status ZenNoticeHandle::Stub::NoticeDraw(::grpc::ClientContext* context, const ::zen_notice::NoticeDrawReq& request, ::zen_notice::NoticeDrawRsp* response) {
return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_NoticeDraw_, context, request, response);
}
void ZenNoticeHandle::Stub::experimental_async::NoticeDraw(::grpc::ClientContext* context, const ::zen_notice::NoticeDrawReq* request, ::zen_notice::NoticeDrawRsp* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NoticeDraw_, context, request, response, std::move(f));
}
void ZenNoticeHandle::Stub::experimental_async::NoticeDraw(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::zen_notice::NoticeDrawRsp* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NoticeDraw_, context, request, response, std::move(f));
}
void ZenNoticeHandle::Stub::experimental_async::NoticeDraw(::grpc::ClientContext* context, const ::zen_notice::NoticeDrawReq* request, ::zen_notice::NoticeDrawRsp* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NoticeDraw_, context, request, response, reactor);
}
void ZenNoticeHandle::Stub::experimental_async::NoticeDraw(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::zen_notice::NoticeDrawRsp* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NoticeDraw_, context, request, response, reactor);
}
::grpc::ClientAsyncResponseReader< ::zen_notice::NoticeDrawRsp>* ZenNoticeHandle::Stub::AsyncNoticeDrawRaw(::grpc::ClientContext* context, const ::zen_notice::NoticeDrawReq& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::zen_notice::NoticeDrawRsp>::Create(channel_.get(), cq, rpcmethod_NoticeDraw_, context, request, true);
}
::grpc::ClientAsyncResponseReader< ::zen_notice::NoticeDrawRsp>* ZenNoticeHandle::Stub::PrepareAsyncNoticeDrawRaw(::grpc::ClientContext* context, const ::zen_notice::NoticeDrawReq& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::zen_notice::NoticeDrawRsp>::Create(channel_.get(), cq, rpcmethod_NoticeDraw_, context, request, false);
}
::grpc::Status ZenNoticeHandle::Stub::NoticeTrade(::grpc::ClientContext* context, const ::zen_notice::NoticeTradeReq& request, ::zen_notice::NoticeTradeRsp* response) {
return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_NoticeTrade_, context, request, response);
}
void ZenNoticeHandle::Stub::experimental_async::NoticeTrade(::grpc::ClientContext* context, const ::zen_notice::NoticeTradeReq* request, ::zen_notice::NoticeTradeRsp* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NoticeTrade_, context, request, response, std::move(f));
}
void ZenNoticeHandle::Stub::experimental_async::NoticeTrade(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::zen_notice::NoticeTradeRsp* response, std::function<void(::grpc::Status)> f) {
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NoticeTrade_, context, request, response, std::move(f));
}
void ZenNoticeHandle::Stub::experimental_async::NoticeTrade(::grpc::ClientContext* context, const ::zen_notice::NoticeTradeReq* request, ::zen_notice::NoticeTradeRsp* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NoticeTrade_, context, request, response, reactor);
}
void ZenNoticeHandle::Stub::experimental_async::NoticeTrade(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::zen_notice::NoticeTradeRsp* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NoticeTrade_, context, request, response, reactor);
}
::grpc::ClientAsyncResponseReader< ::zen_notice::NoticeTradeRsp>* ZenNoticeHandle::Stub::AsyncNoticeTradeRaw(::grpc::ClientContext* context, const ::zen_notice::NoticeTradeReq& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::zen_notice::NoticeTradeRsp>::Create(channel_.get(), cq, rpcmethod_NoticeTrade_, context, request, true);
}
::grpc::ClientAsyncResponseReader< ::zen_notice::NoticeTradeRsp>* ZenNoticeHandle::Stub::PrepareAsyncNoticeTradeRaw(::grpc::ClientContext* context, const ::zen_notice::NoticeTradeReq& request, ::grpc::CompletionQueue* cq) {
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::zen_notice::NoticeTradeRsp>::Create(channel_.get(), cq, rpcmethod_NoticeTrade_, context, request, false);
}
ZenNoticeHandle::Service::Service() {
AddMethod(new ::grpc::internal::RpcServiceMethod(
ZenNoticeHandle_method_names[0],
::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< ZenNoticeHandle::Service, ::zen_notice::NoticeLineReq, ::zen_notice::NoticeLineRsp>(
std::mem_fn(&ZenNoticeHandle::Service::NoticeLine), this)));
AddMethod(new ::grpc::internal::RpcServiceMethod(
ZenNoticeHandle_method_names[1],
::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< ZenNoticeHandle::Service, ::zen_notice::NoticeDrawReq, ::zen_notice::NoticeDrawRsp>(
std::mem_fn(&ZenNoticeHandle::Service::NoticeDraw), this)));
AddMethod(new ::grpc::internal::RpcServiceMethod(
ZenNoticeHandle_method_names[2],
::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< ZenNoticeHandle::Service, ::zen_notice::NoticeTradeReq, ::zen_notice::NoticeTradeRsp>(
std::mem_fn(&ZenNoticeHandle::Service::NoticeTrade), this)));
}
ZenNoticeHandle::Service::~Service() {
}
::grpc::Status ZenNoticeHandle::Service::NoticeLine(::grpc::ServerContext* context, const ::zen_notice::NoticeLineReq* request, ::zen_notice::NoticeLineRsp* response) {
(void) context;
(void) request;
(void) response;
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
::grpc::Status ZenNoticeHandle::Service::NoticeDraw(::grpc::ServerContext* context, const ::zen_notice::NoticeDrawReq* request, ::zen_notice::NoticeDrawRsp* response) {
(void) context;
(void) request;
(void) response;
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
::grpc::Status ZenNoticeHandle::Service::NoticeTrade(::grpc::ServerContext* context, const ::zen_notice::NoticeTradeReq* request, ::zen_notice::NoticeTradeRsp* response) {
(void) context;
(void) request;
(void) response;
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
} // namespace zen_notice