1 // Generated by the gRPC C++ plugin.
2 // If you make any local change, they will be lost.
4 #ifndef GRPC_api_2eproto__INCLUDED
5 #define GRPC_api_2eproto__INCLUDED
10 #include <grpcpp/impl/codegen/async_generic_service.h>
11 #include <grpcpp/impl/codegen/async_stream.h>
12 #include <grpcpp/impl/codegen/async_unary_call.h>
13 #include <grpcpp/impl/codegen/method_handler_impl.h>
14 #include <grpcpp/impl/codegen/proto_utils.h>
15 #include <grpcpp/impl/codegen/rpc_method.h>
16 #include <grpcpp/impl/codegen/service_type.h>
17 #include <grpcpp/impl/codegen/status.h>
18 #include <grpcpp/impl/codegen/stub_options.h>
19 #include <grpcpp/impl/codegen/sync_stream.h>
22 class CompletionQueue;
24 class ServerCompletionQueue;
30 // Services to send gRPC
33 static constexpr char const* service_full_name() {
38 virtual ~StubInterface() {}
39 // gRPC call to Send RICControlReqServiceGrpc
40 virtual ::grpc::Status SendRICControlReqServiceGrpc(::grpc::ClientContext* context, const ::api::RicControlGrpcReq& request, ::api::RicControlGrpcRsp* response) = 0;
41 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::RicControlGrpcRsp>> AsyncSendRICControlReqServiceGrpc(::grpc::ClientContext* context, const ::api::RicControlGrpcReq& request, ::grpc::CompletionQueue* cq) {
42 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::RicControlGrpcRsp>>(AsyncSendRICControlReqServiceGrpcRaw(context, request, cq));
44 std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::RicControlGrpcRsp>> PrepareAsyncSendRICControlReqServiceGrpc(::grpc::ClientContext* context, const ::api::RicControlGrpcReq& request, ::grpc::CompletionQueue* cq) {
45 return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::api::RicControlGrpcRsp>>(PrepareAsyncSendRICControlReqServiceGrpcRaw(context, request, cq));
47 class experimental_async_interface {
49 virtual ~experimental_async_interface() {}
50 // gRPC call to Send RICControlReqServiceGrpc
51 virtual void SendRICControlReqServiceGrpc(::grpc::ClientContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response, std::function<void(::grpc::Status)>) = 0;
53 virtual class experimental_async_interface* experimental_async() { return nullptr; }
55 virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::RicControlGrpcRsp>* AsyncSendRICControlReqServiceGrpcRaw(::grpc::ClientContext* context, const ::api::RicControlGrpcReq& request, ::grpc::CompletionQueue* cq) = 0;
56 virtual ::grpc::ClientAsyncResponseReaderInterface< ::api::RicControlGrpcRsp>* PrepareAsyncSendRICControlReqServiceGrpcRaw(::grpc::ClientContext* context, const ::api::RicControlGrpcReq& request, ::grpc::CompletionQueue* cq) = 0;
58 class Stub final : public StubInterface {
60 Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel);
61 ::grpc::Status SendRICControlReqServiceGrpc(::grpc::ClientContext* context, const ::api::RicControlGrpcReq& request, ::api::RicControlGrpcRsp* response) override;
62 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::RicControlGrpcRsp>> AsyncSendRICControlReqServiceGrpc(::grpc::ClientContext* context, const ::api::RicControlGrpcReq& request, ::grpc::CompletionQueue* cq) {
63 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::RicControlGrpcRsp>>(AsyncSendRICControlReqServiceGrpcRaw(context, request, cq));
65 std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::RicControlGrpcRsp>> PrepareAsyncSendRICControlReqServiceGrpc(::grpc::ClientContext* context, const ::api::RicControlGrpcReq& request, ::grpc::CompletionQueue* cq) {
66 return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::api::RicControlGrpcRsp>>(PrepareAsyncSendRICControlReqServiceGrpcRaw(context, request, cq));
68 class experimental_async final :
69 public StubInterface::experimental_async_interface {
71 void SendRICControlReqServiceGrpc(::grpc::ClientContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response, std::function<void(::grpc::Status)>) override;
74 explicit experimental_async(Stub* stub): stub_(stub) { }
75 Stub* stub() { return stub_; }
78 class experimental_async_interface* experimental_async() override { return &async_stub_; }
81 std::shared_ptr< ::grpc::ChannelInterface> channel_;
82 class experimental_async async_stub_{this};
83 ::grpc::ClientAsyncResponseReader< ::api::RicControlGrpcRsp>* AsyncSendRICControlReqServiceGrpcRaw(::grpc::ClientContext* context, const ::api::RicControlGrpcReq& request, ::grpc::CompletionQueue* cq) override;
84 ::grpc::ClientAsyncResponseReader< ::api::RicControlGrpcRsp>* PrepareAsyncSendRICControlReqServiceGrpcRaw(::grpc::ClientContext* context, const ::api::RicControlGrpcReq& request, ::grpc::CompletionQueue* cq) override;
85 const ::grpc::internal::RpcMethod rpcmethod_SendRICControlReqServiceGrpc_;
87 static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
89 class Service : public ::grpc::Service {
93 // gRPC call to Send RICControlReqServiceGrpc
94 virtual ::grpc::Status SendRICControlReqServiceGrpc(::grpc::ServerContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response);
96 template <class BaseClass>
97 class WithAsyncMethod_SendRICControlReqServiceGrpc : public BaseClass {
99 void BaseClassMustBeDerivedFromService(const Service *service) {}
101 WithAsyncMethod_SendRICControlReqServiceGrpc() {
102 ::grpc::Service::MarkMethodAsync(0);
104 ~WithAsyncMethod_SendRICControlReqServiceGrpc() override {
105 BaseClassMustBeDerivedFromService(this);
107 // disable synchronous version of this method
108 ::grpc::Status SendRICControlReqServiceGrpc(::grpc::ServerContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response) override {
110 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
112 void RequestSendRICControlReqServiceGrpc(::grpc::ServerContext* context, ::api::RicControlGrpcReq* request, ::grpc::ServerAsyncResponseWriter< ::api::RicControlGrpcRsp>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
113 ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
116 typedef WithAsyncMethod_SendRICControlReqServiceGrpc<Service > AsyncService;
117 template <class BaseClass>
118 class WithGenericMethod_SendRICControlReqServiceGrpc : public BaseClass {
120 void BaseClassMustBeDerivedFromService(const Service *service) {}
122 WithGenericMethod_SendRICControlReqServiceGrpc() {
123 ::grpc::Service::MarkMethodGeneric(0);
125 ~WithGenericMethod_SendRICControlReqServiceGrpc() override {
126 BaseClassMustBeDerivedFromService(this);
128 // disable synchronous version of this method
129 ::grpc::Status SendRICControlReqServiceGrpc(::grpc::ServerContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response) override {
131 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
134 template <class BaseClass>
135 class WithRawMethod_SendRICControlReqServiceGrpc : public BaseClass {
137 void BaseClassMustBeDerivedFromService(const Service *service) {}
139 WithRawMethod_SendRICControlReqServiceGrpc() {
140 ::grpc::Service::MarkMethodRaw(0);
142 ~WithRawMethod_SendRICControlReqServiceGrpc() override {
143 BaseClassMustBeDerivedFromService(this);
145 // disable synchronous version of this method
146 ::grpc::Status SendRICControlReqServiceGrpc(::grpc::ServerContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response) override {
148 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
150 void RequestSendRICControlReqServiceGrpc(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
151 ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
154 template <class BaseClass>
155 class WithStreamedUnaryMethod_SendRICControlReqServiceGrpc : public BaseClass {
157 void BaseClassMustBeDerivedFromService(const Service *service) {}
159 WithStreamedUnaryMethod_SendRICControlReqServiceGrpc() {
160 ::grpc::Service::MarkMethodStreamed(0,
161 new ::grpc::internal::StreamedUnaryHandler< ::api::RicControlGrpcReq, ::api::RicControlGrpcRsp>(std::bind(&WithStreamedUnaryMethod_SendRICControlReqServiceGrpc<BaseClass>::StreamedSendRICControlReqServiceGrpc, this, std::placeholders::_1, std::placeholders::_2)));
163 ~WithStreamedUnaryMethod_SendRICControlReqServiceGrpc() override {
164 BaseClassMustBeDerivedFromService(this);
166 // disable regular version of this method
167 ::grpc::Status SendRICControlReqServiceGrpc(::grpc::ServerContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response) override {
169 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
171 // replace default version of method with streamed unary
172 virtual ::grpc::Status StreamedSendRICControlReqServiceGrpc(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::api::RicControlGrpcReq,::api::RicControlGrpcRsp>* server_unary_streamer) = 0;
174 typedef WithStreamedUnaryMethod_SendRICControlReqServiceGrpc<Service > StreamedUnaryService;
175 typedef Service SplitStreamedService;
176 typedef WithStreamedUnaryMethod_SendRICControlReqServiceGrpc<Service > StreamedService;
182 #endif // GRPC_api_2eproto__INCLUDED