LCOV - code coverage report
Current view: top level - build/protobuf_generated - ping.grpc.pb.h (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 0 5 0.0 %
Date: 2024-12-11 20:54:31 Functions: 0 7 0.0 %

          Line data    Source code
       1             : // Generated by the gRPC C++ plugin.
       2             : // If you make any local change, they will be lost.
       3             : // source: ping.proto
       4             : #ifndef GRPC_ping_2eproto__INCLUDED
       5             : #define GRPC_ping_2eproto__INCLUDED
       6             : 
       7             : #include "ping.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/client_callback.h>
      14             : #include <grpcpp/impl/codegen/method_handler_impl.h>
      15             : #include <grpcpp/impl/codegen/proto_utils.h>
      16             : #include <grpcpp/impl/codegen/rpc_method.h>
      17             : #include <grpcpp/impl/codegen/server_callback.h>
      18             : #include <grpcpp/impl/codegen/service_type.h>
      19             : #include <grpcpp/impl/codegen/status.h>
      20             : #include <grpcpp/impl/codegen/stub_options.h>
      21             : #include <grpcpp/impl/codegen/sync_stream.h>
      22             : 
      23             : namespace grpc {
      24             : class CompletionQueue;
      25             : class Channel;
      26             : class ServerCompletionQueue;
      27             : class ServerContext;
      28             : }  // namespace grpc
      29             : 
      30             : namespace casatools {
      31             : namespace rpc {
      32             : 
      33             : class Ping final {
      34             :  public:
      35             :   static constexpr char const* service_full_name() {
      36             :     return "casatools.rpc.Ping";
      37             :   }
      38             :   class StubInterface {
      39             :    public:
      40           0 :     virtual ~StubInterface() {}
      41             :     virtual ::grpc::Status now(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::google::protobuf::Empty* response) = 0;
      42             :     std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> Asyncnow(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      43             :       return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncnowRaw(context, request, cq));
      44             :     }
      45             :     std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncnow(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      46             :       return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncnowRaw(context, request, cq));
      47             :     }
      48             :     class experimental_async_interface {
      49             :      public:
      50           0 :       virtual ~experimental_async_interface() {}
      51             :       virtual void now(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) = 0;
      52             :     };
      53           0 :     virtual class experimental_async_interface* experimental_async() { return nullptr; }
      54             :   private:
      55             :     virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncnowRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
      56             :     virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncnowRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& 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 now(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::google::protobuf::Empty* response) override;
      62             :     std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> Asyncnow(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      63             :       return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncnowRaw(context, request, cq));
      64             :     }
      65             :     std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncnow(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      66             :       return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncnowRaw(context, request, cq));
      67             :     }
      68             :     class experimental_async final :
      69             :       public StubInterface::experimental_async_interface {
      70             :      public:
      71             :       void now(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) override;
      72             :      private:
      73             :       friend class Stub;
      74           0 :       explicit experimental_async(Stub* stub): stub_(stub) { }
      75             :       Stub* stub() { return stub_; }
      76             :       Stub* stub_;
      77             :     };
      78           0 :     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< ::google::protobuf::Empty>* AsyncnowRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
      84             :     ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncnowRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
      85             :     const ::grpc::internal::RpcMethod rpcmethod_now_;
      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             :     virtual ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response);
      94             :   };
      95             :   template <class BaseClass>
      96             :   class WithAsyncMethod_now : public BaseClass {
      97             :    private:
      98             :     void BaseClassMustBeDerivedFromService(const Service *service) {}
      99             :    public:
     100             :     WithAsyncMethod_now() {
     101             :       ::grpc::Service::MarkMethodAsync(0);
     102             :     }
     103             :     ~WithAsyncMethod_now() override {
     104             :       BaseClassMustBeDerivedFromService(this);
     105             :     }
     106             :     // disable synchronous version of this method
     107             :     ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
     108             :       abort();
     109             :       return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     110             :     }
     111             :     void Requestnow(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
     112             :       ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
     113             :     }
     114             :   };
     115             :   typedef WithAsyncMethod_now<Service > AsyncService;
     116             :   template <class BaseClass>
     117             :   class ExperimentalWithCallbackMethod_now : public BaseClass {
     118             :    private:
     119             :     void BaseClassMustBeDerivedFromService(const Service *service) {}
     120             :    public:
     121             :     ExperimentalWithCallbackMethod_now() {
     122             :       ::grpc::Service::experimental().MarkMethodCallback(0,
     123             :         new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::google::protobuf::Empty>(
     124             :           [this](::grpc::ServerContext* context,
     125             :                  const ::google::protobuf::Empty* request,
     126             :                  ::google::protobuf::Empty* response,
     127             :                  ::grpc::experimental::ServerCallbackRpcController* controller) {
     128             :                    return this->now(context, request, response, controller);
     129             :                  }));
     130             :     }
     131             :     ~ExperimentalWithCallbackMethod_now() override {
     132             :       BaseClassMustBeDerivedFromService(this);
     133             :     }
     134             :     // disable synchronous version of this method
     135             :     ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
     136             :       abort();
     137             :       return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     138             :     }
     139             :     virtual void now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
     140             :   };
     141             :   typedef ExperimentalWithCallbackMethod_now<Service > ExperimentalCallbackService;
     142             :   template <class BaseClass>
     143             :   class WithGenericMethod_now : public BaseClass {
     144             :    private:
     145             :     void BaseClassMustBeDerivedFromService(const Service *service) {}
     146             :    public:
     147             :     WithGenericMethod_now() {
     148             :       ::grpc::Service::MarkMethodGeneric(0);
     149             :     }
     150             :     ~WithGenericMethod_now() override {
     151             :       BaseClassMustBeDerivedFromService(this);
     152             :     }
     153             :     // disable synchronous version of this method
     154             :     ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
     155             :       abort();
     156             :       return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     157             :     }
     158             :   };
     159             :   template <class BaseClass>
     160             :   class WithRawMethod_now : public BaseClass {
     161             :    private:
     162             :     void BaseClassMustBeDerivedFromService(const Service *service) {}
     163             :    public:
     164             :     WithRawMethod_now() {
     165             :       ::grpc::Service::MarkMethodRaw(0);
     166             :     }
     167             :     ~WithRawMethod_now() override {
     168             :       BaseClassMustBeDerivedFromService(this);
     169             :     }
     170             :     // disable synchronous version of this method
     171             :     ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
     172             :       abort();
     173             :       return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     174             :     }
     175             :     void Requestnow(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
     176             :       ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
     177             :     }
     178             :   };
     179             :   template <class BaseClass>
     180             :   class ExperimentalWithRawCallbackMethod_now : public BaseClass {
     181             :    private:
     182             :     void BaseClassMustBeDerivedFromService(const Service *service) {}
     183             :    public:
     184             :     ExperimentalWithRawCallbackMethod_now() {
     185             :       ::grpc::Service::experimental().MarkMethodRawCallback(0,
     186             :         new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
     187             :           [this](::grpc::ServerContext* context,
     188             :                  const ::grpc::ByteBuffer* request,
     189             :                  ::grpc::ByteBuffer* response,
     190             :                  ::grpc::experimental::ServerCallbackRpcController* controller) {
     191             :                    this->now(context, request, response, controller);
     192             :                  }));
     193             :     }
     194             :     ~ExperimentalWithRawCallbackMethod_now() override {
     195             :       BaseClassMustBeDerivedFromService(this);
     196             :     }
     197             :     // disable synchronous version of this method
     198             :     ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
     199             :       abort();
     200             :       return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     201             :     }
     202             :     virtual void now(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
     203             :   };
     204             :   template <class BaseClass>
     205             :   class WithStreamedUnaryMethod_now : public BaseClass {
     206             :    private:
     207             :     void BaseClassMustBeDerivedFromService(const Service *service) {}
     208             :    public:
     209             :     WithStreamedUnaryMethod_now() {
     210             :       ::grpc::Service::MarkMethodStreamed(0,
     211             :         new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_now<BaseClass>::Streamednow, this, std::placeholders::_1, std::placeholders::_2)));
     212             :     }
     213             :     ~WithStreamedUnaryMethod_now() override {
     214             :       BaseClassMustBeDerivedFromService(this);
     215             :     }
     216             :     // disable regular version of this method
     217             :     ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
     218             :       abort();
     219             :       return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     220             :     }
     221             :     // replace default version of method with streamed unary
     222             :     virtual ::grpc::Status Streamednow(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::google::protobuf::Empty>* server_unary_streamer) = 0;
     223             :   };
     224             :   typedef WithStreamedUnaryMethod_now<Service > StreamedUnaryService;
     225             :   typedef Service SplitStreamedService;
     226             :   typedef WithStreamedUnaryMethod_now<Service > StreamedService;
     227             : };
     228             : 
     229             : }  // namespace rpc
     230             : }  // namespace casatools
     231             : 
     232             : 
     233             : #endif  // GRPC_ping_2eproto__INCLUDED

Generated by: LCOV version 1.16