1// Generated by the gRPC C++ plugin.
2// If you make any local change, they will be lost.
3// source: tensorflow/core/profiler/profiler_analysis.proto
4
5#include "tensorflow/core/profiler/profiler_analysis.pb.h"
6#include "tensorflow/core/profiler/profiler_analysis.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* grpcProfileAnalysis_method_names[] = {
25 "/tensorflow.ProfileAnalysis/NewSession",
26 "/tensorflow.ProfileAnalysis/EnumSessions",
27 "/tensorflow.ProfileAnalysis/GetSessionToolData",
28};
29
30std::unique_ptr< grpc::ProfileAnalysis::Stub> grpc::ProfileAnalysis::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
31 (void)options;
32 std::unique_ptr< grpc::ProfileAnalysis::Stub> stub(new grpc::ProfileAnalysis::Stub(channel));
33 return stub;
34}
35
36grpc::ProfileAnalysis::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
37 : channel_(channel), rpcmethod_NewSession_(grpcProfileAnalysis_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
38 , rpcmethod_EnumSessions_(grpcProfileAnalysis_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
39 , rpcmethod_GetSessionToolData_(grpcProfileAnalysis_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
40 {}
41
42::grpc::Status grpc::ProfileAnalysis::Stub::NewSession(::grpc::ClientContext* context, const ::tensorflow::NewProfileSessionRequest& request, ::tensorflow::NewProfileSessionResponse* response) {
43 return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_NewSession_, context, request, response);
44}
45
46void grpc::ProfileAnalysis::Stub::experimental_async::NewSession(::grpc::ClientContext* context, const ::tensorflow::NewProfileSessionRequest* request, ::tensorflow::NewProfileSessionResponse* response, std::function<void(::grpc::Status)> f) {
47 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NewSession_, context, request, response, std::move(f));
48}
49
50void grpc::ProfileAnalysis::Stub::experimental_async::NewSession(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::tensorflow::NewProfileSessionResponse* response, std::function<void(::grpc::Status)> f) {
51 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NewSession_, context, request, response, std::move(f));
52}
53
54void grpc::ProfileAnalysis::Stub::experimental_async::NewSession(::grpc::ClientContext* context, const ::tensorflow::NewProfileSessionRequest* request, ::tensorflow::NewProfileSessionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
55 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NewSession_, context, request, response, reactor);
56}
57
58void grpc::ProfileAnalysis::Stub::experimental_async::NewSession(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::tensorflow::NewProfileSessionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
59 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NewSession_, context, request, response, reactor);
60}
61
62::grpc::ClientAsyncResponseReader< ::tensorflow::NewProfileSessionResponse>* grpc::ProfileAnalysis::Stub::AsyncNewSessionRaw(::grpc::ClientContext* context, const ::tensorflow::NewProfileSessionRequest& request, ::grpc::CompletionQueue* cq) {
63 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::tensorflow::NewProfileSessionResponse>::Create(channel_.get(), cq, rpcmethod_NewSession_, context, request, true);
64}
65
66::grpc::ClientAsyncResponseReader< ::tensorflow::NewProfileSessionResponse>* grpc::ProfileAnalysis::Stub::PrepareAsyncNewSessionRaw(::grpc::ClientContext* context, const ::tensorflow::NewProfileSessionRequest& request, ::grpc::CompletionQueue* cq) {
67 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::tensorflow::NewProfileSessionResponse>::Create(channel_.get(), cq, rpcmethod_NewSession_, context, request, false);
68}
69
70::grpc::Status grpc::ProfileAnalysis::Stub::EnumSessions(::grpc::ClientContext* context, const ::tensorflow::EnumProfileSessionsAndToolsRequest& request, ::tensorflow::EnumProfileSessionsAndToolsResponse* response) {
71 return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_EnumSessions_, context, request, response);
72}
73
74void grpc::ProfileAnalysis::Stub::experimental_async::EnumSessions(::grpc::ClientContext* context, const ::tensorflow::EnumProfileSessionsAndToolsRequest* request, ::tensorflow::EnumProfileSessionsAndToolsResponse* response, std::function<void(::grpc::Status)> f) {
75 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EnumSessions_, context, request, response, std::move(f));
76}
77
78void grpc::ProfileAnalysis::Stub::experimental_async::EnumSessions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::tensorflow::EnumProfileSessionsAndToolsResponse* response, std::function<void(::grpc::Status)> f) {
79 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EnumSessions_, context, request, response, std::move(f));
80}
81
82void grpc::ProfileAnalysis::Stub::experimental_async::EnumSessions(::grpc::ClientContext* context, const ::tensorflow::EnumProfileSessionsAndToolsRequest* request, ::tensorflow::EnumProfileSessionsAndToolsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
83 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EnumSessions_, context, request, response, reactor);
84}
85
86void grpc::ProfileAnalysis::Stub::experimental_async::EnumSessions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::tensorflow::EnumProfileSessionsAndToolsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
87 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EnumSessions_, context, request, response, reactor);
88}
89
90::grpc::ClientAsyncResponseReader< ::tensorflow::EnumProfileSessionsAndToolsResponse>* grpc::ProfileAnalysis::Stub::AsyncEnumSessionsRaw(::grpc::ClientContext* context, const ::tensorflow::EnumProfileSessionsAndToolsRequest& request, ::grpc::CompletionQueue* cq) {
91 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::tensorflow::EnumProfileSessionsAndToolsResponse>::Create(channel_.get(), cq, rpcmethod_EnumSessions_, context, request, true);
92}
93
94::grpc::ClientAsyncResponseReader< ::tensorflow::EnumProfileSessionsAndToolsResponse>* grpc::ProfileAnalysis::Stub::PrepareAsyncEnumSessionsRaw(::grpc::ClientContext* context, const ::tensorflow::EnumProfileSessionsAndToolsRequest& request, ::grpc::CompletionQueue* cq) {
95 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::tensorflow::EnumProfileSessionsAndToolsResponse>::Create(channel_.get(), cq, rpcmethod_EnumSessions_, context, request, false);
96}
97
98::grpc::Status grpc::ProfileAnalysis::Stub::GetSessionToolData(::grpc::ClientContext* context, const ::tensorflow::ProfileSessionDataRequest& request, ::tensorflow::ProfileSessionDataResponse* response) {
99 return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetSessionToolData_, context, request, response);
100}
101
102void grpc::ProfileAnalysis::Stub::experimental_async::GetSessionToolData(::grpc::ClientContext* context, const ::tensorflow::ProfileSessionDataRequest* request, ::tensorflow::ProfileSessionDataResponse* response, std::function<void(::grpc::Status)> f) {
103 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetSessionToolData_, context, request, response, std::move(f));
104}
105
106void grpc::ProfileAnalysis::Stub::experimental_async::GetSessionToolData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::tensorflow::ProfileSessionDataResponse* response, std::function<void(::grpc::Status)> f) {
107 ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetSessionToolData_, context, request, response, std::move(f));
108}
109
110void grpc::ProfileAnalysis::Stub::experimental_async::GetSessionToolData(::grpc::ClientContext* context, const ::tensorflow::ProfileSessionDataRequest* request, ::tensorflow::ProfileSessionDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
111 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetSessionToolData_, context, request, response, reactor);
112}
113
114void grpc::ProfileAnalysis::Stub::experimental_async::GetSessionToolData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::tensorflow::ProfileSessionDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
115 ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetSessionToolData_, context, request, response, reactor);
116}
117
118::grpc::ClientAsyncResponseReader< ::tensorflow::ProfileSessionDataResponse>* grpc::ProfileAnalysis::Stub::AsyncGetSessionToolDataRaw(::grpc::ClientContext* context, const ::tensorflow::ProfileSessionDataRequest& request, ::grpc::CompletionQueue* cq) {
119 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::tensorflow::ProfileSessionDataResponse>::Create(channel_.get(), cq, rpcmethod_GetSessionToolData_, context, request, true);
120}
121
122::grpc::ClientAsyncResponseReader< ::tensorflow::ProfileSessionDataResponse>* grpc::ProfileAnalysis::Stub::PrepareAsyncGetSessionToolDataRaw(::grpc::ClientContext* context, const ::tensorflow::ProfileSessionDataRequest& request, ::grpc::CompletionQueue* cq) {
123 return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::tensorflow::ProfileSessionDataResponse>::Create(channel_.get(), cq, rpcmethod_GetSessionToolData_, context, request, false);
124}
125
126grpc::ProfileAnalysis::Service::Service() {
127 AddMethod(new ::grpc::internal::RpcServiceMethod(
128 grpcProfileAnalysis_method_names[0],
129 ::grpc::internal::RpcMethod::NORMAL_RPC,
130 new ::grpc::internal::RpcMethodHandler< grpc::ProfileAnalysis::Service, ::tensorflow::NewProfileSessionRequest, ::tensorflow::NewProfileSessionResponse>(
131 std::mem_fn(&grpc::ProfileAnalysis::Service::NewSession), this)));
132 AddMethod(new ::grpc::internal::RpcServiceMethod(
133 grpcProfileAnalysis_method_names[1],
134 ::grpc::internal::RpcMethod::NORMAL_RPC,
135 new ::grpc::internal::RpcMethodHandler< grpc::ProfileAnalysis::Service, ::tensorflow::EnumProfileSessionsAndToolsRequest, ::tensorflow::EnumProfileSessionsAndToolsResponse>(
136 std::mem_fn(&grpc::ProfileAnalysis::Service::EnumSessions), this)));
137 AddMethod(new ::grpc::internal::RpcServiceMethod(
138 grpcProfileAnalysis_method_names[2],
139 ::grpc::internal::RpcMethod::NORMAL_RPC,
140 new ::grpc::internal::RpcMethodHandler< grpc::ProfileAnalysis::Service, ::tensorflow::ProfileSessionDataRequest, ::tensorflow::ProfileSessionDataResponse>(
141 std::mem_fn(&grpc::ProfileAnalysis::Service::GetSessionToolData), this)));
142}
143
144grpc::ProfileAnalysis::Service::~Service() {
145}
146
147::grpc::Status grpc::ProfileAnalysis::Service::NewSession(::grpc::ServerContext* context, const ::tensorflow::NewProfileSessionRequest* request, ::tensorflow::NewProfileSessionResponse* response) {
148 (void) context;
149 (void) request;
150 (void) response;
151 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
152}
153
154::grpc::Status grpc::ProfileAnalysis::Service::EnumSessions(::grpc::ServerContext* context, const ::tensorflow::EnumProfileSessionsAndToolsRequest* request, ::tensorflow::EnumProfileSessionsAndToolsResponse* response) {
155 (void) context;
156 (void) request;
157 (void) response;
158 return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
159}
160
161::grpc::Status grpc::ProfileAnalysis::Service::GetSessionToolData(::grpc::ServerContext* context, const ::tensorflow::ProfileSessionDataRequest* request, ::tensorflow::ProfileSessionDataResponse* 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