LCOV - code coverage report
Current view: top level - build/protobuf_generated - shutdown.grpc.pb.cc (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 0 23 0.0 %
Date: 2024-10-12 00:35:29 Functions: 0 10 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             : 
       5             : #include "shutdown.pb.h"
       6             : #include "shutdown.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/server_callback.h>
      17             : #include <grpcpp/impl/codegen/service_type.h>
      18             : #include <grpcpp/impl/codegen/sync_stream.h>
      19             : namespace casatools {
      20             : namespace rpc {
      21             : 
      22             : static const char* Shutdown_method_names[] = {
      23             :   "/casatools.rpc.Shutdown/now",
      24             : };
      25             : 
      26           0 : std::unique_ptr< Shutdown::Stub> Shutdown::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
      27             :   (void)options;
      28           0 :   std::unique_ptr< Shutdown::Stub> stub(new Shutdown::Stub(channel));
      29           0 :   return stub;
      30             : }
      31             : 
      32           0 : Shutdown::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
      33           0 :   : channel_(channel), rpcmethod_now_(Shutdown_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
      34           0 :   {}
      35             : 
      36           0 : ::grpc::Status Shutdown::Stub::now(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::google::protobuf::Empty* response) {
      37           0 :   return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_now_, context, request, response);
      38             : }
      39             : 
      40           0 : void Shutdown::Stub::experimental_async::now(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)> f) {
      41           0 :   return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_now_, context, request, response, std::move(f));
      42             : }
      43             : 
      44           0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Shutdown::Stub::AsyncnowRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      45           0 :   return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_now_, context, request, true);
      46             : }
      47             : 
      48           0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Shutdown::Stub::PrepareAsyncnowRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      49           0 :   return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_now_, context, request, false);
      50             : }
      51             : 
      52           0 : Shutdown::Service::Service() {
      53           0 :   AddMethod(new ::grpc::internal::RpcServiceMethod(
      54             :       Shutdown_method_names[0],
      55             :       ::grpc::internal::RpcMethod::NORMAL_RPC,
      56           0 :       new ::grpc::internal::RpcMethodHandler< Shutdown::Service, ::google::protobuf::Empty, ::google::protobuf::Empty>(
      57           0 :           std::mem_fn(&Shutdown::Service::now), this)));
      58           0 : }
      59             : 
      60           0 : Shutdown::Service::~Service() {
      61           0 : }
      62             : 
      63           0 : ::grpc::Status Shutdown::Service::now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) {
      64             :   (void) context;
      65             :   (void) request;
      66             :   (void) response;
      67           0 :   return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
      68             : }
      69             : 
      70             : 
      71             : }  // namespace casatools
      72             : }  // namespace rpc
      73             : 

Generated by: LCOV version 1.16