YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/rpc/rtest.proxy.cc
Line
Count
Source (jump to first uncovered line)
1
// THIS FILE IS AUTOGENERATED FROM yb/rpc/rtest.proto
2
3
#include "yb/rpc/rtest.proxy.h"
4
5
#include "yb/rpc/rtest.service.h"
6
7
#include "yb/rpc/proxy.h"
8
#include "yb/rpc/outbound_call.h"
9
#include "yb/util/metrics.h"
10
#include "yb/util/net/sockaddr.h"
11
12
METRIC_DEFINE_counter(
13
  server, proxy_request_bytes_yb_rpc_test_CalculatorService_Add,
14
  "Bytes sent by yb.rpc_test.CalculatorService.Add() RPC requests",
15
  yb::MetricUnit::kBytes,
16
  "Bytes sent by yb.rpc_test.CalculatorService.Add() RPC requests");
17
18
METRIC_DEFINE_counter(
19
  server, proxy_response_bytes_yb_rpc_test_CalculatorService_Add,
20
  "Bytes received in response to yb.rpc_test.CalculatorService.Add() RPC requests",
21
  yb::MetricUnit::kBytes,
22
  "Bytes received in response to yb.rpc_test.CalculatorService.Add() RPC requests");
23
24
METRIC_DEFINE_counter(
25
  server, proxy_request_bytes_yb_rpc_test_CalculatorService_Sleep,
26
  "Bytes sent by yb.rpc_test.CalculatorService.Sleep() RPC requests",
27
  yb::MetricUnit::kBytes,
28
  "Bytes sent by yb.rpc_test.CalculatorService.Sleep() RPC requests");
29
30
METRIC_DEFINE_counter(
31
  server, proxy_response_bytes_yb_rpc_test_CalculatorService_Sleep,
32
  "Bytes received in response to yb.rpc_test.CalculatorService.Sleep() RPC requests",
33
  yb::MetricUnit::kBytes,
34
  "Bytes received in response to yb.rpc_test.CalculatorService.Sleep() RPC requests");
35
36
METRIC_DEFINE_counter(
37
  server, proxy_request_bytes_yb_rpc_test_CalculatorService_Echo,
38
  "Bytes sent by yb.rpc_test.CalculatorService.Echo() RPC requests",
39
  yb::MetricUnit::kBytes,
40
  "Bytes sent by yb.rpc_test.CalculatorService.Echo() RPC requests");
41
42
METRIC_DEFINE_counter(
43
  server, proxy_response_bytes_yb_rpc_test_CalculatorService_Echo,
44
  "Bytes received in response to yb.rpc_test.CalculatorService.Echo() RPC requests",
45
  yb::MetricUnit::kBytes,
46
  "Bytes received in response to yb.rpc_test.CalculatorService.Echo() RPC requests");
47
48
METRIC_DEFINE_counter(
49
  server, proxy_request_bytes_yb_rpc_test_CalculatorService_WhoAmI,
50
  "Bytes sent by yb.rpc_test.CalculatorService.WhoAmI() RPC requests",
51
  yb::MetricUnit::kBytes,
52
  "Bytes sent by yb.rpc_test.CalculatorService.WhoAmI() RPC requests");
53
54
METRIC_DEFINE_counter(
55
  server, proxy_response_bytes_yb_rpc_test_CalculatorService_WhoAmI,
56
  "Bytes received in response to yb.rpc_test.CalculatorService.WhoAmI() RPC requests",
57
  yb::MetricUnit::kBytes,
58
  "Bytes received in response to yb.rpc_test.CalculatorService.WhoAmI() RPC requests");
59
60
METRIC_DEFINE_counter(
61
  server, proxy_request_bytes_yb_rpc_test_CalculatorService_TestArgumentsInDiffPackage,
62
  "Bytes sent by yb.rpc_test.CalculatorService.TestArgumentsInDiffPackage() RPC requests",
63
  yb::MetricUnit::kBytes,
64
  "Bytes sent by yb.rpc_test.CalculatorService.TestArgumentsInDiffPackage() RPC requests");
