Release 1.2.3
[ric-app/ts.git] / ext / protobuf / api.grpc.pb.cc
1 // Generated by the gRPC C++ plugin.
2 // If you make any local change, they will be lost.
3 // source: api.proto
4
5 #include "api.pb.h"
6 #include "api.grpc.pb.h"
7
8 #include <functional>
9 #include <grpcpp/impl/codegen/async_stream.h>
10 #include <grpcpp/impl/codegen/async_unary_call.h>
11 #include <grpcpp/impl/codegen/channel_interface.h>
12 #include <grpcpp/impl/codegen/client_unary_call.h>
13 #include <grpcpp/impl/codegen/client_callback.h>
14 #include <grpcpp/impl/codegen/method_handler_impl.h>
15 #include <grpcpp/impl/codegen/rpc_service_method.h>
16 #include <grpcpp/impl/codegen/service_type.h>
17 #include <grpcpp/impl/codegen/sync_stream.h>
18 namespace api {
19
20 static const char* MsgComm_method_names[] = {
21   "/api.MsgComm/SendRICControlReqServiceGrpc",
22 };
23
24 std::unique_ptr< MsgComm::Stub> MsgComm::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
25   (void)options;
26   std::unique_ptr< MsgComm::Stub> stub(new MsgComm::Stub(channel));
27   return stub;
28 }
29
30 MsgComm::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
31   : channel_(channel), rpcmethod_SendRICControlReqServiceGrpc_(MsgComm_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
32   {}
33
34 ::grpc::Status MsgComm::Stub::SendRICControlReqServiceGrpc(::grpc::ClientContext* context, const ::api::RicControlGrpcReq& request, ::api::RicControlGrpcRsp* response) {
35   return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SendRICControlReqServiceGrpc_, context, request, response);
36 }
37
38 void MsgComm::Stub::experimental_async::SendRICControlReqServiceGrpc(::grpc::ClientContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response, std::function<void(::grpc::Status)> f) {
39   return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SendRICControlReqServiceGrpc_, context, request, response, std::move(f));
40 }
41
42 ::grpc::ClientAsyncResponseReader< ::api::RicControlGrpcRsp>* MsgComm::Stub::AsyncSendRICControlReqServiceGrpcRaw(::grpc::ClientContext* context, const ::api::RicControlGrpcReq& request, ::grpc::CompletionQueue* cq) {
43   return ::grpc::internal::ClientAsyncResponseReaderFactory< ::api::RicControlGrpcRsp>::Create(channel_.get(), cq, rpcmethod_SendRICControlReqServiceGrpc_, context, request, true);
44 }
45
46 ::grpc::ClientAsyncResponseReader< ::api::RicControlGrpcRsp>* MsgComm::Stub::PrepareAsyncSendRICControlReqServiceGrpcRaw(::grpc::ClientContext* context, const ::api::RicControlGrpcReq& request, ::grpc::CompletionQueue* cq) {
47   return ::grpc::internal::ClientAsyncResponseReaderFactory< ::api::RicControlGrpcRsp>::Create(channel_.get(), cq, rpcmethod_SendRICControlReqServiceGrpc_, context, request, false);
48 }
49
50 MsgComm::Service::Service() {
51   AddMethod(new ::grpc::internal::RpcServiceMethod(
52       MsgComm_method_names[0],
53       ::grpc::internal::RpcMethod::NORMAL_RPC,
54       new ::grpc::internal::RpcMethodHandler< MsgComm::Service, ::api::RicControlGrpcReq, ::api::RicControlGrpcRsp>(
55           std::mem_fn(&MsgComm::Service::SendRICControlReqServiceGrpc), this)));
56 }
57
58 MsgComm::Service::~Service() {
59 }
60
61 ::grpc::Status MsgComm::Service::SendRICControlReqServiceGrpc(::grpc::ServerContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response) {
62   (void) context;
63   (void) request;
64   (void) response;
65   return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
66 }
67
68
69 }  // namespace api
70