blob: d27749e7f368d121fe89744dac5b80bcf3a48b63 [file] [log] [blame]
Alexandre Huff05b94382021-12-09 00:29:05 -03001// Generated by the gRPC C++ plugin.
2// If you make any local change, they will be lost.
3// source: api.proto
4#ifndef GRPC_api_2eproto__INCLUDED
5#define GRPC_api_2eproto__INCLUDED
6
7#include "api.pb.h"
8
9#include <functional>
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>
20
21namespace grpc {
22class CompletionQueue;
23class Channel;
24class ServerCompletionQueue;
25class ServerContext;
26} // namespace grpc
27
28namespace api {
29
30// Services to send gRPC
31class MsgComm final {
32 public:
33 static constexpr char const* service_full_name() {
34 return "api.MsgComm";
35 }
36 class StubInterface {
37 public:
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));
43 }
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));
46 }
47 class experimental_async_interface {
48 public:
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;
52 };
53 virtual class experimental_async_interface* experimental_async() { return nullptr; }
54 private:
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;
57 };
58 class Stub final : public StubInterface {
59 public:
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));
64 }
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));
67 }
68 class experimental_async final :
69 public StubInterface::experimental_async_interface {
70 public:
71 void SendRICControlReqServiceGrpc(::grpc::ClientContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response, std::function<void(::grpc::Status)>) override;
72 private:
73 friend class Stub;
74 explicit experimental_async(Stub* stub): stub_(stub) { }
75 Stub* stub() { return stub_; }
76 Stub* stub_;
77 };
78 class experimental_async_interface* experimental_async() override { return &async_stub_; }
79
80 private:
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_;
86 };
87 static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
88
89 class Service : public ::grpc::Service {
90 public:
91 Service();
92 virtual ~Service();
93 // gRPC call to Send RICControlReqServiceGrpc
94 virtual ::grpc::Status SendRICControlReqServiceGrpc(::grpc::ServerContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response);
95 };
96 template <class BaseClass>
97 class WithAsyncMethod_SendRICControlReqServiceGrpc : public BaseClass {
98 private:
99 void BaseClassMustBeDerivedFromService(const Service *service) {}
100 public:
101 WithAsyncMethod_SendRICControlReqServiceGrpc() {
102 ::grpc::Service::MarkMethodAsync(0);
103 }
104 ~WithAsyncMethod_SendRICControlReqServiceGrpc() override {
105 BaseClassMustBeDerivedFromService(this);
106 }
107 // disable synchronous version of this method
108 ::grpc::Status SendRICControlReqServiceGrpc(::grpc::ServerContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response) override {
109 abort();
110 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
111 }
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);
114 }
115 };
116 typedef WithAsyncMethod_SendRICControlReqServiceGrpc<Service > AsyncService;
117 template <class BaseClass>
118 class WithGenericMethod_SendRICControlReqServiceGrpc : public BaseClass {
119 private:
120 void BaseClassMustBeDerivedFromService(const Service *service) {}
121 public:
122 WithGenericMethod_SendRICControlReqServiceGrpc() {
123 ::grpc::Service::MarkMethodGeneric(0);
124 }
125 ~WithGenericMethod_SendRICControlReqServiceGrpc() override {
126 BaseClassMustBeDerivedFromService(this);
127 }
128 // disable synchronous version of this method
129 ::grpc::Status SendRICControlReqServiceGrpc(::grpc::ServerContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response) override {
130 abort();
131 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
132 }
133 };
134 template <class BaseClass>
135 class WithRawMethod_SendRICControlReqServiceGrpc : public BaseClass {
136 private:
137 void BaseClassMustBeDerivedFromService(const Service *service) {}
138 public:
139 WithRawMethod_SendRICControlReqServiceGrpc() {
140 ::grpc::Service::MarkMethodRaw(0);
141 }
142 ~WithRawMethod_SendRICControlReqServiceGrpc() override {
143 BaseClassMustBeDerivedFromService(this);
144 }
145 // disable synchronous version of this method
146 ::grpc::Status SendRICControlReqServiceGrpc(::grpc::ServerContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response) override {
147 abort();
148 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
149 }
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);
152 }
153 };
154 template <class BaseClass>
155 class WithStreamedUnaryMethod_SendRICControlReqServiceGrpc : public BaseClass {
156 private:
157 void BaseClassMustBeDerivedFromService(const Service *service) {}
158 public:
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)));
162 }
163 ~WithStreamedUnaryMethod_SendRICControlReqServiceGrpc() override {
164 BaseClassMustBeDerivedFromService(this);
165 }
166 // disable regular version of this method
167 ::grpc::Status SendRICControlReqServiceGrpc(::grpc::ServerContext* context, const ::api::RicControlGrpcReq* request, ::api::RicControlGrpcRsp* response) override {
168 abort();
169 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
170 }
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;
173 };
174 typedef WithStreamedUnaryMethod_SendRICControlReqServiceGrpc<Service > StreamedUnaryService;
175 typedef Service SplitStreamedService;
176 typedef WithStreamedUnaryMethod_SendRICControlReqServiceGrpc<Service > StreamedService;
177};
178
179} // namespace api
180
181
182#endif // GRPC_api_2eproto__INCLUDED