65
66
METRIC_DEFINE_counter(
67
  server, proxy_response_bytes_yb_rpc_test_CalculatorService_TestArgumentsInDiffPackage,
68
  "Bytes received in response to yb.rpc_test.CalculatorService.TestArgumentsInDiffPackage() RPC requests",
69
  yb::MetricUnit::kBytes,
70
  "Bytes received in response to yb.rpc_test.CalculatorService.TestArgumentsInDiffPackage() RPC requests");
71
72
METRIC_DEFINE_counter(
73
  server, proxy_request_bytes_yb_rpc_test_CalculatorService_Panic,
74
  "Bytes sent by yb.rpc_test.CalculatorService.Panic() RPC requests",
75
  yb::MetricUnit::kBytes,
76
  "Bytes sent by yb.rpc_test.CalculatorService.Panic() RPC requests");
77
78
METRIC_DEFINE_counter(
79
  server, proxy_response_bytes_yb_rpc_test_CalculatorService_Panic,
80
  "Bytes received in response to yb.rpc_test.CalculatorService.Panic() RPC requests",
81
  yb::MetricUnit::kBytes,
82
  "Bytes received in response to yb.rpc_test.CalculatorService.Panic() RPC requests");
83
84
METRIC_DEFINE_counter(
85
  server, proxy_request_bytes_yb_rpc_test_CalculatorService_Ping,
86
  "Bytes sent by yb.rpc_test.CalculatorService.Ping() RPC requests",
87
  yb::MetricUnit::kBytes,
88
  "Bytes sent by yb.rpc_test.CalculatorService.Ping() RPC requests");
89
90
METRIC_DEFINE_counter(
91
  server, proxy_response_bytes_yb_rpc_test_CalculatorService_Ping,
92
  "Bytes received in response to yb.rpc_test.CalculatorService.Ping() RPC requests",
93
  yb::MetricUnit::kBytes,
94
  "Bytes received in response to yb.rpc_test.CalculatorService.Ping() RPC requests");
95
96
METRIC_DEFINE_counter(
97
  server, proxy_request_bytes_yb_rpc_test_CalculatorService_Disconnect,
98
  "Bytes sent by yb.rpc_test.CalculatorService.Disconnect() RPC requests",
99
  yb::MetricUnit::kBytes,
100
  "Bytes sent by yb.rpc_test.CalculatorService.Disconnect() RPC requests");
101
102
METRIC_DEFINE_counter(
103
  server, proxy_response_bytes_yb_rpc_test_CalculatorService_Disconnect,
104
  "Bytes received in response to yb.rpc_test.CalculatorService.Disconnect() RPC requests",
105
  yb::MetricUnit::kBytes,
106
  "Bytes received in response to yb.rpc_test.CalculatorService.Disconnect() RPC requests");
107
108
METRIC_DEFINE_counter(
109
  server, proxy_request_bytes_yb_rpc_test_CalculatorService_Forward,
110
  "Bytes sent by yb.rpc_test.CalculatorService.Forward() RPC requests",
111
  yb::MetricUnit::kBytes,
112
  "Bytes sent by yb.rpc_test.CalculatorService.Forward() RPC requests");
113
114
METRIC_DEFINE_counter(
115
  server, proxy_response_bytes_yb_rpc_test_CalculatorService_Forward,
116
  "Bytes received in response to yb.rpc_test.CalculatorService.Forward() RPC requests",
117
  yb::MetricUnit::kBytes,
118
  "Bytes received in response to yb.rpc_test.CalculatorService.Forward() RPC requests");
119
120
METRIC_DEFINE_counter(
121
  server, proxy_request_bytes_yb_rpc_test_CalculatorService_Lightweight,
122
  "Bytes sent by yb.rpc_test.CalculatorService.Lightweight() RPC requests",
123
  yb::MetricUnit::kBytes,
124
  "Bytes sent by yb.rpc_test.CalculatorService.Lightweight() RPC requests");
