123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- // Generated by the gRPC C++ plugin.
- // If you make any local change, they will be lost.
- // source: testservice.proto
- #include "testservice.pb.h"
- #include "testservice.grpc.pb.h"
- #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/method_handler_impl.h>
- #include <grpcpp/impl/codegen/rpc_service_method.h>
- #include <grpcpp/impl/codegen/service_type.h>
- #include <grpcpp/impl/codegen/sync_stream.h>
- namespace qtprotobufnamespace {
- namespace tests {
- static const char* TestService_method_names[] = {
- "/qtprotobufnamespace.tests.TestService/testMethod",
- };
- std::unique_ptr< TestService::Stub> TestService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
- (void)options;
- std::unique_ptr< TestService::Stub> stub(new TestService::Stub(channel));
- return stub;
- }
- TestService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
- : channel_(channel), rpcmethod_testMethod_(TestService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
- {}
- ::grpc::Status TestService::Stub::testMethod(::grpc::ClientContext* context, const ::qtprotobufnamespace::tests::SimpleStringMessage& request, ::qtprotobufnamespace::tests::SimpleStringMessage* response) {
- return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_testMethod_, context, request, response);
- }
- ::grpc::ClientAsyncResponseReader< ::qtprotobufnamespace::tests::SimpleStringMessage>* TestService::Stub::AsynctestMethodRaw(::grpc::ClientContext* context, const ::qtprotobufnamespace::tests::SimpleStringMessage& request, ::grpc::CompletionQueue* cq) {
- return ::grpc::internal::ClientAsyncResponseReaderFactory< ::qtprotobufnamespace::tests::SimpleStringMessage>::Create(channel_.get(), cq, rpcmethod_testMethod_, context, request, true);
- }
- ::grpc::ClientAsyncResponseReader< ::qtprotobufnamespace::tests::SimpleStringMessage>* TestService::Stub::PrepareAsynctestMethodRaw(::grpc::ClientContext* context, const ::qtprotobufnamespace::tests::SimpleStringMessage& request, ::grpc::CompletionQueue* cq) {
- return ::grpc::internal::ClientAsyncResponseReaderFactory< ::qtprotobufnamespace::tests::SimpleStringMessage>::Create(channel_.get(), cq, rpcmethod_testMethod_, context, request, false);
- }
- TestService::Service::Service() {
- AddMethod(new ::grpc::internal::RpcServiceMethod(
- TestService_method_names[0],
- ::grpc::internal::RpcMethod::NORMAL_RPC,
- new ::grpc::internal::RpcMethodHandler< TestService::Service, ::qtprotobufnamespace::tests::SimpleStringMessage, ::qtprotobufnamespace::tests::SimpleStringMessage>(
- std::mem_fn(&TestService::Service::testMethod), this)));
- }
- TestService::Service::~Service() {
- }
- ::grpc::Status TestService::Service::testMethod(::grpc::ServerContext* context, const ::qtprotobufnamespace::tests::SimpleStringMessage* request, ::qtprotobufnamespace::tests::SimpleStringMessage* response) {
- (void) context;
- (void) request;
- (void) response;
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- } // namespace qtprotobufnamespace
- } // namespace tests
|