LCOV - code coverage report
Current view: top level - build/protobuf_generated - registrar.grpc.pb.cc (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 0 51 0.0 %
Date: 2024-10-10 19:51:30 Functions: 0 20 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: registrar.proto
       4             : 
       5             : #include "registrar.pb.h"
       6             : #include "registrar.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* Registrar_method_names[] = {
      23             :   "/casatools.rpc.Registrar/add",
      24             :   "/casatools.rpc.Registrar/remove",
      25             :   "/casatools.rpc.Registrar/services",
      26             : };
      27             : 
      28           0 : std::unique_ptr< Registrar::Stub> Registrar::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
      29             :   (void)options;
      30           0 :   std::unique_ptr< Registrar::Stub> stub(new Registrar::Stub(channel));
      31           0 :   return stub;
      32             : }
      33             : 
      34           0 : Registrar::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
      35           0 :   : channel_(channel), rpcmethod_add_(Registrar_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
      36           0 :   , rpcmethod_remove_(Registrar_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
      37           0 :   , rpcmethod_services_(Registrar_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
      38           0 :   {}
      39             : 
      40           0 : ::grpc::Status Registrar::Stub::add(::grpc::ClientContext* context, const ::casatools::rpc::ServiceId& request, ::casatools::rpc::ServiceId* response) {
      41           0 :   return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_add_, context, request, response);
      42             : }
      43             : 
      44           0 : void Registrar::Stub::experimental_async::add(::grpc::ClientContext* context, const ::casatools::rpc::ServiceId* request, ::casatools::rpc::ServiceId* response, std::function<void(::grpc::Status)> f) {
      45           0 :   return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_add_, context, request, response, std::move(f));
      46             : }
      47             : 
      48           0 : ::grpc::ClientAsyncResponseReader< ::casatools::rpc::ServiceId>* Registrar::Stub::AsyncaddRaw(::grpc::ClientContext* context, const ::casatools::rpc::ServiceId& request, ::grpc::CompletionQueue* cq) {
      49           0 :   return ::grpc::internal::ClientAsyncResponseReaderFactory< ::casatools::rpc::ServiceId>::Create(channel_.get(), cq, rpcmethod_add_, context, request, true);
      50             : }
      51             : 
      52           0 : ::grpc::ClientAsyncResponseReader< ::casatools::rpc::ServiceId>* Registrar::Stub::PrepareAsyncaddRaw(::grpc::ClientContext* context, const ::casatools::rpc::ServiceId& request, ::grpc::CompletionQueue* cq) {
      53           0 :   return ::grpc::internal::ClientAsyncResponseReaderFactory< ::casatools::rpc::ServiceId>::Create(channel_.get(), cq, rpcmethod_add_, context, request, false);
      54             : }
      55             : 
      56           0 : ::grpc::Status Registrar::Stub::remove(::grpc::ClientContext* context, const ::casatools::rpc::ServiceId& request, ::google::protobuf::BoolValue* response) {
      57           0 :   return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_remove_, context, request, response);
      58             : }
      59             : 
      60           0 : void Registrar::Stub::experimental_async::remove(::grpc::ClientContext* context, const ::casatools::rpc::ServiceId* request, ::google::protobuf::BoolValue* response, std::function<void(::grpc::Status)> f) {
      61           0 :   return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_remove_, context, request, response, std::move(f));
      62             : }
      63             : 
      64           0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::BoolValue>* Registrar::Stub::AsyncremoveRaw(::grpc::ClientContext* context, const ::casatools::rpc::ServiceId& request, ::grpc::CompletionQueue* cq) {
      65           0 :   return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::BoolValue>::Create(channel_.get(), cq, rpcmethod_remove_, context, request, true);
      66             : }
      67             : 
      68           0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::BoolValue>* Registrar::Stub::PrepareAsyncremoveRaw(::grpc::ClientContext* context, const ::casatools::rpc::ServiceId& request, ::grpc::CompletionQueue* cq) {
      69           0 :   return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::BoolValue>::Create(channel_.get(), cq, rpcmethod_remove_, context, request, false);
      70             : }
      71             : 
      72           0 : ::grpc::Status Registrar::Stub::services(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::casatools::rpc::ServiceIds* response) {
      73           0 :   return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_services_, context, request, response);
      74             : }
      75             : 
      76           0 : void Registrar::Stub::experimental_async::services(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::casatools::rpc::ServiceIds* response, std::function<void(::grpc::Status)> f) {
      77           0 :   return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_services_, context, request, response, std::move(f));
      78             : }
      79             : 
      80           0 : ::grpc::ClientAsyncResponseReader< ::casatools::rpc::ServiceIds>* Registrar::Stub::AsyncservicesRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      81           0 :   return ::grpc::internal::ClientAsyncResponseReaderFactory< ::casatools::rpc::ServiceIds>::Create(channel_.get(), cq, rpcmethod_services_, context, request, true);
      82             : }
      83             : 
      84           0 : ::grpc::ClientAsyncResponseReader< ::casatools::rpc::ServiceIds>* Registrar::Stub::PrepareAsyncservicesRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      85           0 :   return ::grpc::internal::ClientAsyncResponseReaderFactory< ::casatools::rpc::ServiceIds>::Create(channel_.get(), cq, rpcmethod_services_, context, request, false);
      86             : }
      87             : 
      88           0 : Registrar::Service::Service() {
      89           0 :   AddMethod(new ::grpc::internal::RpcServiceMethod(
      90             :       Registrar_method_names[0],
      91             :       ::grpc::internal::RpcMethod::NORMAL_RPC,
      92           0 :       new ::grpc::internal::RpcMethodHandler< Registrar::Service, ::casatools::rpc::ServiceId, ::casatools::rpc::ServiceId>(
      93           0 :           std::mem_fn(&Registrar::Service::add), this)));
      94           0 :   AddMethod(new ::grpc::internal::RpcServiceMethod(
      95             :       Registrar_method_names[1],
      96             :       ::grpc::internal::RpcMethod::NORMAL_RPC,
      97           0 :       new ::grpc::internal::RpcMethodHandler< Registrar::Service, ::casatools::rpc::ServiceId, ::google::protobuf::BoolValue>(
      98           0 :           std::mem_fn(&Registrar::Service::remove), this)));
      99           0 :   AddMethod(new ::grpc::internal::RpcServiceMethod(
     100             :       Registrar_method_names[2],
     101             :       ::grpc::internal::RpcMethod::NORMAL_RPC,
     102           0 :       new ::grpc::internal::RpcMethodHandler< Registrar::Service, ::google::protobuf::Empty, ::casatools::rpc::ServiceIds>(
     103           0 :           std::mem_fn(&Registrar::Service::services), this)));
     104           0 : }
     105             : 
     106           0 : Registrar::Service::~Service() {
     107           0 : }
     108             : 
     109           0 : ::grpc::Status Registrar::Service::add(::grpc::ServerContext* context, const ::casatools::rpc::ServiceId* request, ::casatools::rpc::ServiceId* response) {
     110             :   (void) context;
     111             :   (void) request;
     112             :   (void) response;
     113           0 :   return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     114             : }
     115             : 
     116           0 : ::grpc::Status Registrar::Service::remove(::grpc::ServerContext* context, const ::casatools::rpc::ServiceId* request, ::google::protobuf::BoolValue* response) {
     117             :   (void) context;
     118             :   (void) request;
     119             :   (void) response;
     120           0 :   return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     121             : }
     122             : 
     123           0 : ::grpc::Status Registrar::Service::services(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::casatools::rpc::ServiceIds* response) {
     124             :   (void) context;
     125             :   (void) request;
     126             :   (void) response;
     127           0 :   return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
     128             : }
     129             : 
     130             : 
     131             : }  // namespace casatools
     132             : }  // namespace rpc
     133             : 

Generated by: LCOV version 1.16