125
126
METRIC_DEFINE_counter(
127
  server, proxy_response_bytes_yb_rpc_test_CalculatorService_Lightweight,
128
  "Bytes received in response to yb.rpc_test.CalculatorService.Lightweight() RPC requests",
129
  yb::MetricUnit::kBytes,
130
  "Bytes received in response to yb.rpc_test.CalculatorService.Lightweight() RPC requests");
131
132
METRIC_DEFINE_counter(
133
  server, proxy_request_bytes_yb_rpc_test_CalculatorService_Trivial,
134
  "Bytes sent by yb.rpc_test.CalculatorService.Trivial() RPC requests",
135
  yb::MetricUnit::kBytes,
136
  "Bytes sent by yb.rpc_test.CalculatorService.Trivial() RPC requests");
137
138
METRIC_DEFINE_counter(
139
  server, proxy_response_bytes_yb_rpc_test_CalculatorService_Trivial,
140
  "Bytes received in response to yb.rpc_test.CalculatorService.Trivial() RPC requests",
141
  yb::MetricUnit::kBytes,
142
  "Bytes received in response to yb.rpc_test.CalculatorService.Trivial() RPC requests");
143
144
METRIC_DEFINE_counter(
145
  server, proxy_request_bytes_yb_rpc_test_AbacusService_Concat,
146
  "Bytes sent by yb.rpc_test.AbacusService.Concat() RPC requests",
147
  yb::MetricUnit::kBytes,
148
  "Bytes sent by yb.rpc_test.AbacusService.Concat() RPC requests");
149
150
METRIC_DEFINE_counter(
151
  server, proxy_response_bytes_yb_rpc_test_AbacusService_Concat,
152
  "Bytes received in response to yb.rpc_test.AbacusService.Concat() RPC requests",
153
  yb::MetricUnit::kBytes,
154
  "Bytes received in response to yb.rpc_test.AbacusService.Concat() RPC requests");
