LCOV - code coverage report
Current view: top level - build/protobuf_generated - shutdown.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: shutdown.proto
       4             : #ifndef GRPC_shutdown_2eproto__INCLUDED
       5             : #define GRPC_shutdown_2eproto__INCLUDED
       6             : 
       7             : #include "shutdown.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 Shutdown final {
      34             :  public:
      35             :   static constexpr char const* service_full_name() {
      36             :     return "casatools.rpc.Shutdown";
      37             :   }
      38             :   class StubInterface {
      39             :    public:
      40           0 :     virtual ~StubInterface() {}
      41             :     // shutdown now...
      42             :     virtual ::grpc::Status now(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::google::protobuf::Empty* response) = 0;
      43             :     std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> Asyncnow(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      44             :       return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncnowRaw(context, request, cq));
      45             :     }
      46             :     std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncnow(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      47             :       return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncnowRaw(context, request, cq));
      48             :     }
      49             :     class experimental_async_interface {
      50             :      public:
      51           0 :       virtual ~experimental_async_interface() {}
      52             :       // shutdown now...
      53             :       virtual void now(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) = 0;
      54             :     };
      55           0 :     virtual class experimental_async_interface* experimental_async() { return nullptr; }
      56             :   private:
      57             :     virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncnowRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
      58             :     virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncnowRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
      59             :   };
      60             :   class Stub final : public StubInterface {
      61             :    public:
      62             :     Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel);
      63             :     ::grpc::Status now(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::google::protobuf::Empty* response) override;
      64             :     std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> Asyncnow(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      65             :       return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncnowRaw(context, request, cq));
      66             :     }
      67             :     std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncnow(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      68             :       return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncnowRaw(context, request, cq));
      69             :     }
      70             :     class experimental_async final :
      71             :       public StubInterface::experimental_async_interface {
      72             :      public:
      73             :       void now(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) override;
      74             :      private:
      75             :       friend class Stub;
      76           0 :       explicit experimental_async(Stub* stub): stub_(stub) { }
      77             :       Stub* stub() { return stub_; }
      78             :       Stub* stub_;
      79             :     };
      80           0 :     class experimental_async_interface* experimental_async() override { return &async_stub_; }
      81             : 
      82             :    private:
      83             :     std::shared_ptr< ::grpc::ChannelInterface> channel_;
      84             :     class experimental_async async_stub_{this};
      85             :     ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncnowRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
      86             :     ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncnowRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
      87             :     const ::grpc::internal::RpcMethod rpcmethod_now_;
      88             :   };
      89             :   static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
      90             : 
      91             :   class Service : public ::grpc::Service {
      92             :    public:
      93             :     Service();
      94             :     virtual ~Service();
      95             :     // shutdown now...
      96             :     virtual ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response);
      97             :   };
      98             :   template <class BaseClass>
      99             :   class WithAsyncMethod_now : public BaseClass {
     100             :    private:
     101             :     void BaseClassMustBeDerivedFromService(const Service *service) {}
     102             :    public:
     103             :     WithAsyncMethod_now() {
     104             :       ::grpc::Service::MarkMethodAsync(0);
     105             :     }
     106             :     ~WithAsyncMethod_now() override {
     107             :       BaseClassMustBeDerivedFromService(this);
     108             :     }
     109             :     // disable synchronous version of this method
     110             :     ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
     111             :       abort();
     112             :       return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     113             :     }
     114             :     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) {
     115             :       ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
     116             :     }
     117             :   };
     118             :   typedef WithAsyncMethod_now<Service > AsyncService;
     119             :   template <class BaseClass>
     120             :   class ExperimentalWithCallbackMethod_now : public BaseClass {
     121             :    private:
     122             :     void BaseClassMustBeDerivedFromService(const Service *service) {}
     123             :    public:
     124             :     ExperimentalWithCallbackMethod_now() {
     125             :       ::grpc::Service::experimental().MarkMethodCallback(0,
     126             :         new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::google::protobuf::Empty>(
     127             :           [this](::grpc::ServerContext* context,
     128             :                  const ::google::protobuf::Empty* request,
     129             :                  ::google::protobuf::Empty* response,
     130             :                  ::grpc::experimental::ServerCallbackRpcController* controller) {
     131             :                    return this->now(context, request, response, controller);
     132             :                  }));
     133             :     }
     134             :     ~ExperimentalWithCallbackMethod_now() override {
     135             :       BaseClassMustBeDerivedFromService(this);
     136             :     }
     137             :     // disable synchronous version of this method
     138             :     ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
     139             :       abort();
     140             :       return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     141             :     }
     142             :     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, "")); }
     143             :   };
     144             :   typedef ExperimentalWithCallbackMethod_now<Service > ExperimentalCallbackService;
     145             :   template <class BaseClass>
     146             :   class WithGenericMethod_now : public BaseClass {
     147             :    private:
     148             :     void BaseClassMustBeDerivedFromService(const Service *service) {}
     149             :    public:
     150             :     WithGenericMethod_now() {
     151             :       ::grpc::Service::MarkMethodGeneric(0);
     152             :     }
     153             :     ~WithGenericMethod_now() override {
     154             :       BaseClassMustBeDerivedFromService(this);
     155             :     }
     156             :     // disable synchronous version of this method
     157             :     ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
     158             :       abort();
     159             :       return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     160             :     }
     161             :   };
     162             :   template <class BaseClass>
     163             :   class WithRawMethod_now : public BaseClass {
     164             :    private:
     165             :     void BaseClassMustBeDerivedFromService(const Service *service) {}
     166             :    public:
     167             :     WithRawMethod_now() {
     168             :       ::grpc::Service::MarkMethodRaw(0);
     169             :     }
     170             :     ~WithRawMethod_now() override {
     171             :       BaseClassMustBeDerivedFromService(this);
     172             :     }
     173             :     // disable synchronous version of this method
     174             :     ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
     175             :       abort();
     176             :       return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     177             :     }
     178             :     void Requestnow(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
     179             :       ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
     180             :     }
     181             :   };
     182             :   template <class BaseClass>
     183             :   class ExperimentalWithRawCallbackMethod_now : public BaseClass {
     184             :    private:
     185             :     void BaseClassMustBeDerivedFromService(const Service *service) {}
     186             :    public:
     187             :     ExperimentalWithRawCallbackMethod_now() {
     188             :       ::grpc::Service::experimental().MarkMethodRawCallback(0,
     189             :         new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
     190             :           [this](::grpc::ServerContext* context,
     191             :                  const ::grpc::ByteBuffer* request,
     192             :                  ::grpc::ByteBuffer* response,
     193             :                  ::grpc::experimental::ServerCallbackRpcController* controller) {
     194             :                    this->now(context, request, response, controller);
     195             :                  }));
     196             :     }
     197             :     ~ExperimentalWithRawCallbackMethod_now() override {
     198             :       BaseClassMustBeDerivedFromService(this);
     199             :     }
     200             :     // disable synchronous version of this method
     201             :     ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
     202             :       abort();
     203             :       return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     204             :     }
     205             :     virtual void now(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); }
     206             :   };
     207             :   template <class BaseClass>
     208             :   class WithStreamedUnaryMethod_now : public BaseClass {
     209             :    private:
     210             :     void BaseClassMustBeDerivedFromService(const Service *service) {}
     211             :    public:
     212             :     WithStreamedUnaryMethod_now() {
     213             :       ::grpc::Service::MarkMethodStreamed(0,
     214             :         new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::google::protobuf::Empty>(std::bind(&WithStreamedUnaryMethod_now<BaseClass>::Streamednow, this, std::placeholders::_1, std::placeholders::_2)));
     215             :     }
     216             :     ~WithStreamedUnaryMethod_now() override {
     217             :       BaseClassMustBeDerivedFromService(this);
     218             :     }
     219             :     // disable regular version of this method
     220             :     ::grpc::Status now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) override {
     221             :       abort();
     222             :       return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     223             :     }
     224             :     // replace default version of method with streamed unary
     225             :     virtual ::grpc::Status Streamednow(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::google::protobuf::Empty>* server_unary_streamer) = 0;
     226             :   };
     227             :   typedef WithStreamedUnaryMethod_now<Service > StreamedUnaryService;
     228             :   typedef Service SplitStreamedService;
     229             :   typedef WithStreamedUnaryMethod_now<Service > StreamedService;
     230             : };
     231             : 
     232             : }  // namespace rpc
     233             : }  // namespace casatools
     234             : 
     235             : 
     236             : #endif  // GRPC_shutdown_2eproto__INCLUDED

Generated by: LCOV version 1.16