1// Generated by the gRPC C++ plugin.
2// If you make any local change, they will be lost.
3// source: tensorflow/core/profiler/profiler_service.proto
4
5#include "tensorflow/core/profiler/profiler_service.pb.h"
6#include "tensorflow/core/profiler/profiler_service.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/message_allocator.h>
15#include <grpcpp/impl/codegen/method_handler.h>
16#include <grpcpp/impl/codegen/rpc_service_method.h>
17#include <grpcpp/impl/codegen/server_callback.h>
18#include <grpcpp/impl/codegen/server_callback_handlers.h>
19#include <grpcpp/impl/codegen/server_context.h>
20#include <grpcpp/impl/codegen/service_type.h>
21#include <grpcpp/impl/codegen/sync_stream.h>
22namespace tensorflow {
23
24static const char* grpcProfilerService_method_names[] = {
25 "/tensorflow.ProfilerService/Profile",
26 "/tensorflow.ProfilerService/Terminate",
27 "/tensorflow.ProfilerService/Monitor",
28};
29
30std::unique_ptr< grpc::ProfilerService::Stub> grpc::ProfilerService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
31 (void)options;
32 std::unique_ptr< grpc::ProfilerService::Stub> stub(new grpc::ProfilerService::Stub(channel));
33 return stub;
34}
35
36grpc::ProfilerService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
37 : channel_(channel), rpcmethod_Profile_(grpcProfilerService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
38 , rpcmethod_Terminate_(grpcProfilerService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
39 , rpcmethod_Monitor_(grpcProfilerService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
40 {}
41
42::grpc::Status grpc::ProfilerService::Stub::Profile(::grpc::ClientContext* context, const ::tensorflow::ProfileRequest& request, ::tensorflow::ProfileResponse* response) {
43 return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Profile_, context, request, response);
44}
45
46void grpc::ProfilerService::Stub::experimental_async::Profile(::grpc::ClientContext* context, const ::tensorflow::ProfileRequest* request, ::tensorflow::ProfileResponse* response, std::function<void(::grpc::Status)> f) {
47 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Profile_, context, request, response, std::move(f));
48}
49
50void grpc::ProfilerService::Stub::experimental_async::Profile(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::tensorflow::ProfileResponse* response, std::function<void(::grpc::Status)> f) {
51 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Profile_, context, request, response, std::move(f));
52}
53
54void grpc::ProfilerService::Stub::experimental_async::Profile(::grpc::ClientContext* context, const ::tensorflow::ProfileRequest* request, ::tensorflow::ProfileResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
55 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Profile_, context, request, response, reactor);
56}
57
58void grpc::ProfilerService::Stub::experimental_async::Profile(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::tensorflow::ProfileResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
59 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Profile_, context, request, response, reactor);
60}
61
62::grpc::ClientAsyncResponseReader< ::tensorflow::ProfileResponse>* grpc::ProfilerService::Stub::AsyncProfileRaw(::grpc::ClientContext* context, const ::tensorflow::ProfileRequest& request, ::grpc::CompletionQueue* cq) {
63 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::tensorflow::ProfileResponse>::Create(channel_.get(), cq, rpcmethod_Profile_, context, request, true);
64}
65
66::grpc::ClientAsyncResponseReader< ::tensorflow::ProfileResponse>* grpc::ProfilerService::Stub::PrepareAsyncProfileRaw(::grpc::ClientContext* context, const ::tensorflow::ProfileRequest& request, ::grpc::CompletionQueue* cq) {
67 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::tensorflow::ProfileResponse>::Create(channel_.get(), cq, rpcmethod_Profile_, context, request, false);
68}
69
70::grpc::Status grpc::ProfilerService::Stub::Terminate(::grpc::ClientContext* context, const ::tensorflow::TerminateRequest& request, ::tensorflow::TerminateResponse* response) {
71 return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Terminate_, context, request, response);
72}
73
74void grpc::ProfilerService::Stub::experimental_async::Terminate(::grpc::ClientContext* context, const ::tensorflow::TerminateRequest* request, ::tensorflow::TerminateResponse* response, std::function<void(::grpc::Status)> f) {
75 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Terminate_, context, request, response, std::move(f));
76}
77
78void grpc::ProfilerService::Stub::experimental_async::Terminate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::tensorflow::TerminateResponse* response, std::function<void(::grpc::Status)> f) {
79 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Terminate_, context, request, response, std::move(f));
80}
81
82void grpc::ProfilerService::Stub::experimental_async::Terminate(::grpc::ClientContext* context, const ::tensorflow::TerminateRequest* request, ::tensorflow::TerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
83 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Terminate_, context, request, response, reactor);
84}
85
86void grpc::ProfilerService::Stub::experimental_async::Terminate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::tensorflow::TerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
87 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Terminate_, context, request, response, reactor);
88}
89
90::grpc::ClientAsyncResponseReader< ::tensorflow::TerminateResponse>* grpc::ProfilerService::Stub::AsyncTerminateRaw(::grpc::ClientContext* context, const ::tensorflow::TerminateRequest& request, ::grpc::CompletionQueue* cq) {
91 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::tensorflow::TerminateResponse>::Create(channel_.get(), cq, rpcmethod_Terminate_, context, request, true);
92}
93
94::grpc::ClientAsyncResponseReader< ::tensorflow::TerminateResponse>* grpc::ProfilerService::Stub::PrepareAsyncTerminateRaw(::grpc::ClientContext* context, const ::tensorflow::TerminateRequest& request, ::grpc::CompletionQueue* cq) {
95 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::tensorflow::TerminateResponse>::Create(channel_.get(), cq, rpcmethod_Terminate_, context, request, false);
96}
97
98::grpc::Status grpc::ProfilerService::Stub::Monitor(::grpc::ClientContext* context, const ::tensorflow::MonitorRequest& request, ::tensorflow::MonitorResponse* response) {
99 return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Monitor_, context, request, response);
100}
101
102void grpc::ProfilerService::Stub::experimental_async::Monitor(::grpc::ClientContext* context, const ::tensorflow::MonitorRequest* request, ::tensorflow::MonitorResponse* response, std::function<void(::grpc::Status)> f) {
103 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Monitor_, context, request, response, std::move(f));
104}
105
106void grpc::ProfilerService::Stub::experimental_async::Monitor(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::tensorflow::MonitorResponse* response, std::function<void(::grpc::Status)> f) {
107 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Monitor_, context, request, response, std::move(f));
108}
109
110void grpc::ProfilerService::Stub::experimental_async::Monitor(::grpc::ClientContext* context, const ::tensorflow::MonitorRequest* request, ::tensorflow::MonitorResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
111 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Monitor_, context, request, response, reactor);
112}
113
114void grpc::ProfilerService::Stub::experimental_async::Monitor(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::tensorflow::MonitorResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
115 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Monitor_, context, request, response, reactor);
116}
117
118::grpc::ClientAsyncResponseReader< ::tensorflow::MonitorResponse>* grpc::ProfilerService::Stub::AsyncMonitorRaw(::grpc::ClientContext* context, const ::tensorflow::MonitorRequest& request, ::grpc::CompletionQueue* cq) {
119 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::tensorflow::MonitorResponse>::Create(channel_.get(), cq, rpcmethod_Monitor_, context, request, true);
120}
121
122::grpc::ClientAsyncResponseReader< ::tensorflow::MonitorResponse>* grpc::ProfilerService::Stub::PrepareAsyncMonitorRaw(::grpc::ClientContext* context, const ::tensorflow::MonitorRequest& request, ::grpc::CompletionQueue* cq) {
123 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::tensorflow::MonitorResponse>::Create(channel_.get(), cq, rpcmethod_Monitor_, context, request, false);
124}
125
126grpc::ProfilerService::Service::Service() {
127 AddMethod(new ::grpc::internal::RpcServiceMethod(
128 grpcProfilerService_method_names[0],
129 ::grpc::internal::RpcMethod::NORMAL_RPC,
130 new ::grpc::internal::RpcMethodHandler< grpc::ProfilerService::Service, ::tensorflow::ProfileRequest, ::tensorflow::ProfileResponse>(
131 std::mem_fn(&grpc::ProfilerService::Service::Profile), this)));
132 AddMethod(new ::grpc::internal::RpcServiceMethod(
133 grpcProfilerService_method_names[1],
134 ::grpc::internal::RpcMethod::NORMAL_RPC,
135 new ::grpc::internal::RpcMethodHandler< grpc::ProfilerService::Service, ::tensorflow::TerminateRequest, ::tensorflow::TerminateResponse>(
136 std::mem_fn(&grpc::ProfilerService::Service::Terminate), this)));
137 AddMethod(new ::grpc::internal::RpcServiceMethod(
138 grpcProfilerService_method_names[2],
139 ::grpc::internal::RpcMethod::NORMAL_RPC,
140 new ::grpc::internal::RpcMethodHandler< grpc::ProfilerService::Service, ::tensorflow::MonitorRequest, ::tensorflow::MonitorResponse>(
141 std::mem_fn(&grpc::ProfilerService::Service::Monitor), this)));
142}
143
144grpc::ProfilerService::Service::~Service() {
145}
146
147::grpc::Status grpc::ProfilerService::Service::Profile(::grpc::ServerContext* context, const ::tensorflow::ProfileRequest* request, ::tensorflow::ProfileResponse* response) {
148 (void) context;
149 (void) request;
150 (void) response;
151 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
152}
153
154::grpc::Status grpc::ProfilerService::Service::Terminate(::grpc::ServerContext* context, const ::tensorflow::TerminateRequest* request, ::tensorflow::TerminateResponse* response) {
155 (void) context;
156 (void) request;
157 (void) response;
158 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
159}
160
161::grpc::Status grpc::ProfilerService::Service::Monitor(::grpc::ServerContext* context, const ::tensorflow::MonitorRequest* request, ::tensorflow::MonitorResponse* response) {
162 (void) context;
163 (void) request;
164 (void) response;
165 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
166}
167
168
169} // namespace tensorflow
170
171