155
156
namespace yb {
157
namespace rpc_test {
158
159
160
namespace {
161
162
const std::string kFullCalculatorServiceName = "yb.rpc_test.CalculatorService";
163
164
81
::yb::rpc::ProxyMetricsPtr CreateCalculatorServiceMetrics(const scoped_refptr<MetricEntity>& entity) {
165
81
  auto result = std::make_shared<::yb::rpc::ProxyMetricsImpl<11>>();
166
81
  result->value[to_underlying(CalculatorServiceRpcMethodIndexes::kAdd)] = {
167
81
      METRIC_proxy_request_bytes_yb_rpc_test_CalculatorService_Add.Instantiate(entity),
168
81
      METRIC_proxy_response_bytes_yb_rpc_test_CalculatorService_Add.Instantiate(entity)
169
81
  };
170
171
81
  result->value[to_underlying(CalculatorServiceRpcMethodIndexes::kSleep)] = {
172
81
      METRIC_proxy_request_bytes_yb_rpc_test_CalculatorService_Sleep.Instantiate(entity),
173
81
      METRIC_proxy_response_bytes_yb_rpc_test_CalculatorService_Sleep.Instantiate(entity)
174
81
  };
175
176
81
  result->value[to_underlying(CalculatorServiceRpcMethodIndexes::kEcho)] = {
177
81
      METRIC_proxy_request_bytes_yb_rpc_test_CalculatorService_Echo.Instantiate(entity),
178
81
      METRIC_proxy_response_bytes_yb_rpc_test_CalculatorService_Echo.Instantiate(entity)
179
81
  };
180
181
81
  result->value[to_underlying(CalculatorServiceRpcMethodIndexes::kWhoAmI)] = {
182
81
      METRIC_proxy_request_bytes_yb_rpc_test_CalculatorService_WhoAmI.Instantiate(entity),
183
81
      METRIC_proxy_response_bytes_yb_rpc_test_CalculatorService_WhoAmI.Instantiate(entity)
184
81
  };
185
186
81
  result->value[to_underlying(CalculatorServiceRpcMethodIndexes::kTestArgumentsInDiffPackage)] = {
187
81
      METRIC_proxy_request_bytes_yb_rpc_test_CalculatorService_TestArgumentsInDiffPackage.Instantiate(entity),
188
81
      METRIC_proxy_response_bytes_yb_rpc_test_CalculatorService_TestArgumentsInDiffPackage.Instantiate(entity)
189
81
  };
190
191
81
  result->value[to_underlying(CalculatorServiceRpcMethodIndexes::kPanic)] = {
192
81
      METRIC_proxy_request_bytes_yb_rpc_test_CalculatorService_Panic.Instantiate(entity),
193
81
      METRIC_proxy_response_bytes_yb_rpc_test_CalculatorService_Panic.Instantiate(entity)
194
81
  };
195
196
81
  result->value[to_underlying(CalculatorServiceRpcMethodIndexes::kPing)] = {
197
81
      METRIC_proxy_request_bytes_yb_rpc_test_CalculatorService_Ping.Instantiate(entity),
198
81
      METRIC_proxy_response_bytes_yb_rpc_test_CalculatorService_Ping.Instantiate(entity)
199
81
  };
200
201
81
  result->value[to_underlying(CalculatorServiceRpcMethodIndexes::kDisconnect)] = {
202
81
      METRIC_proxy_request_bytes_yb_rpc_test_CalculatorService_Disconnect.Instantiate(entity),
203
81
      METRIC_proxy_response_bytes_yb_rpc_test_CalculatorService_Disconnect.Instantiate(entity)
204
81
  };
205
206
81
  result->value[to_underlying(CalculatorServiceRpcMethodIndexes::kForward)] = {
207
81
      METRIC_proxy_request_bytes_yb_rpc_test_CalculatorService_Forward.Instantiate(entity),
208
81
      METRIC_proxy_response_bytes_yb_rpc_test_CalculatorService_Forward.Instantiate(entity)
209
81
  };
210
211
81
  result->value[to_underlying(CalculatorServiceRpcMethodIndexes::kLightweight)] = {
212
81
      METRIC_proxy_request_bytes_yb_rpc_test_CalculatorService_Lightweight.Instantiate(entity),
213
81
      METRIC_proxy_response_bytes_yb_rpc_test_CalculatorService_Lightweight.Instantiate(entity)
214
81
  };
215
216
81
  result->value[to_underlying(CalculatorServiceRpcMethodIndexes::kTrivial)] = {
217
81
      METRIC_proxy_request_bytes_yb_rpc_test_CalculatorService_Trivial.Instantiate(entity),
218
81
      METRIC_proxy_response_bytes_yb_rpc_test_CalculatorService_Trivial.Instantiate(entity)
219
81
  };
220
221
81
  return result;
222
81
}
223
224
const std::string kFullAbacusServiceName = "yb.rpc_test.AbacusService";
225
226
1
::yb::rpc::ProxyMetricsPtr CreateAbacusServiceMetrics(const scoped_refptr<MetricEntity>& entity) {
227
1
  auto result = std::make_shared<::yb::rpc::ProxyMetricsImpl<1>>();
228
1
  result->value[to_underlying(AbacusServiceRpcMethodIndexes::kConcat)] = {
229
1
      METRIC_proxy_request_bytes_yb_rpc_test_AbacusService_Concat.Instantiate(entity),
230
1
      METRIC_proxy_response_bytes_yb_rpc_test_AbacusService_Concat.Instantiate(entity)
231
1
  };
232
233
1
  return result;
234
1
}
235
236
237
} // namespace
238
239
CalculatorServiceProxy::CalculatorServiceProxy(
240
    ::yb::rpc::ProxyCache* cache, const ::yb::HostPort& remote,
241
    const ::yb::rpc::Protocol* protocol,
242
    const ::yb::MonoDelta& resolve_cache_timeout)
243
    : ProxyBase(kFullCalculatorServiceName, &CreateCalculatorServiceMetrics,
244
182
                cache, remote, protocol, resolve_cache_timeout) {}
245
246
::yb::Status CalculatorServiceProxy::Add(
247
176
    const ::yb::rpc_test::AddRequestPB &req, ::yb::rpc_test::AddResponsePB *resp, ::yb::rpc::RpcController *controller) const {
248
176
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Add");
249
176
  return proxy().SyncRequest(
250
176
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kAdd)), req, resp, controller);
251
176
}
252
253
void CalculatorServiceProxy::AddAsync(
254
    const ::yb::rpc_test::AddRequestPB &req, ::yb::rpc_test::AddResponsePB *resp, ::yb::rpc::RpcController *controller,
255
1.00k
    ::yb::rpc::ResponseCallback callback) const {
256
1.00k
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Add");
257
1.00k
  proxy().AsyncRequest(
258
1.00k
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kAdd)), req, resp, controller, std::move(callback));
259
1.00k
}
260
261
::yb::Status CalculatorServiceProxy::Sleep(
262
3
    const ::yb::rpc_test::SleepRequestPB &req, ::yb::rpc_test::SleepResponsePB *resp, ::yb::rpc::RpcController *controller) const {
263
3
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Sleep");
264
3
  return proxy().SyncRequest(
265
3
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kSleep)), req, resp, controller);
266
3
}
267
268
void CalculatorServiceProxy::SleepAsync(
269
    const ::yb::rpc_test::SleepRequestPB &req, ::yb::rpc_test::SleepResponsePB *resp, ::yb::rpc::RpcController *controller,
270
33
    ::yb::rpc::ResponseCallback callback) const {
271
33
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Sleep");
272
33
  proxy().AsyncRequest(
273
33
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kSleep)), req, resp, controller, std::move(callback));
274
33
}
275
276
::yb::Status CalculatorServiceProxy::Echo(
277
5.04k
    const ::yb::rpc_test::EchoRequestPB &req, ::yb::rpc_test::EchoResponsePB *resp, ::yb::rpc::RpcController *controller) const {
278
5.04k
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Echo");
279
5.04k
  return proxy().SyncRequest(
280
5.04k
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kEcho)), req, resp, controller);
281
5.04k
}
282
283
void CalculatorServiceProxy::EchoAsync(
284
    const ::yb::rpc_test::EchoRequestPB &req, ::yb::rpc_test::EchoResponsePB *resp, ::yb::rpc::RpcController *controller,
285
15.4k
    ::yb::rpc::ResponseCallback callback) const {
286
15.4k
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Echo");
287
15.4k
  proxy().AsyncRequest(
288
15.4k
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kEcho)), req, resp, controller, std::move(callback));
289
15.4k
}
290
291
::yb::Status CalculatorServiceProxy::WhoAmI(
292
4
    const ::yb::rpc_test::WhoAmIRequestPB &req, ::yb::rpc_test::WhoAmIResponsePB *resp, ::yb::rpc::RpcController *controller) const {
293
4
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "WhoAmI");
294
4
  return proxy().SyncRequest(
295
4
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kWhoAmI)), req, resp, controller);
296
4
}
297
298
void CalculatorServiceProxy::WhoAmIAsync(
299
    const ::yb::rpc_test::WhoAmIRequestPB &req, ::yb::rpc_test::WhoAmIResponsePB *resp, ::yb::rpc::RpcController *controller,
300
0
    ::yb::rpc::ResponseCallback callback) const {
301
0
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "WhoAmI");
302
0
  proxy().AsyncRequest(
303
0
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kWhoAmI)), req, resp, controller, std::move(callback));
304
0
}
305
306
::yb::Status CalculatorServiceProxy::TestArgumentsInDiffPackage(
307
0
    const ::yb::rpc_test_diff_package::ReqDiffPackagePB &req, ::yb::rpc_test_diff_package::RespDiffPackagePB *resp, ::yb::rpc::RpcController *controller) const {
308
0
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "TestArgumentsInDiffPackage");
309
0
  return proxy().SyncRequest(
310
0
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kTestArgumentsInDiffPackage)), req, resp, controller);
311
0
}
312
313
void CalculatorServiceProxy::TestArgumentsInDiffPackageAsync(
314
    const ::yb::rpc_test_diff_package::ReqDiffPackagePB &req, ::yb::rpc_test_diff_package::RespDiffPackagePB *resp, ::yb::rpc::RpcController *controller,
315
0
    ::yb::rpc::ResponseCallback callback) const {
316
0
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "TestArgumentsInDiffPackage");
317
0
  proxy().AsyncRequest(
318
0
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kTestArgumentsInDiffPackage)), req, resp, controller, std::move(callback));
319
0
}
320
321
::yb::Status CalculatorServiceProxy::Panic(
322
1
    const ::yb::rpc_test::PanicRequestPB &req, ::yb::rpc_test::PanicResponsePB *resp, ::yb::rpc::RpcController *controller) const {
323
1
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Panic");
324
1
  return proxy().SyncRequest(
325
1
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kPanic)), req, resp, controller);
326
1
}
327
328
void CalculatorServiceProxy::PanicAsync(
329
    const ::yb::rpc_test::PanicRequestPB &req, ::yb::rpc_test::PanicResponsePB *resp, ::yb::rpc::RpcController *controller,
330
0
    ::yb::rpc::ResponseCallback callback) const {
331
0
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Panic");
332
0
  proxy().AsyncRequest(
333
0
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kPanic)), req, resp, controller, std::move(callback));
334
0
}
335
336
::yb::Status CalculatorServiceProxy::Ping(
337
0
    const ::yb::rpc_test::PingRequestPB &req, ::yb::rpc_test::PingResponsePB *resp, ::yb::rpc::RpcController *controller) const {
338
0
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Ping");
339
0
  return proxy().SyncRequest(
340
0
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kPing)), req, resp, controller);
341
0
}
342
343
void CalculatorServiceProxy::PingAsync(
344
    const ::yb::rpc_test::PingRequestPB &req, ::yb::rpc_test::PingResponsePB *resp, ::yb::rpc::RpcController *controller,
345
49.9k
    ::yb::rpc::ResponseCallback callback) const {
346
49.9k
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Ping");
347
49.9k
  proxy().AsyncRequest(
348
49.9k
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kPing)), req, resp, controller, std::move(callback));
349
49.9k
}
350
351
::yb::Status CalculatorServiceProxy::Disconnect(
352
0
    const ::yb::rpc_test::DisconnectRequestPB &req, ::yb::rpc_test::DisconnectResponsePB *resp, ::yb::rpc::RpcController *controller) const {
353
0
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Disconnect");
354
0
  return proxy().SyncRequest(
355
0
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kDisconnect)), req, resp, controller);
356
0
}
357
358
void CalculatorServiceProxy::DisconnectAsync(
359
    const ::yb::rpc_test::DisconnectRequestPB &req, ::yb::rpc_test::DisconnectResponsePB *resp, ::yb::rpc::RpcController *controller,
360
0
    ::yb::rpc::ResponseCallback callback) const {
361
0
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Disconnect");
362
0
  proxy().AsyncRequest(
363
0
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kDisconnect)), req, resp, controller, std::move(callback));
364
0
}
365
366
::yb::Status CalculatorServiceProxy::Forward(
367
14
    const ::yb::rpc_test::ForwardRequestPB &req, ::yb::rpc_test::ForwardResponsePB *resp, ::yb::rpc::RpcController *controller) const {
368
14
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Forward");
369
14
  return proxy().SyncRequest(
370
14
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kForward)), req, resp, controller);
371
14
}
372
373
void CalculatorServiceProxy::ForwardAsync(
374
    const ::yb::rpc_test::ForwardRequestPB &req, ::yb::rpc_test::ForwardResponsePB *resp, ::yb::rpc::RpcController *controller,
375
0
    ::yb::rpc::ResponseCallback callback) const {
376
0
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Forward");
377
0
  proxy().AsyncRequest(
378
0
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kForward)), req, resp, controller, std::move(callback));
379
0
}
380
381
::yb::Status CalculatorServiceProxy::Lightweight(
382
1
    const ::yb::rpc_test::LightweightRequestPB &req, ::yb::rpc_test::LightweightResponsePB *resp, ::yb::rpc::RpcController *controller) const {
383
1
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Lightweight");
384
1
  return proxy().SyncRequest(
385
1
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kLightweight)), req, resp, controller);
386
1
}
387
388
void CalculatorServiceProxy::LightweightAsync(
389
    const ::yb::rpc_test::LightweightRequestPB &req, ::yb::rpc_test::LightweightResponsePB *resp, ::yb::rpc::RpcController *controller,
390
0
    ::yb::rpc::ResponseCallback callback) const {
391
0
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Lightweight");
392
0
  proxy().AsyncRequest(
393
0
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kLightweight)), req, resp, controller, std::move(callback));
394
0
}
395
396
::yb::Status CalculatorServiceProxy::Trivial(
397
2
    const ::yb::rpc_test::TrivialRequestPB &req, ::yb::rpc_test::TrivialResponsePB *resp, ::yb::rpc::RpcController *controller) const {
398
2
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Trivial");
399
2
  return proxy().SyncRequest(
400
2
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kTrivial)), req, resp, controller);
401
2
}
402
403
void CalculatorServiceProxy::TrivialAsync(
404
    const ::yb::rpc_test::TrivialRequestPB &req, ::yb::rpc_test::TrivialResponsePB *resp, ::yb::rpc::RpcController *controller,
405
0
    ::yb::rpc::ResponseCallback callback) const {
406
0
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Trivial");
407
0
  proxy().AsyncRequest(
408
0
      &method, metrics<11>(static_cast<size_t>(CalculatorServiceRpcMethodIndexes::kTrivial)), req, resp, controller, std::move(callback));
409
0
}
410
411
AbacusServiceProxy::AbacusServiceProxy(
412
    ::yb::rpc::ProxyCache* cache, const ::yb::HostPort& remote,
413
    const ::yb::rpc::Protocol* protocol,
414
    const ::yb::MonoDelta& resolve_cache_timeout)
