Line data Source code
1 : // Generated by the gRPC protobuf plugin.
2 : // If you make any local change, they will be lost.
3 : // source: test/cpp/qps/perf_db.proto
4 : #ifndef GRPC_test_2fcpp_2fqps_2fperf_5fdb_2eproto__INCLUDED
5 : #define GRPC_test_2fcpp_2fqps_2fperf_5fdb_2eproto__INCLUDED
6 :
7 : #include "test/cpp/qps/perf_db.pb.h"
8 :
9 : #include <grpc++/support/async_stream.h>
10 : #include <grpc++/impl/rpc_method.h>
11 : #include <grpc++/impl/proto_utils.h>
12 : #include <grpc++/impl/service_type.h>
13 : #include <grpc++/support/async_unary_call.h>
14 : #include <grpc++/support/status.h>
15 : #include <grpc++/support/stub_options.h>
16 : #include <grpc++/support/sync_stream.h>
17 :
18 : namespace grpc {
19 : class CompletionQueue;
20 : class Channel;
21 : class RpcService;
22 : class ServerCompletionQueue;
23 : class ServerContext;
24 : } // namespace grpc
25 :
26 : namespace grpc {
27 : namespace testing {
28 :
29 : class PerfDbTransfer GRPC_FINAL {
30 : public:
31 0 : class StubInterface {
32 : public:
33 0 : virtual ~StubInterface() {}
34 : virtual ::grpc::Status RecordSingleClientData(::grpc::ClientContext* context, const ::grpc::testing::SingleUserRecordRequest& request, ::grpc::testing::SingleUserRecordReply* response) = 0;
35 : std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::grpc::testing::SingleUserRecordReply>> AsyncRecordSingleClientData(::grpc::ClientContext* context, const ::grpc::testing::SingleUserRecordRequest& request, ::grpc::CompletionQueue* cq) {
36 : return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::grpc::testing::SingleUserRecordReply>>(AsyncRecordSingleClientDataRaw(context, request, cq));
37 : }
38 : private:
39 : virtual ::grpc::ClientAsyncResponseReaderInterface< ::grpc::testing::SingleUserRecordReply>* AsyncRecordSingleClientDataRaw(::grpc::ClientContext* context, const ::grpc::testing::SingleUserRecordRequest& request, ::grpc::CompletionQueue* cq) = 0;
40 : };
41 0 : class Stub GRPC_FINAL : public StubInterface {
42 : public:
43 : Stub(const std::shared_ptr< ::grpc::Channel>& channel);
44 : ::grpc::Status RecordSingleClientData(::grpc::ClientContext* context, const ::grpc::testing::SingleUserRecordRequest& request, ::grpc::testing::SingleUserRecordReply* response) GRPC_OVERRIDE;
45 : std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::grpc::testing::SingleUserRecordReply>> AsyncRecordSingleClientData(::grpc::ClientContext* context, const ::grpc::testing::SingleUserRecordRequest& request, ::grpc::CompletionQueue* cq) {
46 : return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::grpc::testing::SingleUserRecordReply>>(AsyncRecordSingleClientDataRaw(context, request, cq));
47 : }
48 :
49 : private:
50 : std::shared_ptr< ::grpc::Channel> channel_;
51 : ::grpc::ClientAsyncResponseReader< ::grpc::testing::SingleUserRecordReply>* AsyncRecordSingleClientDataRaw(::grpc::ClientContext* context, const ::grpc::testing::SingleUserRecordRequest& request, ::grpc::CompletionQueue* cq) GRPC_OVERRIDE;
52 : const ::grpc::RpcMethod rpcmethod_RecordSingleClientData_;
53 : };
54 : static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::Channel>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
55 :
56 : class Service : public ::grpc::SynchronousService {
57 : public:
58 : Service() : service_(nullptr) {}
59 : virtual ~Service();
60 : virtual ::grpc::Status RecordSingleClientData(::grpc::ServerContext* context, const ::grpc::testing::SingleUserRecordRequest* request, ::grpc::testing::SingleUserRecordReply* response);
61 : ::grpc::RpcService* service() GRPC_OVERRIDE GRPC_FINAL;
62 : private:
63 : ::grpc::RpcService* service_;
64 : };
65 : class AsyncService GRPC_FINAL : public ::grpc::AsynchronousService {
66 : public:
67 : explicit AsyncService();
68 : ~AsyncService() {};
69 : void RequestRecordSingleClientData(::grpc::ServerContext* context, ::grpc::testing::SingleUserRecordRequest* request, ::grpc::ServerAsyncResponseWriter< ::grpc::testing::SingleUserRecordReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag);
70 : };
71 : };
72 :
73 : } // namespace testing
74 : } // namespace grpc
75 :
76 :
77 : #endif // GRPC_test_2fcpp_2fqps_2fperf_5fdb_2eproto__INCLUDED
|