NVIDIA Holoscan SDK v0.5.1
Holoscan v0.5.1

Program Listing for File app_driver.grpc.pb.cc

Return to documentation for file (src/core/services/generated/app_driver.grpc.pb.cc)

Copy
Copied!
            

// Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. // source: app_driver.proto #include "app_driver.pb.h" #include "app_driver.grpc.pb.h" #include <functional> #include <grpcpp/support/async_stream.h> #include <grpcpp/support/async_unary_call.h> #include <grpcpp/impl/channel_interface.h> #include <grpcpp/impl/client_unary_call.h> #include <grpcpp/support/client_callback.h> #include <grpcpp/support/message_allocator.h> #include <grpcpp/support/method_handler.h> #include <grpcpp/impl/rpc_service_method.h> #include <grpcpp/support/server_callback.h> #include <grpcpp/impl/server_callback_handlers.h> #include <grpcpp/server_context.h> #include <grpcpp/impl/service_type.h> #include <grpcpp/support/sync_stream.h> namespace holoscan { namespace service { static const char* AppDriver_method_names[] = { "/holoscan.service.AppDriver/FragmentAllocation", }; std::unique_ptr< AppDriver::Stub> AppDriver::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; std::unique_ptr< AppDriver::Stub> stub(new AppDriver::Stub(channel, options)); return stub; } AppDriver::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) : channel_(channel), rpcmethod_FragmentAllocation_(AppDriver_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status AppDriver::Stub::FragmentAllocation(::grpc::ClientContext* context, const ::holoscan::service::FragmentAllocationRequest& request, ::holoscan::service::FragmentAllocationResponse* response) { return ::grpc::internal::BlockingUnaryCall< ::holoscan::service::FragmentAllocationRequest, ::holoscan::service::FragmentAllocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_FragmentAllocation_, context, request, response); } void AppDriver::Stub::async::FragmentAllocation(::grpc::ClientContext* context, const ::holoscan::service::FragmentAllocationRequest* request, ::holoscan::service::FragmentAllocationResponse* response, std::function<void(::grpc::Status)> f) { ::grpc::internal::CallbackUnaryCall< ::holoscan::service::FragmentAllocationRequest, ::holoscan::service::FragmentAllocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_FragmentAllocation_, context, request, response, std::move(f)); } void AppDriver::Stub::async::FragmentAllocation(::grpc::ClientContext* context, const ::holoscan::service::FragmentAllocationRequest* request, ::holoscan::service::FragmentAllocationResponse* response, ::grpc::ClientUnaryReactor* reactor) { ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_FragmentAllocation_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::holoscan::service::FragmentAllocationResponse>* AppDriver::Stub::PrepareAsyncFragmentAllocationRaw(::grpc::ClientContext* context, const ::holoscan::service::FragmentAllocationRequest& request, ::grpc::CompletionQueue* cq) { return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::holoscan::service::FragmentAllocationResponse, ::holoscan::service::FragmentAllocationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_FragmentAllocation_, context, request); } ::grpc::ClientAsyncResponseReader< ::holoscan::service::FragmentAllocationResponse>* AppDriver::Stub::AsyncFragmentAllocationRaw(::grpc::ClientContext* context, const ::holoscan::service::FragmentAllocationRequest& request, ::grpc::CompletionQueue* cq) { auto* result = this->PrepareAsyncFragmentAllocationRaw(context, request, cq); result->StartCall(); return result; } AppDriver::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( AppDriver_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< AppDriver::Service, ::holoscan::service::FragmentAllocationRequest, ::holoscan::service::FragmentAllocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](AppDriver::Service* service, ::grpc::ServerContext* ctx, const ::holoscan::service::FragmentAllocationRequest* req, ::holoscan::service::FragmentAllocationResponse* resp) { return service->FragmentAllocation(ctx, req, resp); }, this))); } AppDriver::Service::~Service() { } ::grpc::Status AppDriver::Service::FragmentAllocation(::grpc::ServerContext* context, const ::holoscan::service::FragmentAllocationRequest* request, ::holoscan::service::FragmentAllocationResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } } // namespace holoscan } // namespace service

© Copyright 2022-2023, NVIDIA. Last updated on Jul 28, 2023.