415
    : ProxyBase(kFullAbacusServiceName, &CreateAbacusServiceMetrics,
416
1
                cache, remote, protocol, resolve_cache_timeout) {}
417
418
::yb::Status AbacusServiceProxy::Concat(
419
1
    const ::yb::rpc_test::ConcatRequestPB &req, ::yb::rpc_test::ConcatResponsePB *resp, ::yb::rpc::RpcController *controller) const {
420
1
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Concat");
421
1
  return proxy().SyncRequest(
422
1
      &method, metrics<1>(static_cast<size_t>(AbacusServiceRpcMethodIndexes::kConcat)), req, resp, controller);
423
1
}
424
425
void AbacusServiceProxy::ConcatAsync(
426
    const ::yb::rpc_test::ConcatRequestPB &req, ::yb::rpc_test::ConcatResponsePB *resp, ::yb::rpc::RpcController *controller,
427
0
    ::yb::rpc::ResponseCallback callback) const {
428
0
  static ::yb::rpc::RemoteMethod method("yb.rpc_test.CalculatorService", "Concat");
429
0
  proxy().AsyncRequest(
430
0
      &method, metrics<1>(static_cast<size_t>(AbacusServiceRpcMethodIndexes::kConcat)), req, resp, controller, std::move(callback));
431
0
}
432
433
} // namespace rpc_test
434
} // namespace yb