Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // source: test/cpp/qps/qpstest.proto
3 :
4 : #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 : #include "test/cpp/qps/qpstest.pb.h"
6 :
7 : #include <algorithm>
8 :
9 : #include <google/protobuf/stubs/common.h>
10 : #include <google/protobuf/stubs/once.h>
11 : #include <google/protobuf/io/coded_stream.h>
12 : #include <google/protobuf/wire_format_lite_inl.h>
13 : #include <google/protobuf/descriptor.h>
14 : #include <google/protobuf/generated_message_reflection.h>
15 : #include <google/protobuf/reflection_ops.h>
16 : #include <google/protobuf/wire_format.h>
17 : // @@protoc_insertion_point(includes)
18 :
19 : namespace grpc {
20 : namespace testing {
21 :
22 : namespace {
23 :
24 : const ::google::protobuf::Descriptor* StatsRequest_descriptor_ = NULL;
25 : const ::google::protobuf::internal::GeneratedMessageReflection*
26 : StatsRequest_reflection_ = NULL;
27 : const ::google::protobuf::Descriptor* ServerStats_descriptor_ = NULL;
28 : const ::google::protobuf::internal::GeneratedMessageReflection*
29 : ServerStats_reflection_ = NULL;
30 : const ::google::protobuf::Descriptor* Payload_descriptor_ = NULL;
31 : const ::google::protobuf::internal::GeneratedMessageReflection*
32 : Payload_reflection_ = NULL;
33 : const ::google::protobuf::Descriptor* HistogramData_descriptor_ = NULL;
34 : const ::google::protobuf::internal::GeneratedMessageReflection*
35 : HistogramData_reflection_ = NULL;
36 : const ::google::protobuf::Descriptor* PoissonParams_descriptor_ = NULL;
37 : const ::google::protobuf::internal::GeneratedMessageReflection*
38 : PoissonParams_reflection_ = NULL;
39 : const ::google::protobuf::Descriptor* UniformParams_descriptor_ = NULL;
40 : const ::google::protobuf::internal::GeneratedMessageReflection*
41 : UniformParams_reflection_ = NULL;
42 : const ::google::protobuf::Descriptor* DeterministicParams_descriptor_ = NULL;
43 : const ::google::protobuf::internal::GeneratedMessageReflection*
44 : DeterministicParams_reflection_ = NULL;
45 : const ::google::protobuf::Descriptor* ParetoParams_descriptor_ = NULL;
46 : const ::google::protobuf::internal::GeneratedMessageReflection*
47 : ParetoParams_reflection_ = NULL;
48 : const ::google::protobuf::Descriptor* LoadParams_descriptor_ = NULL;
49 : const ::google::protobuf::internal::GeneratedMessageReflection*
50 : LoadParams_reflection_ = NULL;
51 : struct LoadParamsOneofInstance {
52 : const ::grpc::testing::PoissonParams* poisson_;
53 : const ::grpc::testing::UniformParams* uniform_;
54 : const ::grpc::testing::DeterministicParams* determ_;
55 : const ::grpc::testing::ParetoParams* pareto_;
56 : }* LoadParams_default_oneof_instance_ = NULL;
57 : const ::google::protobuf::Descriptor* ClientConfig_descriptor_ = NULL;
58 : const ::google::protobuf::internal::GeneratedMessageReflection*
59 : ClientConfig_reflection_ = NULL;
60 : const ::google::protobuf::Descriptor* Mark_descriptor_ = NULL;
61 : const ::google::protobuf::internal::GeneratedMessageReflection*
62 : Mark_reflection_ = NULL;
63 : const ::google::protobuf::Descriptor* ClientArgs_descriptor_ = NULL;
64 : const ::google::protobuf::internal::GeneratedMessageReflection*
65 : ClientArgs_reflection_ = NULL;
66 : struct ClientArgsOneofInstance {
67 : const ::grpc::testing::ClientConfig* setup_;
68 : const ::grpc::testing::Mark* mark_;
69 : }* ClientArgs_default_oneof_instance_ = NULL;
70 : const ::google::protobuf::Descriptor* ClientStats_descriptor_ = NULL;
71 : const ::google::protobuf::internal::GeneratedMessageReflection*
72 : ClientStats_reflection_ = NULL;
73 : const ::google::protobuf::Descriptor* ClientStatus_descriptor_ = NULL;
74 : const ::google::protobuf::internal::GeneratedMessageReflection*
75 : ClientStatus_reflection_ = NULL;
76 : const ::google::protobuf::Descriptor* ServerConfig_descriptor_ = NULL;
77 : const ::google::protobuf::internal::GeneratedMessageReflection*
78 : ServerConfig_reflection_ = NULL;
79 : const ::google::protobuf::Descriptor* ServerArgs_descriptor_ = NULL;
80 : const ::google::protobuf::internal::GeneratedMessageReflection*
81 : ServerArgs_reflection_ = NULL;
82 : struct ServerArgsOneofInstance {
83 : const ::grpc::testing::ServerConfig* setup_;
84 : const ::grpc::testing::Mark* mark_;
85 : }* ServerArgs_default_oneof_instance_ = NULL;
86 : const ::google::protobuf::Descriptor* ServerStatus_descriptor_ = NULL;
87 : const ::google::protobuf::internal::GeneratedMessageReflection*
88 : ServerStatus_reflection_ = NULL;
89 : const ::google::protobuf::Descriptor* SimpleRequest_descriptor_ = NULL;
90 : const ::google::protobuf::internal::GeneratedMessageReflection*
91 : SimpleRequest_reflection_ = NULL;
92 : const ::google::protobuf::Descriptor* SimpleResponse_descriptor_ = NULL;
93 : const ::google::protobuf::internal::GeneratedMessageReflection*
94 : SimpleResponse_reflection_ = NULL;
95 : const ::google::protobuf::EnumDescriptor* PayloadType_descriptor_ = NULL;
96 : const ::google::protobuf::EnumDescriptor* ClientType_descriptor_ = NULL;
97 : const ::google::protobuf::EnumDescriptor* ServerType_descriptor_ = NULL;
98 : const ::google::protobuf::EnumDescriptor* RpcType_descriptor_ = NULL;
99 : const ::google::protobuf::EnumDescriptor* LoadType_descriptor_ = NULL;
100 :
101 : } // namespace
102 :
103 :
104 0 : void protobuf_AssignDesc_test_2fcpp_2fqps_2fqpstest_2eproto() {
105 0 : protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
106 : const ::google::protobuf::FileDescriptor* file =
107 : ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
108 0 : "test/cpp/qps/qpstest.proto");
109 0 : GOOGLE_CHECK(file != NULL);
110 0 : StatsRequest_descriptor_ = file->message_type(0);
111 : static const int StatsRequest_offsets_[1] = {
112 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StatsRequest, test_num_),
113 : };
114 : StatsRequest_reflection_ =
115 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
116 : StatsRequest_descriptor_,
117 : StatsRequest::default_instance_,
118 : StatsRequest_offsets_,
119 : -1,
120 : -1,
121 : -1,
122 : sizeof(StatsRequest),
123 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StatsRequest, _internal_metadata_),
124 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StatsRequest, _is_default_instance_));
125 0 : ServerStats_descriptor_ = file->message_type(1);
126 : static const int ServerStats_offsets_[3] = {
127 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerStats, time_elapsed_),
128 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerStats, time_user_),
129 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerStats, time_system_),
130 : };
131 : ServerStats_reflection_ =
132 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
133 : ServerStats_descriptor_,
134 : ServerStats::default_instance_,
135 : ServerStats_offsets_,
136 : -1,
137 : -1,
138 : -1,
139 : sizeof(ServerStats),
140 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerStats, _internal_metadata_),
141 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerStats, _is_default_instance_));
142 0 : Payload_descriptor_ = file->message_type(2);
143 : static const int Payload_offsets_[2] = {
144 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Payload, type_),
145 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Payload, body_),
146 : };
147 : Payload_reflection_ =
148 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
149 : Payload_descriptor_,
150 : Payload::default_instance_,
151 : Payload_offsets_,
152 : -1,
153 : -1,
154 : -1,
155 : sizeof(Payload),
156 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Payload, _internal_metadata_),
157 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Payload, _is_default_instance_));
158 0 : HistogramData_descriptor_ = file->message_type(3);
159 : static const int HistogramData_offsets_[6] = {
160 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HistogramData, bucket_),
161 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HistogramData, min_seen_),
162 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HistogramData, max_seen_),
163 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HistogramData, sum_),
164 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HistogramData, sum_of_squares_),
165 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HistogramData, count_),
166 : };
167 : HistogramData_reflection_ =
168 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
169 : HistogramData_descriptor_,
170 : HistogramData::default_instance_,
171 : HistogramData_offsets_,
172 : -1,
173 : -1,
174 : -1,
175 : sizeof(HistogramData),
176 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HistogramData, _internal_metadata_),
177 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HistogramData, _is_default_instance_));
178 0 : PoissonParams_descriptor_ = file->message_type(4);
179 : static const int PoissonParams_offsets_[1] = {
180 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoissonParams, offered_load_),
181 : };
182 : PoissonParams_reflection_ =
183 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
184 : PoissonParams_descriptor_,
185 : PoissonParams::default_instance_,
186 : PoissonParams_offsets_,
187 : -1,
188 : -1,
189 : -1,
190 : sizeof(PoissonParams),
191 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoissonParams, _internal_metadata_),
192 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoissonParams, _is_default_instance_));
193 0 : UniformParams_descriptor_ = file->message_type(5);
194 : static const int UniformParams_offsets_[2] = {
195 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UniformParams, interarrival_lo_),
196 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UniformParams, interarrival_hi_),
197 : };
198 : UniformParams_reflection_ =
199 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
200 : UniformParams_descriptor_,
201 : UniformParams::default_instance_,
202 : UniformParams_offsets_,
203 : -1,
204 : -1,
205 : -1,
206 : sizeof(UniformParams),
207 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UniformParams, _internal_metadata_),
208 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UniformParams, _is_default_instance_));
209 0 : DeterministicParams_descriptor_ = file->message_type(6);
210 : static const int DeterministicParams_offsets_[1] = {
211 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeterministicParams, offered_load_),
212 : };
213 : DeterministicParams_reflection_ =
214 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
215 : DeterministicParams_descriptor_,
216 : DeterministicParams::default_instance_,
217 : DeterministicParams_offsets_,
218 : -1,
219 : -1,
220 : -1,
221 : sizeof(DeterministicParams),
222 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeterministicParams, _internal_metadata_),
223 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeterministicParams, _is_default_instance_));
224 0 : ParetoParams_descriptor_ = file->message_type(7);
225 : static const int ParetoParams_offsets_[2] = {
226 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParetoParams, interarrival_base_),
227 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParetoParams, alpha_),
228 : };
229 : ParetoParams_reflection_ =
230 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
231 : ParetoParams_descriptor_,
232 : ParetoParams::default_instance_,
233 : ParetoParams_offsets_,
234 : -1,
235 : -1,
236 : -1,
237 : sizeof(ParetoParams),
238 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParetoParams, _internal_metadata_),
239 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParetoParams, _is_default_instance_));
240 0 : LoadParams_descriptor_ = file->message_type(8);
241 : static const int LoadParams_offsets_[5] = {
242 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(LoadParams_default_oneof_instance_, poisson_),
243 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(LoadParams_default_oneof_instance_, uniform_),
244 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(LoadParams_default_oneof_instance_, determ_),
245 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(LoadParams_default_oneof_instance_, pareto_),
246 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadParams, load_),
247 : };
248 : LoadParams_reflection_ =
249 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
250 : LoadParams_descriptor_,
251 : LoadParams::default_instance_,
252 : LoadParams_offsets_,
253 : -1,
254 : -1,
255 : -1,
256 : LoadParams_default_oneof_instance_,
257 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadParams, _oneof_case_[0]),
258 : sizeof(LoadParams),
259 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadParams, _internal_metadata_),
260 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadParams, _is_default_instance_));
261 0 : ClientConfig_descriptor_ = file->message_type(9);
262 : static const int ClientConfig_offsets_[11] = {
263 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientConfig, server_targets_),
264 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientConfig, client_type_),
265 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientConfig, enable_ssl_),
266 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientConfig, outstanding_rpcs_per_channel_),
267 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientConfig, client_channels_),
268 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientConfig, payload_size_),
269 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientConfig, async_client_threads_),
270 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientConfig, rpc_type_),
271 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientConfig, host_),
272 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientConfig, load_type_),
273 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientConfig, load_params_),
274 : };
275 : ClientConfig_reflection_ =
276 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
277 : ClientConfig_descriptor_,
278 : ClientConfig::default_instance_,
279 : ClientConfig_offsets_,
280 : -1,
281 : -1,
282 : -1,
283 : sizeof(ClientConfig),
284 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientConfig, _internal_metadata_),
285 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientConfig, _is_default_instance_));
286 0 : Mark_descriptor_ = file->message_type(10);
287 : static const int Mark_offsets_[1] = {
288 : };
289 : Mark_reflection_ =
290 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
291 : Mark_descriptor_,
292 : Mark::default_instance_,
293 : Mark_offsets_,
294 : -1,
295 : -1,
296 : -1,
297 : sizeof(Mark),
298 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mark, _internal_metadata_),
299 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mark, _is_default_instance_));
300 0 : ClientArgs_descriptor_ = file->message_type(11);
301 : static const int ClientArgs_offsets_[3] = {
302 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(ClientArgs_default_oneof_instance_, setup_),
303 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(ClientArgs_default_oneof_instance_, mark_),
304 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientArgs, argtype_),
305 : };
306 : ClientArgs_reflection_ =
307 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
308 : ClientArgs_descriptor_,
309 : ClientArgs::default_instance_,
310 : ClientArgs_offsets_,
311 : -1,
312 : -1,
313 : -1,
314 : ClientArgs_default_oneof_instance_,
315 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientArgs, _oneof_case_[0]),
316 : sizeof(ClientArgs),
317 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientArgs, _internal_metadata_),
318 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientArgs, _is_default_instance_));
319 0 : ClientStats_descriptor_ = file->message_type(12);
320 : static const int ClientStats_offsets_[4] = {
321 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientStats, latencies_),
322 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientStats, time_elapsed_),
323 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientStats, time_user_),
324 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientStats, time_system_),
325 : };
326 : ClientStats_reflection_ =
327 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
328 : ClientStats_descriptor_,
329 : ClientStats::default_instance_,
330 : ClientStats_offsets_,
331 : -1,
332 : -1,
333 : -1,
334 : sizeof(ClientStats),
335 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientStats, _internal_metadata_),
336 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientStats, _is_default_instance_));
337 0 : ClientStatus_descriptor_ = file->message_type(13);
338 : static const int ClientStatus_offsets_[1] = {
339 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientStatus, stats_),
340 : };
341 : ClientStatus_reflection_ =
342 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
343 : ClientStatus_descriptor_,
344 : ClientStatus::default_instance_,
345 : ClientStatus_offsets_,
346 : -1,
347 : -1,
348 : -1,
349 : sizeof(ClientStatus),
350 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientStatus, _internal_metadata_),
351 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientStatus, _is_default_instance_));
352 0 : ServerConfig_descriptor_ = file->message_type(14);
353 : static const int ServerConfig_offsets_[4] = {
354 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerConfig, server_type_),
355 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerConfig, threads_),
356 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerConfig, enable_ssl_),
357 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerConfig, host_),
358 : };
359 : ServerConfig_reflection_ =
360 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
361 : ServerConfig_descriptor_,
362 : ServerConfig::default_instance_,
363 : ServerConfig_offsets_,
364 : -1,
365 : -1,
366 : -1,
367 : sizeof(ServerConfig),
368 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerConfig, _internal_metadata_),
369 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerConfig, _is_default_instance_));
370 0 : ServerArgs_descriptor_ = file->message_type(15);
371 : static const int ServerArgs_offsets_[3] = {
372 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(ServerArgs_default_oneof_instance_, setup_),
373 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(ServerArgs_default_oneof_instance_, mark_),
374 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerArgs, argtype_),
375 : };
376 : ServerArgs_reflection_ =
377 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
378 : ServerArgs_descriptor_,
379 : ServerArgs::default_instance_,
380 : ServerArgs_offsets_,
381 : -1,
382 : -1,
383 : -1,
384 : ServerArgs_default_oneof_instance_,
385 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerArgs, _oneof_case_[0]),
386 : sizeof(ServerArgs),
387 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerArgs, _internal_metadata_),
388 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerArgs, _is_default_instance_));
389 0 : ServerStatus_descriptor_ = file->message_type(16);
390 : static const int ServerStatus_offsets_[2] = {
391 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerStatus, stats_),
392 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerStatus, port_),
393 : };
394 : ServerStatus_reflection_ =
395 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
396 : ServerStatus_descriptor_,
397 : ServerStatus::default_instance_,
398 : ServerStatus_offsets_,
399 : -1,
400 : -1,
401 : -1,
402 : sizeof(ServerStatus),
403 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerStatus, _internal_metadata_),
404 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerStatus, _is_default_instance_));
405 0 : SimpleRequest_descriptor_ = file->message_type(17);
406 : static const int SimpleRequest_offsets_[3] = {
407 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SimpleRequest, response_type_),
408 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SimpleRequest, response_size_),
409 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SimpleRequest, payload_),
410 : };
411 : SimpleRequest_reflection_ =
412 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
413 : SimpleRequest_descriptor_,
414 : SimpleRequest::default_instance_,
415 : SimpleRequest_offsets_,
416 : -1,
417 : -1,
418 : -1,
419 : sizeof(SimpleRequest),
420 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SimpleRequest, _internal_metadata_),
421 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SimpleRequest, _is_default_instance_));
422 0 : SimpleResponse_descriptor_ = file->message_type(18);
423 : static const int SimpleResponse_offsets_[1] = {
424 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SimpleResponse, payload_),
425 : };
426 : SimpleResponse_reflection_ =
427 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
428 : SimpleResponse_descriptor_,
429 : SimpleResponse::default_instance_,
430 : SimpleResponse_offsets_,
431 : -1,
432 : -1,
433 : -1,
434 : sizeof(SimpleResponse),
435 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SimpleResponse, _internal_metadata_),
436 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SimpleResponse, _is_default_instance_));
437 0 : PayloadType_descriptor_ = file->enum_type(0);
438 0 : ClientType_descriptor_ = file->enum_type(1);
439 0 : ServerType_descriptor_ = file->enum_type(2);
440 0 : RpcType_descriptor_ = file->enum_type(3);
441 0 : LoadType_descriptor_ = file->enum_type(4);
442 0 : }
443 :
444 : namespace {
445 :
446 : GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
447 0 : inline void protobuf_AssignDescriptorsOnce() {
448 : ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
449 0 : &protobuf_AssignDesc_test_2fcpp_2fqps_2fqpstest_2eproto);
450 0 : }
451 :
452 0 : void protobuf_RegisterTypes(const ::std::string&) {
453 0 : protobuf_AssignDescriptorsOnce();
454 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
455 0 : StatsRequest_descriptor_, &StatsRequest::default_instance());
456 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
457 0 : ServerStats_descriptor_, &ServerStats::default_instance());
458 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
459 0 : Payload_descriptor_, &Payload::default_instance());
460 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
461 0 : HistogramData_descriptor_, &HistogramData::default_instance());
462 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
463 0 : PoissonParams_descriptor_, &PoissonParams::default_instance());
464 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
465 0 : UniformParams_descriptor_, &UniformParams::default_instance());
466 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
467 0 : DeterministicParams_descriptor_, &DeterministicParams::default_instance());
468 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
469 0 : ParetoParams_descriptor_, &ParetoParams::default_instance());
470 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
471 0 : LoadParams_descriptor_, &LoadParams::default_instance());
472 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
473 0 : ClientConfig_descriptor_, &ClientConfig::default_instance());
474 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
475 0 : Mark_descriptor_, &Mark::default_instance());
476 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
477 0 : ClientArgs_descriptor_, &ClientArgs::default_instance());
478 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
479 0 : ClientStats_descriptor_, &ClientStats::default_instance());
480 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
481 0 : ClientStatus_descriptor_, &ClientStatus::default_instance());
482 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
483 0 : ServerConfig_descriptor_, &ServerConfig::default_instance());
484 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
485 0 : ServerArgs_descriptor_, &ServerArgs::default_instance());
486 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
487 0 : ServerStatus_descriptor_, &ServerStatus::default_instance());
488 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
489 0 : SimpleRequest_descriptor_, &SimpleRequest::default_instance());
490 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
491 0 : SimpleResponse_descriptor_, &SimpleResponse::default_instance());
492 0 : }
493 :
494 : } // namespace
495 :
496 0 : void protobuf_ShutdownFile_test_2fcpp_2fqps_2fqpstest_2eproto() {
497 0 : delete StatsRequest::default_instance_;
498 0 : delete StatsRequest_reflection_;
499 0 : delete ServerStats::default_instance_;
500 0 : delete ServerStats_reflection_;
501 0 : delete Payload::default_instance_;
502 0 : delete Payload_reflection_;
503 0 : delete HistogramData::default_instance_;
504 0 : delete HistogramData_reflection_;
505 0 : delete PoissonParams::default_instance_;
506 0 : delete PoissonParams_reflection_;
507 0 : delete UniformParams::default_instance_;
508 0 : delete UniformParams_reflection_;
509 0 : delete DeterministicParams::default_instance_;
510 0 : delete DeterministicParams_reflection_;
511 0 : delete ParetoParams::default_instance_;
512 0 : delete ParetoParams_reflection_;
513 0 : delete LoadParams::default_instance_;
514 0 : delete LoadParams_default_oneof_instance_;
515 0 : delete LoadParams_reflection_;
516 0 : delete ClientConfig::default_instance_;
517 0 : delete ClientConfig_reflection_;
518 0 : delete Mark::default_instance_;
519 0 : delete Mark_reflection_;
520 0 : delete ClientArgs::default_instance_;
521 0 : delete ClientArgs_default_oneof_instance_;
522 0 : delete ClientArgs_reflection_;
523 0 : delete ClientStats::default_instance_;
524 0 : delete ClientStats_reflection_;
525 0 : delete ClientStatus::default_instance_;
526 0 : delete ClientStatus_reflection_;
527 0 : delete ServerConfig::default_instance_;
528 0 : delete ServerConfig_reflection_;
529 0 : delete ServerArgs::default_instance_;
530 0 : delete ServerArgs_default_oneof_instance_;
531 0 : delete ServerArgs_reflection_;
532 0 : delete ServerStatus::default_instance_;
533 0 : delete ServerStatus_reflection_;
534 0 : delete SimpleRequest::default_instance_;
535 0 : delete SimpleRequest_reflection_;
536 0 : delete SimpleResponse::default_instance_;
537 0 : delete SimpleResponse_reflection_;
538 0 : }
539 :
540 12 : void protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto() {
541 : static bool already_here = false;
542 24 : if (already_here) return;
543 6 : already_here = true;
544 6 : GOOGLE_PROTOBUF_VERIFY_VERSION;
545 :
546 : ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
547 : "\n\032test/cpp/qps/qpstest.proto\022\014grpc.testi"
548 : "ng\" \n\014StatsRequest\022\020\n\010test_num\030\001 \001(\005\"K\n\013"
549 : "ServerStats\022\024\n\014time_elapsed\030\001 \001(\001\022\021\n\ttim"
550 : "e_user\030\002 \001(\001\022\023\n\013time_system\030\003 \001(\001\"@\n\007Pay"
551 : "load\022\'\n\004type\030\001 \001(\0162\031.grpc.testing.Payloa"
552 : "dType\022\014\n\004body\030\002 \001(\014\"w\n\rHistogramData\022\016\n\006"
553 : "bucket\030\001 \003(\r\022\020\n\010min_seen\030\002 \001(\001\022\020\n\010max_se"
554 : "en\030\003 \001(\001\022\013\n\003sum\030\004 \001(\001\022\026\n\016sum_of_squares\030"
555 : "\005 \001(\001\022\r\n\005count\030\006 \001(\001\"%\n\rPoissonParams\022\024\n"
556 : "\014offered_load\030\001 \001(\001\"A\n\rUniformParams\022\027\n\017"
557 : "interarrival_lo\030\001 \001(\001\022\027\n\017interarrival_hi"
558 : "\030\002 \001(\001\"+\n\023DeterministicParams\022\024\n\014offered"
559 : "_load\030\001 \001(\001\"8\n\014ParetoParams\022\031\n\021interarri"
560 : "val_base\030\001 \001(\001\022\r\n\005alpha\030\002 \001(\001\"\327\001\n\nLoadPa"
561 : "rams\022.\n\007poisson\030\001 \001(\0132\033.grpc.testing.Poi"
562 : "ssonParamsH\000\022.\n\007uniform\030\002 \001(\0132\033.grpc.tes"
563 : "ting.UniformParamsH\000\0223\n\006determ\030\003 \001(\0132!.g"
564 : "rpc.testing.DeterministicParamsH\000\022,\n\006par"
565 : "eto\030\004 \001(\0132\032.grpc.testing.ParetoParamsH\000B"
566 : "\006\n\004load\"\355\002\n\014ClientConfig\022\026\n\016server_targe"
567 : "ts\030\001 \003(\t\022-\n\013client_type\030\002 \001(\0162\030.grpc.tes"
568 : "ting.ClientType\022\022\n\nenable_ssl\030\003 \001(\010\022$\n\034o"
569 : "utstanding_rpcs_per_channel\030\004 \001(\005\022\027\n\017cli"
570 : "ent_channels\030\005 \001(\005\022\024\n\014payload_size\030\006 \001(\005"
571 : "\022\034\n\024async_client_threads\030\007 \001(\005\022\'\n\010rpc_ty"
572 : "pe\030\010 \001(\0162\025.grpc.testing.RpcType\022\014\n\004host\030"
573 : "\t \001(\t\022)\n\tload_type\030\n \001(\0162\026.grpc.testing."
574 : "LoadType\022-\n\013load_params\030\013 \001(\0132\030.grpc.tes"
575 : "ting.LoadParams\"\006\n\004Mark\"h\n\nClientArgs\022+\n"
576 : "\005setup\030\001 \001(\0132\032.grpc.testing.ClientConfig"
577 : "H\000\022\"\n\004mark\030\002 \001(\0132\022.grpc.testing.MarkH\000B\t"
578 : "\n\007argtype\"{\n\013ClientStats\022.\n\tlatencies\030\001 "
579 : "\001(\0132\033.grpc.testing.HistogramData\022\024\n\014time"
580 : "_elapsed\030\002 \001(\001\022\021\n\ttime_user\030\003 \001(\001\022\023\n\013tim"
581 : "e_system\030\004 \001(\001\"8\n\014ClientStatus\022(\n\005stats\030"
582 : "\001 \001(\0132\031.grpc.testing.ClientStats\"p\n\014Serv"
583 : "erConfig\022-\n\013server_type\030\001 \001(\0162\030.grpc.tes"
584 : "ting.ServerType\022\017\n\007threads\030\002 \001(\005\022\022\n\nenab"
585 : "le_ssl\030\003 \001(\010\022\014\n\004host\030\004 \001(\t\"h\n\nServerArgs"
586 : "\022+\n\005setup\030\001 \001(\0132\032.grpc.testing.ServerCon"
587 : "figH\000\022\"\n\004mark\030\002 \001(\0132\022.grpc.testing.MarkH"
588 : "\000B\t\n\007argtype\"F\n\014ServerStatus\022(\n\005stats\030\001 "
589 : "\001(\0132\031.grpc.testing.ServerStats\022\014\n\004port\030\002"
590 : " \001(\005\"\200\001\n\rSimpleRequest\0220\n\rresponse_type\030"
591 : "\001 \001(\0162\031.grpc.testing.PayloadType\022\025\n\rresp"
592 : "onse_size\030\002 \001(\005\022&\n\007payload\030\003 \001(\0132\025.grpc."
593 : "testing.Payload\"8\n\016SimpleResponse\022&\n\007pay"
594 : "load\030\001 \001(\0132\025.grpc.testing.Payload*\?\n\013Pay"
595 : "loadType\022\020\n\014COMPRESSABLE\020\000\022\022\n\016UNCOMPRESS"
596 : "ABLE\020\001\022\n\n\006RANDOM\020\002*6\n\nClientType\022\026\n\022SYNC"
597 : "HRONOUS_CLIENT\020\000\022\020\n\014ASYNC_CLIENT\020\001*6\n\nSe"
598 : "rverType\022\026\n\022SYNCHRONOUS_SERVER\020\000\022\020\n\014ASYN"
599 : "C_SERVER\020\001*#\n\007RpcType\022\t\n\005UNARY\020\000\022\r\n\tSTRE"
600 : "AMING\020\001*T\n\010LoadType\022\017\n\013CLOSED_LOOP\020\000\022\013\n\007"
601 : "POISSON\020\001\022\013\n\007UNIFORM\020\002\022\021\n\rDETERMINISTIC\020"
602 : "\003\022\n\n\006PARETO\020\0042\245\001\n\013TestService\022F\n\tUnaryCa"
603 : "ll\022\033.grpc.testing.SimpleRequest\032\034.grpc.t"
604 : "esting.SimpleResponse\022N\n\rStreamingCall\022\033"
605 : ".grpc.testing.SimpleRequest\032\034.grpc.testi"
606 : "ng.SimpleResponse(\0010\0012\224\001\n\006Worker\022C\n\007RunT"
607 : "est\022\030.grpc.testing.ClientArgs\032\032.grpc.tes"
608 : "ting.ClientStatus(\0010\001\022E\n\tRunServer\022\030.grp"
609 : "c.testing.ServerArgs\032\032.grpc.testing.Serv"
610 6 : "erStatus(\0010\001b\006proto3", 2540);
611 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
612 6 : "test/cpp/qps/qpstest.proto", &protobuf_RegisterTypes);
613 6 : StatsRequest::default_instance_ = new StatsRequest();
614 6 : ServerStats::default_instance_ = new ServerStats();
615 6 : Payload::default_instance_ = new Payload();
616 6 : HistogramData::default_instance_ = new HistogramData();
617 6 : PoissonParams::default_instance_ = new PoissonParams();
618 6 : UniformParams::default_instance_ = new UniformParams();
619 6 : DeterministicParams::default_instance_ = new DeterministicParams();
620 6 : ParetoParams::default_instance_ = new ParetoParams();
621 6 : LoadParams::default_instance_ = new LoadParams();
622 6 : LoadParams_default_oneof_instance_ = new LoadParamsOneofInstance();
623 6 : ClientConfig::default_instance_ = new ClientConfig();
624 6 : Mark::default_instance_ = new Mark();
625 6 : ClientArgs::default_instance_ = new ClientArgs();
626 6 : ClientArgs_default_oneof_instance_ = new ClientArgsOneofInstance();
627 6 : ClientStats::default_instance_ = new ClientStats();
628 6 : ClientStatus::default_instance_ = new ClientStatus();
629 6 : ServerConfig::default_instance_ = new ServerConfig();
630 6 : ServerArgs::default_instance_ = new ServerArgs();
631 6 : ServerArgs_default_oneof_instance_ = new ServerArgsOneofInstance();
632 6 : ServerStatus::default_instance_ = new ServerStatus();
633 6 : SimpleRequest::default_instance_ = new SimpleRequest();
634 6 : SimpleResponse::default_instance_ = new SimpleResponse();
635 6 : StatsRequest::default_instance_->InitAsDefaultInstance();
636 6 : ServerStats::default_instance_->InitAsDefaultInstance();
637 6 : Payload::default_instance_->InitAsDefaultInstance();
638 6 : HistogramData::default_instance_->InitAsDefaultInstance();
639 6 : PoissonParams::default_instance_->InitAsDefaultInstance();
640 6 : UniformParams::default_instance_->InitAsDefaultInstance();
641 6 : DeterministicParams::default_instance_->InitAsDefaultInstance();
642 6 : ParetoParams::default_instance_->InitAsDefaultInstance();
643 6 : LoadParams::default_instance_->InitAsDefaultInstance();
644 6 : ClientConfig::default_instance_->InitAsDefaultInstance();
645 6 : Mark::default_instance_->InitAsDefaultInstance();
646 6 : ClientArgs::default_instance_->InitAsDefaultInstance();
647 6 : ClientStats::default_instance_->InitAsDefaultInstance();
648 6 : ClientStatus::default_instance_->InitAsDefaultInstance();
649 6 : ServerConfig::default_instance_->InitAsDefaultInstance();
650 6 : ServerArgs::default_instance_->InitAsDefaultInstance();
651 6 : ServerStatus::default_instance_->InitAsDefaultInstance();
652 6 : SimpleRequest::default_instance_->InitAsDefaultInstance();
653 6 : SimpleResponse::default_instance_->InitAsDefaultInstance();
654 6 : ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_test_2fcpp_2fqps_2fqpstest_2eproto);
655 : }
656 :
657 : // Force AddDescriptors() to be called at static initialization time.
658 : struct StaticDescriptorInitializer_test_2fcpp_2fqps_2fqpstest_2eproto {
659 6 : StaticDescriptorInitializer_test_2fcpp_2fqps_2fqpstest_2eproto() {
660 6 : protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
661 6 : }
662 6 : } static_descriptor_initializer_test_2fcpp_2fqps_2fqpstest_2eproto_;
663 0 : const ::google::protobuf::EnumDescriptor* PayloadType_descriptor() {
664 0 : protobuf_AssignDescriptorsOnce();
665 0 : return PayloadType_descriptor_;
666 : }
667 0 : bool PayloadType_IsValid(int value) {
668 0 : switch(value) {
669 : case 0:
670 : case 1:
671 : case 2:
672 0 : return true;
673 : default:
674 0 : return false;
675 : }
676 : }
677 :
678 0 : const ::google::protobuf::EnumDescriptor* ClientType_descriptor() {
679 0 : protobuf_AssignDescriptorsOnce();
680 0 : return ClientType_descriptor_;
681 : }
682 0 : bool ClientType_IsValid(int value) {
683 0 : switch(value) {
684 : case 0:
685 : case 1:
686 0 : return true;
687 : default:
688 0 : return false;
689 : }
690 : }
691 :
692 0 : const ::google::protobuf::EnumDescriptor* ServerType_descriptor() {
693 0 : protobuf_AssignDescriptorsOnce();
694 0 : return ServerType_descriptor_;
695 : }
696 0 : bool ServerType_IsValid(int value) {
697 0 : switch(value) {
698 : case 0:
699 : case 1:
700 0 : return true;
701 : default:
702 0 : return false;
703 : }
704 : }
705 :
706 0 : const ::google::protobuf::EnumDescriptor* RpcType_descriptor() {
707 0 : protobuf_AssignDescriptorsOnce();
708 0 : return RpcType_descriptor_;
709 : }
710 0 : bool RpcType_IsValid(int value) {
711 0 : switch(value) {
712 : case 0:
713 : case 1:
714 0 : return true;
715 : default:
716 0 : return false;
717 : }
718 : }
719 :
720 0 : const ::google::protobuf::EnumDescriptor* LoadType_descriptor() {
721 0 : protobuf_AssignDescriptorsOnce();
722 0 : return LoadType_descriptor_;
723 : }
724 0 : bool LoadType_IsValid(int value) {
725 0 : switch(value) {
726 : case 0:
727 : case 1:
728 : case 2:
729 : case 3:
730 : case 4:
731 0 : return true;
732 : default:
733 0 : return false;
734 : }
735 : }
736 :
737 :
738 : namespace {
739 :
740 : static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
741 0 : static void MergeFromFail(int line) {
742 0 : GOOGLE_CHECK(false) << __FILE__ << ":" << line;
743 0 : }
744 :
745 : } // namespace
746 :
747 :
748 : // ===================================================================
749 :
750 : #ifndef _MSC_VER
751 : const int StatsRequest::kTestNumFieldNumber;
752 : #endif // !_MSC_VER
753 :
754 6 : StatsRequest::StatsRequest()
755 6 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
756 6 : SharedCtor();
757 : // @@protoc_insertion_point(constructor:grpc.testing.StatsRequest)
758 6 : }
759 :
760 6 : void StatsRequest::InitAsDefaultInstance() {
761 6 : _is_default_instance_ = true;
762 6 : }
763 :
764 0 : StatsRequest::StatsRequest(const StatsRequest& from)
765 : : ::google::protobuf::Message(),
766 0 : _internal_metadata_(NULL) {
767 0 : SharedCtor();
768 0 : MergeFrom(from);
769 : // @@protoc_insertion_point(copy_constructor:grpc.testing.StatsRequest)
770 0 : }
771 :
772 6 : void StatsRequest::SharedCtor() {
773 6 : _is_default_instance_ = false;
774 6 : _cached_size_ = 0;
775 6 : test_num_ = 0;
776 6 : }
777 :
778 0 : StatsRequest::~StatsRequest() {
779 : // @@protoc_insertion_point(destructor:grpc.testing.StatsRequest)
780 0 : SharedDtor();
781 0 : }
782 :
783 0 : void StatsRequest::SharedDtor() {
784 0 : if (this != default_instance_) {
785 : }
786 0 : }
787 :
788 0 : void StatsRequest::SetCachedSize(int size) const {
789 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
790 0 : _cached_size_ = size;
791 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
792 0 : }
793 0 : const ::google::protobuf::Descriptor* StatsRequest::descriptor() {
794 0 : protobuf_AssignDescriptorsOnce();
795 0 : return StatsRequest_descriptor_;
796 : }
797 :
798 0 : const StatsRequest& StatsRequest::default_instance() {
799 0 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
800 0 : return *default_instance_;
801 : }
802 :
803 : StatsRequest* StatsRequest::default_instance_ = NULL;
804 :
805 0 : StatsRequest* StatsRequest::New(::google::protobuf::Arena* arena) const {
806 0 : StatsRequest* n = new StatsRequest;
807 0 : if (arena != NULL) {
808 0 : arena->Own(n);
809 : }
810 0 : return n;
811 : }
812 :
813 0 : void StatsRequest::Clear() {
814 0 : test_num_ = 0;
815 0 : }
816 :
817 0 : bool StatsRequest::MergePartialFromCodedStream(
818 : ::google::protobuf::io::CodedInputStream* input) {
819 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
820 : ::google::protobuf::uint32 tag;
821 : // @@protoc_insertion_point(parse_start:grpc.testing.StatsRequest)
822 : for (;;) {
823 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
824 0 : tag = p.first;
825 0 : if (!p.second) goto handle_unusual;
826 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
827 : // optional int32 test_num = 1;
828 : case 1: {
829 0 : if (tag == 8) {
830 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
831 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
832 : input, &test_num_)));
833 :
834 : } else {
835 0 : goto handle_unusual;
836 : }
837 0 : if (input->ExpectAtEnd()) goto success;
838 0 : break;
839 : }
840 :
841 : default: {
842 : handle_unusual:
843 0 : if (tag == 0 ||
844 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
845 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
846 0 : goto success;
847 : }
848 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
849 0 : break;
850 : }
851 : }
852 0 : }
853 : success:
854 : // @@protoc_insertion_point(parse_success:grpc.testing.StatsRequest)
855 0 : return true;
856 : failure:
857 : // @@protoc_insertion_point(parse_failure:grpc.testing.StatsRequest)
858 0 : return false;
859 : #undef DO_
860 : }
861 :
862 0 : void StatsRequest::SerializeWithCachedSizes(
863 : ::google::protobuf::io::CodedOutputStream* output) const {
864 : // @@protoc_insertion_point(serialize_start:grpc.testing.StatsRequest)
865 : // optional int32 test_num = 1;
866 0 : if (this->test_num() != 0) {
867 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->test_num(), output);
868 : }
869 :
870 : // @@protoc_insertion_point(serialize_end:grpc.testing.StatsRequest)
871 0 : }
872 :
873 0 : ::google::protobuf::uint8* StatsRequest::SerializeWithCachedSizesToArray(
874 : ::google::protobuf::uint8* target) const {
875 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.StatsRequest)
876 : // optional int32 test_num = 1;
877 0 : if (this->test_num() != 0) {
878 0 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->test_num(), target);
879 : }
880 :
881 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.StatsRequest)
882 0 : return target;
883 : }
884 :
885 0 : int StatsRequest::ByteSize() const {
886 0 : int total_size = 0;
887 :
888 : // optional int32 test_num = 1;
889 0 : if (this->test_num() != 0) {
890 : total_size += 1 +
891 : ::google::protobuf::internal::WireFormatLite::Int32Size(
892 0 : this->test_num());
893 : }
894 :
895 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
896 0 : _cached_size_ = total_size;
897 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
898 0 : return total_size;
899 : }
900 :
901 0 : void StatsRequest::MergeFrom(const ::google::protobuf::Message& from) {
902 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
903 : const StatsRequest* source =
904 : ::google::protobuf::internal::DynamicCastToGenerated<const StatsRequest>(
905 0 : &from);
906 0 : if (source == NULL) {
907 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
908 : } else {
909 0 : MergeFrom(*source);
910 : }
911 0 : }
912 :
913 0 : void StatsRequest::MergeFrom(const StatsRequest& from) {
914 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
915 0 : if (from.test_num() != 0) {
916 0 : set_test_num(from.test_num());
917 : }
918 0 : }
919 :
920 0 : void StatsRequest::CopyFrom(const ::google::protobuf::Message& from) {
921 0 : if (&from == this) return;
922 0 : Clear();
923 0 : MergeFrom(from);
924 : }
925 :
926 0 : void StatsRequest::CopyFrom(const StatsRequest& from) {
927 0 : if (&from == this) return;
928 0 : Clear();
929 0 : MergeFrom(from);
930 : }
931 :
932 0 : bool StatsRequest::IsInitialized() const {
933 :
934 0 : return true;
935 : }
936 :
937 0 : void StatsRequest::Swap(StatsRequest* other) {
938 0 : if (other == this) return;
939 0 : InternalSwap(other);
940 : }
941 0 : void StatsRequest::InternalSwap(StatsRequest* other) {
942 0 : std::swap(test_num_, other->test_num_);
943 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
944 0 : std::swap(_cached_size_, other->_cached_size_);
945 0 : }
946 :
947 0 : ::google::protobuf::Metadata StatsRequest::GetMetadata() const {
948 0 : protobuf_AssignDescriptorsOnce();
949 : ::google::protobuf::Metadata metadata;
950 0 : metadata.descriptor = StatsRequest_descriptor_;
951 0 : metadata.reflection = StatsRequest_reflection_;
952 0 : return metadata;
953 : }
954 :
955 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
956 : // StatsRequest
957 :
958 : // optional int32 test_num = 1;
959 : void StatsRequest::clear_test_num() {
960 : test_num_ = 0;
961 : }
962 : ::google::protobuf::int32 StatsRequest::test_num() const {
963 : // @@protoc_insertion_point(field_get:grpc.testing.StatsRequest.test_num)
964 : return test_num_;
965 : }
966 : void StatsRequest::set_test_num(::google::protobuf::int32 value) {
967 :
968 : test_num_ = value;
969 : // @@protoc_insertion_point(field_set:grpc.testing.StatsRequest.test_num)
970 : }
971 :
972 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
973 :
974 : // ===================================================================
975 :
976 : #ifndef _MSC_VER
977 : const int ServerStats::kTimeElapsedFieldNumber;
978 : const int ServerStats::kTimeUserFieldNumber;
979 : const int ServerStats::kTimeSystemFieldNumber;
980 : #endif // !_MSC_VER
981 :
982 36 : ServerStats::ServerStats()
983 36 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
984 36 : SharedCtor();
985 : // @@protoc_insertion_point(constructor:grpc.testing.ServerStats)
986 36 : }
987 :
988 6 : void ServerStats::InitAsDefaultInstance() {
989 6 : _is_default_instance_ = true;
990 6 : }
991 :
992 0 : ServerStats::ServerStats(const ServerStats& from)
993 : : ::google::protobuf::Message(),
994 0 : _internal_metadata_(NULL) {
995 0 : SharedCtor();
996 0 : MergeFrom(from);
997 : // @@protoc_insertion_point(copy_constructor:grpc.testing.ServerStats)
998 0 : }
999 :
1000 36 : void ServerStats::SharedCtor() {
1001 36 : _is_default_instance_ = false;
1002 36 : _cached_size_ = 0;
1003 36 : time_elapsed_ = 0;
1004 36 : time_user_ = 0;
1005 36 : time_system_ = 0;
1006 36 : }
1007 :
1008 78 : ServerStats::~ServerStats() {
1009 : // @@protoc_insertion_point(destructor:grpc.testing.ServerStats)
1010 30 : SharedDtor();
1011 48 : }
1012 :
1013 30 : void ServerStats::SharedDtor() {
1014 30 : if (this != default_instance_) {
1015 : }
1016 30 : }
1017 :
1018 0 : void ServerStats::SetCachedSize(int size) const {
1019 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1020 0 : _cached_size_ = size;
1021 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1022 0 : }
1023 0 : const ::google::protobuf::Descriptor* ServerStats::descriptor() {
1024 0 : protobuf_AssignDescriptorsOnce();
1025 0 : return ServerStats_descriptor_;
1026 : }
1027 :
1028 6 : const ServerStats& ServerStats::default_instance() {
1029 6 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
1030 6 : return *default_instance_;
1031 : }
1032 :
1033 : ServerStats* ServerStats::default_instance_ = NULL;
1034 :
1035 0 : ServerStats* ServerStats::New(::google::protobuf::Arena* arena) const {
1036 0 : ServerStats* n = new ServerStats;
1037 0 : if (arena != NULL) {
1038 0 : arena->Own(n);
1039 : }
1040 0 : return n;
1041 : }
1042 :
1043 12 : void ServerStats::Clear() {
1044 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
1045 : &reinterpret_cast<ServerStats*>(16)->f)
1046 :
1047 : #define ZR_(first, last) do {\
1048 : ::memset(&first, 0,\
1049 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
1050 : } while (0)
1051 :
1052 12 : ZR_(time_elapsed_, time_system_);
1053 :
1054 : #undef ZR_HELPER_
1055 : #undef ZR_
1056 :
1057 12 : }
1058 :
1059 12 : bool ServerStats::MergePartialFromCodedStream(
1060 : ::google::protobuf::io::CodedInputStream* input) {
1061 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1062 : ::google::protobuf::uint32 tag;
1063 : // @@protoc_insertion_point(parse_start:grpc.testing.ServerStats)
1064 : for (;;) {
1065 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1066 12 : tag = p.first;
1067 12 : if (!p.second) goto handle_unusual;
1068 12 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1069 : // optional double time_elapsed = 1;
1070 : case 1: {
1071 12 : if (tag == 9) {
1072 24 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1073 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1074 : input, &time_elapsed_)));
1075 :
1076 : } else {
1077 0 : goto handle_unusual;
1078 : }
1079 12 : if (input->ExpectTag(17)) goto parse_time_user;
1080 0 : break;
1081 : }
1082 :
1083 : // optional double time_user = 2;
1084 : case 2: {
1085 0 : if (tag == 17) {
1086 : parse_time_user:
1087 24 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1088 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1089 : input, &time_user_)));
1090 :
1091 : } else {
1092 0 : goto handle_unusual;
1093 : }
1094 12 : if (input->ExpectTag(25)) goto parse_time_system;
1095 0 : break;
1096 : }
1097 :
1098 : // optional double time_system = 3;
1099 : case 3: {
1100 0 : if (tag == 25) {
1101 : parse_time_system:
1102 24 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1103 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1104 : input, &time_system_)));
1105 :
1106 : } else {
1107 0 : goto handle_unusual;
1108 : }
1109 24 : if (input->ExpectAtEnd()) goto success;
1110 0 : break;
1111 : }
1112 :
1113 : default: {
1114 : handle_unusual:
1115 0 : if (tag == 0 ||
1116 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1117 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1118 0 : goto success;
1119 : }
1120 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
1121 0 : break;
1122 : }
1123 : }
1124 0 : }
1125 : success:
1126 : // @@protoc_insertion_point(parse_success:grpc.testing.ServerStats)
1127 12 : return true;
1128 : failure:
1129 : // @@protoc_insertion_point(parse_failure:grpc.testing.ServerStats)
1130 0 : return false;
1131 : #undef DO_
1132 : }
1133 :
1134 0 : void ServerStats::SerializeWithCachedSizes(
1135 : ::google::protobuf::io::CodedOutputStream* output) const {
1136 : // @@protoc_insertion_point(serialize_start:grpc.testing.ServerStats)
1137 : // optional double time_elapsed = 1;
1138 0 : if (this->time_elapsed() != 0) {
1139 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->time_elapsed(), output);
1140 : }
1141 :
1142 : // optional double time_user = 2;
1143 0 : if (this->time_user() != 0) {
1144 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->time_user(), output);
1145 : }
1146 :
1147 : // optional double time_system = 3;
1148 0 : if (this->time_system() != 0) {
1149 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->time_system(), output);
1150 : }
1151 :
1152 : // @@protoc_insertion_point(serialize_end:grpc.testing.ServerStats)
1153 0 : }
1154 :
1155 12 : ::google::protobuf::uint8* ServerStats::SerializeWithCachedSizesToArray(
1156 : ::google::protobuf::uint8* target) const {
1157 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.ServerStats)
1158 : // optional double time_elapsed = 1;
1159 12 : if (this->time_elapsed() != 0) {
1160 24 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->time_elapsed(), target);
1161 : }
1162 :
1163 : // optional double time_user = 2;
1164 12 : if (this->time_user() != 0) {
1165 24 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->time_user(), target);
1166 : }
1167 :
1168 : // optional double time_system = 3;
1169 12 : if (this->time_system() != 0) {
1170 24 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->time_system(), target);
1171 : }
1172 :
1173 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.ServerStats)
1174 12 : return target;
1175 : }
1176 :
1177 12 : int ServerStats::ByteSize() const {
1178 12 : int total_size = 0;
1179 :
1180 : // optional double time_elapsed = 1;
1181 12 : if (this->time_elapsed() != 0) {
1182 12 : total_size += 1 + 8;
1183 : }
1184 :
1185 : // optional double time_user = 2;
1186 12 : if (this->time_user() != 0) {
1187 12 : total_size += 1 + 8;
1188 : }
1189 :
1190 : // optional double time_system = 3;
1191 12 : if (this->time_system() != 0) {
1192 12 : total_size += 1 + 8;
1193 : }
1194 :
1195 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1196 12 : _cached_size_ = total_size;
1197 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1198 12 : return total_size;
1199 : }
1200 :
1201 0 : void ServerStats::MergeFrom(const ::google::protobuf::Message& from) {
1202 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1203 : const ServerStats* source =
1204 : ::google::protobuf::internal::DynamicCastToGenerated<const ServerStats>(
1205 0 : &from);
1206 0 : if (source == NULL) {
1207 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1208 : } else {
1209 0 : MergeFrom(*source);
1210 : }
1211 0 : }
1212 :
1213 12 : void ServerStats::MergeFrom(const ServerStats& from) {
1214 12 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1215 12 : if (from.time_elapsed() != 0) {
1216 12 : set_time_elapsed(from.time_elapsed());
1217 : }
1218 12 : if (from.time_user() != 0) {
1219 12 : set_time_user(from.time_user());
1220 : }
1221 12 : if (from.time_system() != 0) {
1222 12 : set_time_system(from.time_system());
1223 : }
1224 12 : }
1225 :
1226 0 : void ServerStats::CopyFrom(const ::google::protobuf::Message& from) {
1227 0 : if (&from == this) return;
1228 0 : Clear();
1229 0 : MergeFrom(from);
1230 : }
1231 :
1232 12 : void ServerStats::CopyFrom(const ServerStats& from) {
1233 24 : if (&from == this) return;
1234 12 : Clear();
1235 12 : MergeFrom(from);
1236 : }
1237 :
1238 0 : bool ServerStats::IsInitialized() const {
1239 :
1240 0 : return true;
1241 : }
1242 :
1243 0 : void ServerStats::Swap(ServerStats* other) {
1244 0 : if (other == this) return;
1245 0 : InternalSwap(other);
1246 : }
1247 0 : void ServerStats::InternalSwap(ServerStats* other) {
1248 0 : std::swap(time_elapsed_, other->time_elapsed_);
1249 0 : std::swap(time_user_, other->time_user_);
1250 0 : std::swap(time_system_, other->time_system_);
1251 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
1252 0 : std::swap(_cached_size_, other->_cached_size_);
1253 0 : }
1254 :
1255 0 : ::google::protobuf::Metadata ServerStats::GetMetadata() const {
1256 0 : protobuf_AssignDescriptorsOnce();
1257 : ::google::protobuf::Metadata metadata;
1258 0 : metadata.descriptor = ServerStats_descriptor_;
1259 0 : metadata.reflection = ServerStats_reflection_;
1260 0 : return metadata;
1261 : }
1262 :
1263 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
1264 : // ServerStats
1265 :
1266 : // optional double time_elapsed = 1;
1267 : void ServerStats::clear_time_elapsed() {
1268 : time_elapsed_ = 0;
1269 : }
1270 : double ServerStats::time_elapsed() const {
1271 : // @@protoc_insertion_point(field_get:grpc.testing.ServerStats.time_elapsed)
1272 : return time_elapsed_;
1273 : }
1274 : void ServerStats::set_time_elapsed(double value) {
1275 :
1276 : time_elapsed_ = value;
1277 : // @@protoc_insertion_point(field_set:grpc.testing.ServerStats.time_elapsed)
1278 : }
1279 :
1280 : // optional double time_user = 2;
1281 : void ServerStats::clear_time_user() {
1282 : time_user_ = 0;
1283 : }
1284 : double ServerStats::time_user() const {
1285 : // @@protoc_insertion_point(field_get:grpc.testing.ServerStats.time_user)
1286 : return time_user_;
1287 : }
1288 : void ServerStats::set_time_user(double value) {
1289 :
1290 : time_user_ = value;
1291 : // @@protoc_insertion_point(field_set:grpc.testing.ServerStats.time_user)
1292 : }
1293 :
1294 : // optional double time_system = 3;
1295 : void ServerStats::clear_time_system() {
1296 : time_system_ = 0;
1297 : }
1298 : double ServerStats::time_system() const {
1299 : // @@protoc_insertion_point(field_get:grpc.testing.ServerStats.time_system)
1300 : return time_system_;
1301 : }
1302 : void ServerStats::set_time_system(double value) {
1303 :
1304 : time_system_ = value;
1305 : // @@protoc_insertion_point(field_set:grpc.testing.ServerStats.time_system)
1306 : }
1307 :
1308 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1309 :
1310 : // ===================================================================
1311 :
1312 : #ifndef _MSC_VER
1313 : const int Payload::kTypeFieldNumber;
1314 : const int Payload::kBodyFieldNumber;
1315 : #endif // !_MSC_VER
1316 :
1317 2554398 : Payload::Payload()
1318 2554398 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1319 2554673 : SharedCtor();
1320 : // @@protoc_insertion_point(constructor:grpc.testing.Payload)
1321 2553391 : }
1322 :
1323 6 : void Payload::InitAsDefaultInstance() {
1324 6 : _is_default_instance_ = true;
1325 6 : }
1326 :
1327 0 : Payload::Payload(const Payload& from)
1328 : : ::google::protobuf::Message(),
1329 0 : _internal_metadata_(NULL) {
1330 0 : SharedCtor();
1331 0 : MergeFrom(from);
1332 : // @@protoc_insertion_point(copy_constructor:grpc.testing.Payload)
1333 0 : }
1334 :
1335 2552694 : void Payload::SharedCtor() {
1336 2552694 : _is_default_instance_ = false;
1337 2552694 : ::google::protobuf::internal::GetEmptyString();
1338 2554624 : _cached_size_ = 0;
1339 2554624 : type_ = 0;
1340 2554624 : body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1341 2554392 : }
1342 :
1343 7662406 : Payload::~Payload() {
1344 : // @@protoc_insertion_point(destructor:grpc.testing.Payload)
1345 2553594 : SharedDtor();
1346 5108235 : }
1347 :
1348 2553016 : void Payload::SharedDtor() {
1349 2553016 : body_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1350 2555525 : if (this != default_instance_) {
1351 : }
1352 2555525 : }
1353 :
1354 0 : void Payload::SetCachedSize(int size) const {
1355 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1356 0 : _cached_size_ = size;
1357 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1358 0 : }
1359 0 : const ::google::protobuf::Descriptor* Payload::descriptor() {
1360 0 : protobuf_AssignDescriptorsOnce();
1361 0 : return Payload_descriptor_;
1362 : }
1363 :
1364 12 : const Payload& Payload::default_instance() {
1365 12 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
1366 12 : return *default_instance_;
1367 : }
1368 :
1369 : Payload* Payload::default_instance_ = NULL;
1370 :
1371 0 : Payload* Payload::New(::google::protobuf::Arena* arena) const {
1372 0 : Payload* n = new Payload;
1373 0 : if (arena != NULL) {
1374 0 : arena->Own(n);
1375 : }
1376 0 : return n;
1377 : }
1378 :
1379 0 : void Payload::Clear() {
1380 0 : type_ = 0;
1381 0 : body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1382 0 : }
1383 :
1384 1276800 : bool Payload::MergePartialFromCodedStream(
1385 : ::google::protobuf::io::CodedInputStream* input) {
1386 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1387 : ::google::protobuf::uint32 tag;
1388 : // @@protoc_insertion_point(parse_start:grpc.testing.Payload)
1389 : for (;;) {
1390 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1391 1277319 : tag = p.first;
1392 1276830 : if (!p.second) goto handle_unusual;
1393 1277808 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1394 : // optional .grpc.testing.PayloadType type = 1;
1395 : case 1: {
1396 0 : if (tag == 8) {
1397 : int value;
1398 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1399 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1400 : input, &value)));
1401 0 : set_type(static_cast< ::grpc::testing::PayloadType >(value));
1402 : } else {
1403 0 : goto handle_unusual;
1404 : }
1405 0 : if (input->ExpectTag(18)) goto parse_body;
1406 0 : break;
1407 : }
1408 :
1409 : // optional bytes body = 2;
1410 : case 2: {
1411 1277547 : if (tag == 18) {
1412 : parse_body:
1413 1277547 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1414 : input, this->mutable_body()));
1415 : } else {
1416 0 : goto handle_unusual;
1417 : }
1418 2555567 : if (input->ExpectAtEnd()) goto success;
1419 0 : break;
1420 : }
1421 :
1422 : default: {
1423 : handle_unusual:
1424 0 : if (tag == 0 ||
1425 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1426 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1427 0 : goto success;
1428 : }
1429 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
1430 0 : break;
1431 : }
1432 : }
1433 0 : }
1434 : success:
1435 : // @@protoc_insertion_point(parse_success:grpc.testing.Payload)
1436 1277760 : return true;
1437 : failure:
1438 : // @@protoc_insertion_point(parse_failure:grpc.testing.Payload)
1439 0 : return false;
1440 : #undef DO_
1441 : }
1442 :
1443 0 : void Payload::SerializeWithCachedSizes(
1444 : ::google::protobuf::io::CodedOutputStream* output) const {
1445 : // @@protoc_insertion_point(serialize_start:grpc.testing.Payload)
1446 : // optional .grpc.testing.PayloadType type = 1;
1447 0 : if (this->type() != 0) {
1448 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
1449 0 : 1, this->type(), output);
1450 : }
1451 :
1452 : // optional bytes body = 2;
1453 0 : if (this->body().size() > 0) {
1454 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1455 0 : 2, this->body(), output);
1456 : }
1457 :
1458 : // @@protoc_insertion_point(serialize_end:grpc.testing.Payload)
1459 0 : }
1460 :
1461 1278022 : ::google::protobuf::uint8* Payload::SerializeWithCachedSizesToArray(
1462 : ::google::protobuf::uint8* target) const {
1463 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.Payload)
1464 : // optional .grpc.testing.PayloadType type = 1;
1465 1278022 : if (this->type() != 0) {
1466 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1467 0 : 1, this->type(), target);
1468 : }
1469 :
1470 : // optional bytes body = 2;
1471 1278026 : if (this->body().size() > 0) {
1472 : target =
1473 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1474 2555791 : 2, this->body(), target);
1475 : }
1476 :
1477 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.Payload)
1478 1277787 : return target;
1479 : }
1480 :
1481 1277296 : int Payload::ByteSize() const {
1482 1277296 : int total_size = 0;
1483 :
1484 : // optional .grpc.testing.PayloadType type = 1;
1485 1277296 : if (this->type() != 0) {
1486 : total_size += 1 +
1487 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
1488 : }
1489 :
1490 : // optional bytes body = 2;
1491 1277744 : if (this->body().size() > 0) {
1492 : total_size += 1 +
1493 : ::google::protobuf::internal::WireFormatLite::BytesSize(
1494 1277889 : this->body());
1495 : }
1496 :
1497 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1498 1277493 : _cached_size_ = total_size;
1499 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1500 1277493 : return total_size;
1501 : }
1502 :
1503 0 : void Payload::MergeFrom(const ::google::protobuf::Message& from) {
1504 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1505 : const Payload* source =
1506 : ::google::protobuf::internal::DynamicCastToGenerated<const Payload>(
1507 0 : &from);
1508 0 : if (source == NULL) {
1509 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1510 : } else {
1511 0 : MergeFrom(*source);
1512 : }
1513 0 : }
1514 :
1515 0 : void Payload::MergeFrom(const Payload& from) {
1516 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1517 0 : if (from.type() != 0) {
1518 0 : set_type(from.type());
1519 : }
1520 0 : if (from.body().size() > 0) {
1521 :
1522 0 : body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.body_);
1523 : }
1524 0 : }
1525 :
1526 0 : void Payload::CopyFrom(const ::google::protobuf::Message& from) {
1527 0 : if (&from == this) return;
1528 0 : Clear();
1529 0 : MergeFrom(from);
1530 : }
1531 :
1532 0 : void Payload::CopyFrom(const Payload& from) {
1533 0 : if (&from == this) return;
1534 0 : Clear();
1535 0 : MergeFrom(from);
1536 : }
1537 :
1538 0 : bool Payload::IsInitialized() const {
1539 :
1540 0 : return true;
1541 : }
1542 :
1543 0 : void Payload::Swap(Payload* other) {
1544 0 : if (other == this) return;
1545 0 : InternalSwap(other);
1546 : }
1547 0 : void Payload::InternalSwap(Payload* other) {
1548 0 : std::swap(type_, other->type_);
1549 0 : body_.Swap(&other->body_);
1550 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
1551 0 : std::swap(_cached_size_, other->_cached_size_);
1552 0 : }
1553 :
1554 0 : ::google::protobuf::Metadata Payload::GetMetadata() const {
1555 0 : protobuf_AssignDescriptorsOnce();
1556 : ::google::protobuf::Metadata metadata;
1557 0 : metadata.descriptor = Payload_descriptor_;
1558 0 : metadata.reflection = Payload_reflection_;
1559 0 : return metadata;
1560 : }
1561 :
1562 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
1563 : // Payload
1564 :
1565 : // optional .grpc.testing.PayloadType type = 1;
1566 : void Payload::clear_type() {
1567 : type_ = 0;
1568 : }
1569 : ::grpc::testing::PayloadType Payload::type() const {
1570 : // @@protoc_insertion_point(field_get:grpc.testing.Payload.type)
1571 : return static_cast< ::grpc::testing::PayloadType >(type_);
1572 : }
1573 : void Payload::set_type(::grpc::testing::PayloadType value) {
1574 :
1575 : type_ = value;
1576 : // @@protoc_insertion_point(field_set:grpc.testing.Payload.type)
1577 : }
1578 :
1579 : // optional bytes body = 2;
1580 : void Payload::clear_body() {
1581 : body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1582 : }
1583 : const ::std::string& Payload::body() const {
1584 : // @@protoc_insertion_point(field_get:grpc.testing.Payload.body)
1585 : return body_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1586 : }
1587 : void Payload::set_body(const ::std::string& value) {
1588 :
1589 : body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1590 : // @@protoc_insertion_point(field_set:grpc.testing.Payload.body)
1591 : }
1592 : void Payload::set_body(const char* value) {
1593 :
1594 : body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1595 : // @@protoc_insertion_point(field_set_char:grpc.testing.Payload.body)
1596 : }
1597 : void Payload::set_body(const void* value, size_t size) {
1598 :
1599 : body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1600 : ::std::string(reinterpret_cast<const char*>(value), size));
1601 : // @@protoc_insertion_point(field_set_pointer:grpc.testing.Payload.body)
1602 : }
1603 : ::std::string* Payload::mutable_body() {
1604 :
1605 : // @@protoc_insertion_point(field_mutable:grpc.testing.Payload.body)
1606 : return body_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1607 : }
1608 : ::std::string* Payload::release_body() {
1609 :
1610 : return body_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1611 : }
1612 : void Payload::set_allocated_body(::std::string* body) {
1613 : if (body != NULL) {
1614 :
1615 : } else {
1616 :
1617 : }
1618 : body_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body);
1619 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.Payload.body)
1620 : }
1621 :
1622 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1623 :
1624 : // ===================================================================
1625 :
1626 : #ifndef _MSC_VER
1627 : const int HistogramData::kBucketFieldNumber;
1628 : const int HistogramData::kMinSeenFieldNumber;
1629 : const int HistogramData::kMaxSeenFieldNumber;
1630 : const int HistogramData::kSumFieldNumber;
1631 : const int HistogramData::kSumOfSquaresFieldNumber;
1632 : const int HistogramData::kCountFieldNumber;
1633 : #endif // !_MSC_VER
1634 :
1635 42 : HistogramData::HistogramData()
1636 42 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1637 42 : SharedCtor();
1638 : // @@protoc_insertion_point(constructor:grpc.testing.HistogramData)
1639 42 : }
1640 :
1641 6 : void HistogramData::InitAsDefaultInstance() {
1642 6 : _is_default_instance_ = true;
1643 6 : }
1644 :
1645 0 : HistogramData::HistogramData(const HistogramData& from)
1646 : : ::google::protobuf::Message(),
1647 0 : _internal_metadata_(NULL) {
1648 0 : SharedCtor();
1649 0 : MergeFrom(from);
1650 : // @@protoc_insertion_point(copy_constructor:grpc.testing.HistogramData)
1651 0 : }
1652 :
1653 42 : void HistogramData::SharedCtor() {
1654 42 : _is_default_instance_ = false;
1655 42 : _cached_size_ = 0;
1656 42 : min_seen_ = 0;
1657 42 : max_seen_ = 0;
1658 42 : sum_ = 0;
1659 42 : sum_of_squares_ = 0;
1660 42 : count_ = 0;
1661 42 : }
1662 :
1663 108 : HistogramData::~HistogramData() {
1664 : // @@protoc_insertion_point(destructor:grpc.testing.HistogramData)
1665 36 : SharedDtor();
1666 72 : }
1667 :
1668 36 : void HistogramData::SharedDtor() {
1669 36 : if (this != default_instance_) {
1670 : }
1671 36 : }
1672 :
1673 0 : void HistogramData::SetCachedSize(int size) const {
1674 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1675 0 : _cached_size_ = size;
1676 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1677 0 : }
1678 0 : const ::google::protobuf::Descriptor* HistogramData::descriptor() {
1679 0 : protobuf_AssignDescriptorsOnce();
1680 0 : return HistogramData_descriptor_;
1681 : }
1682 :
1683 6 : const HistogramData& HistogramData::default_instance() {
1684 6 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
1685 6 : return *default_instance_;
1686 : }
1687 :
1688 : HistogramData* HistogramData::default_instance_ = NULL;
1689 :
1690 0 : HistogramData* HistogramData::New(::google::protobuf::Arena* arena) const {
1691 0 : HistogramData* n = new HistogramData;
1692 0 : if (arena != NULL) {
1693 0 : arena->Own(n);
1694 : }
1695 0 : return n;
1696 : }
1697 :
1698 0 : void HistogramData::Clear() {
1699 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
1700 : &reinterpret_cast<HistogramData*>(16)->f)
1701 :
1702 : #define ZR_(first, last) do {\
1703 : ::memset(&first, 0,\
1704 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
1705 : } while (0)
1706 :
1707 0 : ZR_(min_seen_, count_);
1708 :
1709 : #undef ZR_HELPER_
1710 : #undef ZR_
1711 :
1712 0 : bucket_.Clear();
1713 0 : }
1714 :
1715 12 : bool HistogramData::MergePartialFromCodedStream(
1716 : ::google::protobuf::io::CodedInputStream* input) {
1717 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1718 : ::google::protobuf::uint32 tag;
1719 : // @@protoc_insertion_point(parse_start:grpc.testing.HistogramData)
1720 : for (;;) {
1721 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1722 12 : tag = p.first;
1723 12 : if (!p.second) goto handle_unusual;
1724 12 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1725 : // repeated uint32 bucket = 1;
1726 : case 1: {
1727 12 : if (tag == 10) {
1728 24 : DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
1729 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1730 : input, this->mutable_bucket())));
1731 0 : } else if (tag == 8) {
1732 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
1733 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1734 : 1, 10, input, this->mutable_bucket())));
1735 : } else {
1736 0 : goto handle_unusual;
1737 : }
1738 12 : if (input->ExpectTag(17)) goto parse_min_seen;
1739 0 : break;
1740 : }
1741 :
1742 : // optional double min_seen = 2;
1743 : case 2: {
1744 0 : if (tag == 17) {
1745 : parse_min_seen:
1746 24 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1747 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1748 : input, &min_seen_)));
1749 :
1750 : } else {
1751 0 : goto handle_unusual;
1752 : }
1753 12 : if (input->ExpectTag(25)) goto parse_max_seen;
1754 0 : break;
1755 : }
1756 :
1757 : // optional double max_seen = 3;
1758 : case 3: {
1759 0 : if (tag == 25) {
1760 : parse_max_seen:
1761 24 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1762 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1763 : input, &max_seen_)));
1764 :
1765 : } else {
1766 0 : goto handle_unusual;
1767 : }
1768 12 : if (input->ExpectTag(33)) goto parse_sum;
1769 0 : break;
1770 : }
1771 :
1772 : // optional double sum = 4;
1773 : case 4: {
1774 0 : if (tag == 33) {
1775 : parse_sum:
1776 24 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1777 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1778 : input, &sum_)));
1779 :
1780 : } else {
1781 0 : goto handle_unusual;
1782 : }
1783 12 : if (input->ExpectTag(41)) goto parse_sum_of_squares;
1784 0 : break;
1785 : }
1786 :
1787 : // optional double sum_of_squares = 5;
1788 : case 5: {
1789 0 : if (tag == 41) {
1790 : parse_sum_of_squares:
1791 24 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1792 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1793 : input, &sum_of_squares_)));
1794 :
1795 : } else {
1796 0 : goto handle_unusual;
1797 : }
1798 12 : if (input->ExpectTag(49)) goto parse_count;
1799 0 : break;
1800 : }
1801 :
1802 : // optional double count = 6;
1803 : case 6: {
1804 0 : if (tag == 49) {
1805 : parse_count:
1806 24 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1807 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1808 : input, &count_)));
1809 :
1810 : } else {
1811 0 : goto handle_unusual;
1812 : }
1813 24 : if (input->ExpectAtEnd()) goto success;
1814 0 : break;
1815 : }
1816 :
1817 : default: {
1818 : handle_unusual:
1819 0 : if (tag == 0 ||
1820 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1821 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1822 0 : goto success;
1823 : }
1824 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
1825 0 : break;
1826 : }
1827 : }
1828 0 : }
1829 : success:
1830 : // @@protoc_insertion_point(parse_success:grpc.testing.HistogramData)
1831 12 : return true;
1832 : failure:
1833 : // @@protoc_insertion_point(parse_failure:grpc.testing.HistogramData)
1834 0 : return false;
1835 : #undef DO_
1836 : }
1837 :
1838 0 : void HistogramData::SerializeWithCachedSizes(
1839 : ::google::protobuf::io::CodedOutputStream* output) const {
1840 : // @@protoc_insertion_point(serialize_start:grpc.testing.HistogramData)
1841 : // repeated uint32 bucket = 1;
1842 0 : if (this->bucket_size() > 0) {
1843 : ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
1844 0 : output->WriteVarint32(_bucket_cached_byte_size_);
1845 : }
1846 0 : for (int i = 0; i < this->bucket_size(); i++) {
1847 : ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
1848 0 : this->bucket(i), output);
1849 : }
1850 :
1851 : // optional double min_seen = 2;
1852 0 : if (this->min_seen() != 0) {
1853 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->min_seen(), output);
1854 : }
1855 :
1856 : // optional double max_seen = 3;
1857 0 : if (this->max_seen() != 0) {
1858 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->max_seen(), output);
1859 : }
1860 :
1861 : // optional double sum = 4;
1862 0 : if (this->sum() != 0) {
1863 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->sum(), output);
1864 : }
1865 :
1866 : // optional double sum_of_squares = 5;
1867 0 : if (this->sum_of_squares() != 0) {
1868 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->sum_of_squares(), output);
1869 : }
1870 :
1871 : // optional double count = 6;
1872 0 : if (this->count() != 0) {
1873 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->count(), output);
1874 : }
1875 :
1876 : // @@protoc_insertion_point(serialize_end:grpc.testing.HistogramData)
1877 0 : }
1878 :
1879 12 : ::google::protobuf::uint8* HistogramData::SerializeWithCachedSizesToArray(
1880 : ::google::protobuf::uint8* target) const {
1881 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.HistogramData)
1882 : // repeated uint32 bucket = 1;
1883 12 : if (this->bucket_size() > 0) {
1884 : target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1885 : 1,
1886 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
1887 12 : target);
1888 : target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
1889 12 : _bucket_cached_byte_size_, target);
1890 : }
1891 29952 : for (int i = 0; i < this->bucket_size(); i++) {
1892 : target = ::google::protobuf::internal::WireFormatLite::
1893 59880 : WriteUInt32NoTagToArray(this->bucket(i), target);
1894 : }
1895 :
1896 : // optional double min_seen = 2;
1897 12 : if (this->min_seen() != 0) {
1898 24 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->min_seen(), target);
1899 : }
1900 :
1901 : // optional double max_seen = 3;
1902 12 : if (this->max_seen() != 0) {
1903 24 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->max_seen(), target);
1904 : }
1905 :
1906 : // optional double sum = 4;
1907 12 : if (this->sum() != 0) {
1908 24 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->sum(), target);
1909 : }
1910 :
1911 : // optional double sum_of_squares = 5;
1912 12 : if (this->sum_of_squares() != 0) {
1913 24 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->sum_of_squares(), target);
1914 : }
1915 :
1916 : // optional double count = 6;
1917 12 : if (this->count() != 0) {
1918 24 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->count(), target);
1919 : }
1920 :
1921 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.HistogramData)
1922 12 : return target;
1923 : }
1924 :
1925 12 : int HistogramData::ByteSize() const {
1926 12 : int total_size = 0;
1927 :
1928 : // optional double min_seen = 2;
1929 12 : if (this->min_seen() != 0) {
1930 12 : total_size += 1 + 8;
1931 : }
1932 :
1933 : // optional double max_seen = 3;
1934 12 : if (this->max_seen() != 0) {
1935 12 : total_size += 1 + 8;
1936 : }
1937 :
1938 : // optional double sum = 4;
1939 12 : if (this->sum() != 0) {
1940 12 : total_size += 1 + 8;
1941 : }
1942 :
1943 : // optional double sum_of_squares = 5;
1944 12 : if (this->sum_of_squares() != 0) {
1945 12 : total_size += 1 + 8;
1946 : }
1947 :
1948 : // optional double count = 6;
1949 12 : if (this->count() != 0) {
1950 12 : total_size += 1 + 8;
1951 : }
1952 :
1953 : // repeated uint32 bucket = 1;
1954 : {
1955 12 : int data_size = 0;
1956 29952 : for (int i = 0; i < this->bucket_size(); i++) {
1957 : data_size += ::google::protobuf::internal::WireFormatLite::
1958 29940 : UInt32Size(this->bucket(i));
1959 : }
1960 12 : if (data_size > 0) {
1961 : total_size += 1 +
1962 12 : ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
1963 : }
1964 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1965 12 : _bucket_cached_byte_size_ = data_size;
1966 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1967 12 : total_size += data_size;
1968 : }
1969 :
1970 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1971 12 : _cached_size_ = total_size;
1972 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1973 12 : return total_size;
1974 : }
1975 :
1976 0 : void HistogramData::MergeFrom(const ::google::protobuf::Message& from) {
1977 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1978 : const HistogramData* source =
1979 : ::google::protobuf::internal::DynamicCastToGenerated<const HistogramData>(
1980 0 : &from);
1981 0 : if (source == NULL) {
1982 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1983 : } else {
1984 0 : MergeFrom(*source);
1985 : }
1986 0 : }
1987 :
1988 12 : void HistogramData::MergeFrom(const HistogramData& from) {
1989 12 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1990 12 : bucket_.MergeFrom(from.bucket_);
1991 12 : if (from.min_seen() != 0) {
1992 12 : set_min_seen(from.min_seen());
1993 : }
1994 12 : if (from.max_seen() != 0) {
1995 12 : set_max_seen(from.max_seen());
1996 : }
1997 12 : if (from.sum() != 0) {
1998 12 : set_sum(from.sum());
1999 : }
2000 12 : if (from.sum_of_squares() != 0) {
2001 12 : set_sum_of_squares(from.sum_of_squares());
2002 : }
2003 12 : if (from.count() != 0) {
2004 12 : set_count(from.count());
2005 : }
2006 12 : }
2007 :
2008 0 : void HistogramData::CopyFrom(const ::google::protobuf::Message& from) {
2009 0 : if (&from == this) return;
2010 0 : Clear();
2011 0 : MergeFrom(from);
2012 : }
2013 :
2014 0 : void HistogramData::CopyFrom(const HistogramData& from) {
2015 0 : if (&from == this) return;
2016 0 : Clear();
2017 0 : MergeFrom(from);
2018 : }
2019 :
2020 0 : bool HistogramData::IsInitialized() const {
2021 :
2022 0 : return true;
2023 : }
2024 :
2025 0 : void HistogramData::Swap(HistogramData* other) {
2026 0 : if (other == this) return;
2027 0 : InternalSwap(other);
2028 : }
2029 0 : void HistogramData::InternalSwap(HistogramData* other) {
2030 0 : bucket_.UnsafeArenaSwap(&other->bucket_);
2031 0 : std::swap(min_seen_, other->min_seen_);
2032 0 : std::swap(max_seen_, other->max_seen_);
2033 0 : std::swap(sum_, other->sum_);
2034 0 : std::swap(sum_of_squares_, other->sum_of_squares_);
2035 0 : std::swap(count_, other->count_);
2036 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
2037 0 : std::swap(_cached_size_, other->_cached_size_);
2038 0 : }
2039 :
2040 0 : ::google::protobuf::Metadata HistogramData::GetMetadata() const {
2041 0 : protobuf_AssignDescriptorsOnce();
2042 : ::google::protobuf::Metadata metadata;
2043 0 : metadata.descriptor = HistogramData_descriptor_;
2044 0 : metadata.reflection = HistogramData_reflection_;
2045 0 : return metadata;
2046 : }
2047 :
2048 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
2049 : // HistogramData
2050 :
2051 : // repeated uint32 bucket = 1;
2052 : int HistogramData::bucket_size() const {
2053 : return bucket_.size();
2054 : }
2055 : void HistogramData::clear_bucket() {
2056 : bucket_.Clear();
2057 : }
2058 : ::google::protobuf::uint32 HistogramData::bucket(int index) const {
2059 : // @@protoc_insertion_point(field_get:grpc.testing.HistogramData.bucket)
2060 : return bucket_.Get(index);
2061 : }
2062 : void HistogramData::set_bucket(int index, ::google::protobuf::uint32 value) {
2063 : bucket_.Set(index, value);
2064 : // @@protoc_insertion_point(field_set:grpc.testing.HistogramData.bucket)
2065 : }
2066 : void HistogramData::add_bucket(::google::protobuf::uint32 value) {
2067 : bucket_.Add(value);
2068 : // @@protoc_insertion_point(field_add:grpc.testing.HistogramData.bucket)
2069 : }
2070 : const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2071 : HistogramData::bucket() const {
2072 : // @@protoc_insertion_point(field_list:grpc.testing.HistogramData.bucket)
2073 : return bucket_;
2074 : }
2075 : ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2076 : HistogramData::mutable_bucket() {
2077 : // @@protoc_insertion_point(field_mutable_list:grpc.testing.HistogramData.bucket)
2078 : return &bucket_;
2079 : }
2080 :
2081 : // optional double min_seen = 2;
2082 : void HistogramData::clear_min_seen() {
2083 : min_seen_ = 0;
2084 : }
2085 : double HistogramData::min_seen() const {
2086 : // @@protoc_insertion_point(field_get:grpc.testing.HistogramData.min_seen)
2087 : return min_seen_;
2088 : }
2089 : void HistogramData::set_min_seen(double value) {
2090 :
2091 : min_seen_ = value;
2092 : // @@protoc_insertion_point(field_set:grpc.testing.HistogramData.min_seen)
2093 : }
2094 :
2095 : // optional double max_seen = 3;
2096 : void HistogramData::clear_max_seen() {
2097 : max_seen_ = 0;
2098 : }
2099 : double HistogramData::max_seen() const {
2100 : // @@protoc_insertion_point(field_get:grpc.testing.HistogramData.max_seen)
2101 : return max_seen_;
2102 : }
2103 : void HistogramData::set_max_seen(double value) {
2104 :
2105 : max_seen_ = value;
2106 : // @@protoc_insertion_point(field_set:grpc.testing.HistogramData.max_seen)
2107 : }
2108 :
2109 : // optional double sum = 4;
2110 : void HistogramData::clear_sum() {
2111 : sum_ = 0;
2112 : }
2113 : double HistogramData::sum() const {
2114 : // @@protoc_insertion_point(field_get:grpc.testing.HistogramData.sum)
2115 : return sum_;
2116 : }
2117 : void HistogramData::set_sum(double value) {
2118 :
2119 : sum_ = value;
2120 : // @@protoc_insertion_point(field_set:grpc.testing.HistogramData.sum)
2121 : }
2122 :
2123 : // optional double sum_of_squares = 5;
2124 : void HistogramData::clear_sum_of_squares() {
2125 : sum_of_squares_ = 0;
2126 : }
2127 : double HistogramData::sum_of_squares() const {
2128 : // @@protoc_insertion_point(field_get:grpc.testing.HistogramData.sum_of_squares)
2129 : return sum_of_squares_;
2130 : }
2131 : void HistogramData::set_sum_of_squares(double value) {
2132 :
2133 : sum_of_squares_ = value;
2134 : // @@protoc_insertion_point(field_set:grpc.testing.HistogramData.sum_of_squares)
2135 : }
2136 :
2137 : // optional double count = 6;
2138 : void HistogramData::clear_count() {
2139 : count_ = 0;
2140 : }
2141 : double HistogramData::count() const {
2142 : // @@protoc_insertion_point(field_get:grpc.testing.HistogramData.count)
2143 : return count_;
2144 : }
2145 : void HistogramData::set_count(double value) {
2146 :
2147 : count_ = value;
2148 : // @@protoc_insertion_point(field_set:grpc.testing.HistogramData.count)
2149 : }
2150 :
2151 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2152 :
2153 : // ===================================================================
2154 :
2155 : #ifndef _MSC_VER
2156 : const int PoissonParams::kOfferedLoadFieldNumber;
2157 : #endif // !_MSC_VER
2158 :
2159 12 : PoissonParams::PoissonParams()
2160 12 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2161 12 : SharedCtor();
2162 : // @@protoc_insertion_point(constructor:grpc.testing.PoissonParams)
2163 12 : }
2164 :
2165 6 : void PoissonParams::InitAsDefaultInstance() {
2166 6 : _is_default_instance_ = true;
2167 6 : }
2168 :
2169 0 : PoissonParams::PoissonParams(const PoissonParams& from)
2170 : : ::google::protobuf::Message(),
2171 0 : _internal_metadata_(NULL) {
2172 0 : SharedCtor();
2173 0 : MergeFrom(from);
2174 : // @@protoc_insertion_point(copy_constructor:grpc.testing.PoissonParams)
2175 0 : }
2176 :
2177 12 : void PoissonParams::SharedCtor() {
2178 12 : _is_default_instance_ = false;
2179 12 : _cached_size_ = 0;
2180 12 : offered_load_ = 0;
2181 12 : }
2182 :
2183 18 : PoissonParams::~PoissonParams() {
2184 : // @@protoc_insertion_point(destructor:grpc.testing.PoissonParams)
2185 6 : SharedDtor();
2186 12 : }
2187 :
2188 6 : void PoissonParams::SharedDtor() {
2189 6 : if (this != default_instance_) {
2190 : }
2191 6 : }
2192 :
2193 0 : void PoissonParams::SetCachedSize(int size) const {
2194 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2195 0 : _cached_size_ = size;
2196 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2197 0 : }
2198 0 : const ::google::protobuf::Descriptor* PoissonParams::descriptor() {
2199 0 : protobuf_AssignDescriptorsOnce();
2200 0 : return PoissonParams_descriptor_;
2201 : }
2202 :
2203 6 : const PoissonParams& PoissonParams::default_instance() {
2204 6 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
2205 6 : return *default_instance_;
2206 : }
2207 :
2208 : PoissonParams* PoissonParams::default_instance_ = NULL;
2209 :
2210 0 : PoissonParams* PoissonParams::New(::google::protobuf::Arena* arena) const {
2211 0 : PoissonParams* n = new PoissonParams;
2212 0 : if (arena != NULL) {
2213 0 : arena->Own(n);
2214 : }
2215 0 : return n;
2216 : }
2217 :
2218 0 : void PoissonParams::Clear() {
2219 0 : offered_load_ = 0;
2220 0 : }
2221 :
2222 1 : bool PoissonParams::MergePartialFromCodedStream(
2223 : ::google::protobuf::io::CodedInputStream* input) {
2224 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2225 : ::google::protobuf::uint32 tag;
2226 : // @@protoc_insertion_point(parse_start:grpc.testing.PoissonParams)
2227 : for (;;) {
2228 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2229 1 : tag = p.first;
2230 1 : if (!p.second) goto handle_unusual;
2231 1 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2232 : // optional double offered_load = 1;
2233 : case 1: {
2234 1 : if (tag == 9) {
2235 2 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2236 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
2237 : input, &offered_load_)));
2238 :
2239 : } else {
2240 0 : goto handle_unusual;
2241 : }
2242 2 : if (input->ExpectAtEnd()) goto success;
2243 0 : break;
2244 : }
2245 :
2246 : default: {
2247 : handle_unusual:
2248 0 : if (tag == 0 ||
2249 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2250 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2251 0 : goto success;
2252 : }
2253 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
2254 0 : break;
2255 : }
2256 : }
2257 0 : }
2258 : success:
2259 : // @@protoc_insertion_point(parse_success:grpc.testing.PoissonParams)
2260 1 : return true;
2261 : failure:
2262 : // @@protoc_insertion_point(parse_failure:grpc.testing.PoissonParams)
2263 0 : return false;
2264 : #undef DO_
2265 : }
2266 :
2267 0 : void PoissonParams::SerializeWithCachedSizes(
2268 : ::google::protobuf::io::CodedOutputStream* output) const {
2269 : // @@protoc_insertion_point(serialize_start:grpc.testing.PoissonParams)
2270 : // optional double offered_load = 1;
2271 0 : if (this->offered_load() != 0) {
2272 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->offered_load(), output);
2273 : }
2274 :
2275 : // @@protoc_insertion_point(serialize_end:grpc.testing.PoissonParams)
2276 0 : }
2277 :
2278 1 : ::google::protobuf::uint8* PoissonParams::SerializeWithCachedSizesToArray(
2279 : ::google::protobuf::uint8* target) const {
2280 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.PoissonParams)
2281 : // optional double offered_load = 1;
2282 1 : if (this->offered_load() != 0) {
2283 2 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->offered_load(), target);
2284 : }
2285 :
2286 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.PoissonParams)
2287 1 : return target;
2288 : }
2289 :
2290 1 : int PoissonParams::ByteSize() const {
2291 1 : int total_size = 0;
2292 :
2293 : // optional double offered_load = 1;
2294 1 : if (this->offered_load() != 0) {
2295 1 : total_size += 1 + 8;
2296 : }
2297 :
2298 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2299 1 : _cached_size_ = total_size;
2300 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2301 1 : return total_size;
2302 : }
2303 :
2304 0 : void PoissonParams::MergeFrom(const ::google::protobuf::Message& from) {
2305 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2306 : const PoissonParams* source =
2307 : ::google::protobuf::internal::DynamicCastToGenerated<const PoissonParams>(
2308 0 : &from);
2309 0 : if (source == NULL) {
2310 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2311 : } else {
2312 0 : MergeFrom(*source);
2313 : }
2314 0 : }
2315 :
2316 4 : void PoissonParams::MergeFrom(const PoissonParams& from) {
2317 4 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2318 4 : if (from.offered_load() != 0) {
2319 4 : set_offered_load(from.offered_load());
2320 : }
2321 4 : }
2322 :
2323 0 : void PoissonParams::CopyFrom(const ::google::protobuf::Message& from) {
2324 0 : if (&from == this) return;
2325 0 : Clear();
2326 0 : MergeFrom(from);
2327 : }
2328 :
2329 0 : void PoissonParams::CopyFrom(const PoissonParams& from) {
2330 0 : if (&from == this) return;
2331 0 : Clear();
2332 0 : MergeFrom(from);
2333 : }
2334 :
2335 0 : bool PoissonParams::IsInitialized() const {
2336 :
2337 0 : return true;
2338 : }
2339 :
2340 0 : void PoissonParams::Swap(PoissonParams* other) {
2341 0 : if (other == this) return;
2342 0 : InternalSwap(other);
2343 : }
2344 0 : void PoissonParams::InternalSwap(PoissonParams* other) {
2345 0 : std::swap(offered_load_, other->offered_load_);
2346 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
2347 0 : std::swap(_cached_size_, other->_cached_size_);
2348 0 : }
2349 :
2350 0 : ::google::protobuf::Metadata PoissonParams::GetMetadata() const {
2351 0 : protobuf_AssignDescriptorsOnce();
2352 : ::google::protobuf::Metadata metadata;
2353 0 : metadata.descriptor = PoissonParams_descriptor_;
2354 0 : metadata.reflection = PoissonParams_reflection_;
2355 0 : return metadata;
2356 : }
2357 :
2358 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
2359 : // PoissonParams
2360 :
2361 : // optional double offered_load = 1;
2362 : void PoissonParams::clear_offered_load() {
2363 : offered_load_ = 0;
2364 : }
2365 : double PoissonParams::offered_load() const {
2366 : // @@protoc_insertion_point(field_get:grpc.testing.PoissonParams.offered_load)
2367 : return offered_load_;
2368 : }
2369 : void PoissonParams::set_offered_load(double value) {
2370 :
2371 : offered_load_ = value;
2372 : // @@protoc_insertion_point(field_set:grpc.testing.PoissonParams.offered_load)
2373 : }
2374 :
2375 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2376 :
2377 : // ===================================================================
2378 :
2379 : #ifndef _MSC_VER
2380 : const int UniformParams::kInterarrivalLoFieldNumber;
2381 : const int UniformParams::kInterarrivalHiFieldNumber;
2382 : #endif // !_MSC_VER
2383 :
2384 6 : UniformParams::UniformParams()
2385 6 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2386 6 : SharedCtor();
2387 : // @@protoc_insertion_point(constructor:grpc.testing.UniformParams)
2388 6 : }
2389 :
2390 6 : void UniformParams::InitAsDefaultInstance() {
2391 6 : _is_default_instance_ = true;
2392 6 : }
2393 :
2394 0 : UniformParams::UniformParams(const UniformParams& from)
2395 : : ::google::protobuf::Message(),
2396 0 : _internal_metadata_(NULL) {
2397 0 : SharedCtor();
2398 0 : MergeFrom(from);
2399 : // @@protoc_insertion_point(copy_constructor:grpc.testing.UniformParams)
2400 0 : }
2401 :
2402 6 : void UniformParams::SharedCtor() {
2403 6 : _is_default_instance_ = false;
2404 6 : _cached_size_ = 0;
2405 6 : interarrival_lo_ = 0;
2406 6 : interarrival_hi_ = 0;
2407 6 : }
2408 :
2409 0 : UniformParams::~UniformParams() {
2410 : // @@protoc_insertion_point(destructor:grpc.testing.UniformParams)
2411 0 : SharedDtor();
2412 0 : }
2413 :
2414 0 : void UniformParams::SharedDtor() {
2415 0 : if (this != default_instance_) {
2416 : }
2417 0 : }
2418 :
2419 0 : void UniformParams::SetCachedSize(int size) const {
2420 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2421 0 : _cached_size_ = size;
2422 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2423 0 : }
2424 0 : const ::google::protobuf::Descriptor* UniformParams::descriptor() {
2425 0 : protobuf_AssignDescriptorsOnce();
2426 0 : return UniformParams_descriptor_;
2427 : }
2428 :
2429 6 : const UniformParams& UniformParams::default_instance() {
2430 6 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
2431 6 : return *default_instance_;
2432 : }
2433 :
2434 : UniformParams* UniformParams::default_instance_ = NULL;
2435 :
2436 0 : UniformParams* UniformParams::New(::google::protobuf::Arena* arena) const {
2437 0 : UniformParams* n = new UniformParams;
2438 0 : if (arena != NULL) {
2439 0 : arena->Own(n);
2440 : }
2441 0 : return n;
2442 : }
2443 :
2444 0 : void UniformParams::Clear() {
2445 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
2446 : &reinterpret_cast<UniformParams*>(16)->f)
2447 :
2448 : #define ZR_(first, last) do {\
2449 : ::memset(&first, 0,\
2450 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
2451 : } while (0)
2452 :
2453 0 : ZR_(interarrival_lo_, interarrival_hi_);
2454 :
2455 : #undef ZR_HELPER_
2456 : #undef ZR_
2457 :
2458 0 : }
2459 :
2460 0 : bool UniformParams::MergePartialFromCodedStream(
2461 : ::google::protobuf::io::CodedInputStream* input) {
2462 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2463 : ::google::protobuf::uint32 tag;
2464 : // @@protoc_insertion_point(parse_start:grpc.testing.UniformParams)
2465 : for (;;) {
2466 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2467 0 : tag = p.first;
2468 0 : if (!p.second) goto handle_unusual;
2469 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2470 : // optional double interarrival_lo = 1;
2471 : case 1: {
2472 0 : if (tag == 9) {
2473 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2474 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
2475 : input, &interarrival_lo_)));
2476 :
2477 : } else {
2478 0 : goto handle_unusual;
2479 : }
2480 0 : if (input->ExpectTag(17)) goto parse_interarrival_hi;
2481 0 : break;
2482 : }
2483 :
2484 : // optional double interarrival_hi = 2;
2485 : case 2: {
2486 0 : if (tag == 17) {
2487 : parse_interarrival_hi:
2488 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2489 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
2490 : input, &interarrival_hi_)));
2491 :
2492 : } else {
2493 0 : goto handle_unusual;
2494 : }
2495 0 : if (input->ExpectAtEnd()) goto success;
2496 0 : break;
2497 : }
2498 :
2499 : default: {
2500 : handle_unusual:
2501 0 : if (tag == 0 ||
2502 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2503 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2504 0 : goto success;
2505 : }
2506 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
2507 0 : break;
2508 : }
2509 : }
2510 0 : }
2511 : success:
2512 : // @@protoc_insertion_point(parse_success:grpc.testing.UniformParams)
2513 0 : return true;
2514 : failure:
2515 : // @@protoc_insertion_point(parse_failure:grpc.testing.UniformParams)
2516 0 : return false;
2517 : #undef DO_
2518 : }
2519 :
2520 0 : void UniformParams::SerializeWithCachedSizes(
2521 : ::google::protobuf::io::CodedOutputStream* output) const {
2522 : // @@protoc_insertion_point(serialize_start:grpc.testing.UniformParams)
2523 : // optional double interarrival_lo = 1;
2524 0 : if (this->interarrival_lo() != 0) {
2525 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->interarrival_lo(), output);
2526 : }
2527 :
2528 : // optional double interarrival_hi = 2;
2529 0 : if (this->interarrival_hi() != 0) {
2530 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->interarrival_hi(), output);
2531 : }
2532 :
2533 : // @@protoc_insertion_point(serialize_end:grpc.testing.UniformParams)
2534 0 : }
2535 :
2536 0 : ::google::protobuf::uint8* UniformParams::SerializeWithCachedSizesToArray(
2537 : ::google::protobuf::uint8* target) const {
2538 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.UniformParams)
2539 : // optional double interarrival_lo = 1;
2540 0 : if (this->interarrival_lo() != 0) {
2541 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->interarrival_lo(), target);
2542 : }
2543 :
2544 : // optional double interarrival_hi = 2;
2545 0 : if (this->interarrival_hi() != 0) {
2546 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->interarrival_hi(), target);
2547 : }
2548 :
2549 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.UniformParams)
2550 0 : return target;
2551 : }
2552 :
2553 0 : int UniformParams::ByteSize() const {
2554 0 : int total_size = 0;
2555 :
2556 : // optional double interarrival_lo = 1;
2557 0 : if (this->interarrival_lo() != 0) {
2558 0 : total_size += 1 + 8;
2559 : }
2560 :
2561 : // optional double interarrival_hi = 2;
2562 0 : if (this->interarrival_hi() != 0) {
2563 0 : total_size += 1 + 8;
2564 : }
2565 :
2566 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2567 0 : _cached_size_ = total_size;
2568 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2569 0 : return total_size;
2570 : }
2571 :
2572 0 : void UniformParams::MergeFrom(const ::google::protobuf::Message& from) {
2573 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2574 : const UniformParams* source =
2575 : ::google::protobuf::internal::DynamicCastToGenerated<const UniformParams>(
2576 0 : &from);
2577 0 : if (source == NULL) {
2578 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2579 : } else {
2580 0 : MergeFrom(*source);
2581 : }
2582 0 : }
2583 :
2584 0 : void UniformParams::MergeFrom(const UniformParams& from) {
2585 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2586 0 : if (from.interarrival_lo() != 0) {
2587 0 : set_interarrival_lo(from.interarrival_lo());
2588 : }
2589 0 : if (from.interarrival_hi() != 0) {
2590 0 : set_interarrival_hi(from.interarrival_hi());
2591 : }
2592 0 : }
2593 :
2594 0 : void UniformParams::CopyFrom(const ::google::protobuf::Message& from) {
2595 0 : if (&from == this) return;
2596 0 : Clear();
2597 0 : MergeFrom(from);
2598 : }
2599 :
2600 0 : void UniformParams::CopyFrom(const UniformParams& from) {
2601 0 : if (&from == this) return;
2602 0 : Clear();
2603 0 : MergeFrom(from);
2604 : }
2605 :
2606 0 : bool UniformParams::IsInitialized() const {
2607 :
2608 0 : return true;
2609 : }
2610 :
2611 0 : void UniformParams::Swap(UniformParams* other) {
2612 0 : if (other == this) return;
2613 0 : InternalSwap(other);
2614 : }
2615 0 : void UniformParams::InternalSwap(UniformParams* other) {
2616 0 : std::swap(interarrival_lo_, other->interarrival_lo_);
2617 0 : std::swap(interarrival_hi_, other->interarrival_hi_);
2618 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
2619 0 : std::swap(_cached_size_, other->_cached_size_);
2620 0 : }
2621 :
2622 0 : ::google::protobuf::Metadata UniformParams::GetMetadata() const {
2623 0 : protobuf_AssignDescriptorsOnce();
2624 : ::google::protobuf::Metadata metadata;
2625 0 : metadata.descriptor = UniformParams_descriptor_;
2626 0 : metadata.reflection = UniformParams_reflection_;
2627 0 : return metadata;
2628 : }
2629 :
2630 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
2631 : // UniformParams
2632 :
2633 : // optional double interarrival_lo = 1;
2634 : void UniformParams::clear_interarrival_lo() {
2635 : interarrival_lo_ = 0;
2636 : }
2637 : double UniformParams::interarrival_lo() const {
2638 : // @@protoc_insertion_point(field_get:grpc.testing.UniformParams.interarrival_lo)
2639 : return interarrival_lo_;
2640 : }
2641 : void UniformParams::set_interarrival_lo(double value) {
2642 :
2643 : interarrival_lo_ = value;
2644 : // @@protoc_insertion_point(field_set:grpc.testing.UniformParams.interarrival_lo)
2645 : }
2646 :
2647 : // optional double interarrival_hi = 2;
2648 : void UniformParams::clear_interarrival_hi() {
2649 : interarrival_hi_ = 0;
2650 : }
2651 : double UniformParams::interarrival_hi() const {
2652 : // @@protoc_insertion_point(field_get:grpc.testing.UniformParams.interarrival_hi)
2653 : return interarrival_hi_;
2654 : }
2655 : void UniformParams::set_interarrival_hi(double value) {
2656 :
2657 : interarrival_hi_ = value;
2658 : // @@protoc_insertion_point(field_set:grpc.testing.UniformParams.interarrival_hi)
2659 : }
2660 :
2661 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2662 :
2663 : // ===================================================================
2664 :
2665 : #ifndef _MSC_VER
2666 : const int DeterministicParams::kOfferedLoadFieldNumber;
2667 : #endif // !_MSC_VER
2668 :
2669 6 : DeterministicParams::DeterministicParams()
2670 6 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2671 6 : SharedCtor();
2672 : // @@protoc_insertion_point(constructor:grpc.testing.DeterministicParams)
2673 6 : }
2674 :
2675 6 : void DeterministicParams::InitAsDefaultInstance() {
2676 6 : _is_default_instance_ = true;
2677 6 : }
2678 :
2679 0 : DeterministicParams::DeterministicParams(const DeterministicParams& from)
2680 : : ::google::protobuf::Message(),
2681 0 : _internal_metadata_(NULL) {
2682 0 : SharedCtor();
2683 0 : MergeFrom(from);
2684 : // @@protoc_insertion_point(copy_constructor:grpc.testing.DeterministicParams)
2685 0 : }
2686 :
2687 6 : void DeterministicParams::SharedCtor() {
2688 6 : _is_default_instance_ = false;
2689 6 : _cached_size_ = 0;
2690 6 : offered_load_ = 0;
2691 6 : }
2692 :
2693 0 : DeterministicParams::~DeterministicParams() {
2694 : // @@protoc_insertion_point(destructor:grpc.testing.DeterministicParams)
2695 0 : SharedDtor();
2696 0 : }
2697 :
2698 0 : void DeterministicParams::SharedDtor() {
2699 0 : if (this != default_instance_) {
2700 : }
2701 0 : }
2702 :
2703 0 : void DeterministicParams::SetCachedSize(int size) const {
2704 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2705 0 : _cached_size_ = size;
2706 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2707 0 : }
2708 0 : const ::google::protobuf::Descriptor* DeterministicParams::descriptor() {
2709 0 : protobuf_AssignDescriptorsOnce();
2710 0 : return DeterministicParams_descriptor_;
2711 : }
2712 :
2713 6 : const DeterministicParams& DeterministicParams::default_instance() {
2714 6 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
2715 6 : return *default_instance_;
2716 : }
2717 :
2718 : DeterministicParams* DeterministicParams::default_instance_ = NULL;
2719 :
2720 0 : DeterministicParams* DeterministicParams::New(::google::protobuf::Arena* arena) const {
2721 0 : DeterministicParams* n = new DeterministicParams;
2722 0 : if (arena != NULL) {
2723 0 : arena->Own(n);
2724 : }
2725 0 : return n;
2726 : }
2727 :
2728 0 : void DeterministicParams::Clear() {
2729 0 : offered_load_ = 0;
2730 0 : }
2731 :
2732 0 : bool DeterministicParams::MergePartialFromCodedStream(
2733 : ::google::protobuf::io::CodedInputStream* input) {
2734 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2735 : ::google::protobuf::uint32 tag;
2736 : // @@protoc_insertion_point(parse_start:grpc.testing.DeterministicParams)
2737 : for (;;) {
2738 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2739 0 : tag = p.first;
2740 0 : if (!p.second) goto handle_unusual;
2741 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2742 : // optional double offered_load = 1;
2743 : case 1: {
2744 0 : if (tag == 9) {
2745 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2746 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
2747 : input, &offered_load_)));
2748 :
2749 : } else {
2750 0 : goto handle_unusual;
2751 : }
2752 0 : if (input->ExpectAtEnd()) goto success;
2753 0 : break;
2754 : }
2755 :
2756 : default: {
2757 : handle_unusual:
2758 0 : if (tag == 0 ||
2759 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2760 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2761 0 : goto success;
2762 : }
2763 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
2764 0 : break;
2765 : }
2766 : }
2767 0 : }
2768 : success:
2769 : // @@protoc_insertion_point(parse_success:grpc.testing.DeterministicParams)
2770 0 : return true;
2771 : failure:
2772 : // @@protoc_insertion_point(parse_failure:grpc.testing.DeterministicParams)
2773 0 : return false;
2774 : #undef DO_
2775 : }
2776 :
2777 0 : void DeterministicParams::SerializeWithCachedSizes(
2778 : ::google::protobuf::io::CodedOutputStream* output) const {
2779 : // @@protoc_insertion_point(serialize_start:grpc.testing.DeterministicParams)
2780 : // optional double offered_load = 1;
2781 0 : if (this->offered_load() != 0) {
2782 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->offered_load(), output);
2783 : }
2784 :
2785 : // @@protoc_insertion_point(serialize_end:grpc.testing.DeterministicParams)
2786 0 : }
2787 :
2788 0 : ::google::protobuf::uint8* DeterministicParams::SerializeWithCachedSizesToArray(
2789 : ::google::protobuf::uint8* target) const {
2790 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.DeterministicParams)
2791 : // optional double offered_load = 1;
2792 0 : if (this->offered_load() != 0) {
2793 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->offered_load(), target);
2794 : }
2795 :
2796 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.DeterministicParams)
2797 0 : return target;
2798 : }
2799 :
2800 0 : int DeterministicParams::ByteSize() const {
2801 0 : int total_size = 0;
2802 :
2803 : // optional double offered_load = 1;
2804 0 : if (this->offered_load() != 0) {
2805 0 : total_size += 1 + 8;
2806 : }
2807 :
2808 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2809 0 : _cached_size_ = total_size;
2810 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2811 0 : return total_size;
2812 : }
2813 :
2814 0 : void DeterministicParams::MergeFrom(const ::google::protobuf::Message& from) {
2815 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2816 : const DeterministicParams* source =
2817 : ::google::protobuf::internal::DynamicCastToGenerated<const DeterministicParams>(
2818 0 : &from);
2819 0 : if (source == NULL) {
2820 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2821 : } else {
2822 0 : MergeFrom(*source);
2823 : }
2824 0 : }
2825 :
2826 0 : void DeterministicParams::MergeFrom(const DeterministicParams& from) {
2827 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
2828 0 : if (from.offered_load() != 0) {
2829 0 : set_offered_load(from.offered_load());
2830 : }
2831 0 : }
2832 :
2833 0 : void DeterministicParams::CopyFrom(const ::google::protobuf::Message& from) {
2834 0 : if (&from == this) return;
2835 0 : Clear();
2836 0 : MergeFrom(from);
2837 : }
2838 :
2839 0 : void DeterministicParams::CopyFrom(const DeterministicParams& from) {
2840 0 : if (&from == this) return;
2841 0 : Clear();
2842 0 : MergeFrom(from);
2843 : }
2844 :
2845 0 : bool DeterministicParams::IsInitialized() const {
2846 :
2847 0 : return true;
2848 : }
2849 :
2850 0 : void DeterministicParams::Swap(DeterministicParams* other) {
2851 0 : if (other == this) return;
2852 0 : InternalSwap(other);
2853 : }
2854 0 : void DeterministicParams::InternalSwap(DeterministicParams* other) {
2855 0 : std::swap(offered_load_, other->offered_load_);
2856 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
2857 0 : std::swap(_cached_size_, other->_cached_size_);
2858 0 : }
2859 :
2860 0 : ::google::protobuf::Metadata DeterministicParams::GetMetadata() const {
2861 0 : protobuf_AssignDescriptorsOnce();
2862 : ::google::protobuf::Metadata metadata;
2863 0 : metadata.descriptor = DeterministicParams_descriptor_;
2864 0 : metadata.reflection = DeterministicParams_reflection_;
2865 0 : return metadata;
2866 : }
2867 :
2868 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
2869 : // DeterministicParams
2870 :
2871 : // optional double offered_load = 1;
2872 : void DeterministicParams::clear_offered_load() {
2873 : offered_load_ = 0;
2874 : }
2875 : double DeterministicParams::offered_load() const {
2876 : // @@protoc_insertion_point(field_get:grpc.testing.DeterministicParams.offered_load)
2877 : return offered_load_;
2878 : }
2879 : void DeterministicParams::set_offered_load(double value) {
2880 :
2881 : offered_load_ = value;
2882 : // @@protoc_insertion_point(field_set:grpc.testing.DeterministicParams.offered_load)
2883 : }
2884 :
2885 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2886 :
2887 : // ===================================================================
2888 :
2889 : #ifndef _MSC_VER
2890 : const int ParetoParams::kInterarrivalBaseFieldNumber;
2891 : const int ParetoParams::kAlphaFieldNumber;
2892 : #endif // !_MSC_VER
2893 :
2894 6 : ParetoParams::ParetoParams()
2895 6 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2896 6 : SharedCtor();
2897 : // @@protoc_insertion_point(constructor:grpc.testing.ParetoParams)
2898 6 : }
2899 :
2900 6 : void ParetoParams::InitAsDefaultInstance() {
2901 6 : _is_default_instance_ = true;
2902 6 : }
2903 :
2904 0 : ParetoParams::ParetoParams(const ParetoParams& from)
2905 : : ::google::protobuf::Message(),
2906 0 : _internal_metadata_(NULL) {
2907 0 : SharedCtor();
2908 0 : MergeFrom(from);
2909 : // @@protoc_insertion_point(copy_constructor:grpc.testing.ParetoParams)
2910 0 : }
2911 :
2912 6 : void ParetoParams::SharedCtor() {
2913 6 : _is_default_instance_ = false;
2914 6 : _cached_size_ = 0;
2915 6 : interarrival_base_ = 0;
2916 6 : alpha_ = 0;
2917 6 : }
2918 :
2919 0 : ParetoParams::~ParetoParams() {
2920 : // @@protoc_insertion_point(destructor:grpc.testing.ParetoParams)
2921 0 : SharedDtor();
2922 0 : }
2923 :
2924 0 : void ParetoParams::SharedDtor() {
2925 0 : if (this != default_instance_) {
2926 : }
2927 0 : }
2928 :
2929 0 : void ParetoParams::SetCachedSize(int size) const {
2930 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2931 0 : _cached_size_ = size;
2932 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2933 0 : }
2934 0 : const ::google::protobuf::Descriptor* ParetoParams::descriptor() {
2935 0 : protobuf_AssignDescriptorsOnce();
2936 0 : return ParetoParams_descriptor_;
2937 : }
2938 :
2939 6 : const ParetoParams& ParetoParams::default_instance() {
2940 6 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
2941 6 : return *default_instance_;
2942 : }
2943 :
2944 : ParetoParams* ParetoParams::default_instance_ = NULL;
2945 :
2946 0 : ParetoParams* ParetoParams::New(::google::protobuf::Arena* arena) const {
2947 0 : ParetoParams* n = new ParetoParams;
2948 0 : if (arena != NULL) {
2949 0 : arena->Own(n);
2950 : }
2951 0 : return n;
2952 : }
2953 :
2954 0 : void ParetoParams::Clear() {
2955 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
2956 : &reinterpret_cast<ParetoParams*>(16)->f)
2957 :
2958 : #define ZR_(first, last) do {\
2959 : ::memset(&first, 0,\
2960 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
2961 : } while (0)
2962 :
2963 0 : ZR_(interarrival_base_, alpha_);
2964 :
2965 : #undef ZR_HELPER_
2966 : #undef ZR_
2967 :
2968 0 : }
2969 :
2970 0 : bool ParetoParams::MergePartialFromCodedStream(
2971 : ::google::protobuf::io::CodedInputStream* input) {
2972 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2973 : ::google::protobuf::uint32 tag;
2974 : // @@protoc_insertion_point(parse_start:grpc.testing.ParetoParams)
2975 : for (;;) {
2976 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2977 0 : tag = p.first;
2978 0 : if (!p.second) goto handle_unusual;
2979 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2980 : // optional double interarrival_base = 1;
2981 : case 1: {
2982 0 : if (tag == 9) {
2983 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2984 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
2985 : input, &interarrival_base_)));
2986 :
2987 : } else {
2988 0 : goto handle_unusual;
2989 : }
2990 0 : if (input->ExpectTag(17)) goto parse_alpha;
2991 0 : break;
2992 : }
2993 :
2994 : // optional double alpha = 2;
2995 : case 2: {
2996 0 : if (tag == 17) {
2997 : parse_alpha:
2998 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2999 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
3000 : input, &alpha_)));
3001 :
3002 : } else {
3003 0 : goto handle_unusual;
3004 : }
3005 0 : if (input->ExpectAtEnd()) goto success;
3006 0 : break;
3007 : }
3008 :
3009 : default: {
3010 : handle_unusual:
3011 0 : if (tag == 0 ||
3012 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3013 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3014 0 : goto success;
3015 : }
3016 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
3017 0 : break;
3018 : }
3019 : }
3020 0 : }
3021 : success:
3022 : // @@protoc_insertion_point(parse_success:grpc.testing.ParetoParams)
3023 0 : return true;
3024 : failure:
3025 : // @@protoc_insertion_point(parse_failure:grpc.testing.ParetoParams)
3026 0 : return false;
3027 : #undef DO_
3028 : }
3029 :
3030 0 : void ParetoParams::SerializeWithCachedSizes(
3031 : ::google::protobuf::io::CodedOutputStream* output) const {
3032 : // @@protoc_insertion_point(serialize_start:grpc.testing.ParetoParams)
3033 : // optional double interarrival_base = 1;
3034 0 : if (this->interarrival_base() != 0) {
3035 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->interarrival_base(), output);
3036 : }
3037 :
3038 : // optional double alpha = 2;
3039 0 : if (this->alpha() != 0) {
3040 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->alpha(), output);
3041 : }
3042 :
3043 : // @@protoc_insertion_point(serialize_end:grpc.testing.ParetoParams)
3044 0 : }
3045 :
3046 0 : ::google::protobuf::uint8* ParetoParams::SerializeWithCachedSizesToArray(
3047 : ::google::protobuf::uint8* target) const {
3048 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.ParetoParams)
3049 : // optional double interarrival_base = 1;
3050 0 : if (this->interarrival_base() != 0) {
3051 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->interarrival_base(), target);
3052 : }
3053 :
3054 : // optional double alpha = 2;
3055 0 : if (this->alpha() != 0) {
3056 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->alpha(), target);
3057 : }
3058 :
3059 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.ParetoParams)
3060 0 : return target;
3061 : }
3062 :
3063 0 : int ParetoParams::ByteSize() const {
3064 0 : int total_size = 0;
3065 :
3066 : // optional double interarrival_base = 1;
3067 0 : if (this->interarrival_base() != 0) {
3068 0 : total_size += 1 + 8;
3069 : }
3070 :
3071 : // optional double alpha = 2;
3072 0 : if (this->alpha() != 0) {
3073 0 : total_size += 1 + 8;
3074 : }
3075 :
3076 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3077 0 : _cached_size_ = total_size;
3078 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3079 0 : return total_size;
3080 : }
3081 :
3082 0 : void ParetoParams::MergeFrom(const ::google::protobuf::Message& from) {
3083 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
3084 : const ParetoParams* source =
3085 : ::google::protobuf::internal::DynamicCastToGenerated<const ParetoParams>(
3086 0 : &from);
3087 0 : if (source == NULL) {
3088 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3089 : } else {
3090 0 : MergeFrom(*source);
3091 : }
3092 0 : }
3093 :
3094 0 : void ParetoParams::MergeFrom(const ParetoParams& from) {
3095 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
3096 0 : if (from.interarrival_base() != 0) {
3097 0 : set_interarrival_base(from.interarrival_base());
3098 : }
3099 0 : if (from.alpha() != 0) {
3100 0 : set_alpha(from.alpha());
3101 : }
3102 0 : }
3103 :
3104 0 : void ParetoParams::CopyFrom(const ::google::protobuf::Message& from) {
3105 0 : if (&from == this) return;
3106 0 : Clear();
3107 0 : MergeFrom(from);
3108 : }
3109 :
3110 0 : void ParetoParams::CopyFrom(const ParetoParams& from) {
3111 0 : if (&from == this) return;
3112 0 : Clear();
3113 0 : MergeFrom(from);
3114 : }
3115 :
3116 0 : bool ParetoParams::IsInitialized() const {
3117 :
3118 0 : return true;
3119 : }
3120 :
3121 0 : void ParetoParams::Swap(ParetoParams* other) {
3122 0 : if (other == this) return;
3123 0 : InternalSwap(other);
3124 : }
3125 0 : void ParetoParams::InternalSwap(ParetoParams* other) {
3126 0 : std::swap(interarrival_base_, other->interarrival_base_);
3127 0 : std::swap(alpha_, other->alpha_);
3128 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
3129 0 : std::swap(_cached_size_, other->_cached_size_);
3130 0 : }
3131 :
3132 0 : ::google::protobuf::Metadata ParetoParams::GetMetadata() const {
3133 0 : protobuf_AssignDescriptorsOnce();
3134 : ::google::protobuf::Metadata metadata;
3135 0 : metadata.descriptor = ParetoParams_descriptor_;
3136 0 : metadata.reflection = ParetoParams_reflection_;
3137 0 : return metadata;
3138 : }
3139 :
3140 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
3141 : // ParetoParams
3142 :
3143 : // optional double interarrival_base = 1;
3144 : void ParetoParams::clear_interarrival_base() {
3145 : interarrival_base_ = 0;
3146 : }
3147 : double ParetoParams::interarrival_base() const {
3148 : // @@protoc_insertion_point(field_get:grpc.testing.ParetoParams.interarrival_base)
3149 : return interarrival_base_;
3150 : }
3151 : void ParetoParams::set_interarrival_base(double value) {
3152 :
3153 : interarrival_base_ = value;
3154 : // @@protoc_insertion_point(field_set:grpc.testing.ParetoParams.interarrival_base)
3155 : }
3156 :
3157 : // optional double alpha = 2;
3158 : void ParetoParams::clear_alpha() {
3159 : alpha_ = 0;
3160 : }
3161 : double ParetoParams::alpha() const {
3162 : // @@protoc_insertion_point(field_get:grpc.testing.ParetoParams.alpha)
3163 : return alpha_;
3164 : }
3165 : void ParetoParams::set_alpha(double value) {
3166 :
3167 : alpha_ = value;
3168 : // @@protoc_insertion_point(field_set:grpc.testing.ParetoParams.alpha)
3169 : }
3170 :
3171 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
3172 :
3173 : // ===================================================================
3174 :
3175 : #ifndef _MSC_VER
3176 : const int LoadParams::kPoissonFieldNumber;
3177 : const int LoadParams::kUniformFieldNumber;
3178 : const int LoadParams::kDetermFieldNumber;
3179 : const int LoadParams::kParetoFieldNumber;
3180 : #endif // !_MSC_VER
3181 :
3182 12 : LoadParams::LoadParams()
3183 12 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3184 12 : SharedCtor();
3185 : // @@protoc_insertion_point(constructor:grpc.testing.LoadParams)
3186 12 : }
3187 :
3188 6 : void LoadParams::InitAsDefaultInstance() {
3189 6 : _is_default_instance_ = true;
3190 6 : LoadParams_default_oneof_instance_->poisson_ = const_cast< ::grpc::testing::PoissonParams*>(&::grpc::testing::PoissonParams::default_instance());
3191 6 : LoadParams_default_oneof_instance_->uniform_ = const_cast< ::grpc::testing::UniformParams*>(&::grpc::testing::UniformParams::default_instance());
3192 6 : LoadParams_default_oneof_instance_->determ_ = const_cast< ::grpc::testing::DeterministicParams*>(&::grpc::testing::DeterministicParams::default_instance());
3193 6 : LoadParams_default_oneof_instance_->pareto_ = const_cast< ::grpc::testing::ParetoParams*>(&::grpc::testing::ParetoParams::default_instance());
3194 6 : }
3195 :
3196 0 : LoadParams::LoadParams(const LoadParams& from)
3197 : : ::google::protobuf::Message(),
3198 0 : _internal_metadata_(NULL) {
3199 0 : SharedCtor();
3200 0 : MergeFrom(from);
3201 : // @@protoc_insertion_point(copy_constructor:grpc.testing.LoadParams)
3202 0 : }
3203 :
3204 12 : void LoadParams::SharedCtor() {
3205 12 : _is_default_instance_ = false;
3206 12 : _cached_size_ = 0;
3207 12 : clear_has_load();
3208 12 : }
3209 :
3210 18 : LoadParams::~LoadParams() {
3211 : // @@protoc_insertion_point(destructor:grpc.testing.LoadParams)
3212 6 : SharedDtor();
3213 12 : }
3214 :
3215 6 : void LoadParams::SharedDtor() {
3216 6 : if (has_load()) {
3217 6 : clear_load();
3218 : }
3219 6 : if (this != default_instance_) {
3220 : }
3221 6 : }
3222 :
3223 0 : void LoadParams::SetCachedSize(int size) const {
3224 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3225 0 : _cached_size_ = size;
3226 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3227 0 : }
3228 0 : const ::google::protobuf::Descriptor* LoadParams::descriptor() {
3229 0 : protobuf_AssignDescriptorsOnce();
3230 0 : return LoadParams_descriptor_;
3231 : }
3232 :
3233 6 : const LoadParams& LoadParams::default_instance() {
3234 6 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
3235 6 : return *default_instance_;
3236 : }
3237 :
3238 : LoadParams* LoadParams::default_instance_ = NULL;
3239 :
3240 0 : LoadParams* LoadParams::New(::google::protobuf::Arena* arena) const {
3241 0 : LoadParams* n = new LoadParams;
3242 0 : if (arena != NULL) {
3243 0 : arena->Own(n);
3244 : }
3245 0 : return n;
3246 : }
3247 :
3248 12 : void LoadParams::clear_load() {
3249 12 : switch(load_case()) {
3250 : case kPoisson: {
3251 6 : delete load_.poisson_;
3252 6 : break;
3253 : }
3254 : case kUniform: {
3255 0 : delete load_.uniform_;
3256 0 : break;
3257 : }
3258 : case kDeterm: {
3259 0 : delete load_.determ_;
3260 0 : break;
3261 : }
3262 : case kPareto: {
3263 0 : delete load_.pareto_;
3264 0 : break;
3265 : }
3266 : case LOAD_NOT_SET: {
3267 6 : break;
3268 : }
3269 : }
3270 12 : _oneof_case_[0] = LOAD_NOT_SET;
3271 12 : }
3272 :
3273 :
3274 0 : void LoadParams::Clear() {
3275 0 : clear_load();
3276 0 : }
3277 :
3278 2 : bool LoadParams::MergePartialFromCodedStream(
3279 : ::google::protobuf::io::CodedInputStream* input) {
3280 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3281 : ::google::protobuf::uint32 tag;
3282 : // @@protoc_insertion_point(parse_start:grpc.testing.LoadParams)
3283 : for (;;) {
3284 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3285 2 : tag = p.first;
3286 3 : if (!p.second) goto handle_unusual;
3287 1 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3288 : // optional .grpc.testing.PoissonParams poisson = 1;
3289 : case 1: {
3290 1 : if (tag == 10) {
3291 1 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3292 : input, mutable_poisson()));
3293 : } else {
3294 0 : goto handle_unusual;
3295 : }
3296 1 : if (input->ExpectTag(18)) goto parse_uniform;
3297 1 : break;
3298 : }
3299 :
3300 : // optional .grpc.testing.UniformParams uniform = 2;
3301 : case 2: {
3302 0 : if (tag == 18) {
3303 : parse_uniform:
3304 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3305 : input, mutable_uniform()));
3306 : } else {
3307 0 : goto handle_unusual;
3308 : }
3309 0 : if (input->ExpectTag(26)) goto parse_determ;
3310 0 : break;
3311 : }
3312 :
3313 : // optional .grpc.testing.DeterministicParams determ = 3;
3314 : case 3: {
3315 0 : if (tag == 26) {
3316 : parse_determ:
3317 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3318 : input, mutable_determ()));
3319 : } else {
3320 0 : goto handle_unusual;
3321 : }
3322 0 : if (input->ExpectTag(34)) goto parse_pareto;
3323 0 : break;
3324 : }
3325 :
3326 : // optional .grpc.testing.ParetoParams pareto = 4;
3327 : case 4: {
3328 0 : if (tag == 34) {
3329 : parse_pareto:
3330 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3331 : input, mutable_pareto()));
3332 : } else {
3333 0 : goto handle_unusual;
3334 : }
3335 1 : if (input->ExpectAtEnd()) goto success;
3336 0 : break;
3337 : }
3338 :
3339 : default: {
3340 : handle_unusual:
3341 1 : if (tag == 0 ||
3342 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3343 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3344 1 : goto success;
3345 : }
3346 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
3347 0 : break;
3348 : }
3349 : }
3350 1 : }
3351 : success:
3352 : // @@protoc_insertion_point(parse_success:grpc.testing.LoadParams)
3353 1 : return true;
3354 : failure:
3355 : // @@protoc_insertion_point(parse_failure:grpc.testing.LoadParams)
3356 0 : return false;
3357 : #undef DO_
3358 : }
3359 :
3360 0 : void LoadParams::SerializeWithCachedSizes(
3361 : ::google::protobuf::io::CodedOutputStream* output) const {
3362 : // @@protoc_insertion_point(serialize_start:grpc.testing.LoadParams)
3363 : // optional .grpc.testing.PoissonParams poisson = 1;
3364 0 : if (has_poisson()) {
3365 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3366 0 : 1, *load_.poisson_, output);
3367 : }
3368 :
3369 : // optional .grpc.testing.UniformParams uniform = 2;
3370 0 : if (has_uniform()) {
3371 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3372 0 : 2, *load_.uniform_, output);
3373 : }
3374 :
3375 : // optional .grpc.testing.DeterministicParams determ = 3;
3376 0 : if (has_determ()) {
3377 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3378 0 : 3, *load_.determ_, output);
3379 : }
3380 :
3381 : // optional .grpc.testing.ParetoParams pareto = 4;
3382 0 : if (has_pareto()) {
3383 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3384 0 : 4, *load_.pareto_, output);
3385 : }
3386 :
3387 : // @@protoc_insertion_point(serialize_end:grpc.testing.LoadParams)
3388 0 : }
3389 :
3390 1 : ::google::protobuf::uint8* LoadParams::SerializeWithCachedSizesToArray(
3391 : ::google::protobuf::uint8* target) const {
3392 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.LoadParams)
3393 : // optional .grpc.testing.PoissonParams poisson = 1;
3394 1 : if (has_poisson()) {
3395 : target = ::google::protobuf::internal::WireFormatLite::
3396 : WriteMessageNoVirtualToArray(
3397 2 : 1, *load_.poisson_, target);
3398 : }
3399 :
3400 : // optional .grpc.testing.UniformParams uniform = 2;
3401 1 : if (has_uniform()) {
3402 : target = ::google::protobuf::internal::WireFormatLite::
3403 : WriteMessageNoVirtualToArray(
3404 0 : 2, *load_.uniform_, target);
3405 : }
3406 :
3407 : // optional .grpc.testing.DeterministicParams determ = 3;
3408 1 : if (has_determ()) {
3409 : target = ::google::protobuf::internal::WireFormatLite::
3410 : WriteMessageNoVirtualToArray(
3411 0 : 3, *load_.determ_, target);
3412 : }
3413 :
3414 : // optional .grpc.testing.ParetoParams pareto = 4;
3415 1 : if (has_pareto()) {
3416 : target = ::google::protobuf::internal::WireFormatLite::
3417 : WriteMessageNoVirtualToArray(
3418 0 : 4, *load_.pareto_, target);
3419 : }
3420 :
3421 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.LoadParams)
3422 1 : return target;
3423 : }
3424 :
3425 1 : int LoadParams::ByteSize() const {
3426 1 : int total_size = 0;
3427 :
3428 1 : switch (load_case()) {
3429 : // optional .grpc.testing.PoissonParams poisson = 1;
3430 : case kPoisson: {
3431 : total_size += 1 +
3432 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3433 1 : *load_.poisson_);
3434 1 : break;
3435 : }
3436 : // optional .grpc.testing.UniformParams uniform = 2;
3437 : case kUniform: {
3438 : total_size += 1 +
3439 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3440 0 : *load_.uniform_);
3441 0 : break;
3442 : }
3443 : // optional .grpc.testing.DeterministicParams determ = 3;
3444 : case kDeterm: {
3445 : total_size += 1 +
3446 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3447 0 : *load_.determ_);
3448 0 : break;
3449 : }
3450 : // optional .grpc.testing.ParetoParams pareto = 4;
3451 : case kPareto: {
3452 : total_size += 1 +
3453 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3454 0 : *load_.pareto_);
3455 0 : break;
3456 : }
3457 : case LOAD_NOT_SET: {
3458 0 : break;
3459 : }
3460 : }
3461 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3462 1 : _cached_size_ = total_size;
3463 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3464 1 : return total_size;
3465 : }
3466 :
3467 0 : void LoadParams::MergeFrom(const ::google::protobuf::Message& from) {
3468 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
3469 : const LoadParams* source =
3470 : ::google::protobuf::internal::DynamicCastToGenerated<const LoadParams>(
3471 0 : &from);
3472 0 : if (source == NULL) {
3473 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3474 : } else {
3475 0 : MergeFrom(*source);
3476 : }
3477 0 : }
3478 :
3479 4 : void LoadParams::MergeFrom(const LoadParams& from) {
3480 4 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
3481 4 : switch (from.load_case()) {
3482 : case kPoisson: {
3483 4 : mutable_poisson()->::grpc::testing::PoissonParams::MergeFrom(from.poisson());
3484 4 : break;
3485 : }
3486 : case kUniform: {
3487 0 : mutable_uniform()->::grpc::testing::UniformParams::MergeFrom(from.uniform());
3488 0 : break;
3489 : }
3490 : case kDeterm: {
3491 0 : mutable_determ()->::grpc::testing::DeterministicParams::MergeFrom(from.determ());
3492 0 : break;
3493 : }
3494 : case kPareto: {
3495 0 : mutable_pareto()->::grpc::testing::ParetoParams::MergeFrom(from.pareto());
3496 0 : break;
3497 : }
3498 : case LOAD_NOT_SET: {
3499 0 : break;
3500 : }
3501 : }
3502 4 : }
3503 :
3504 0 : void LoadParams::CopyFrom(const ::google::protobuf::Message& from) {
3505 0 : if (&from == this) return;
3506 0 : Clear();
3507 0 : MergeFrom(from);
3508 : }
3509 :
3510 0 : void LoadParams::CopyFrom(const LoadParams& from) {
3511 0 : if (&from == this) return;
3512 0 : Clear();
3513 0 : MergeFrom(from);
3514 : }
3515 :
3516 0 : bool LoadParams::IsInitialized() const {
3517 :
3518 0 : return true;
3519 : }
3520 :
3521 0 : void LoadParams::Swap(LoadParams* other) {
3522 0 : if (other == this) return;
3523 0 : InternalSwap(other);
3524 : }
3525 0 : void LoadParams::InternalSwap(LoadParams* other) {
3526 0 : std::swap(load_, other->load_);
3527 0 : std::swap(_oneof_case_[0], other->_oneof_case_[0]);
3528 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
3529 0 : std::swap(_cached_size_, other->_cached_size_);
3530 0 : }
3531 :
3532 0 : ::google::protobuf::Metadata LoadParams::GetMetadata() const {
3533 0 : protobuf_AssignDescriptorsOnce();
3534 : ::google::protobuf::Metadata metadata;
3535 0 : metadata.descriptor = LoadParams_descriptor_;
3536 0 : metadata.reflection = LoadParams_reflection_;
3537 0 : return metadata;
3538 : }
3539 :
3540 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
3541 : // LoadParams
3542 :
3543 : // optional .grpc.testing.PoissonParams poisson = 1;
3544 : bool LoadParams::has_poisson() const {
3545 : return load_case() == kPoisson;
3546 : }
3547 : void LoadParams::set_has_poisson() {
3548 : _oneof_case_[0] = kPoisson;
3549 : }
3550 : void LoadParams::clear_poisson() {
3551 : if (has_poisson()) {
3552 : delete load_.poisson_;
3553 : clear_has_load();
3554 : }
3555 : }
3556 : const ::grpc::testing::PoissonParams& LoadParams::poisson() const {
3557 : // @@protoc_insertion_point(field_get:grpc.testing.LoadParams.poisson)
3558 : return has_poisson()
3559 : ? *load_.poisson_
3560 : : ::grpc::testing::PoissonParams::default_instance();
3561 : }
3562 : ::grpc::testing::PoissonParams* LoadParams::mutable_poisson() {
3563 : if (!has_poisson()) {
3564 : clear_load();
3565 : set_has_poisson();
3566 : load_.poisson_ = new ::grpc::testing::PoissonParams;
3567 : }
3568 : // @@protoc_insertion_point(field_mutable:grpc.testing.LoadParams.poisson)
3569 : return load_.poisson_;
3570 : }
3571 : ::grpc::testing::PoissonParams* LoadParams::release_poisson() {
3572 : if (has_poisson()) {
3573 : clear_has_load();
3574 : ::grpc::testing::PoissonParams* temp = load_.poisson_;
3575 : load_.poisson_ = NULL;
3576 : return temp;
3577 : } else {
3578 : return NULL;
3579 : }
3580 : }
3581 : void LoadParams::set_allocated_poisson(::grpc::testing::PoissonParams* poisson) {
3582 : clear_load();
3583 : if (poisson) {
3584 : set_has_poisson();
3585 : load_.poisson_ = poisson;
3586 : }
3587 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.LoadParams.poisson)
3588 : }
3589 :
3590 : // optional .grpc.testing.UniformParams uniform = 2;
3591 : bool LoadParams::has_uniform() const {
3592 : return load_case() == kUniform;
3593 : }
3594 : void LoadParams::set_has_uniform() {
3595 : _oneof_case_[0] = kUniform;
3596 : }
3597 : void LoadParams::clear_uniform() {
3598 : if (has_uniform()) {
3599 : delete load_.uniform_;
3600 : clear_has_load();
3601 : }
3602 : }
3603 : const ::grpc::testing::UniformParams& LoadParams::uniform() const {
3604 : // @@protoc_insertion_point(field_get:grpc.testing.LoadParams.uniform)
3605 : return has_uniform()
3606 : ? *load_.uniform_
3607 : : ::grpc::testing::UniformParams::default_instance();
3608 : }
3609 : ::grpc::testing::UniformParams* LoadParams::mutable_uniform() {
3610 : if (!has_uniform()) {
3611 : clear_load();
3612 : set_has_uniform();
3613 : load_.uniform_ = new ::grpc::testing::UniformParams;
3614 : }
3615 : // @@protoc_insertion_point(field_mutable:grpc.testing.LoadParams.uniform)
3616 : return load_.uniform_;
3617 : }
3618 : ::grpc::testing::UniformParams* LoadParams::release_uniform() {
3619 : if (has_uniform()) {
3620 : clear_has_load();
3621 : ::grpc::testing::UniformParams* temp = load_.uniform_;
3622 : load_.uniform_ = NULL;
3623 : return temp;
3624 : } else {
3625 : return NULL;
3626 : }
3627 : }
3628 : void LoadParams::set_allocated_uniform(::grpc::testing::UniformParams* uniform) {
3629 : clear_load();
3630 : if (uniform) {
3631 : set_has_uniform();
3632 : load_.uniform_ = uniform;
3633 : }
3634 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.LoadParams.uniform)
3635 : }
3636 :
3637 : // optional .grpc.testing.DeterministicParams determ = 3;
3638 : bool LoadParams::has_determ() const {
3639 : return load_case() == kDeterm;
3640 : }
3641 : void LoadParams::set_has_determ() {
3642 : _oneof_case_[0] = kDeterm;
3643 : }
3644 : void LoadParams::clear_determ() {
3645 : if (has_determ()) {
3646 : delete load_.determ_;
3647 : clear_has_load();
3648 : }
3649 : }
3650 : const ::grpc::testing::DeterministicParams& LoadParams::determ() const {
3651 : // @@protoc_insertion_point(field_get:grpc.testing.LoadParams.determ)
3652 : return has_determ()
3653 : ? *load_.determ_
3654 : : ::grpc::testing::DeterministicParams::default_instance();
3655 : }
3656 : ::grpc::testing::DeterministicParams* LoadParams::mutable_determ() {
3657 : if (!has_determ()) {
3658 : clear_load();
3659 : set_has_determ();
3660 : load_.determ_ = new ::grpc::testing::DeterministicParams;
3661 : }
3662 : // @@protoc_insertion_point(field_mutable:grpc.testing.LoadParams.determ)
3663 : return load_.determ_;
3664 : }
3665 : ::grpc::testing::DeterministicParams* LoadParams::release_determ() {
3666 : if (has_determ()) {
3667 : clear_has_load();
3668 : ::grpc::testing::DeterministicParams* temp = load_.determ_;
3669 : load_.determ_ = NULL;
3670 : return temp;
3671 : } else {
3672 : return NULL;
3673 : }
3674 : }
3675 : void LoadParams::set_allocated_determ(::grpc::testing::DeterministicParams* determ) {
3676 : clear_load();
3677 : if (determ) {
3678 : set_has_determ();
3679 : load_.determ_ = determ;
3680 : }
3681 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.LoadParams.determ)
3682 : }
3683 :
3684 : // optional .grpc.testing.ParetoParams pareto = 4;
3685 : bool LoadParams::has_pareto() const {
3686 : return load_case() == kPareto;
3687 : }
3688 : void LoadParams::set_has_pareto() {
3689 : _oneof_case_[0] = kPareto;
3690 : }
3691 : void LoadParams::clear_pareto() {
3692 : if (has_pareto()) {
3693 : delete load_.pareto_;
3694 : clear_has_load();
3695 : }
3696 : }
3697 : const ::grpc::testing::ParetoParams& LoadParams::pareto() const {
3698 : // @@protoc_insertion_point(field_get:grpc.testing.LoadParams.pareto)
3699 : return has_pareto()
3700 : ? *load_.pareto_
3701 : : ::grpc::testing::ParetoParams::default_instance();
3702 : }
3703 : ::grpc::testing::ParetoParams* LoadParams::mutable_pareto() {
3704 : if (!has_pareto()) {
3705 : clear_load();
3706 : set_has_pareto();
3707 : load_.pareto_ = new ::grpc::testing::ParetoParams;
3708 : }
3709 : // @@protoc_insertion_point(field_mutable:grpc.testing.LoadParams.pareto)
3710 : return load_.pareto_;
3711 : }
3712 : ::grpc::testing::ParetoParams* LoadParams::release_pareto() {
3713 : if (has_pareto()) {
3714 : clear_has_load();
3715 : ::grpc::testing::ParetoParams* temp = load_.pareto_;
3716 : load_.pareto_ = NULL;
3717 : return temp;
3718 : } else {
3719 : return NULL;
3720 : }
3721 : }
3722 : void LoadParams::set_allocated_pareto(::grpc::testing::ParetoParams* pareto) {
3723 : clear_load();
3724 : if (pareto) {
3725 : set_has_pareto();
3726 : load_.pareto_ = pareto;
3727 : }
3728 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.LoadParams.pareto)
3729 : }
3730 :
3731 : bool LoadParams::has_load() const {
3732 : return load_case() != LOAD_NOT_SET;
3733 : }
3734 : void LoadParams::clear_has_load() {
3735 : _oneof_case_[0] = LOAD_NOT_SET;
3736 : }
3737 : LoadParams::LoadCase LoadParams::load_case() const {
3738 : return LoadParams::LoadCase(_oneof_case_[0]);
3739 : }
3740 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
3741 :
3742 : // ===================================================================
3743 :
3744 : #ifndef _MSC_VER
3745 : const int ClientConfig::kServerTargetsFieldNumber;
3746 : const int ClientConfig::kClientTypeFieldNumber;
3747 : const int ClientConfig::kEnableSslFieldNumber;
3748 : const int ClientConfig::kOutstandingRpcsPerChannelFieldNumber;
3749 : const int ClientConfig::kClientChannelsFieldNumber;
3750 : const int ClientConfig::kPayloadSizeFieldNumber;
3751 : const int ClientConfig::kAsyncClientThreadsFieldNumber;
3752 : const int ClientConfig::kRpcTypeFieldNumber;
3753 : const int ClientConfig::kHostFieldNumber;
3754 : const int ClientConfig::kLoadTypeFieldNumber;
3755 : const int ClientConfig::kLoadParamsFieldNumber;
3756 : #endif // !_MSC_VER
3757 :
3758 56 : ClientConfig::ClientConfig()
3759 56 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3760 56 : SharedCtor();
3761 : // @@protoc_insertion_point(constructor:grpc.testing.ClientConfig)
3762 56 : }
3763 :
3764 6 : void ClientConfig::InitAsDefaultInstance() {
3765 6 : _is_default_instance_ = true;
3766 6 : load_params_ = const_cast< ::grpc::testing::LoadParams*>(&::grpc::testing::LoadParams::default_instance());
3767 6 : }
3768 :
3769 6 : ClientConfig::ClientConfig(const ClientConfig& from)
3770 : : ::google::protobuf::Message(),
3771 6 : _internal_metadata_(NULL) {
3772 6 : SharedCtor();
3773 6 : MergeFrom(from);
3774 : // @@protoc_insertion_point(copy_constructor:grpc.testing.ClientConfig)
3775 6 : }
3776 :
3777 62 : void ClientConfig::SharedCtor() {
3778 62 : _is_default_instance_ = false;
3779 62 : ::google::protobuf::internal::GetEmptyString();
3780 62 : _cached_size_ = 0;
3781 62 : client_type_ = 0;
3782 62 : enable_ssl_ = false;
3783 62 : outstanding_rpcs_per_channel_ = 0;
3784 62 : client_channels_ = 0;
3785 62 : payload_size_ = 0;
3786 62 : async_client_threads_ = 0;
3787 62 : rpc_type_ = 0;
3788 62 : host_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3789 62 : load_type_ = 0;
3790 62 : load_params_ = NULL;
3791 62 : }
3792 :
3793 124 : ClientConfig::~ClientConfig() {
3794 : // @@protoc_insertion_point(destructor:grpc.testing.ClientConfig)
3795 56 : SharedDtor();
3796 68 : }
3797 :
3798 56 : void ClientConfig::SharedDtor() {
3799 56 : host_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3800 56 : if (this != default_instance_) {
3801 56 : delete load_params_;
3802 : }
3803 56 : }
3804 :
3805 0 : void ClientConfig::SetCachedSize(int size) const {
3806 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3807 0 : _cached_size_ = size;
3808 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
3809 0 : }
3810 0 : const ::google::protobuf::Descriptor* ClientConfig::descriptor() {
3811 0 : protobuf_AssignDescriptorsOnce();
3812 0 : return ClientConfig_descriptor_;
3813 : }
3814 :
3815 12 : const ClientConfig& ClientConfig::default_instance() {
3816 12 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
3817 12 : return *default_instance_;
3818 : }
3819 :
3820 : ClientConfig* ClientConfig::default_instance_ = NULL;
3821 :
3822 0 : ClientConfig* ClientConfig::New(::google::protobuf::Arena* arena) const {
3823 0 : ClientConfig* n = new ClientConfig;
3824 0 : if (arena != NULL) {
3825 0 : arena->Own(n);
3826 : }
3827 0 : return n;
3828 : }
3829 :
3830 18 : void ClientConfig::Clear() {
3831 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
3832 : &reinterpret_cast<ClientConfig*>(16)->f)
3833 :
3834 : #define ZR_(first, last) do {\
3835 : ::memset(&first, 0,\
3836 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
3837 : } while (0)
3838 :
3839 18 : ZR_(client_type_, async_client_threads_);
3840 18 : rpc_type_ = 0;
3841 18 : host_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3842 18 : load_type_ = 0;
3843 18 : if (GetArenaNoVirtual() == NULL && load_params_ != NULL) delete load_params_;
3844 18 : load_params_ = NULL;
3845 :
3846 : #undef ZR_HELPER_
3847 : #undef ZR_
3848 :
3849 18 : server_targets_.Clear();
3850 18 : }
3851 :
3852 19 : bool ClientConfig::MergePartialFromCodedStream(
3853 : ::google::protobuf::io::CodedInputStream* input) {
3854 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3855 : ::google::protobuf::uint32 tag;
3856 : // @@protoc_insertion_point(parse_start:grpc.testing.ClientConfig)
3857 : for (;;) {
3858 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3859 19 : tag = p.first;
3860 24 : if (!p.second) goto handle_unusual;
3861 14 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3862 : // repeated string server_targets = 1;
3863 : case 1: {
3864 6 : if (tag == 10) {
3865 : parse_server_targets:
3866 6 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3867 : input, this->add_server_targets()));
3868 6 : DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3869 : this->server_targets(this->server_targets_size() - 1).data(),
3870 : this->server_targets(this->server_targets_size() - 1).length(),
3871 : ::google::protobuf::internal::WireFormatLite::PARSE,
3872 : "grpc.testing.ClientConfig.server_targets"));
3873 : } else {
3874 0 : goto handle_unusual;
3875 : }
3876 6 : if (input->ExpectTag(10)) goto parse_server_targets;
3877 6 : if (input->ExpectTag(16)) goto parse_client_type;
3878 2 : break;
3879 : }
3880 :
3881 : // optional .grpc.testing.ClientType client_type = 2;
3882 : case 2: {
3883 0 : if (tag == 16) {
3884 : parse_client_type:
3885 : int value;
3886 4 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3887 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3888 : input, &value)));
3889 4 : set_client_type(static_cast< ::grpc::testing::ClientType >(value));
3890 : } else {
3891 0 : goto handle_unusual;
3892 : }
3893 4 : if (input->ExpectTag(24)) goto parse_enable_ssl;
3894 4 : break;
3895 : }
3896 :
3897 : // optional bool enable_ssl = 3;
3898 : case 3: {
3899 0 : if (tag == 24) {
3900 : parse_enable_ssl:
3901 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3902 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3903 : input, &enable_ssl_)));
3904 :
3905 : } else {
3906 0 : goto handle_unusual;
3907 : }
3908 0 : if (input->ExpectTag(32)) goto parse_outstanding_rpcs_per_channel;
3909 0 : break;
3910 : }
3911 :
3912 : // optional int32 outstanding_rpcs_per_channel = 4;
3913 : case 4: {
3914 6 : if (tag == 32) {
3915 : parse_outstanding_rpcs_per_channel:
3916 12 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3917 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3918 : input, &outstanding_rpcs_per_channel_)));
3919 :
3920 : } else {
3921 0 : goto handle_unusual;
3922 : }
3923 6 : if (input->ExpectTag(40)) goto parse_client_channels;
3924 0 : break;
3925 : }
3926 :
3927 : // optional int32 client_channels = 5;
3928 : case 5: {
3929 0 : if (tag == 40) {
3930 : parse_client_channels:
3931 12 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3932 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3933 : input, &client_channels_)));
3934 :
3935 : } else {
3936 0 : goto handle_unusual;
3937 : }
3938 6 : if (input->ExpectTag(48)) goto parse_payload_size;
3939 0 : break;
3940 : }
3941 :
3942 : // optional int32 payload_size = 6;
3943 : case 6: {
3944 0 : if (tag == 48) {
3945 : parse_payload_size:
3946 12 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3947 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3948 : input, &payload_size_)));
3949 :
3950 : } else {
3951 0 : goto handle_unusual;
3952 : }
3953 6 : if (input->ExpectTag(56)) goto parse_async_client_threads;
3954 2 : break;
3955 : }
3956 :
3957 : // optional int32 async_client_threads = 7;
3958 : case 7: {
3959 0 : if (tag == 56) {
3960 : parse_async_client_threads:
3961 8 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3962 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3963 : input, &async_client_threads_)));
3964 :
3965 : } else {
3966 0 : goto handle_unusual;
3967 : }
3968 4 : if (input->ExpectTag(64)) goto parse_rpc_type;
3969 3 : break;
3970 : }
3971 :
3972 : // optional .grpc.testing.RpcType rpc_type = 8;
3973 : case 8: {
3974 1 : if (tag == 64) {
3975 : parse_rpc_type:
3976 : int value;
3977 2 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3978 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3979 : input, &value)));
3980 2 : set_rpc_type(static_cast< ::grpc::testing::RpcType >(value));
3981 : } else {
3982 0 : goto handle_unusual;
3983 : }
3984 2 : if (input->ExpectTag(74)) goto parse_host;
3985 2 : break;
3986 : }
3987 :
3988 : // optional string host = 9;
3989 : case 9: {
3990 0 : if (tag == 74) {
3991 : parse_host:
3992 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3993 : input, this->mutable_host()));
3994 0 : DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3995 : this->host().data(), this->host().length(),
3996 : ::google::protobuf::internal::WireFormatLite::PARSE,
3997 : "grpc.testing.ClientConfig.host"));
3998 : } else {
3999 0 : goto handle_unusual;
4000 : }
4001 0 : if (input->ExpectTag(80)) goto parse_load_type;
4002 0 : break;
4003 : }
4004 :
4005 : // optional .grpc.testing.LoadType load_type = 10;
4006 : case 10: {
4007 1 : if (tag == 80) {
4008 : parse_load_type:
4009 : int value;
4010 1 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4011 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4012 : input, &value)));
4013 1 : set_load_type(static_cast< ::grpc::testing::LoadType >(value));
4014 : } else {
4015 0 : goto handle_unusual;
4016 : }
4017 1 : if (input->ExpectTag(90)) goto parse_load_params;
4018 0 : break;
4019 : }
4020 :
4021 : // optional .grpc.testing.LoadParams load_params = 11;
4022 : case 11: {
4023 0 : if (tag == 90) {
4024 : parse_load_params:
4025 1 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4026 : input, mutable_load_params()));
4027 : } else {
4028 0 : goto handle_unusual;
4029 : }
4030 7 : if (input->ExpectAtEnd()) goto success;
4031 0 : break;
4032 : }
4033 :
4034 : default: {
4035 : handle_unusual:
4036 5 : if (tag == 0 ||
4037 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4038 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4039 5 : goto success;
4040 : }
4041 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
4042 0 : break;
4043 : }
4044 : }
4045 13 : }
4046 : success:
4047 : // @@protoc_insertion_point(parse_success:grpc.testing.ClientConfig)
4048 6 : return true;
4049 : failure:
4050 : // @@protoc_insertion_point(parse_failure:grpc.testing.ClientConfig)
4051 0 : return false;
4052 : #undef DO_
4053 : }
4054 :
4055 0 : void ClientConfig::SerializeWithCachedSizes(
4056 : ::google::protobuf::io::CodedOutputStream* output) const {
4057 : // @@protoc_insertion_point(serialize_start:grpc.testing.ClientConfig)
4058 : // repeated string server_targets = 1;
4059 0 : for (int i = 0; i < this->server_targets_size(); i++) {
4060 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4061 0 : this->server_targets(i).data(), this->server_targets(i).length(),
4062 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4063 0 : "grpc.testing.ClientConfig.server_targets");
4064 : ::google::protobuf::internal::WireFormatLite::WriteString(
4065 0 : 1, this->server_targets(i), output);
4066 : }
4067 :
4068 : // optional .grpc.testing.ClientType client_type = 2;
4069 0 : if (this->client_type() != 0) {
4070 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
4071 0 : 2, this->client_type(), output);
4072 : }
4073 :
4074 : // optional bool enable_ssl = 3;
4075 0 : if (this->enable_ssl() != 0) {
4076 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->enable_ssl(), output);
4077 : }
4078 :
4079 : // optional int32 outstanding_rpcs_per_channel = 4;
4080 0 : if (this->outstanding_rpcs_per_channel() != 0) {
4081 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->outstanding_rpcs_per_channel(), output);
4082 : }
4083 :
4084 : // optional int32 client_channels = 5;
4085 0 : if (this->client_channels() != 0) {
4086 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->client_channels(), output);
4087 : }
4088 :
4089 : // optional int32 payload_size = 6;
4090 0 : if (this->payload_size() != 0) {
4091 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->payload_size(), output);
4092 : }
4093 :
4094 : // optional int32 async_client_threads = 7;
4095 0 : if (this->async_client_threads() != 0) {
4096 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->async_client_threads(), output);
4097 : }
4098 :
4099 : // optional .grpc.testing.RpcType rpc_type = 8;
4100 0 : if (this->rpc_type() != 0) {
4101 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
4102 0 : 8, this->rpc_type(), output);
4103 : }
4104 :
4105 : // optional string host = 9;
4106 0 : if (this->host().size() > 0) {
4107 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4108 0 : this->host().data(), this->host().length(),
4109 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4110 0 : "grpc.testing.ClientConfig.host");
4111 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4112 0 : 9, this->host(), output);
4113 : }
4114 :
4115 : // optional .grpc.testing.LoadType load_type = 10;
4116 0 : if (this->load_type() != 0) {
4117 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
4118 0 : 10, this->load_type(), output);
4119 : }
4120 :
4121 : // optional .grpc.testing.LoadParams load_params = 11;
4122 0 : if (this->has_load_params()) {
4123 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4124 0 : 11, *this->load_params_, output);
4125 : }
4126 :
4127 : // @@protoc_insertion_point(serialize_end:grpc.testing.ClientConfig)
4128 0 : }
4129 :
4130 6 : ::google::protobuf::uint8* ClientConfig::SerializeWithCachedSizesToArray(
4131 : ::google::protobuf::uint8* target) const {
4132 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.ClientConfig)
4133 : // repeated string server_targets = 1;
4134 12 : for (int i = 0; i < this->server_targets_size(); i++) {
4135 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4136 12 : this->server_targets(i).data(), this->server_targets(i).length(),
4137 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4138 12 : "grpc.testing.ClientConfig.server_targets");
4139 : target = ::google::protobuf::internal::WireFormatLite::
4140 12 : WriteStringToArray(1, this->server_targets(i), target);
4141 : }
4142 :
4143 : // optional .grpc.testing.ClientType client_type = 2;
4144 6 : if (this->client_type() != 0) {
4145 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4146 8 : 2, this->client_type(), target);
4147 : }
4148 :
4149 : // optional bool enable_ssl = 3;
4150 6 : if (this->enable_ssl() != 0) {
4151 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->enable_ssl(), target);
4152 : }
4153 :
4154 : // optional int32 outstanding_rpcs_per_channel = 4;
4155 6 : if (this->outstanding_rpcs_per_channel() != 0) {
4156 12 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->outstanding_rpcs_per_channel(), target);
4157 : }
4158 :
4159 : // optional int32 client_channels = 5;
4160 6 : if (this->client_channels() != 0) {
4161 12 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->client_channels(), target);
4162 : }
4163 :
4164 : // optional int32 payload_size = 6;
4165 6 : if (this->payload_size() != 0) {
4166 12 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->payload_size(), target);
4167 : }
4168 :
4169 : // optional int32 async_client_threads = 7;
4170 6 : if (this->async_client_threads() != 0) {
4171 8 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->async_client_threads(), target);
4172 : }
4173 :
4174 : // optional .grpc.testing.RpcType rpc_type = 8;
4175 6 : if (this->rpc_type() != 0) {
4176 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4177 4 : 8, this->rpc_type(), target);
4178 : }
4179 :
4180 : // optional string host = 9;
4181 6 : if (this->host().size() > 0) {
4182 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4183 0 : this->host().data(), this->host().length(),
4184 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4185 0 : "grpc.testing.ClientConfig.host");
4186 : target =
4187 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4188 0 : 9, this->host(), target);
4189 : }
4190 :
4191 : // optional .grpc.testing.LoadType load_type = 10;
4192 6 : if (this->load_type() != 0) {
4193 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4194 2 : 10, this->load_type(), target);
4195 : }
4196 :
4197 : // optional .grpc.testing.LoadParams load_params = 11;
4198 6 : if (this->has_load_params()) {
4199 : target = ::google::protobuf::internal::WireFormatLite::
4200 : WriteMessageNoVirtualToArray(
4201 2 : 11, *this->load_params_, target);
4202 : }
4203 :
4204 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.ClientConfig)
4205 6 : return target;
4206 : }
4207 :
4208 6 : int ClientConfig::ByteSize() const {
4209 6 : int total_size = 0;
4210 :
4211 : // optional .grpc.testing.ClientType client_type = 2;
4212 6 : if (this->client_type() != 0) {
4213 : total_size += 1 +
4214 4 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->client_type());
4215 : }
4216 :
4217 : // optional bool enable_ssl = 3;
4218 6 : if (this->enable_ssl() != 0) {
4219 0 : total_size += 1 + 1;
4220 : }
4221 :
4222 : // optional int32 outstanding_rpcs_per_channel = 4;
4223 6 : if (this->outstanding_rpcs_per_channel() != 0) {
4224 : total_size += 1 +
4225 : ::google::protobuf::internal::WireFormatLite::Int32Size(
4226 6 : this->outstanding_rpcs_per_channel());
4227 : }
4228 :
4229 : // optional int32 client_channels = 5;
4230 6 : if (this->client_channels() != 0) {
4231 : total_size += 1 +
4232 : ::google::protobuf::internal::WireFormatLite::Int32Size(
4233 6 : this->client_channels());
4234 : }
4235 :
4236 : // optional int32 payload_size = 6;
4237 6 : if (this->payload_size() != 0) {
4238 : total_size += 1 +
4239 : ::google::protobuf::internal::WireFormatLite::Int32Size(
4240 6 : this->payload_size());
4241 : }
4242 :
4243 : // optional int32 async_client_threads = 7;
4244 6 : if (this->async_client_threads() != 0) {
4245 : total_size += 1 +
4246 : ::google::protobuf::internal::WireFormatLite::Int32Size(
4247 4 : this->async_client_threads());
4248 : }
4249 :
4250 : // optional .grpc.testing.RpcType rpc_type = 8;
4251 6 : if (this->rpc_type() != 0) {
4252 : total_size += 1 +
4253 2 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->rpc_type());
4254 : }
4255 :
4256 : // optional string host = 9;
4257 6 : if (this->host().size() > 0) {
4258 : total_size += 1 +
4259 : ::google::protobuf::internal::WireFormatLite::StringSize(
4260 0 : this->host());
4261 : }
4262 :
4263 : // optional .grpc.testing.LoadType load_type = 10;
4264 6 : if (this->load_type() != 0) {
4265 : total_size += 1 +
4266 1 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->load_type());
4267 : }
4268 :
4269 : // optional .grpc.testing.LoadParams load_params = 11;
4270 6 : if (this->has_load_params()) {
4271 : total_size += 1 +
4272 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4273 1 : *this->load_params_);
4274 : }
4275 :
4276 : // repeated string server_targets = 1;
4277 6 : total_size += 1 * this->server_targets_size();
4278 12 : for (int i = 0; i < this->server_targets_size(); i++) {
4279 : total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
4280 6 : this->server_targets(i));
4281 : }
4282 :
4283 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4284 6 : _cached_size_ = total_size;
4285 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4286 6 : return total_size;
4287 : }
4288 :
4289 0 : void ClientConfig::MergeFrom(const ::google::protobuf::Message& from) {
4290 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
4291 : const ClientConfig* source =
4292 : ::google::protobuf::internal::DynamicCastToGenerated<const ClientConfig>(
4293 0 : &from);
4294 0 : if (source == NULL) {
4295 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4296 : } else {
4297 0 : MergeFrom(*source);
4298 : }
4299 0 : }
4300 :
4301 24 : void ClientConfig::MergeFrom(const ClientConfig& from) {
4302 24 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
4303 24 : server_targets_.MergeFrom(from.server_targets_);
4304 24 : if (from.client_type() != 0) {
4305 16 : set_client_type(from.client_type());
4306 : }
4307 24 : if (from.enable_ssl() != 0) {
4308 0 : set_enable_ssl(from.enable_ssl());
4309 : }
4310 24 : if (from.outstanding_rpcs_per_channel() != 0) {
4311 24 : set_outstanding_rpcs_per_channel(from.outstanding_rpcs_per_channel());
4312 : }
4313 24 : if (from.client_channels() != 0) {
4314 24 : set_client_channels(from.client_channels());
4315 : }
4316 24 : if (from.payload_size() != 0) {
4317 24 : set_payload_size(from.payload_size());
4318 : }
4319 24 : if (from.async_client_threads() != 0) {
4320 16 : set_async_client_threads(from.async_client_threads());
4321 : }
4322 24 : if (from.rpc_type() != 0) {
4323 8 : set_rpc_type(from.rpc_type());
4324 : }
4325 24 : if (from.host().size() > 0) {
4326 :
4327 6 : host_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.host_);
4328 : }
4329 24 : if (from.load_type() != 0) {
4330 4 : set_load_type(from.load_type());
4331 : }
4332 24 : if (from.has_load_params()) {
4333 4 : mutable_load_params()->::grpc::testing::LoadParams::MergeFrom(from.load_params());
4334 : }
4335 24 : }
4336 :
4337 0 : void ClientConfig::CopyFrom(const ::google::protobuf::Message& from) {
4338 0 : if (&from == this) return;
4339 0 : Clear();
4340 0 : MergeFrom(from);
4341 : }
4342 :
4343 18 : void ClientConfig::CopyFrom(const ClientConfig& from) {
4344 36 : if (&from == this) return;
4345 18 : Clear();
4346 18 : MergeFrom(from);
4347 : }
4348 :
4349 0 : bool ClientConfig::IsInitialized() const {
4350 :
4351 0 : return true;
4352 : }
4353 :
4354 0 : void ClientConfig::Swap(ClientConfig* other) {
4355 0 : if (other == this) return;
4356 0 : InternalSwap(other);
4357 : }
4358 0 : void ClientConfig::InternalSwap(ClientConfig* other) {
4359 0 : server_targets_.UnsafeArenaSwap(&other->server_targets_);
4360 0 : std::swap(client_type_, other->client_type_);
4361 0 : std::swap(enable_ssl_, other->enable_ssl_);
4362 0 : std::swap(outstanding_rpcs_per_channel_, other->outstanding_rpcs_per_channel_);
4363 0 : std::swap(client_channels_, other->client_channels_);
4364 0 : std::swap(payload_size_, other->payload_size_);
4365 0 : std::swap(async_client_threads_, other->async_client_threads_);
4366 0 : std::swap(rpc_type_, other->rpc_type_);
4367 0 : host_.Swap(&other->host_);
4368 0 : std::swap(load_type_, other->load_type_);
4369 0 : std::swap(load_params_, other->load_params_);
4370 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
4371 0 : std::swap(_cached_size_, other->_cached_size_);
4372 0 : }
4373 :
4374 0 : ::google::protobuf::Metadata ClientConfig::GetMetadata() const {
4375 0 : protobuf_AssignDescriptorsOnce();
4376 : ::google::protobuf::Metadata metadata;
4377 0 : metadata.descriptor = ClientConfig_descriptor_;
4378 0 : metadata.reflection = ClientConfig_reflection_;
4379 0 : return metadata;
4380 : }
4381 :
4382 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
4383 : // ClientConfig
4384 :
4385 : // repeated string server_targets = 1;
4386 : int ClientConfig::server_targets_size() const {
4387 : return server_targets_.size();
4388 : }
4389 : void ClientConfig::clear_server_targets() {
4390 : server_targets_.Clear();
4391 : }
4392 : const ::std::string& ClientConfig::server_targets(int index) const {
4393 : // @@protoc_insertion_point(field_get:grpc.testing.ClientConfig.server_targets)
4394 : return server_targets_.Get(index);
4395 : }
4396 : ::std::string* ClientConfig::mutable_server_targets(int index) {
4397 : // @@protoc_insertion_point(field_mutable:grpc.testing.ClientConfig.server_targets)
4398 : return server_targets_.Mutable(index);
4399 : }
4400 : void ClientConfig::set_server_targets(int index, const ::std::string& value) {
4401 : // @@protoc_insertion_point(field_set:grpc.testing.ClientConfig.server_targets)
4402 : server_targets_.Mutable(index)->assign(value);
4403 : }
4404 : void ClientConfig::set_server_targets(int index, const char* value) {
4405 : server_targets_.Mutable(index)->assign(value);
4406 : // @@protoc_insertion_point(field_set_char:grpc.testing.ClientConfig.server_targets)
4407 : }
4408 : void ClientConfig::set_server_targets(int index, const char* value, size_t size) {
4409 : server_targets_.Mutable(index)->assign(
4410 : reinterpret_cast<const char*>(value), size);
4411 : // @@protoc_insertion_point(field_set_pointer:grpc.testing.ClientConfig.server_targets)
4412 : }
4413 : ::std::string* ClientConfig::add_server_targets() {
4414 : return server_targets_.Add();
4415 : }
4416 : void ClientConfig::add_server_targets(const ::std::string& value) {
4417 : server_targets_.Add()->assign(value);
4418 : // @@protoc_insertion_point(field_add:grpc.testing.ClientConfig.server_targets)
4419 : }
4420 : void ClientConfig::add_server_targets(const char* value) {
4421 : server_targets_.Add()->assign(value);
4422 : // @@protoc_insertion_point(field_add_char:grpc.testing.ClientConfig.server_targets)
4423 : }
4424 : void ClientConfig::add_server_targets(const char* value, size_t size) {
4425 : server_targets_.Add()->assign(reinterpret_cast<const char*>(value), size);
4426 : // @@protoc_insertion_point(field_add_pointer:grpc.testing.ClientConfig.server_targets)
4427 : }
4428 : const ::google::protobuf::RepeatedPtrField< ::std::string>&
4429 : ClientConfig::server_targets() const {
4430 : // @@protoc_insertion_point(field_list:grpc.testing.ClientConfig.server_targets)
4431 : return server_targets_;
4432 : }
4433 : ::google::protobuf::RepeatedPtrField< ::std::string>*
4434 : ClientConfig::mutable_server_targets() {
4435 : // @@protoc_insertion_point(field_mutable_list:grpc.testing.ClientConfig.server_targets)
4436 : return &server_targets_;
4437 : }
4438 :
4439 : // optional .grpc.testing.ClientType client_type = 2;
4440 : void ClientConfig::clear_client_type() {
4441 : client_type_ = 0;
4442 : }
4443 : ::grpc::testing::ClientType ClientConfig::client_type() const {
4444 : // @@protoc_insertion_point(field_get:grpc.testing.ClientConfig.client_type)
4445 : return static_cast< ::grpc::testing::ClientType >(client_type_);
4446 : }
4447 : void ClientConfig::set_client_type(::grpc::testing::ClientType value) {
4448 :
4449 : client_type_ = value;
4450 : // @@protoc_insertion_point(field_set:grpc.testing.ClientConfig.client_type)
4451 : }
4452 :
4453 : // optional bool enable_ssl = 3;
4454 : void ClientConfig::clear_enable_ssl() {
4455 : enable_ssl_ = false;
4456 : }
4457 : bool ClientConfig::enable_ssl() const {
4458 : // @@protoc_insertion_point(field_get:grpc.testing.ClientConfig.enable_ssl)
4459 : return enable_ssl_;
4460 : }
4461 : void ClientConfig::set_enable_ssl(bool value) {
4462 :
4463 : enable_ssl_ = value;
4464 : // @@protoc_insertion_point(field_set:grpc.testing.ClientConfig.enable_ssl)
4465 : }
4466 :
4467 : // optional int32 outstanding_rpcs_per_channel = 4;
4468 : void ClientConfig::clear_outstanding_rpcs_per_channel() {
4469 : outstanding_rpcs_per_channel_ = 0;
4470 : }
4471 : ::google::protobuf::int32 ClientConfig::outstanding_rpcs_per_channel() const {
4472 : // @@protoc_insertion_point(field_get:grpc.testing.ClientConfig.outstanding_rpcs_per_channel)
4473 : return outstanding_rpcs_per_channel_;
4474 : }
4475 : void ClientConfig::set_outstanding_rpcs_per_channel(::google::protobuf::int32 value) {
4476 :
4477 : outstanding_rpcs_per_channel_ = value;
4478 : // @@protoc_insertion_point(field_set:grpc.testing.ClientConfig.outstanding_rpcs_per_channel)
4479 : }
4480 :
4481 : // optional int32 client_channels = 5;
4482 : void ClientConfig::clear_client_channels() {
4483 : client_channels_ = 0;
4484 : }
4485 : ::google::protobuf::int32 ClientConfig::client_channels() const {
4486 : // @@protoc_insertion_point(field_get:grpc.testing.ClientConfig.client_channels)
4487 : return client_channels_;
4488 : }
4489 : void ClientConfig::set_client_channels(::google::protobuf::int32 value) {
4490 :
4491 : client_channels_ = value;
4492 : // @@protoc_insertion_point(field_set:grpc.testing.ClientConfig.client_channels)
4493 : }
4494 :
4495 : // optional int32 payload_size = 6;
4496 : void ClientConfig::clear_payload_size() {
4497 : payload_size_ = 0;
4498 : }
4499 : ::google::protobuf::int32 ClientConfig::payload_size() const {
4500 : // @@protoc_insertion_point(field_get:grpc.testing.ClientConfig.payload_size)
4501 : return payload_size_;
4502 : }
4503 : void ClientConfig::set_payload_size(::google::protobuf::int32 value) {
4504 :
4505 : payload_size_ = value;
4506 : // @@protoc_insertion_point(field_set:grpc.testing.ClientConfig.payload_size)
4507 : }
4508 :
4509 : // optional int32 async_client_threads = 7;
4510 : void ClientConfig::clear_async_client_threads() {
4511 : async_client_threads_ = 0;
4512 : }
4513 : ::google::protobuf::int32 ClientConfig::async_client_threads() const {
4514 : // @@protoc_insertion_point(field_get:grpc.testing.ClientConfig.async_client_threads)
4515 : return async_client_threads_;
4516 : }
4517 : void ClientConfig::set_async_client_threads(::google::protobuf::int32 value) {
4518 :
4519 : async_client_threads_ = value;
4520 : // @@protoc_insertion_point(field_set:grpc.testing.ClientConfig.async_client_threads)
4521 : }
4522 :
4523 : // optional .grpc.testing.RpcType rpc_type = 8;
4524 : void ClientConfig::clear_rpc_type() {
4525 : rpc_type_ = 0;
4526 : }
4527 : ::grpc::testing::RpcType ClientConfig::rpc_type() const {
4528 : // @@protoc_insertion_point(field_get:grpc.testing.ClientConfig.rpc_type)
4529 : return static_cast< ::grpc::testing::RpcType >(rpc_type_);
4530 : }
4531 : void ClientConfig::set_rpc_type(::grpc::testing::RpcType value) {
4532 :
4533 : rpc_type_ = value;
4534 : // @@protoc_insertion_point(field_set:grpc.testing.ClientConfig.rpc_type)
4535 : }
4536 :
4537 : // optional string host = 9;
4538 : void ClientConfig::clear_host() {
4539 : host_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4540 : }
4541 : const ::std::string& ClientConfig::host() const {
4542 : // @@protoc_insertion_point(field_get:grpc.testing.ClientConfig.host)
4543 : return host_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4544 : }
4545 : void ClientConfig::set_host(const ::std::string& value) {
4546 :
4547 : host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4548 : // @@protoc_insertion_point(field_set:grpc.testing.ClientConfig.host)
4549 : }
4550 : void ClientConfig::set_host(const char* value) {
4551 :
4552 : host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4553 : // @@protoc_insertion_point(field_set_char:grpc.testing.ClientConfig.host)
4554 : }
4555 : void ClientConfig::set_host(const char* value, size_t size) {
4556 :
4557 : host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4558 : ::std::string(reinterpret_cast<const char*>(value), size));
4559 : // @@protoc_insertion_point(field_set_pointer:grpc.testing.ClientConfig.host)
4560 : }
4561 : ::std::string* ClientConfig::mutable_host() {
4562 :
4563 : // @@protoc_insertion_point(field_mutable:grpc.testing.ClientConfig.host)
4564 : return host_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4565 : }
4566 : ::std::string* ClientConfig::release_host() {
4567 :
4568 : return host_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4569 : }
4570 : void ClientConfig::set_allocated_host(::std::string* host) {
4571 : if (host != NULL) {
4572 :
4573 : } else {
4574 :
4575 : }
4576 : host_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), host);
4577 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.ClientConfig.host)
4578 : }
4579 :
4580 : // optional .grpc.testing.LoadType load_type = 10;
4581 : void ClientConfig::clear_load_type() {
4582 : load_type_ = 0;
4583 : }
4584 : ::grpc::testing::LoadType ClientConfig::load_type() const {
4585 : // @@protoc_insertion_point(field_get:grpc.testing.ClientConfig.load_type)
4586 : return static_cast< ::grpc::testing::LoadType >(load_type_);
4587 : }
4588 : void ClientConfig::set_load_type(::grpc::testing::LoadType value) {
4589 :
4590 : load_type_ = value;
4591 : // @@protoc_insertion_point(field_set:grpc.testing.ClientConfig.load_type)
4592 : }
4593 :
4594 : // optional .grpc.testing.LoadParams load_params = 11;
4595 : bool ClientConfig::has_load_params() const {
4596 : return !_is_default_instance_ && load_params_ != NULL;
4597 : }
4598 : void ClientConfig::clear_load_params() {
4599 : if (GetArenaNoVirtual() == NULL && load_params_ != NULL) delete load_params_;
4600 : load_params_ = NULL;
4601 : }
4602 : const ::grpc::testing::LoadParams& ClientConfig::load_params() const {
4603 : // @@protoc_insertion_point(field_get:grpc.testing.ClientConfig.load_params)
4604 : return load_params_ != NULL ? *load_params_ : *default_instance_->load_params_;
4605 : }
4606 : ::grpc::testing::LoadParams* ClientConfig::mutable_load_params() {
4607 :
4608 : if (load_params_ == NULL) {
4609 : load_params_ = new ::grpc::testing::LoadParams;
4610 : }
4611 : // @@protoc_insertion_point(field_mutable:grpc.testing.ClientConfig.load_params)
4612 : return load_params_;
4613 : }
4614 : ::grpc::testing::LoadParams* ClientConfig::release_load_params() {
4615 :
4616 : ::grpc::testing::LoadParams* temp = load_params_;
4617 : load_params_ = NULL;
4618 : return temp;
4619 : }
4620 : void ClientConfig::set_allocated_load_params(::grpc::testing::LoadParams* load_params) {
4621 : delete load_params_;
4622 : load_params_ = load_params;
4623 : if (load_params) {
4624 :
4625 : } else {
4626 :
4627 : }
4628 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.ClientConfig.load_params)
4629 : }
4630 :
4631 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
4632 :
4633 : // ===================================================================
4634 :
4635 : #ifndef _MSC_VER
4636 : #endif // !_MSC_VER
4637 :
4638 42 : Mark::Mark()
4639 42 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4640 42 : SharedCtor();
4641 : // @@protoc_insertion_point(constructor:grpc.testing.Mark)
4642 42 : }
4643 :
4644 6 : void Mark::InitAsDefaultInstance() {
4645 6 : _is_default_instance_ = true;
4646 6 : }
4647 :
4648 0 : Mark::Mark(const Mark& from)
4649 : : ::google::protobuf::Message(),
4650 0 : _internal_metadata_(NULL) {
4651 0 : SharedCtor();
4652 0 : MergeFrom(from);
4653 : // @@protoc_insertion_point(copy_constructor:grpc.testing.Mark)
4654 0 : }
4655 :
4656 42 : void Mark::SharedCtor() {
4657 42 : _is_default_instance_ = false;
4658 42 : _cached_size_ = 0;
4659 42 : }
4660 :
4661 108 : Mark::~Mark() {
4662 : // @@protoc_insertion_point(destructor:grpc.testing.Mark)
4663 36 : SharedDtor();
4664 72 : }
4665 :
4666 36 : void Mark::SharedDtor() {
4667 36 : if (this != default_instance_) {
4668 : }
4669 36 : }
4670 :
4671 0 : void Mark::SetCachedSize(int size) const {
4672 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4673 0 : _cached_size_ = size;
4674 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4675 0 : }
4676 0 : const ::google::protobuf::Descriptor* Mark::descriptor() {
4677 0 : protobuf_AssignDescriptorsOnce();
4678 0 : return Mark_descriptor_;
4679 : }
4680 :
4681 12 : const Mark& Mark::default_instance() {
4682 12 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
4683 12 : return *default_instance_;
4684 : }
4685 :
4686 : Mark* Mark::default_instance_ = NULL;
4687 :
4688 0 : Mark* Mark::New(::google::protobuf::Arena* arena) const {
4689 0 : Mark* n = new Mark;
4690 0 : if (arena != NULL) {
4691 0 : arena->Own(n);
4692 : }
4693 0 : return n;
4694 : }
4695 :
4696 0 : void Mark::Clear() {
4697 0 : }
4698 :
4699 24 : bool Mark::MergePartialFromCodedStream(
4700 : ::google::protobuf::io::CodedInputStream* input) {
4701 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
4702 : ::google::protobuf::uint32 tag;
4703 : // @@protoc_insertion_point(parse_start:grpc.testing.Mark)
4704 : for (;;) {
4705 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
4706 24 : tag = p.first;
4707 48 : if (!p.second) goto handle_unusual;
4708 : handle_unusual:
4709 24 : if (tag == 0 ||
4710 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4711 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4712 24 : goto success;
4713 : }
4714 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
4715 0 : }
4716 : success:
4717 : // @@protoc_insertion_point(parse_success:grpc.testing.Mark)
4718 24 : return true;
4719 : failure:
4720 : // @@protoc_insertion_point(parse_failure:grpc.testing.Mark)
4721 0 : return false;
4722 : #undef DO_
4723 : }
4724 :
4725 0 : void Mark::SerializeWithCachedSizes(
4726 : ::google::protobuf::io::CodedOutputStream* output) const {
4727 : // @@protoc_insertion_point(serialize_start:grpc.testing.Mark)
4728 : // @@protoc_insertion_point(serialize_end:grpc.testing.Mark)
4729 0 : }
4730 :
4731 24 : ::google::protobuf::uint8* Mark::SerializeWithCachedSizesToArray(
4732 : ::google::protobuf::uint8* target) const {
4733 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.Mark)
4734 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.Mark)
4735 24 : return target;
4736 : }
4737 :
4738 24 : int Mark::ByteSize() const {
4739 24 : int total_size = 0;
4740 :
4741 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4742 24 : _cached_size_ = total_size;
4743 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4744 24 : return total_size;
4745 : }
4746 :
4747 0 : void Mark::MergeFrom(const ::google::protobuf::Message& from) {
4748 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
4749 : const Mark* source =
4750 : ::google::protobuf::internal::DynamicCastToGenerated<const Mark>(
4751 0 : &from);
4752 0 : if (source == NULL) {
4753 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4754 : } else {
4755 0 : MergeFrom(*source);
4756 : }
4757 0 : }
4758 :
4759 0 : void Mark::MergeFrom(const Mark& from) {
4760 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
4761 0 : }
4762 :
4763 0 : void Mark::CopyFrom(const ::google::protobuf::Message& from) {
4764 0 : if (&from == this) return;
4765 0 : Clear();
4766 0 : MergeFrom(from);
4767 : }
4768 :
4769 0 : void Mark::CopyFrom(const Mark& from) {
4770 0 : if (&from == this) return;
4771 0 : Clear();
4772 0 : MergeFrom(from);
4773 : }
4774 :
4775 0 : bool Mark::IsInitialized() const {
4776 :
4777 0 : return true;
4778 : }
4779 :
4780 0 : void Mark::Swap(Mark* other) {
4781 0 : if (other == this) return;
4782 0 : InternalSwap(other);
4783 : }
4784 0 : void Mark::InternalSwap(Mark* other) {
4785 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
4786 0 : std::swap(_cached_size_, other->_cached_size_);
4787 0 : }
4788 :
4789 0 : ::google::protobuf::Metadata Mark::GetMetadata() const {
4790 0 : protobuf_AssignDescriptorsOnce();
4791 : ::google::protobuf::Metadata metadata;
4792 0 : metadata.descriptor = Mark_descriptor_;
4793 0 : metadata.reflection = Mark_reflection_;
4794 0 : return metadata;
4795 : }
4796 :
4797 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
4798 : // Mark
4799 :
4800 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
4801 :
4802 : // ===================================================================
4803 :
4804 : #ifndef _MSC_VER
4805 : const int ClientArgs::kSetupFieldNumber;
4806 : const int ClientArgs::kMarkFieldNumber;
4807 : #endif // !_MSC_VER
4808 :
4809 24 : ClientArgs::ClientArgs()
4810 24 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4811 24 : SharedCtor();
4812 : // @@protoc_insertion_point(constructor:grpc.testing.ClientArgs)
4813 24 : }
4814 :
4815 6 : void ClientArgs::InitAsDefaultInstance() {
4816 6 : _is_default_instance_ = true;
4817 6 : ClientArgs_default_oneof_instance_->setup_ = const_cast< ::grpc::testing::ClientConfig*>(&::grpc::testing::ClientConfig::default_instance());
4818 6 : ClientArgs_default_oneof_instance_->mark_ = const_cast< ::grpc::testing::Mark*>(&::grpc::testing::Mark::default_instance());
4819 6 : }
4820 :
4821 0 : ClientArgs::ClientArgs(const ClientArgs& from)
4822 : : ::google::protobuf::Message(),
4823 0 : _internal_metadata_(NULL) {
4824 0 : SharedCtor();
4825 0 : MergeFrom(from);
4826 : // @@protoc_insertion_point(copy_constructor:grpc.testing.ClientArgs)
4827 0 : }
4828 :
4829 24 : void ClientArgs::SharedCtor() {
4830 24 : _is_default_instance_ = false;
4831 24 : _cached_size_ = 0;
4832 24 : clear_has_argtype();
4833 24 : }
4834 :
4835 36 : ClientArgs::~ClientArgs() {
4836 : // @@protoc_insertion_point(destructor:grpc.testing.ClientArgs)
4837 18 : SharedDtor();
4838 18 : }
4839 :
4840 18 : void ClientArgs::SharedDtor() {
4841 18 : if (has_argtype()) {
4842 18 : clear_argtype();
4843 : }
4844 18 : if (this != default_instance_) {
4845 : }
4846 18 : }
4847 :
4848 0 : void ClientArgs::SetCachedSize(int size) const {
4849 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4850 0 : _cached_size_ = size;
4851 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
4852 0 : }
4853 0 : const ::google::protobuf::Descriptor* ClientArgs::descriptor() {
4854 0 : protobuf_AssignDescriptorsOnce();
4855 0 : return ClientArgs_descriptor_;
4856 : }
4857 :
4858 0 : const ClientArgs& ClientArgs::default_instance() {
4859 0 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
4860 0 : return *default_instance_;
4861 : }
4862 :
4863 : ClientArgs* ClientArgs::default_instance_ = NULL;
4864 :
4865 0 : ClientArgs* ClientArgs::New(::google::protobuf::Arena* arena) const {
4866 0 : ClientArgs* n = new ClientArgs;
4867 0 : if (arena != NULL) {
4868 0 : arena->Own(n);
4869 : }
4870 0 : return n;
4871 : }
4872 :
4873 66 : void ClientArgs::clear_argtype() {
4874 66 : switch(argtype_case()) {
4875 : case kSetup: {
4876 12 : delete argtype_.setup_;
4877 12 : break;
4878 : }
4879 : case kMark: {
4880 18 : delete argtype_.mark_;
4881 18 : break;
4882 : }
4883 : case ARGTYPE_NOT_SET: {
4884 36 : break;
4885 : }
4886 : }
4887 66 : _oneof_case_[0] = ARGTYPE_NOT_SET;
4888 66 : }
4889 :
4890 :
4891 18 : void ClientArgs::Clear() {
4892 18 : clear_argtype();
4893 18 : }
4894 :
4895 36 : bool ClientArgs::MergePartialFromCodedStream(
4896 : ::google::protobuf::io::CodedInputStream* input) {
4897 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
4898 : ::google::protobuf::uint32 tag;
4899 : // @@protoc_insertion_point(parse_start:grpc.testing.ClientArgs)
4900 : for (;;) {
4901 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
4902 36 : tag = p.first;
4903 54 : if (!p.second) goto handle_unusual;
4904 18 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4905 : // optional .grpc.testing.ClientConfig setup = 1;
4906 : case 1: {
4907 6 : if (tag == 10) {
4908 6 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4909 : input, mutable_setup()));
4910 : } else {
4911 0 : goto handle_unusual;
4912 : }
4913 6 : if (input->ExpectTag(18)) goto parse_mark;
4914 6 : break;
4915 : }
4916 :
4917 : // optional .grpc.testing.Mark mark = 2;
4918 : case 2: {
4919 12 : if (tag == 18) {
4920 : parse_mark:
4921 12 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4922 : input, mutable_mark()));
4923 : } else {
4924 0 : goto handle_unusual;
4925 : }
4926 30 : if (input->ExpectAtEnd()) goto success;
4927 12 : break;
4928 : }
4929 :
4930 : default: {
4931 : handle_unusual:
4932 18 : if (tag == 0 ||
4933 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4934 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4935 18 : goto success;
4936 : }
4937 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
4938 0 : break;
4939 : }
4940 : }
4941 18 : }
4942 : success:
4943 : // @@protoc_insertion_point(parse_success:grpc.testing.ClientArgs)
4944 18 : return true;
4945 : failure:
4946 : // @@protoc_insertion_point(parse_failure:grpc.testing.ClientArgs)
4947 0 : return false;
4948 : #undef DO_
4949 : }
4950 :
4951 0 : void ClientArgs::SerializeWithCachedSizes(
4952 : ::google::protobuf::io::CodedOutputStream* output) const {
4953 : // @@protoc_insertion_point(serialize_start:grpc.testing.ClientArgs)
4954 : // optional .grpc.testing.ClientConfig setup = 1;
4955 0 : if (has_setup()) {
4956 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4957 0 : 1, *argtype_.setup_, output);
4958 : }
4959 :
4960 : // optional .grpc.testing.Mark mark = 2;
4961 0 : if (has_mark()) {
4962 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4963 0 : 2, *argtype_.mark_, output);
4964 : }
4965 :
4966 : // @@protoc_insertion_point(serialize_end:grpc.testing.ClientArgs)
4967 0 : }
4968 :
4969 18 : ::google::protobuf::uint8* ClientArgs::SerializeWithCachedSizesToArray(
4970 : ::google::protobuf::uint8* target) const {
4971 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.ClientArgs)
4972 : // optional .grpc.testing.ClientConfig setup = 1;
4973 18 : if (has_setup()) {
4974 : target = ::google::protobuf::internal::WireFormatLite::
4975 : WriteMessageNoVirtualToArray(
4976 12 : 1, *argtype_.setup_, target);
4977 : }
4978 :
4979 : // optional .grpc.testing.Mark mark = 2;
4980 18 : if (has_mark()) {
4981 : target = ::google::protobuf::internal::WireFormatLite::
4982 : WriteMessageNoVirtualToArray(
4983 24 : 2, *argtype_.mark_, target);
4984 : }
4985 :
4986 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.ClientArgs)
4987 18 : return target;
4988 : }
4989 :
4990 18 : int ClientArgs::ByteSize() const {
4991 18 : int total_size = 0;
4992 :
4993 18 : switch (argtype_case()) {
4994 : // optional .grpc.testing.ClientConfig setup = 1;
4995 : case kSetup: {
4996 : total_size += 1 +
4997 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4998 6 : *argtype_.setup_);
4999 6 : break;
5000 : }
5001 : // optional .grpc.testing.Mark mark = 2;
5002 : case kMark: {
5003 : total_size += 1 +
5004 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5005 12 : *argtype_.mark_);
5006 12 : break;
5007 : }
5008 : case ARGTYPE_NOT_SET: {
5009 0 : break;
5010 : }
5011 : }
5012 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5013 18 : _cached_size_ = total_size;
5014 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5015 18 : return total_size;
5016 : }
5017 :
5018 0 : void ClientArgs::MergeFrom(const ::google::protobuf::Message& from) {
5019 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
5020 : const ClientArgs* source =
5021 : ::google::protobuf::internal::DynamicCastToGenerated<const ClientArgs>(
5022 0 : &from);
5023 0 : if (source == NULL) {
5024 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5025 : } else {
5026 0 : MergeFrom(*source);
5027 : }
5028 0 : }
5029 :
5030 0 : void ClientArgs::MergeFrom(const ClientArgs& from) {
5031 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
5032 0 : switch (from.argtype_case()) {
5033 : case kSetup: {
5034 0 : mutable_setup()->::grpc::testing::ClientConfig::MergeFrom(from.setup());
5035 0 : break;
5036 : }
5037 : case kMark: {
5038 0 : mutable_mark()->::grpc::testing::Mark::MergeFrom(from.mark());
5039 0 : break;
5040 : }
5041 : case ARGTYPE_NOT_SET: {
5042 0 : break;
5043 : }
5044 : }
5045 0 : }
5046 :
5047 0 : void ClientArgs::CopyFrom(const ::google::protobuf::Message& from) {
5048 0 : if (&from == this) return;
5049 0 : Clear();
5050 0 : MergeFrom(from);
5051 : }
5052 :
5053 0 : void ClientArgs::CopyFrom(const ClientArgs& from) {
5054 0 : if (&from == this) return;
5055 0 : Clear();
5056 0 : MergeFrom(from);
5057 : }
5058 :
5059 18 : bool ClientArgs::IsInitialized() const {
5060 :
5061 18 : return true;
5062 : }
5063 :
5064 0 : void ClientArgs::Swap(ClientArgs* other) {
5065 0 : if (other == this) return;
5066 0 : InternalSwap(other);
5067 : }
5068 0 : void ClientArgs::InternalSwap(ClientArgs* other) {
5069 0 : std::swap(argtype_, other->argtype_);
5070 0 : std::swap(_oneof_case_[0], other->_oneof_case_[0]);
5071 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
5072 0 : std::swap(_cached_size_, other->_cached_size_);
5073 0 : }
5074 :
5075 0 : ::google::protobuf::Metadata ClientArgs::GetMetadata() const {
5076 0 : protobuf_AssignDescriptorsOnce();
5077 : ::google::protobuf::Metadata metadata;
5078 0 : metadata.descriptor = ClientArgs_descriptor_;
5079 0 : metadata.reflection = ClientArgs_reflection_;
5080 0 : return metadata;
5081 : }
5082 :
5083 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
5084 : // ClientArgs
5085 :
5086 : // optional .grpc.testing.ClientConfig setup = 1;
5087 : bool ClientArgs::has_setup() const {
5088 : return argtype_case() == kSetup;
5089 : }
5090 : void ClientArgs::set_has_setup() {
5091 : _oneof_case_[0] = kSetup;
5092 : }
5093 : void ClientArgs::clear_setup() {
5094 : if (has_setup()) {
5095 : delete argtype_.setup_;
5096 : clear_has_argtype();
5097 : }
5098 : }
5099 : const ::grpc::testing::ClientConfig& ClientArgs::setup() const {
5100 : // @@protoc_insertion_point(field_get:grpc.testing.ClientArgs.setup)
5101 : return has_setup()
5102 : ? *argtype_.setup_
5103 : : ::grpc::testing::ClientConfig::default_instance();
5104 : }
5105 : ::grpc::testing::ClientConfig* ClientArgs::mutable_setup() {
5106 : if (!has_setup()) {
5107 : clear_argtype();
5108 : set_has_setup();
5109 : argtype_.setup_ = new ::grpc::testing::ClientConfig;
5110 : }
5111 : // @@protoc_insertion_point(field_mutable:grpc.testing.ClientArgs.setup)
5112 : return argtype_.setup_;
5113 : }
5114 : ::grpc::testing::ClientConfig* ClientArgs::release_setup() {
5115 : if (has_setup()) {
5116 : clear_has_argtype();
5117 : ::grpc::testing::ClientConfig* temp = argtype_.setup_;
5118 : argtype_.setup_ = NULL;
5119 : return temp;
5120 : } else {
5121 : return NULL;
5122 : }
5123 : }
5124 : void ClientArgs::set_allocated_setup(::grpc::testing::ClientConfig* setup) {
5125 : clear_argtype();
5126 : if (setup) {
5127 : set_has_setup();
5128 : argtype_.setup_ = setup;
5129 : }
5130 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.ClientArgs.setup)
5131 : }
5132 :
5133 : // optional .grpc.testing.Mark mark = 2;
5134 : bool ClientArgs::has_mark() const {
5135 : return argtype_case() == kMark;
5136 : }
5137 : void ClientArgs::set_has_mark() {
5138 : _oneof_case_[0] = kMark;
5139 : }
5140 : void ClientArgs::clear_mark() {
5141 : if (has_mark()) {
5142 : delete argtype_.mark_;
5143 : clear_has_argtype();
5144 : }
5145 : }
5146 : const ::grpc::testing::Mark& ClientArgs::mark() const {
5147 : // @@protoc_insertion_point(field_get:grpc.testing.ClientArgs.mark)
5148 : return has_mark()
5149 : ? *argtype_.mark_
5150 : : ::grpc::testing::Mark::default_instance();
5151 : }
5152 : ::grpc::testing::Mark* ClientArgs::mutable_mark() {
5153 : if (!has_mark()) {
5154 : clear_argtype();
5155 : set_has_mark();
5156 : argtype_.mark_ = new ::grpc::testing::Mark;
5157 : }
5158 : // @@protoc_insertion_point(field_mutable:grpc.testing.ClientArgs.mark)
5159 : return argtype_.mark_;
5160 : }
5161 : ::grpc::testing::Mark* ClientArgs::release_mark() {
5162 : if (has_mark()) {
5163 : clear_has_argtype();
5164 : ::grpc::testing::Mark* temp = argtype_.mark_;
5165 : argtype_.mark_ = NULL;
5166 : return temp;
5167 : } else {
5168 : return NULL;
5169 : }
5170 : }
5171 : void ClientArgs::set_allocated_mark(::grpc::testing::Mark* mark) {
5172 : clear_argtype();
5173 : if (mark) {
5174 : set_has_mark();
5175 : argtype_.mark_ = mark;
5176 : }
5177 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.ClientArgs.mark)
5178 : }
5179 :
5180 : bool ClientArgs::has_argtype() const {
5181 : return argtype_case() != ARGTYPE_NOT_SET;
5182 : }
5183 : void ClientArgs::clear_has_argtype() {
5184 : _oneof_case_[0] = ARGTYPE_NOT_SET;
5185 : }
5186 : ClientArgs::ArgtypeCase ClientArgs::argtype_case() const {
5187 : return ClientArgs::ArgtypeCase(_oneof_case_[0]);
5188 : }
5189 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
5190 :
5191 : // ===================================================================
5192 :
5193 : #ifndef _MSC_VER
5194 : const int ClientStats::kLatenciesFieldNumber;
5195 : const int ClientStats::kTimeElapsedFieldNumber;
5196 : const int ClientStats::kTimeUserFieldNumber;
5197 : const int ClientStats::kTimeSystemFieldNumber;
5198 : #endif // !_MSC_VER
5199 :
5200 36 : ClientStats::ClientStats()
5201 36 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5202 36 : SharedCtor();
5203 : // @@protoc_insertion_point(constructor:grpc.testing.ClientStats)
5204 36 : }
5205 :
5206 6 : void ClientStats::InitAsDefaultInstance() {
5207 6 : _is_default_instance_ = true;
5208 6 : latencies_ = const_cast< ::grpc::testing::HistogramData*>(&::grpc::testing::HistogramData::default_instance());
5209 6 : }
5210 :
5211 0 : ClientStats::ClientStats(const ClientStats& from)
5212 : : ::google::protobuf::Message(),
5213 0 : _internal_metadata_(NULL) {
5214 0 : SharedCtor();
5215 0 : MergeFrom(from);
5216 : // @@protoc_insertion_point(copy_constructor:grpc.testing.ClientStats)
5217 0 : }
5218 :
5219 36 : void ClientStats::SharedCtor() {
5220 36 : _is_default_instance_ = false;
5221 36 : _cached_size_ = 0;
5222 36 : latencies_ = NULL;
5223 36 : time_elapsed_ = 0;
5224 36 : time_user_ = 0;
5225 36 : time_system_ = 0;
5226 36 : }
5227 :
5228 78 : ClientStats::~ClientStats() {
5229 : // @@protoc_insertion_point(destructor:grpc.testing.ClientStats)
5230 30 : SharedDtor();
5231 48 : }
5232 :
5233 30 : void ClientStats::SharedDtor() {
5234 30 : if (this != default_instance_) {
5235 30 : delete latencies_;
5236 : }
5237 30 : }
5238 :
5239 0 : void ClientStats::SetCachedSize(int size) const {
5240 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5241 0 : _cached_size_ = size;
5242 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5243 0 : }
5244 0 : const ::google::protobuf::Descriptor* ClientStats::descriptor() {
5245 0 : protobuf_AssignDescriptorsOnce();
5246 0 : return ClientStats_descriptor_;
5247 : }
5248 :
5249 6 : const ClientStats& ClientStats::default_instance() {
5250 6 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
5251 6 : return *default_instance_;
5252 : }
5253 :
5254 : ClientStats* ClientStats::default_instance_ = NULL;
5255 :
5256 0 : ClientStats* ClientStats::New(::google::protobuf::Arena* arena) const {
5257 0 : ClientStats* n = new ClientStats;
5258 0 : if (arena != NULL) {
5259 0 : arena->Own(n);
5260 : }
5261 0 : return n;
5262 : }
5263 :
5264 12 : void ClientStats::Clear() {
5265 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
5266 : &reinterpret_cast<ClientStats*>(16)->f)
5267 :
5268 : #define ZR_(first, last) do {\
5269 : ::memset(&first, 0,\
5270 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
5271 : } while (0)
5272 :
5273 12 : ZR_(time_elapsed_, time_system_);
5274 12 : if (GetArenaNoVirtual() == NULL && latencies_ != NULL) delete latencies_;
5275 12 : latencies_ = NULL;
5276 :
5277 : #undef ZR_HELPER_
5278 : #undef ZR_
5279 :
5280 12 : }
5281 :
5282 12 : bool ClientStats::MergePartialFromCodedStream(
5283 : ::google::protobuf::io::CodedInputStream* input) {
5284 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5285 : ::google::protobuf::uint32 tag;
5286 : // @@protoc_insertion_point(parse_start:grpc.testing.ClientStats)
5287 : for (;;) {
5288 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5289 12 : tag = p.first;
5290 12 : if (!p.second) goto handle_unusual;
5291 12 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5292 : // optional .grpc.testing.HistogramData latencies = 1;
5293 : case 1: {
5294 12 : if (tag == 10) {
5295 12 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5296 : input, mutable_latencies()));
5297 : } else {
5298 0 : goto handle_unusual;
5299 : }
5300 12 : if (input->ExpectTag(17)) goto parse_time_elapsed;
5301 0 : break;
5302 : }
5303 :
5304 : // optional double time_elapsed = 2;
5305 : case 2: {
5306 0 : if (tag == 17) {
5307 : parse_time_elapsed:
5308 24 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5309 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
5310 : input, &time_elapsed_)));
5311 :
5312 : } else {
5313 0 : goto handle_unusual;
5314 : }
5315 12 : if (input->ExpectTag(25)) goto parse_time_user;
5316 0 : break;
5317 : }
5318 :
5319 : // optional double time_user = 3;
5320 : case 3: {
5321 0 : if (tag == 25) {
5322 : parse_time_user:
5323 24 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5324 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
5325 : input, &time_user_)));
5326 :
5327 : } else {
5328 0 : goto handle_unusual;
5329 : }
5330 12 : if (input->ExpectTag(33)) goto parse_time_system;
5331 0 : break;
5332 : }
5333 :
5334 : // optional double time_system = 4;
5335 : case 4: {
5336 0 : if (tag == 33) {
5337 : parse_time_system:
5338 24 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5339 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
5340 : input, &time_system_)));
5341 :
5342 : } else {
5343 0 : goto handle_unusual;
5344 : }
5345 24 : if (input->ExpectAtEnd()) goto success;
5346 0 : break;
5347 : }
5348 :
5349 : default: {
5350 : handle_unusual:
5351 0 : if (tag == 0 ||
5352 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5353 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5354 0 : goto success;
5355 : }
5356 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
5357 0 : break;
5358 : }
5359 : }
5360 0 : }
5361 : success:
5362 : // @@protoc_insertion_point(parse_success:grpc.testing.ClientStats)
5363 12 : return true;
5364 : failure:
5365 : // @@protoc_insertion_point(parse_failure:grpc.testing.ClientStats)
5366 0 : return false;
5367 : #undef DO_
5368 : }
5369 :
5370 0 : void ClientStats::SerializeWithCachedSizes(
5371 : ::google::protobuf::io::CodedOutputStream* output) const {
5372 : // @@protoc_insertion_point(serialize_start:grpc.testing.ClientStats)
5373 : // optional .grpc.testing.HistogramData latencies = 1;
5374 0 : if (this->has_latencies()) {
5375 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5376 0 : 1, *this->latencies_, output);
5377 : }
5378 :
5379 : // optional double time_elapsed = 2;
5380 0 : if (this->time_elapsed() != 0) {
5381 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->time_elapsed(), output);
5382 : }
5383 :
5384 : // optional double time_user = 3;
5385 0 : if (this->time_user() != 0) {
5386 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->time_user(), output);
5387 : }
5388 :
5389 : // optional double time_system = 4;
5390 0 : if (this->time_system() != 0) {
5391 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->time_system(), output);
5392 : }
5393 :
5394 : // @@protoc_insertion_point(serialize_end:grpc.testing.ClientStats)
5395 0 : }
5396 :
5397 12 : ::google::protobuf::uint8* ClientStats::SerializeWithCachedSizesToArray(
5398 : ::google::protobuf::uint8* target) const {
5399 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.ClientStats)
5400 : // optional .grpc.testing.HistogramData latencies = 1;
5401 12 : if (this->has_latencies()) {
5402 : target = ::google::protobuf::internal::WireFormatLite::
5403 : WriteMessageNoVirtualToArray(
5404 24 : 1, *this->latencies_, target);
5405 : }
5406 :
5407 : // optional double time_elapsed = 2;
5408 12 : if (this->time_elapsed() != 0) {
5409 24 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->time_elapsed(), target);
5410 : }
5411 :
5412 : // optional double time_user = 3;
5413 12 : if (this->time_user() != 0) {
5414 24 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->time_user(), target);
5415 : }
5416 :
5417 : // optional double time_system = 4;
5418 12 : if (this->time_system() != 0) {
5419 24 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->time_system(), target);
5420 : }
5421 :
5422 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.ClientStats)
5423 12 : return target;
5424 : }
5425 :
5426 12 : int ClientStats::ByteSize() const {
5427 12 : int total_size = 0;
5428 :
5429 : // optional .grpc.testing.HistogramData latencies = 1;
5430 12 : if (this->has_latencies()) {
5431 : total_size += 1 +
5432 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5433 12 : *this->latencies_);
5434 : }
5435 :
5436 : // optional double time_elapsed = 2;
5437 12 : if (this->time_elapsed() != 0) {
5438 12 : total_size += 1 + 8;
5439 : }
5440 :
5441 : // optional double time_user = 3;
5442 12 : if (this->time_user() != 0) {
5443 12 : total_size += 1 + 8;
5444 : }
5445 :
5446 : // optional double time_system = 4;
5447 12 : if (this->time_system() != 0) {
5448 12 : total_size += 1 + 8;
5449 : }
5450 :
5451 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5452 12 : _cached_size_ = total_size;
5453 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5454 12 : return total_size;
5455 : }
5456 :
5457 0 : void ClientStats::MergeFrom(const ::google::protobuf::Message& from) {
5458 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
5459 : const ClientStats* source =
5460 : ::google::protobuf::internal::DynamicCastToGenerated<const ClientStats>(
5461 0 : &from);
5462 0 : if (source == NULL) {
5463 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5464 : } else {
5465 0 : MergeFrom(*source);
5466 : }
5467 0 : }
5468 :
5469 12 : void ClientStats::MergeFrom(const ClientStats& from) {
5470 12 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
5471 12 : if (from.has_latencies()) {
5472 12 : mutable_latencies()->::grpc::testing::HistogramData::MergeFrom(from.latencies());
5473 : }
5474 12 : if (from.time_elapsed() != 0) {
5475 12 : set_time_elapsed(from.time_elapsed());
5476 : }
5477 12 : if (from.time_user() != 0) {
5478 12 : set_time_user(from.time_user());
5479 : }
5480 12 : if (from.time_system() != 0) {
5481 12 : set_time_system(from.time_system());
5482 : }
5483 12 : }
5484 :
5485 0 : void ClientStats::CopyFrom(const ::google::protobuf::Message& from) {
5486 0 : if (&from == this) return;
5487 0 : Clear();
5488 0 : MergeFrom(from);
5489 : }
5490 :
5491 12 : void ClientStats::CopyFrom(const ClientStats& from) {
5492 24 : if (&from == this) return;
5493 12 : Clear();
5494 12 : MergeFrom(from);
5495 : }
5496 :
5497 0 : bool ClientStats::IsInitialized() const {
5498 :
5499 0 : return true;
5500 : }
5501 :
5502 0 : void ClientStats::Swap(ClientStats* other) {
5503 0 : if (other == this) return;
5504 0 : InternalSwap(other);
5505 : }
5506 0 : void ClientStats::InternalSwap(ClientStats* other) {
5507 0 : std::swap(latencies_, other->latencies_);
5508 0 : std::swap(time_elapsed_, other->time_elapsed_);
5509 0 : std::swap(time_user_, other->time_user_);
5510 0 : std::swap(time_system_, other->time_system_);
5511 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
5512 0 : std::swap(_cached_size_, other->_cached_size_);
5513 0 : }
5514 :
5515 0 : ::google::protobuf::Metadata ClientStats::GetMetadata() const {
5516 0 : protobuf_AssignDescriptorsOnce();
5517 : ::google::protobuf::Metadata metadata;
5518 0 : metadata.descriptor = ClientStats_descriptor_;
5519 0 : metadata.reflection = ClientStats_reflection_;
5520 0 : return metadata;
5521 : }
5522 :
5523 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
5524 : // ClientStats
5525 :
5526 : // optional .grpc.testing.HistogramData latencies = 1;
5527 : bool ClientStats::has_latencies() const {
5528 : return !_is_default_instance_ && latencies_ != NULL;
5529 : }
5530 : void ClientStats::clear_latencies() {
5531 : if (GetArenaNoVirtual() == NULL && latencies_ != NULL) delete latencies_;
5532 : latencies_ = NULL;
5533 : }
5534 : const ::grpc::testing::HistogramData& ClientStats::latencies() const {
5535 : // @@protoc_insertion_point(field_get:grpc.testing.ClientStats.latencies)
5536 : return latencies_ != NULL ? *latencies_ : *default_instance_->latencies_;
5537 : }
5538 : ::grpc::testing::HistogramData* ClientStats::mutable_latencies() {
5539 :
5540 : if (latencies_ == NULL) {
5541 : latencies_ = new ::grpc::testing::HistogramData;
5542 : }
5543 : // @@protoc_insertion_point(field_mutable:grpc.testing.ClientStats.latencies)
5544 : return latencies_;
5545 : }
5546 : ::grpc::testing::HistogramData* ClientStats::release_latencies() {
5547 :
5548 : ::grpc::testing::HistogramData* temp = latencies_;
5549 : latencies_ = NULL;
5550 : return temp;
5551 : }
5552 : void ClientStats::set_allocated_latencies(::grpc::testing::HistogramData* latencies) {
5553 : delete latencies_;
5554 : latencies_ = latencies;
5555 : if (latencies) {
5556 :
5557 : } else {
5558 :
5559 : }
5560 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.ClientStats.latencies)
5561 : }
5562 :
5563 : // optional double time_elapsed = 2;
5564 : void ClientStats::clear_time_elapsed() {
5565 : time_elapsed_ = 0;
5566 : }
5567 : double ClientStats::time_elapsed() const {
5568 : // @@protoc_insertion_point(field_get:grpc.testing.ClientStats.time_elapsed)
5569 : return time_elapsed_;
5570 : }
5571 : void ClientStats::set_time_elapsed(double value) {
5572 :
5573 : time_elapsed_ = value;
5574 : // @@protoc_insertion_point(field_set:grpc.testing.ClientStats.time_elapsed)
5575 : }
5576 :
5577 : // optional double time_user = 3;
5578 : void ClientStats::clear_time_user() {
5579 : time_user_ = 0;
5580 : }
5581 : double ClientStats::time_user() const {
5582 : // @@protoc_insertion_point(field_get:grpc.testing.ClientStats.time_user)
5583 : return time_user_;
5584 : }
5585 : void ClientStats::set_time_user(double value) {
5586 :
5587 : time_user_ = value;
5588 : // @@protoc_insertion_point(field_set:grpc.testing.ClientStats.time_user)
5589 : }
5590 :
5591 : // optional double time_system = 4;
5592 : void ClientStats::clear_time_system() {
5593 : time_system_ = 0;
5594 : }
5595 : double ClientStats::time_system() const {
5596 : // @@protoc_insertion_point(field_get:grpc.testing.ClientStats.time_system)
5597 : return time_system_;
5598 : }
5599 : void ClientStats::set_time_system(double value) {
5600 :
5601 : time_system_ = value;
5602 : // @@protoc_insertion_point(field_set:grpc.testing.ClientStats.time_system)
5603 : }
5604 :
5605 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
5606 :
5607 : // ===================================================================
5608 :
5609 : #ifndef _MSC_VER
5610 : const int ClientStatus::kStatsFieldNumber;
5611 : #endif // !_MSC_VER
5612 :
5613 24 : ClientStatus::ClientStatus()
5614 24 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5615 24 : SharedCtor();
5616 : // @@protoc_insertion_point(constructor:grpc.testing.ClientStatus)
5617 24 : }
5618 :
5619 6 : void ClientStatus::InitAsDefaultInstance() {
5620 6 : _is_default_instance_ = true;
5621 6 : stats_ = const_cast< ::grpc::testing::ClientStats*>(&::grpc::testing::ClientStats::default_instance());
5622 6 : }
5623 :
5624 0 : ClientStatus::ClientStatus(const ClientStatus& from)
5625 : : ::google::protobuf::Message(),
5626 0 : _internal_metadata_(NULL) {
5627 0 : SharedCtor();
5628 0 : MergeFrom(from);
5629 : // @@protoc_insertion_point(copy_constructor:grpc.testing.ClientStatus)
5630 0 : }
5631 :
5632 24 : void ClientStatus::SharedCtor() {
5633 24 : _is_default_instance_ = false;
5634 24 : _cached_size_ = 0;
5635 24 : stats_ = NULL;
5636 24 : }
5637 :
5638 36 : ClientStatus::~ClientStatus() {
5639 : // @@protoc_insertion_point(destructor:grpc.testing.ClientStatus)
5640 18 : SharedDtor();
5641 18 : }
5642 :
5643 18 : void ClientStatus::SharedDtor() {
5644 18 : if (this != default_instance_) {
5645 18 : delete stats_;
5646 : }
5647 18 : }
5648 :
5649 0 : void ClientStatus::SetCachedSize(int size) const {
5650 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5651 0 : _cached_size_ = size;
5652 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5653 0 : }
5654 0 : const ::google::protobuf::Descriptor* ClientStatus::descriptor() {
5655 0 : protobuf_AssignDescriptorsOnce();
5656 0 : return ClientStatus_descriptor_;
5657 : }
5658 :
5659 0 : const ClientStatus& ClientStatus::default_instance() {
5660 0 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
5661 0 : return *default_instance_;
5662 : }
5663 :
5664 : ClientStatus* ClientStatus::default_instance_ = NULL;
5665 :
5666 0 : ClientStatus* ClientStatus::New(::google::protobuf::Arena* arena) const {
5667 0 : ClientStatus* n = new ClientStatus;
5668 0 : if (arena != NULL) {
5669 0 : arena->Own(n);
5670 : }
5671 0 : return n;
5672 : }
5673 :
5674 18 : void ClientStatus::Clear() {
5675 18 : if (GetArenaNoVirtual() == NULL && stats_ != NULL) delete stats_;
5676 18 : stats_ = NULL;
5677 18 : }
5678 :
5679 30 : bool ClientStatus::MergePartialFromCodedStream(
5680 : ::google::protobuf::io::CodedInputStream* input) {
5681 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5682 : ::google::protobuf::uint32 tag;
5683 : // @@protoc_insertion_point(parse_start:grpc.testing.ClientStatus)
5684 : for (;;) {
5685 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5686 30 : tag = p.first;
5687 48 : if (!p.second) goto handle_unusual;
5688 12 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5689 : // optional .grpc.testing.ClientStats stats = 1;
5690 : case 1: {
5691 12 : if (tag == 10) {
5692 12 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5693 : input, mutable_stats()));
5694 : } else {
5695 0 : goto handle_unusual;
5696 : }
5697 30 : if (input->ExpectAtEnd()) goto success;
5698 12 : break;
5699 : }
5700 :
5701 : default: {
5702 : handle_unusual:
5703 18 : if (tag == 0 ||
5704 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5705 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5706 18 : goto success;
5707 : }
5708 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
5709 0 : break;
5710 : }
5711 : }
5712 12 : }
5713 : success:
5714 : // @@protoc_insertion_point(parse_success:grpc.testing.ClientStatus)
5715 18 : return true;
5716 : failure:
5717 : // @@protoc_insertion_point(parse_failure:grpc.testing.ClientStatus)
5718 0 : return false;
5719 : #undef DO_
5720 : }
5721 :
5722 0 : void ClientStatus::SerializeWithCachedSizes(
5723 : ::google::protobuf::io::CodedOutputStream* output) const {
5724 : // @@protoc_insertion_point(serialize_start:grpc.testing.ClientStatus)
5725 : // optional .grpc.testing.ClientStats stats = 1;
5726 0 : if (this->has_stats()) {
5727 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5728 0 : 1, *this->stats_, output);
5729 : }
5730 :
5731 : // @@protoc_insertion_point(serialize_end:grpc.testing.ClientStatus)
5732 0 : }
5733 :
5734 18 : ::google::protobuf::uint8* ClientStatus::SerializeWithCachedSizesToArray(
5735 : ::google::protobuf::uint8* target) const {
5736 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.ClientStatus)
5737 : // optional .grpc.testing.ClientStats stats = 1;
5738 18 : if (this->has_stats()) {
5739 : target = ::google::protobuf::internal::WireFormatLite::
5740 : WriteMessageNoVirtualToArray(
5741 24 : 1, *this->stats_, target);
5742 : }
5743 :
5744 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.ClientStatus)
5745 18 : return target;
5746 : }
5747 :
5748 18 : int ClientStatus::ByteSize() const {
5749 18 : int total_size = 0;
5750 :
5751 : // optional .grpc.testing.ClientStats stats = 1;
5752 18 : if (this->has_stats()) {
5753 : total_size += 1 +
5754 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5755 12 : *this->stats_);
5756 : }
5757 :
5758 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5759 18 : _cached_size_ = total_size;
5760 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5761 18 : return total_size;
5762 : }
5763 :
5764 0 : void ClientStatus::MergeFrom(const ::google::protobuf::Message& from) {
5765 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
5766 : const ClientStatus* source =
5767 : ::google::protobuf::internal::DynamicCastToGenerated<const ClientStatus>(
5768 0 : &from);
5769 0 : if (source == NULL) {
5770 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5771 : } else {
5772 0 : MergeFrom(*source);
5773 : }
5774 0 : }
5775 :
5776 0 : void ClientStatus::MergeFrom(const ClientStatus& from) {
5777 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
5778 0 : if (from.has_stats()) {
5779 0 : mutable_stats()->::grpc::testing::ClientStats::MergeFrom(from.stats());
5780 : }
5781 0 : }
5782 :
5783 0 : void ClientStatus::CopyFrom(const ::google::protobuf::Message& from) {
5784 0 : if (&from == this) return;
5785 0 : Clear();
5786 0 : MergeFrom(from);
5787 : }
5788 :
5789 0 : void ClientStatus::CopyFrom(const ClientStatus& from) {
5790 0 : if (&from == this) return;
5791 0 : Clear();
5792 0 : MergeFrom(from);
5793 : }
5794 :
5795 18 : bool ClientStatus::IsInitialized() const {
5796 :
5797 18 : return true;
5798 : }
5799 :
5800 0 : void ClientStatus::Swap(ClientStatus* other) {
5801 0 : if (other == this) return;
5802 0 : InternalSwap(other);
5803 : }
5804 0 : void ClientStatus::InternalSwap(ClientStatus* other) {
5805 0 : std::swap(stats_, other->stats_);
5806 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
5807 0 : std::swap(_cached_size_, other->_cached_size_);
5808 0 : }
5809 :
5810 0 : ::google::protobuf::Metadata ClientStatus::GetMetadata() const {
5811 0 : protobuf_AssignDescriptorsOnce();
5812 : ::google::protobuf::Metadata metadata;
5813 0 : metadata.descriptor = ClientStatus_descriptor_;
5814 0 : metadata.reflection = ClientStatus_reflection_;
5815 0 : return metadata;
5816 : }
5817 :
5818 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
5819 : // ClientStatus
5820 :
5821 : // optional .grpc.testing.ClientStats stats = 1;
5822 : bool ClientStatus::has_stats() const {
5823 : return !_is_default_instance_ && stats_ != NULL;
5824 : }
5825 : void ClientStatus::clear_stats() {
5826 : if (GetArenaNoVirtual() == NULL && stats_ != NULL) delete stats_;
5827 : stats_ = NULL;
5828 : }
5829 : const ::grpc::testing::ClientStats& ClientStatus::stats() const {
5830 : // @@protoc_insertion_point(field_get:grpc.testing.ClientStatus.stats)
5831 : return stats_ != NULL ? *stats_ : *default_instance_->stats_;
5832 : }
5833 : ::grpc::testing::ClientStats* ClientStatus::mutable_stats() {
5834 :
5835 : if (stats_ == NULL) {
5836 : stats_ = new ::grpc::testing::ClientStats;
5837 : }
5838 : // @@protoc_insertion_point(field_mutable:grpc.testing.ClientStatus.stats)
5839 : return stats_;
5840 : }
5841 : ::grpc::testing::ClientStats* ClientStatus::release_stats() {
5842 :
5843 : ::grpc::testing::ClientStats* temp = stats_;
5844 : stats_ = NULL;
5845 : return temp;
5846 : }
5847 : void ClientStatus::set_allocated_stats(::grpc::testing::ClientStats* stats) {
5848 : delete stats_;
5849 : stats_ = stats;
5850 : if (stats) {
5851 :
5852 : } else {
5853 :
5854 : }
5855 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.ClientStatus.stats)
5856 : }
5857 :
5858 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
5859 :
5860 : // ===================================================================
5861 :
5862 : #ifndef _MSC_VER
5863 : const int ServerConfig::kServerTypeFieldNumber;
5864 : const int ServerConfig::kThreadsFieldNumber;
5865 : const int ServerConfig::kEnableSslFieldNumber;
5866 : const int ServerConfig::kHostFieldNumber;
5867 : #endif // !_MSC_VER
5868 :
5869 36 : ServerConfig::ServerConfig()
5870 36 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5871 36 : SharedCtor();
5872 : // @@protoc_insertion_point(constructor:grpc.testing.ServerConfig)
5873 36 : }
5874 :
5875 6 : void ServerConfig::InitAsDefaultInstance() {
5876 6 : _is_default_instance_ = true;
5877 6 : }
5878 :
5879 0 : ServerConfig::ServerConfig(const ServerConfig& from)
5880 : : ::google::protobuf::Message(),
5881 0 : _internal_metadata_(NULL) {
5882 0 : SharedCtor();
5883 0 : MergeFrom(from);
5884 : // @@protoc_insertion_point(copy_constructor:grpc.testing.ServerConfig)
5885 0 : }
5886 :
5887 36 : void ServerConfig::SharedCtor() {
5888 36 : _is_default_instance_ = false;
5889 36 : ::google::protobuf::internal::GetEmptyString();
5890 36 : _cached_size_ = 0;
5891 36 : server_type_ = 0;
5892 36 : threads_ = 0;
5893 36 : enable_ssl_ = false;
5894 36 : host_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5895 36 : }
5896 :
5897 72 : ServerConfig::~ServerConfig() {
5898 : // @@protoc_insertion_point(destructor:grpc.testing.ServerConfig)
5899 30 : SharedDtor();
5900 42 : }
5901 :
5902 30 : void ServerConfig::SharedDtor() {
5903 30 : host_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5904 30 : if (this != default_instance_) {
5905 : }
5906 30 : }
5907 :
5908 0 : void ServerConfig::SetCachedSize(int size) const {
5909 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5910 0 : _cached_size_ = size;
5911 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
5912 0 : }
5913 0 : const ::google::protobuf::Descriptor* ServerConfig::descriptor() {
5914 0 : protobuf_AssignDescriptorsOnce();
5915 0 : return ServerConfig_descriptor_;
5916 : }
5917 :
5918 12 : const ServerConfig& ServerConfig::default_instance() {
5919 12 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
5920 12 : return *default_instance_;
5921 : }
5922 :
5923 : ServerConfig* ServerConfig::default_instance_ = NULL;
5924 :
5925 0 : ServerConfig* ServerConfig::New(::google::protobuf::Arena* arena) const {
5926 0 : ServerConfig* n = new ServerConfig;
5927 0 : if (arena != NULL) {
5928 0 : arena->Own(n);
5929 : }
5930 0 : return n;
5931 : }
5932 :
5933 18 : void ServerConfig::Clear() {
5934 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
5935 : &reinterpret_cast<ServerConfig*>(16)->f)
5936 :
5937 : #define ZR_(first, last) do {\
5938 : ::memset(&first, 0,\
5939 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
5940 : } while (0)
5941 :
5942 18 : ZR_(server_type_, threads_);
5943 18 : enable_ssl_ = false;
5944 18 : host_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5945 :
5946 : #undef ZR_HELPER_
5947 : #undef ZR_
5948 :
5949 18 : }
5950 :
5951 12 : bool ServerConfig::MergePartialFromCodedStream(
5952 : ::google::protobuf::io::CodedInputStream* input) {
5953 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5954 : ::google::protobuf::uint32 tag;
5955 : // @@protoc_insertion_point(parse_start:grpc.testing.ServerConfig)
5956 : for (;;) {
5957 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5958 12 : tag = p.first;
5959 18 : if (!p.second) goto handle_unusual;
5960 6 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5961 : // optional .grpc.testing.ServerType server_type = 1;
5962 : case 1: {
5963 4 : if (tag == 8) {
5964 : int value;
5965 4 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5966 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5967 : input, &value)));
5968 4 : set_server_type(static_cast< ::grpc::testing::ServerType >(value));
5969 : } else {
5970 0 : goto handle_unusual;
5971 : }
5972 4 : if (input->ExpectTag(16)) goto parse_threads;
5973 0 : break;
5974 : }
5975 :
5976 : // optional int32 threads = 2;
5977 : case 2: {
5978 2 : if (tag == 16) {
5979 : parse_threads:
5980 12 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5981 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
5982 : input, &threads_)));
5983 :
5984 : } else {
5985 0 : goto handle_unusual;
5986 : }
5987 6 : if (input->ExpectTag(24)) goto parse_enable_ssl;
5988 6 : break;
5989 : }
5990 :
5991 : // optional bool enable_ssl = 3;
5992 : case 3: {
5993 0 : if (tag == 24) {
5994 : parse_enable_ssl:
5995 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5996 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5997 : input, &enable_ssl_)));
5998 :
5999 : } else {
6000 0 : goto handle_unusual;
6001 : }
6002 0 : if (input->ExpectTag(34)) goto parse_host;
6003 0 : break;
6004 : }
6005 :
6006 : // optional string host = 4;
6007 : case 4: {
6008 0 : if (tag == 34) {
6009 : parse_host:
6010 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6011 : input, this->mutable_host()));
6012 0 : DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6013 : this->host().data(), this->host().length(),
6014 : ::google::protobuf::internal::WireFormatLite::PARSE,
6015 : "grpc.testing.ServerConfig.host"));
6016 : } else {
6017 0 : goto handle_unusual;
6018 : }
6019 6 : if (input->ExpectAtEnd()) goto success;
6020 0 : break;
6021 : }
6022 :
6023 : default: {
6024 : handle_unusual:
6025 6 : if (tag == 0 ||
6026 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6027 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6028 6 : goto success;
6029 : }
6030 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
6031 0 : break;
6032 : }
6033 : }
6034 6 : }
6035 : success:
6036 : // @@protoc_insertion_point(parse_success:grpc.testing.ServerConfig)
6037 6 : return true;
6038 : failure:
6039 : // @@protoc_insertion_point(parse_failure:grpc.testing.ServerConfig)
6040 0 : return false;
6041 : #undef DO_
6042 : }
6043 :
6044 0 : void ServerConfig::SerializeWithCachedSizes(
6045 : ::google::protobuf::io::CodedOutputStream* output) const {
6046 : // @@protoc_insertion_point(serialize_start:grpc.testing.ServerConfig)
6047 : // optional .grpc.testing.ServerType server_type = 1;
6048 0 : if (this->server_type() != 0) {
6049 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
6050 0 : 1, this->server_type(), output);
6051 : }
6052 :
6053 : // optional int32 threads = 2;
6054 0 : if (this->threads() != 0) {
6055 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->threads(), output);
6056 : }
6057 :
6058 : // optional bool enable_ssl = 3;
6059 0 : if (this->enable_ssl() != 0) {
6060 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->enable_ssl(), output);
6061 : }
6062 :
6063 : // optional string host = 4;
6064 0 : if (this->host().size() > 0) {
6065 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6066 0 : this->host().data(), this->host().length(),
6067 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6068 0 : "grpc.testing.ServerConfig.host");
6069 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6070 0 : 4, this->host(), output);
6071 : }
6072 :
6073 : // @@protoc_insertion_point(serialize_end:grpc.testing.ServerConfig)
6074 0 : }
6075 :
6076 6 : ::google::protobuf::uint8* ServerConfig::SerializeWithCachedSizesToArray(
6077 : ::google::protobuf::uint8* target) const {
6078 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.ServerConfig)
6079 : // optional .grpc.testing.ServerType server_type = 1;
6080 6 : if (this->server_type() != 0) {
6081 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6082 8 : 1, this->server_type(), target);
6083 : }
6084 :
6085 : // optional int32 threads = 2;
6086 6 : if (this->threads() != 0) {
6087 12 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->threads(), target);
6088 : }
6089 :
6090 : // optional bool enable_ssl = 3;
6091 6 : if (this->enable_ssl() != 0) {
6092 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->enable_ssl(), target);
6093 : }
6094 :
6095 : // optional string host = 4;
6096 6 : if (this->host().size() > 0) {
6097 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6098 0 : this->host().data(), this->host().length(),
6099 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6100 0 : "grpc.testing.ServerConfig.host");
6101 : target =
6102 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6103 0 : 4, this->host(), target);
6104 : }
6105 :
6106 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.ServerConfig)
6107 6 : return target;
6108 : }
6109 :
6110 6 : int ServerConfig::ByteSize() const {
6111 6 : int total_size = 0;
6112 :
6113 : // optional .grpc.testing.ServerType server_type = 1;
6114 6 : if (this->server_type() != 0) {
6115 : total_size += 1 +
6116 4 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->server_type());
6117 : }
6118 :
6119 : // optional int32 threads = 2;
6120 6 : if (this->threads() != 0) {
6121 : total_size += 1 +
6122 : ::google::protobuf::internal::WireFormatLite::Int32Size(
6123 6 : this->threads());
6124 : }
6125 :
6126 : // optional bool enable_ssl = 3;
6127 6 : if (this->enable_ssl() != 0) {
6128 0 : total_size += 1 + 1;
6129 : }
6130 :
6131 : // optional string host = 4;
6132 6 : if (this->host().size() > 0) {
6133 : total_size += 1 +
6134 : ::google::protobuf::internal::WireFormatLite::StringSize(
6135 0 : this->host());
6136 : }
6137 :
6138 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6139 6 : _cached_size_ = total_size;
6140 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6141 6 : return total_size;
6142 : }
6143 :
6144 0 : void ServerConfig::MergeFrom(const ::google::protobuf::Message& from) {
6145 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
6146 : const ServerConfig* source =
6147 : ::google::protobuf::internal::DynamicCastToGenerated<const ServerConfig>(
6148 0 : &from);
6149 0 : if (source == NULL) {
6150 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6151 : } else {
6152 0 : MergeFrom(*source);
6153 : }
6154 0 : }
6155 :
6156 18 : void ServerConfig::MergeFrom(const ServerConfig& from) {
6157 18 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
6158 18 : if (from.server_type() != 0) {
6159 12 : set_server_type(from.server_type());
6160 : }
6161 18 : if (from.threads() != 0) {
6162 18 : set_threads(from.threads());
6163 : }
6164 18 : if (from.enable_ssl() != 0) {
6165 0 : set_enable_ssl(from.enable_ssl());
6166 : }
6167 18 : if (from.host().size() > 0) {
6168 :
6169 6 : host_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.host_);
6170 : }
6171 18 : }
6172 :
6173 0 : void ServerConfig::CopyFrom(const ::google::protobuf::Message& from) {
6174 0 : if (&from == this) return;
6175 0 : Clear();
6176 0 : MergeFrom(from);
6177 : }
6178 :
6179 18 : void ServerConfig::CopyFrom(const ServerConfig& from) {
6180 36 : if (&from == this) return;
6181 18 : Clear();
6182 18 : MergeFrom(from);
6183 : }
6184 :
6185 0 : bool ServerConfig::IsInitialized() const {
6186 :
6187 0 : return true;
6188 : }
6189 :
6190 0 : void ServerConfig::Swap(ServerConfig* other) {
6191 0 : if (other == this) return;
6192 0 : InternalSwap(other);
6193 : }
6194 0 : void ServerConfig::InternalSwap(ServerConfig* other) {
6195 0 : std::swap(server_type_, other->server_type_);
6196 0 : std::swap(threads_, other->threads_);
6197 0 : std::swap(enable_ssl_, other->enable_ssl_);
6198 0 : host_.Swap(&other->host_);
6199 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
6200 0 : std::swap(_cached_size_, other->_cached_size_);
6201 0 : }
6202 :
6203 0 : ::google::protobuf::Metadata ServerConfig::GetMetadata() const {
6204 0 : protobuf_AssignDescriptorsOnce();
6205 : ::google::protobuf::Metadata metadata;
6206 0 : metadata.descriptor = ServerConfig_descriptor_;
6207 0 : metadata.reflection = ServerConfig_reflection_;
6208 0 : return metadata;
6209 : }
6210 :
6211 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
6212 : // ServerConfig
6213 :
6214 : // optional .grpc.testing.ServerType server_type = 1;
6215 : void ServerConfig::clear_server_type() {
6216 : server_type_ = 0;
6217 : }
6218 : ::grpc::testing::ServerType ServerConfig::server_type() const {
6219 : // @@protoc_insertion_point(field_get:grpc.testing.ServerConfig.server_type)
6220 : return static_cast< ::grpc::testing::ServerType >(server_type_);
6221 : }
6222 : void ServerConfig::set_server_type(::grpc::testing::ServerType value) {
6223 :
6224 : server_type_ = value;
6225 : // @@protoc_insertion_point(field_set:grpc.testing.ServerConfig.server_type)
6226 : }
6227 :
6228 : // optional int32 threads = 2;
6229 : void ServerConfig::clear_threads() {
6230 : threads_ = 0;
6231 : }
6232 : ::google::protobuf::int32 ServerConfig::threads() const {
6233 : // @@protoc_insertion_point(field_get:grpc.testing.ServerConfig.threads)
6234 : return threads_;
6235 : }
6236 : void ServerConfig::set_threads(::google::protobuf::int32 value) {
6237 :
6238 : threads_ = value;
6239 : // @@protoc_insertion_point(field_set:grpc.testing.ServerConfig.threads)
6240 : }
6241 :
6242 : // optional bool enable_ssl = 3;
6243 : void ServerConfig::clear_enable_ssl() {
6244 : enable_ssl_ = false;
6245 : }
6246 : bool ServerConfig::enable_ssl() const {
6247 : // @@protoc_insertion_point(field_get:grpc.testing.ServerConfig.enable_ssl)
6248 : return enable_ssl_;
6249 : }
6250 : void ServerConfig::set_enable_ssl(bool value) {
6251 :
6252 : enable_ssl_ = value;
6253 : // @@protoc_insertion_point(field_set:grpc.testing.ServerConfig.enable_ssl)
6254 : }
6255 :
6256 : // optional string host = 4;
6257 : void ServerConfig::clear_host() {
6258 : host_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6259 : }
6260 : const ::std::string& ServerConfig::host() const {
6261 : // @@protoc_insertion_point(field_get:grpc.testing.ServerConfig.host)
6262 : return host_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6263 : }
6264 : void ServerConfig::set_host(const ::std::string& value) {
6265 :
6266 : host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6267 : // @@protoc_insertion_point(field_set:grpc.testing.ServerConfig.host)
6268 : }
6269 : void ServerConfig::set_host(const char* value) {
6270 :
6271 : host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6272 : // @@protoc_insertion_point(field_set_char:grpc.testing.ServerConfig.host)
6273 : }
6274 : void ServerConfig::set_host(const char* value, size_t size) {
6275 :
6276 : host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6277 : ::std::string(reinterpret_cast<const char*>(value), size));
6278 : // @@protoc_insertion_point(field_set_pointer:grpc.testing.ServerConfig.host)
6279 : }
6280 : ::std::string* ServerConfig::mutable_host() {
6281 :
6282 : // @@protoc_insertion_point(field_mutable:grpc.testing.ServerConfig.host)
6283 : return host_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6284 : }
6285 : ::std::string* ServerConfig::release_host() {
6286 :
6287 : return host_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6288 : }
6289 : void ServerConfig::set_allocated_host(::std::string* host) {
6290 : if (host != NULL) {
6291 :
6292 : } else {
6293 :
6294 : }
6295 : host_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), host);
6296 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.ServerConfig.host)
6297 : }
6298 :
6299 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
6300 :
6301 : // ===================================================================
6302 :
6303 : #ifndef _MSC_VER
6304 : const int ServerArgs::kSetupFieldNumber;
6305 : const int ServerArgs::kMarkFieldNumber;
6306 : #endif // !_MSC_VER
6307 :
6308 24 : ServerArgs::ServerArgs()
6309 24 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6310 24 : SharedCtor();
6311 : // @@protoc_insertion_point(constructor:grpc.testing.ServerArgs)
6312 24 : }
6313 :
6314 6 : void ServerArgs::InitAsDefaultInstance() {
6315 6 : _is_default_instance_ = true;
6316 6 : ServerArgs_default_oneof_instance_->setup_ = const_cast< ::grpc::testing::ServerConfig*>(&::grpc::testing::ServerConfig::default_instance());
6317 6 : ServerArgs_default_oneof_instance_->mark_ = const_cast< ::grpc::testing::Mark*>(&::grpc::testing::Mark::default_instance());
6318 6 : }
6319 :
6320 0 : ServerArgs::ServerArgs(const ServerArgs& from)
6321 : : ::google::protobuf::Message(),
6322 0 : _internal_metadata_(NULL) {
6323 0 : SharedCtor();
6324 0 : MergeFrom(from);
6325 : // @@protoc_insertion_point(copy_constructor:grpc.testing.ServerArgs)
6326 0 : }
6327 :
6328 24 : void ServerArgs::SharedCtor() {
6329 24 : _is_default_instance_ = false;
6330 24 : _cached_size_ = 0;
6331 24 : clear_has_argtype();
6332 24 : }
6333 :
6334 36 : ServerArgs::~ServerArgs() {
6335 : // @@protoc_insertion_point(destructor:grpc.testing.ServerArgs)
6336 18 : SharedDtor();
6337 18 : }
6338 :
6339 18 : void ServerArgs::SharedDtor() {
6340 18 : if (has_argtype()) {
6341 18 : clear_argtype();
6342 : }
6343 18 : if (this != default_instance_) {
6344 : }
6345 18 : }
6346 :
6347 0 : void ServerArgs::SetCachedSize(int size) const {
6348 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6349 0 : _cached_size_ = size;
6350 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6351 0 : }
6352 0 : const ::google::protobuf::Descriptor* ServerArgs::descriptor() {
6353 0 : protobuf_AssignDescriptorsOnce();
6354 0 : return ServerArgs_descriptor_;
6355 : }
6356 :
6357 0 : const ServerArgs& ServerArgs::default_instance() {
6358 0 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
6359 0 : return *default_instance_;
6360 : }
6361 :
6362 : ServerArgs* ServerArgs::default_instance_ = NULL;
6363 :
6364 0 : ServerArgs* ServerArgs::New(::google::protobuf::Arena* arena) const {
6365 0 : ServerArgs* n = new ServerArgs;
6366 0 : if (arena != NULL) {
6367 0 : arena->Own(n);
6368 : }
6369 0 : return n;
6370 : }
6371 :
6372 66 : void ServerArgs::clear_argtype() {
6373 66 : switch(argtype_case()) {
6374 : case kSetup: {
6375 12 : delete argtype_.setup_;
6376 12 : break;
6377 : }
6378 : case kMark: {
6379 18 : delete argtype_.mark_;
6380 18 : break;
6381 : }
6382 : case ARGTYPE_NOT_SET: {
6383 36 : break;
6384 : }
6385 : }
6386 66 : _oneof_case_[0] = ARGTYPE_NOT_SET;
6387 66 : }
6388 :
6389 :
6390 18 : void ServerArgs::Clear() {
6391 18 : clear_argtype();
6392 18 : }
6393 :
6394 36 : bool ServerArgs::MergePartialFromCodedStream(
6395 : ::google::protobuf::io::CodedInputStream* input) {
6396 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
6397 : ::google::protobuf::uint32 tag;
6398 : // @@protoc_insertion_point(parse_start:grpc.testing.ServerArgs)
6399 : for (;;) {
6400 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
6401 36 : tag = p.first;
6402 54 : if (!p.second) goto handle_unusual;
6403 18 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6404 : // optional .grpc.testing.ServerConfig setup = 1;
6405 : case 1: {
6406 6 : if (tag == 10) {
6407 6 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6408 : input, mutable_setup()));
6409 : } else {
6410 0 : goto handle_unusual;
6411 : }
6412 6 : if (input->ExpectTag(18)) goto parse_mark;
6413 6 : break;
6414 : }
6415 :
6416 : // optional .grpc.testing.Mark mark = 2;
6417 : case 2: {
6418 12 : if (tag == 18) {
6419 : parse_mark:
6420 12 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6421 : input, mutable_mark()));
6422 : } else {
6423 0 : goto handle_unusual;
6424 : }
6425 30 : if (input->ExpectAtEnd()) goto success;
6426 12 : break;
6427 : }
6428 :
6429 : default: {
6430 : handle_unusual:
6431 18 : if (tag == 0 ||
6432 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6433 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6434 18 : goto success;
6435 : }
6436 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
6437 0 : break;
6438 : }
6439 : }
6440 18 : }
6441 : success:
6442 : // @@protoc_insertion_point(parse_success:grpc.testing.ServerArgs)
6443 18 : return true;
6444 : failure:
6445 : // @@protoc_insertion_point(parse_failure:grpc.testing.ServerArgs)
6446 0 : return false;
6447 : #undef DO_
6448 : }
6449 :
6450 0 : void ServerArgs::SerializeWithCachedSizes(
6451 : ::google::protobuf::io::CodedOutputStream* output) const {
6452 : // @@protoc_insertion_point(serialize_start:grpc.testing.ServerArgs)
6453 : // optional .grpc.testing.ServerConfig setup = 1;
6454 0 : if (has_setup()) {
6455 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6456 0 : 1, *argtype_.setup_, output);
6457 : }
6458 :
6459 : // optional .grpc.testing.Mark mark = 2;
6460 0 : if (has_mark()) {
6461 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6462 0 : 2, *argtype_.mark_, output);
6463 : }
6464 :
6465 : // @@protoc_insertion_point(serialize_end:grpc.testing.ServerArgs)
6466 0 : }
6467 :
6468 18 : ::google::protobuf::uint8* ServerArgs::SerializeWithCachedSizesToArray(
6469 : ::google::protobuf::uint8* target) const {
6470 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.ServerArgs)
6471 : // optional .grpc.testing.ServerConfig setup = 1;
6472 18 : if (has_setup()) {
6473 : target = ::google::protobuf::internal::WireFormatLite::
6474 : WriteMessageNoVirtualToArray(
6475 12 : 1, *argtype_.setup_, target);
6476 : }
6477 :
6478 : // optional .grpc.testing.Mark mark = 2;
6479 18 : if (has_mark()) {
6480 : target = ::google::protobuf::internal::WireFormatLite::
6481 : WriteMessageNoVirtualToArray(
6482 24 : 2, *argtype_.mark_, target);
6483 : }
6484 :
6485 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.ServerArgs)
6486 18 : return target;
6487 : }
6488 :
6489 18 : int ServerArgs::ByteSize() const {
6490 18 : int total_size = 0;
6491 :
6492 18 : switch (argtype_case()) {
6493 : // optional .grpc.testing.ServerConfig setup = 1;
6494 : case kSetup: {
6495 : total_size += 1 +
6496 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6497 6 : *argtype_.setup_);
6498 6 : break;
6499 : }
6500 : // optional .grpc.testing.Mark mark = 2;
6501 : case kMark: {
6502 : total_size += 1 +
6503 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6504 12 : *argtype_.mark_);
6505 12 : break;
6506 : }
6507 : case ARGTYPE_NOT_SET: {
6508 0 : break;
6509 : }
6510 : }
6511 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6512 18 : _cached_size_ = total_size;
6513 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6514 18 : return total_size;
6515 : }
6516 :
6517 0 : void ServerArgs::MergeFrom(const ::google::protobuf::Message& from) {
6518 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
6519 : const ServerArgs* source =
6520 : ::google::protobuf::internal::DynamicCastToGenerated<const ServerArgs>(
6521 0 : &from);
6522 0 : if (source == NULL) {
6523 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6524 : } else {
6525 0 : MergeFrom(*source);
6526 : }
6527 0 : }
6528 :
6529 0 : void ServerArgs::MergeFrom(const ServerArgs& from) {
6530 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
6531 0 : switch (from.argtype_case()) {
6532 : case kSetup: {
6533 0 : mutable_setup()->::grpc::testing::ServerConfig::MergeFrom(from.setup());
6534 0 : break;
6535 : }
6536 : case kMark: {
6537 0 : mutable_mark()->::grpc::testing::Mark::MergeFrom(from.mark());
6538 0 : break;
6539 : }
6540 : case ARGTYPE_NOT_SET: {
6541 0 : break;
6542 : }
6543 : }
6544 0 : }
6545 :
6546 0 : void ServerArgs::CopyFrom(const ::google::protobuf::Message& from) {
6547 0 : if (&from == this) return;
6548 0 : Clear();
6549 0 : MergeFrom(from);
6550 : }
6551 :
6552 0 : void ServerArgs::CopyFrom(const ServerArgs& from) {
6553 0 : if (&from == this) return;
6554 0 : Clear();
6555 0 : MergeFrom(from);
6556 : }
6557 :
6558 18 : bool ServerArgs::IsInitialized() const {
6559 :
6560 18 : return true;
6561 : }
6562 :
6563 0 : void ServerArgs::Swap(ServerArgs* other) {
6564 0 : if (other == this) return;
6565 0 : InternalSwap(other);
6566 : }
6567 0 : void ServerArgs::InternalSwap(ServerArgs* other) {
6568 0 : std::swap(argtype_, other->argtype_);
6569 0 : std::swap(_oneof_case_[0], other->_oneof_case_[0]);
6570 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
6571 0 : std::swap(_cached_size_, other->_cached_size_);
6572 0 : }
6573 :
6574 0 : ::google::protobuf::Metadata ServerArgs::GetMetadata() const {
6575 0 : protobuf_AssignDescriptorsOnce();
6576 : ::google::protobuf::Metadata metadata;
6577 0 : metadata.descriptor = ServerArgs_descriptor_;
6578 0 : metadata.reflection = ServerArgs_reflection_;
6579 0 : return metadata;
6580 : }
6581 :
6582 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
6583 : // ServerArgs
6584 :
6585 : // optional .grpc.testing.ServerConfig setup = 1;
6586 : bool ServerArgs::has_setup() const {
6587 : return argtype_case() == kSetup;
6588 : }
6589 : void ServerArgs::set_has_setup() {
6590 : _oneof_case_[0] = kSetup;
6591 : }
6592 : void ServerArgs::clear_setup() {
6593 : if (has_setup()) {
6594 : delete argtype_.setup_;
6595 : clear_has_argtype();
6596 : }
6597 : }
6598 : const ::grpc::testing::ServerConfig& ServerArgs::setup() const {
6599 : // @@protoc_insertion_point(field_get:grpc.testing.ServerArgs.setup)
6600 : return has_setup()
6601 : ? *argtype_.setup_
6602 : : ::grpc::testing::ServerConfig::default_instance();
6603 : }
6604 : ::grpc::testing::ServerConfig* ServerArgs::mutable_setup() {
6605 : if (!has_setup()) {
6606 : clear_argtype();
6607 : set_has_setup();
6608 : argtype_.setup_ = new ::grpc::testing::ServerConfig;
6609 : }
6610 : // @@protoc_insertion_point(field_mutable:grpc.testing.ServerArgs.setup)
6611 : return argtype_.setup_;
6612 : }
6613 : ::grpc::testing::ServerConfig* ServerArgs::release_setup() {
6614 : if (has_setup()) {
6615 : clear_has_argtype();
6616 : ::grpc::testing::ServerConfig* temp = argtype_.setup_;
6617 : argtype_.setup_ = NULL;
6618 : return temp;
6619 : } else {
6620 : return NULL;
6621 : }
6622 : }
6623 : void ServerArgs::set_allocated_setup(::grpc::testing::ServerConfig* setup) {
6624 : clear_argtype();
6625 : if (setup) {
6626 : set_has_setup();
6627 : argtype_.setup_ = setup;
6628 : }
6629 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.ServerArgs.setup)
6630 : }
6631 :
6632 : // optional .grpc.testing.Mark mark = 2;
6633 : bool ServerArgs::has_mark() const {
6634 : return argtype_case() == kMark;
6635 : }
6636 : void ServerArgs::set_has_mark() {
6637 : _oneof_case_[0] = kMark;
6638 : }
6639 : void ServerArgs::clear_mark() {
6640 : if (has_mark()) {
6641 : delete argtype_.mark_;
6642 : clear_has_argtype();
6643 : }
6644 : }
6645 : const ::grpc::testing::Mark& ServerArgs::mark() const {
6646 : // @@protoc_insertion_point(field_get:grpc.testing.ServerArgs.mark)
6647 : return has_mark()
6648 : ? *argtype_.mark_
6649 : : ::grpc::testing::Mark::default_instance();
6650 : }
6651 : ::grpc::testing::Mark* ServerArgs::mutable_mark() {
6652 : if (!has_mark()) {
6653 : clear_argtype();
6654 : set_has_mark();
6655 : argtype_.mark_ = new ::grpc::testing::Mark;
6656 : }
6657 : // @@protoc_insertion_point(field_mutable:grpc.testing.ServerArgs.mark)
6658 : return argtype_.mark_;
6659 : }
6660 : ::grpc::testing::Mark* ServerArgs::release_mark() {
6661 : if (has_mark()) {
6662 : clear_has_argtype();
6663 : ::grpc::testing::Mark* temp = argtype_.mark_;
6664 : argtype_.mark_ = NULL;
6665 : return temp;
6666 : } else {
6667 : return NULL;
6668 : }
6669 : }
6670 : void ServerArgs::set_allocated_mark(::grpc::testing::Mark* mark) {
6671 : clear_argtype();
6672 : if (mark) {
6673 : set_has_mark();
6674 : argtype_.mark_ = mark;
6675 : }
6676 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.ServerArgs.mark)
6677 : }
6678 :
6679 : bool ServerArgs::has_argtype() const {
6680 : return argtype_case() != ARGTYPE_NOT_SET;
6681 : }
6682 : void ServerArgs::clear_has_argtype() {
6683 : _oneof_case_[0] = ARGTYPE_NOT_SET;
6684 : }
6685 : ServerArgs::ArgtypeCase ServerArgs::argtype_case() const {
6686 : return ServerArgs::ArgtypeCase(_oneof_case_[0]);
6687 : }
6688 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
6689 :
6690 : // ===================================================================
6691 :
6692 : #ifndef _MSC_VER
6693 : const int ServerStatus::kStatsFieldNumber;
6694 : const int ServerStatus::kPortFieldNumber;
6695 : #endif // !_MSC_VER
6696 :
6697 24 : ServerStatus::ServerStatus()
6698 24 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6699 24 : SharedCtor();
6700 : // @@protoc_insertion_point(constructor:grpc.testing.ServerStatus)
6701 24 : }
6702 :
6703 6 : void ServerStatus::InitAsDefaultInstance() {
6704 6 : _is_default_instance_ = true;
6705 6 : stats_ = const_cast< ::grpc::testing::ServerStats*>(&::grpc::testing::ServerStats::default_instance());
6706 6 : }
6707 :
6708 0 : ServerStatus::ServerStatus(const ServerStatus& from)
6709 : : ::google::protobuf::Message(),
6710 0 : _internal_metadata_(NULL) {
6711 0 : SharedCtor();
6712 0 : MergeFrom(from);
6713 : // @@protoc_insertion_point(copy_constructor:grpc.testing.ServerStatus)
6714 0 : }
6715 :
6716 24 : void ServerStatus::SharedCtor() {
6717 24 : _is_default_instance_ = false;
6718 24 : _cached_size_ = 0;
6719 24 : stats_ = NULL;
6720 24 : port_ = 0;
6721 24 : }
6722 :
6723 36 : ServerStatus::~ServerStatus() {
6724 : // @@protoc_insertion_point(destructor:grpc.testing.ServerStatus)
6725 18 : SharedDtor();
6726 18 : }
6727 :
6728 18 : void ServerStatus::SharedDtor() {
6729 18 : if (this != default_instance_) {
6730 18 : delete stats_;
6731 : }
6732 18 : }
6733 :
6734 0 : void ServerStatus::SetCachedSize(int size) const {
6735 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6736 0 : _cached_size_ = size;
6737 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6738 0 : }
6739 0 : const ::google::protobuf::Descriptor* ServerStatus::descriptor() {
6740 0 : protobuf_AssignDescriptorsOnce();
6741 0 : return ServerStatus_descriptor_;
6742 : }
6743 :
6744 0 : const ServerStatus& ServerStatus::default_instance() {
6745 0 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
6746 0 : return *default_instance_;
6747 : }
6748 :
6749 : ServerStatus* ServerStatus::default_instance_ = NULL;
6750 :
6751 0 : ServerStatus* ServerStatus::New(::google::protobuf::Arena* arena) const {
6752 0 : ServerStatus* n = new ServerStatus;
6753 0 : if (arena != NULL) {
6754 0 : arena->Own(n);
6755 : }
6756 0 : return n;
6757 : }
6758 :
6759 18 : void ServerStatus::Clear() {
6760 18 : if (GetArenaNoVirtual() == NULL && stats_ != NULL) delete stats_;
6761 18 : stats_ = NULL;
6762 18 : port_ = 0;
6763 18 : }
6764 :
6765 36 : bool ServerStatus::MergePartialFromCodedStream(
6766 : ::google::protobuf::io::CodedInputStream* input) {
6767 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
6768 : ::google::protobuf::uint32 tag;
6769 : // @@protoc_insertion_point(parse_start:grpc.testing.ServerStatus)
6770 : for (;;) {
6771 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
6772 36 : tag = p.first;
6773 54 : if (!p.second) goto handle_unusual;
6774 18 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6775 : // optional .grpc.testing.ServerStats stats = 1;
6776 : case 1: {
6777 12 : if (tag == 10) {
6778 12 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6779 : input, mutable_stats()));
6780 : } else {
6781 0 : goto handle_unusual;
6782 : }
6783 12 : if (input->ExpectTag(16)) goto parse_port;
6784 0 : break;
6785 : }
6786 :
6787 : // optional int32 port = 2;
6788 : case 2: {
6789 6 : if (tag == 16) {
6790 : parse_port:
6791 36 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6792 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
6793 : input, &port_)));
6794 :
6795 : } else {
6796 0 : goto handle_unusual;
6797 : }
6798 36 : if (input->ExpectAtEnd()) goto success;
6799 18 : break;
6800 : }
6801 :
6802 : default: {
6803 : handle_unusual:
6804 18 : if (tag == 0 ||
6805 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6806 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6807 18 : goto success;
6808 : }
6809 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
6810 0 : break;
6811 : }
6812 : }
6813 18 : }
6814 : success:
6815 : // @@protoc_insertion_point(parse_success:grpc.testing.ServerStatus)
6816 18 : return true;
6817 : failure:
6818 : // @@protoc_insertion_point(parse_failure:grpc.testing.ServerStatus)
6819 0 : return false;
6820 : #undef DO_
6821 : }
6822 :
6823 0 : void ServerStatus::SerializeWithCachedSizes(
6824 : ::google::protobuf::io::CodedOutputStream* output) const {
6825 : // @@protoc_insertion_point(serialize_start:grpc.testing.ServerStatus)
6826 : // optional .grpc.testing.ServerStats stats = 1;
6827 0 : if (this->has_stats()) {
6828 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6829 0 : 1, *this->stats_, output);
6830 : }
6831 :
6832 : // optional int32 port = 2;
6833 0 : if (this->port() != 0) {
6834 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->port(), output);
6835 : }
6836 :
6837 : // @@protoc_insertion_point(serialize_end:grpc.testing.ServerStatus)
6838 0 : }
6839 :
6840 18 : ::google::protobuf::uint8* ServerStatus::SerializeWithCachedSizesToArray(
6841 : ::google::protobuf::uint8* target) const {
6842 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.ServerStatus)
6843 : // optional .grpc.testing.ServerStats stats = 1;
6844 18 : if (this->has_stats()) {
6845 : target = ::google::protobuf::internal::WireFormatLite::
6846 : WriteMessageNoVirtualToArray(
6847 24 : 1, *this->stats_, target);
6848 : }
6849 :
6850 : // optional int32 port = 2;
6851 18 : if (this->port() != 0) {
6852 36 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->port(), target);
6853 : }
6854 :
6855 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.ServerStatus)
6856 18 : return target;
6857 : }
6858 :
6859 18 : int ServerStatus::ByteSize() const {
6860 18 : int total_size = 0;
6861 :
6862 : // optional .grpc.testing.ServerStats stats = 1;
6863 18 : if (this->has_stats()) {
6864 : total_size += 1 +
6865 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6866 12 : *this->stats_);
6867 : }
6868 :
6869 : // optional int32 port = 2;
6870 18 : if (this->port() != 0) {
6871 : total_size += 1 +
6872 : ::google::protobuf::internal::WireFormatLite::Int32Size(
6873 18 : this->port());
6874 : }
6875 :
6876 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6877 18 : _cached_size_ = total_size;
6878 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
6879 18 : return total_size;
6880 : }
6881 :
6882 0 : void ServerStatus::MergeFrom(const ::google::protobuf::Message& from) {
6883 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
6884 : const ServerStatus* source =
6885 : ::google::protobuf::internal::DynamicCastToGenerated<const ServerStatus>(
6886 0 : &from);
6887 0 : if (source == NULL) {
6888 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6889 : } else {
6890 0 : MergeFrom(*source);
6891 : }
6892 0 : }
6893 :
6894 0 : void ServerStatus::MergeFrom(const ServerStatus& from) {
6895 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
6896 0 : if (from.has_stats()) {
6897 0 : mutable_stats()->::grpc::testing::ServerStats::MergeFrom(from.stats());
6898 : }
6899 0 : if (from.port() != 0) {
6900 0 : set_port(from.port());
6901 : }
6902 0 : }
6903 :
6904 0 : void ServerStatus::CopyFrom(const ::google::protobuf::Message& from) {
6905 0 : if (&from == this) return;
6906 0 : Clear();
6907 0 : MergeFrom(from);
6908 : }
6909 :
6910 0 : void ServerStatus::CopyFrom(const ServerStatus& from) {
6911 0 : if (&from == this) return;
6912 0 : Clear();
6913 0 : MergeFrom(from);
6914 : }
6915 :
6916 18 : bool ServerStatus::IsInitialized() const {
6917 :
6918 18 : return true;
6919 : }
6920 :
6921 0 : void ServerStatus::Swap(ServerStatus* other) {
6922 0 : if (other == this) return;
6923 0 : InternalSwap(other);
6924 : }
6925 0 : void ServerStatus::InternalSwap(ServerStatus* other) {
6926 0 : std::swap(stats_, other->stats_);
6927 0 : std::swap(port_, other->port_);
6928 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
6929 0 : std::swap(_cached_size_, other->_cached_size_);
6930 0 : }
6931 :
6932 0 : ::google::protobuf::Metadata ServerStatus::GetMetadata() const {
6933 0 : protobuf_AssignDescriptorsOnce();
6934 : ::google::protobuf::Metadata metadata;
6935 0 : metadata.descriptor = ServerStatus_descriptor_;
6936 0 : metadata.reflection = ServerStatus_reflection_;
6937 0 : return metadata;
6938 : }
6939 :
6940 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
6941 : // ServerStatus
6942 :
6943 : // optional .grpc.testing.ServerStats stats = 1;
6944 : bool ServerStatus::has_stats() const {
6945 : return !_is_default_instance_ && stats_ != NULL;
6946 : }
6947 : void ServerStatus::clear_stats() {
6948 : if (GetArenaNoVirtual() == NULL && stats_ != NULL) delete stats_;
6949 : stats_ = NULL;
6950 : }
6951 : const ::grpc::testing::ServerStats& ServerStatus::stats() const {
6952 : // @@protoc_insertion_point(field_get:grpc.testing.ServerStatus.stats)
6953 : return stats_ != NULL ? *stats_ : *default_instance_->stats_;
6954 : }
6955 : ::grpc::testing::ServerStats* ServerStatus::mutable_stats() {
6956 :
6957 : if (stats_ == NULL) {
6958 : stats_ = new ::grpc::testing::ServerStats;
6959 : }
6960 : // @@protoc_insertion_point(field_mutable:grpc.testing.ServerStatus.stats)
6961 : return stats_;
6962 : }
6963 : ::grpc::testing::ServerStats* ServerStatus::release_stats() {
6964 :
6965 : ::grpc::testing::ServerStats* temp = stats_;
6966 : stats_ = NULL;
6967 : return temp;
6968 : }
6969 : void ServerStatus::set_allocated_stats(::grpc::testing::ServerStats* stats) {
6970 : delete stats_;
6971 : stats_ = stats;
6972 : if (stats) {
6973 :
6974 : } else {
6975 :
6976 : }
6977 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.ServerStatus.stats)
6978 : }
6979 :
6980 : // optional int32 port = 2;
6981 : void ServerStatus::clear_port() {
6982 : port_ = 0;
6983 : }
6984 : ::google::protobuf::int32 ServerStatus::port() const {
6985 : // @@protoc_insertion_point(field_get:grpc.testing.ServerStatus.port)
6986 : return port_;
6987 : }
6988 : void ServerStatus::set_port(::google::protobuf::int32 value) {
6989 :
6990 : port_ = value;
6991 : // @@protoc_insertion_point(field_set:grpc.testing.ServerStatus.port)
6992 : }
6993 :
6994 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
6995 :
6996 : // ===================================================================
6997 :
6998 : #ifndef _MSC_VER
6999 : const int SimpleRequest::kResponseTypeFieldNumber;
7000 : const int SimpleRequest::kResponseSizeFieldNumber;
7001 : const int SimpleRequest::kPayloadFieldNumber;
7002 : #endif // !_MSC_VER
7003 :
7004 1304176 : SimpleRequest::SimpleRequest()
7005 1304176 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7006 1304686 : SharedCtor();
7007 : // @@protoc_insertion_point(constructor:grpc.testing.SimpleRequest)
7008 1304675 : }
7009 :
7010 6 : void SimpleRequest::InitAsDefaultInstance() {
7011 6 : _is_default_instance_ = true;
7012 6 : payload_ = const_cast< ::grpc::testing::Payload*>(&::grpc::testing::Payload::default_instance());
7013 6 : }
7014 :
7015 1138950 : SimpleRequest::SimpleRequest(const SimpleRequest& from)
7016 : : ::google::protobuf::Message(),
7017 1138950 : _internal_metadata_(NULL) {
7018 1139488 : SharedCtor();
7019 1138650 : MergeFrom(from);
7020 : // @@protoc_insertion_point(copy_constructor:grpc.testing.SimpleRequest)
7021 1139559 : }
7022 :
7023 2442877 : void SimpleRequest::SharedCtor() {
7024 2442877 : _is_default_instance_ = false;
7025 2442877 : _cached_size_ = 0;
7026 2442877 : response_type_ = 0;
7027 2442877 : response_size_ = 0;
7028 2442877 : payload_ = NULL;
7029 2442877 : }
7030 :
7031 4882169 : SimpleRequest::~SimpleRequest() {
7032 : // @@protoc_insertion_point(destructor:grpc.testing.SimpleRequest)
7033 2439486 : SharedDtor();
7034 2442584 : }
7035 :
7036 2441688 : void SimpleRequest::SharedDtor() {
7037 2441688 : if (this != default_instance_) {
7038 2442640 : delete payload_;
7039 : }
7040 2441688 : }
7041 :
7042 0 : void SimpleRequest::SetCachedSize(int size) const {
7043 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7044 0 : _cached_size_ = size;
7045 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7046 0 : }
7047 0 : const ::google::protobuf::Descriptor* SimpleRequest::descriptor() {
7048 0 : protobuf_AssignDescriptorsOnce();
7049 0 : return SimpleRequest_descriptor_;
7050 : }
7051 :
7052 0 : const SimpleRequest& SimpleRequest::default_instance() {
7053 0 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
7054 0 : return *default_instance_;
7055 : }
7056 :
7057 : SimpleRequest* SimpleRequest::default_instance_ = NULL;
7058 :
7059 0 : SimpleRequest* SimpleRequest::New(::google::protobuf::Arena* arena) const {
7060 0 : SimpleRequest* n = new SimpleRequest;
7061 0 : if (arena != NULL) {
7062 0 : arena->Own(n);
7063 : }
7064 0 : return n;
7065 : }
7066 :
7067 2443080 : void SimpleRequest::Clear() {
7068 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
7069 : &reinterpret_cast<SimpleRequest*>(16)->f)
7070 :
7071 : #define ZR_(first, last) do {\
7072 : ::memset(&first, 0,\
7073 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
7074 : } while (0)
7075 :
7076 2443080 : ZR_(response_type_, response_size_);
7077 2443080 : if (GetArenaNoVirtual() == NULL && payload_ != NULL) delete payload_;
7078 2443263 : payload_ = NULL;
7079 :
7080 : #undef ZR_HELPER_
7081 : #undef ZR_
7082 :
7083 2443263 : }
7084 :
7085 2555906 : bool SimpleRequest::MergePartialFromCodedStream(
7086 : ::google::protobuf::io::CodedInputStream* input) {
7087 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
7088 : ::google::protobuf::uint32 tag;
7089 : // @@protoc_insertion_point(parse_start:grpc.testing.SimpleRequest)
7090 : for (;;) {
7091 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
7092 2554972 : tag = p.first;
7093 3831994 : if (!p.second) goto handle_unusual;
7094 1277950 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7095 : // optional .grpc.testing.PayloadType response_type = 1;
7096 : case 1: {
7097 0 : if (tag == 8) {
7098 : int value;
7099 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7100 : int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7101 : input, &value)));
7102 0 : set_response_type(static_cast< ::grpc::testing::PayloadType >(value));
7103 : } else {
7104 0 : goto handle_unusual;
7105 : }
7106 78 : if (input->ExpectTag(16)) goto parse_response_size;
7107 78 : break;
7108 : }
7109 :
7110 : // optional int32 response_size = 2;
7111 : case 2: {
7112 1276915 : if (tag == 16) {
7113 : parse_response_size:
7114 2554866 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7115 : ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7116 : input, &response_size_)));
7117 :
7118 : } else {
7119 0 : goto handle_unusual;
7120 : }
7121 1277866 : if (input->ExpectTag(26)) goto parse_payload;
7122 1277866 : break;
7123 : }
7124 :
7125 : // optional .grpc.testing.Payload payload = 3;
7126 : case 3: {
7127 0 : if (tag == 26) {
7128 : parse_payload:
7129 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7130 : input, mutable_payload()));
7131 : } else {
7132 0 : goto handle_unusual;
7133 : }
7134 1278029 : if (input->ExpectAtEnd()) goto success;
7135 0 : break;
7136 : }
7137 :
7138 : default: {
7139 : handle_unusual:
7140 1278030 : if (tag == 0 ||
7141 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7142 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7143 1278030 : goto success;
7144 : }
7145 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
7146 0 : break;
7147 : }
7148 : }
7149 1277944 : }
7150 : success:
7151 : // @@protoc_insertion_point(parse_success:grpc.testing.SimpleRequest)
7152 1278029 : return true;
7153 : failure:
7154 : // @@protoc_insertion_point(parse_failure:grpc.testing.SimpleRequest)
7155 0 : return false;
7156 : #undef DO_
7157 : }
7158 :
7159 0 : void SimpleRequest::SerializeWithCachedSizes(
7160 : ::google::protobuf::io::CodedOutputStream* output) const {
7161 : // @@protoc_insertion_point(serialize_start:grpc.testing.SimpleRequest)
7162 : // optional .grpc.testing.PayloadType response_type = 1;
7163 0 : if (this->response_type() != 0) {
7164 : ::google::protobuf::internal::WireFormatLite::WriteEnum(
7165 0 : 1, this->response_type(), output);
7166 : }
7167 :
7168 : // optional int32 response_size = 2;
7169 0 : if (this->response_size() != 0) {
7170 0 : ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->response_size(), output);
7171 : }
7172 :
7173 : // optional .grpc.testing.Payload payload = 3;
7174 0 : if (this->has_payload()) {
7175 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7176 0 : 3, *this->payload_, output);
7177 : }
7178 :
7179 : // @@protoc_insertion_point(serialize_end:grpc.testing.SimpleRequest)
7180 0 : }
7181 :
7182 1278091 : ::google::protobuf::uint8* SimpleRequest::SerializeWithCachedSizesToArray(
7183 : ::google::protobuf::uint8* target) const {
7184 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.SimpleRequest)
7185 : // optional .grpc.testing.PayloadType response_type = 1;
7186 1278091 : if (this->response_type() != 0) {
7187 : target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7188 0 : 1, this->response_type(), target);
7189 : }
7190 :
7191 : // optional int32 response_size = 2;
7192 1278087 : if (this->response_size() != 0) {
7193 2556125 : target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->response_size(), target);
7194 : }
7195 :
7196 : // optional .grpc.testing.Payload payload = 3;
7197 1278102 : if (this->has_payload()) {
7198 : target = ::google::protobuf::internal::WireFormatLite::
7199 : WriteMessageNoVirtualToArray(
7200 0 : 3, *this->payload_, target);
7201 : }
7202 :
7203 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.SimpleRequest)
7204 1278010 : return target;
7205 : }
7206 :
7207 1277980 : int SimpleRequest::ByteSize() const {
7208 1277980 : int total_size = 0;
7209 :
7210 : // optional .grpc.testing.PayloadType response_type = 1;
7211 1277980 : if (this->response_type() != 0) {
7212 : total_size += 1 +
7213 0 : ::google::protobuf::internal::WireFormatLite::EnumSize(this->response_type());
7214 : }
7215 :
7216 : // optional int32 response_size = 2;
7217 1278019 : if (this->response_size() != 0) {
7218 : total_size += 1 +
7219 : ::google::protobuf::internal::WireFormatLite::Int32Size(
7220 1278020 : this->response_size());
7221 : }
7222 :
7223 : // optional .grpc.testing.Payload payload = 3;
7224 1277952 : if (this->has_payload()) {
7225 : total_size += 1 +
7226 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7227 0 : *this->payload_);
7228 : }
7229 :
7230 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7231 1277508 : _cached_size_ = total_size;
7232 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7233 1277508 : return total_size;
7234 : }
7235 :
7236 0 : void SimpleRequest::MergeFrom(const ::google::protobuf::Message& from) {
7237 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
7238 : const SimpleRequest* source =
7239 : ::google::protobuf::internal::DynamicCastToGenerated<const SimpleRequest>(
7240 0 : &from);
7241 0 : if (source == NULL) {
7242 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7243 : } else {
7244 0 : MergeFrom(*source);
7245 : }
7246 0 : }
7247 :
7248 2303360 : void SimpleRequest::MergeFrom(const SimpleRequest& from) {
7249 2303360 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
7250 2303360 : if (from.response_type() != 0) {
7251 0 : set_response_type(from.response_type());
7252 : }
7253 2303761 : if (from.response_size() != 0) {
7254 1139535 : set_response_size(from.response_size());
7255 : }
7256 2303624 : if (from.has_payload()) {
7257 0 : mutable_payload()->::grpc::testing::Payload::MergeFrom(from.payload());
7258 : }
7259 2303599 : }
7260 :
7261 0 : void SimpleRequest::CopyFrom(const ::google::protobuf::Message& from) {
7262 0 : if (&from == this) return;
7263 0 : Clear();
7264 0 : MergeFrom(from);
7265 : }
7266 :
7267 1165853 : void SimpleRequest::CopyFrom(const SimpleRequest& from) {
7268 2331577 : if (&from == this) return;
7269 1165853 : Clear();
7270 1165793 : MergeFrom(from);
7271 : }
7272 :
7273 1278026 : bool SimpleRequest::IsInitialized() const {
7274 :
7275 1278026 : return true;
7276 : }
7277 :
7278 0 : void SimpleRequest::Swap(SimpleRequest* other) {
7279 0 : if (other == this) return;
7280 0 : InternalSwap(other);
7281 : }
7282 0 : void SimpleRequest::InternalSwap(SimpleRequest* other) {
7283 0 : std::swap(response_type_, other->response_type_);
7284 0 : std::swap(response_size_, other->response_size_);
7285 0 : std::swap(payload_, other->payload_);
7286 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
7287 0 : std::swap(_cached_size_, other->_cached_size_);
7288 0 : }
7289 :
7290 0 : ::google::protobuf::Metadata SimpleRequest::GetMetadata() const {
7291 0 : protobuf_AssignDescriptorsOnce();
7292 : ::google::protobuf::Metadata metadata;
7293 0 : metadata.descriptor = SimpleRequest_descriptor_;
7294 0 : metadata.reflection = SimpleRequest_reflection_;
7295 0 : return metadata;
7296 : }
7297 :
7298 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
7299 : // SimpleRequest
7300 :
7301 : // optional .grpc.testing.PayloadType response_type = 1;
7302 : void SimpleRequest::clear_response_type() {
7303 : response_type_ = 0;
7304 : }
7305 : ::grpc::testing::PayloadType SimpleRequest::response_type() const {
7306 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleRequest.response_type)
7307 : return static_cast< ::grpc::testing::PayloadType >(response_type_);
7308 : }
7309 : void SimpleRequest::set_response_type(::grpc::testing::PayloadType value) {
7310 :
7311 : response_type_ = value;
7312 : // @@protoc_insertion_point(field_set:grpc.testing.SimpleRequest.response_type)
7313 : }
7314 :
7315 : // optional int32 response_size = 2;
7316 : void SimpleRequest::clear_response_size() {
7317 : response_size_ = 0;
7318 : }
7319 : ::google::protobuf::int32 SimpleRequest::response_size() const {
7320 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleRequest.response_size)
7321 : return response_size_;
7322 : }
7323 : void SimpleRequest::set_response_size(::google::protobuf::int32 value) {
7324 :
7325 : response_size_ = value;
7326 : // @@protoc_insertion_point(field_set:grpc.testing.SimpleRequest.response_size)
7327 : }
7328 :
7329 : // optional .grpc.testing.Payload payload = 3;
7330 : bool SimpleRequest::has_payload() const {
7331 : return !_is_default_instance_ && payload_ != NULL;
7332 : }
7333 : void SimpleRequest::clear_payload() {
7334 : if (GetArenaNoVirtual() == NULL && payload_ != NULL) delete payload_;
7335 : payload_ = NULL;
7336 : }
7337 : const ::grpc::testing::Payload& SimpleRequest::payload() const {
7338 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleRequest.payload)
7339 : return payload_ != NULL ? *payload_ : *default_instance_->payload_;
7340 : }
7341 : ::grpc::testing::Payload* SimpleRequest::mutable_payload() {
7342 :
7343 : if (payload_ == NULL) {
7344 : payload_ = new ::grpc::testing::Payload;
7345 : }
7346 : // @@protoc_insertion_point(field_mutable:grpc.testing.SimpleRequest.payload)
7347 : return payload_;
7348 : }
7349 : ::grpc::testing::Payload* SimpleRequest::release_payload() {
7350 :
7351 : ::grpc::testing::Payload* temp = payload_;
7352 : payload_ = NULL;
7353 : return temp;
7354 : }
7355 : void SimpleRequest::set_allocated_payload(::grpc::testing::Payload* payload) {
7356 : delete payload_;
7357 : payload_ = payload;
7358 : if (payload) {
7359 :
7360 : } else {
7361 :
7362 : }
7363 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SimpleRequest.payload)
7364 : }
7365 :
7366 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
7367 :
7368 : // ===================================================================
7369 :
7370 : #ifndef _MSC_VER
7371 : const int SimpleResponse::kPayloadFieldNumber;
7372 : #endif // !_MSC_VER
7373 :
7374 2415901 : SimpleResponse::SimpleResponse()
7375 2415901 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7376 2415728 : SharedCtor();
7377 : // @@protoc_insertion_point(constructor:grpc.testing.SimpleResponse)
7378 2416019 : }
7379 :
7380 6 : void SimpleResponse::InitAsDefaultInstance() {
7381 6 : _is_default_instance_ = true;
7382 6 : payload_ = const_cast< ::grpc::testing::Payload*>(&::grpc::testing::Payload::default_instance());
7383 6 : }
7384 :
7385 0 : SimpleResponse::SimpleResponse(const SimpleResponse& from)
7386 : : ::google::protobuf::Message(),
7387 0 : _internal_metadata_(NULL) {
7388 0 : SharedCtor();
7389 0 : MergeFrom(from);
7390 : // @@protoc_insertion_point(copy_constructor:grpc.testing.SimpleResponse)
7391 0 : }
7392 :
7393 2414448 : void SimpleResponse::SharedCtor() {
7394 2414448 : _is_default_instance_ = false;
7395 2414448 : _cached_size_ = 0;
7396 2414448 : payload_ = NULL;
7397 2414448 : }
7398 :
7399 4830879 : SimpleResponse::~SimpleResponse() {
7400 : // @@protoc_insertion_point(destructor:grpc.testing.SimpleResponse)
7401 2413461 : SharedDtor();
7402 2417333 : }
7403 :
7404 2414552 : void SimpleResponse::SharedDtor() {
7405 2414552 : if (this != default_instance_) {
7406 2415472 : delete payload_;
7407 : }
7408 2416402 : }
7409 :
7410 0 : void SimpleResponse::SetCachedSize(int size) const {
7411 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7412 0 : _cached_size_ = size;
7413 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7414 0 : }
7415 0 : const ::google::protobuf::Descriptor* SimpleResponse::descriptor() {
7416 0 : protobuf_AssignDescriptorsOnce();
7417 0 : return SimpleResponse_descriptor_;
7418 : }
7419 :
7420 0 : const SimpleResponse& SimpleResponse::default_instance() {
7421 0 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
7422 0 : return *default_instance_;
7423 : }
7424 :
7425 : SimpleResponse* SimpleResponse::default_instance_ = NULL;
7426 :
7427 0 : SimpleResponse* SimpleResponse::New(::google::protobuf::Arena* arena) const {
7428 0 : SimpleResponse* n = new SimpleResponse;
7429 0 : if (arena != NULL) {
7430 0 : arena->Own(n);
7431 : }
7432 0 : return n;
7433 : }
7434 :
7435 1277995 : void SimpleResponse::Clear() {
7436 1277995 : if (GetArenaNoVirtual() == NULL && payload_ != NULL) delete payload_;
7437 1278035 : payload_ = NULL;
7438 1278035 : }
7439 :
7440 2555208 : bool SimpleResponse::MergePartialFromCodedStream(
7441 : ::google::protobuf::io::CodedInputStream* input) {
7442 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
7443 : ::google::protobuf::uint32 tag;
7444 : // @@protoc_insertion_point(parse_start:grpc.testing.SimpleResponse)
7445 : for (;;) {
7446 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
7447 2555950 : tag = p.first;
7448 3834050 : if (!p.second) goto handle_unusual;
7449 1277850 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7450 : // optional .grpc.testing.Payload payload = 1;
7451 : case 1: {
7452 1277913 : if (tag == 10) {
7453 1277913 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7454 : input, mutable_payload()));
7455 : } else {
7456 0 : goto handle_unusual;
7457 : }
7458 2556002 : if (input->ExpectAtEnd()) goto success;
7459 1277983 : break;
7460 : }
7461 :
7462 : default: {
7463 : handle_unusual:
7464 1278020 : if (tag == 0 ||
7465 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7466 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7467 1278020 : goto success;
7468 : }
7469 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
7470 0 : break;
7471 : }
7472 : }
7473 1277983 : }
7474 : success:
7475 : // @@protoc_insertion_point(parse_success:grpc.testing.SimpleResponse)
7476 1278021 : return true;
7477 : failure:
7478 : // @@protoc_insertion_point(parse_failure:grpc.testing.SimpleResponse)
7479 0 : return false;
7480 : #undef DO_
7481 : }
7482 :
7483 0 : void SimpleResponse::SerializeWithCachedSizes(
7484 : ::google::protobuf::io::CodedOutputStream* output) const {
7485 : // @@protoc_insertion_point(serialize_start:grpc.testing.SimpleResponse)
7486 : // optional .grpc.testing.Payload payload = 1;
7487 0 : if (this->has_payload()) {
7488 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7489 0 : 1, *this->payload_, output);
7490 : }
7491 :
7492 : // @@protoc_insertion_point(serialize_end:grpc.testing.SimpleResponse)
7493 0 : }
7494 :
7495 1278060 : ::google::protobuf::uint8* SimpleResponse::SerializeWithCachedSizesToArray(
7496 : ::google::protobuf::uint8* target) const {
7497 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.SimpleResponse)
7498 : // optional .grpc.testing.Payload payload = 1;
7499 1278060 : if (this->has_payload()) {
7500 : target = ::google::protobuf::internal::WireFormatLite::
7501 : WriteMessageNoVirtualToArray(
7502 2555843 : 1, *this->payload_, target);
7503 : }
7504 :
7505 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.SimpleResponse)
7506 1277785 : return target;
7507 : }
7508 :
7509 1277895 : int SimpleResponse::ByteSize() const {
7510 1277895 : int total_size = 0;
7511 :
7512 : // optional .grpc.testing.Payload payload = 1;
7513 1277895 : if (this->has_payload()) {
7514 : total_size += 1 +
7515 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7516 1277917 : *this->payload_);
7517 : }
7518 :
7519 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7520 1277565 : _cached_size_ = total_size;
7521 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
7522 1277565 : return total_size;
7523 : }
7524 :
7525 0 : void SimpleResponse::MergeFrom(const ::google::protobuf::Message& from) {
7526 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
7527 : const SimpleResponse* source =
7528 : ::google::protobuf::internal::DynamicCastToGenerated<const SimpleResponse>(
7529 0 : &from);
7530 0 : if (source == NULL) {
7531 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7532 : } else {
7533 0 : MergeFrom(*source);
7534 : }
7535 0 : }
7536 :
7537 0 : void SimpleResponse::MergeFrom(const SimpleResponse& from) {
7538 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
7539 0 : if (from.has_payload()) {
7540 0 : mutable_payload()->::grpc::testing::Payload::MergeFrom(from.payload());
7541 : }
7542 0 : }
7543 :
7544 0 : void SimpleResponse::CopyFrom(const ::google::protobuf::Message& from) {
7545 0 : if (&from == this) return;
7546 0 : Clear();
7547 0 : MergeFrom(from);
7548 : }
7549 :
7550 0 : void SimpleResponse::CopyFrom(const SimpleResponse& from) {
7551 0 : if (&from == this) return;
7552 0 : Clear();
7553 0 : MergeFrom(from);
7554 : }
7555 :
7556 1278019 : bool SimpleResponse::IsInitialized() const {
7557 :
7558 1278019 : return true;
7559 : }
7560 :
7561 0 : void SimpleResponse::Swap(SimpleResponse* other) {
7562 0 : if (other == this) return;
7563 0 : InternalSwap(other);
7564 : }
7565 0 : void SimpleResponse::InternalSwap(SimpleResponse* other) {
7566 0 : std::swap(payload_, other->payload_);
7567 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
7568 0 : std::swap(_cached_size_, other->_cached_size_);
7569 0 : }
7570 :
7571 0 : ::google::protobuf::Metadata SimpleResponse::GetMetadata() const {
7572 0 : protobuf_AssignDescriptorsOnce();
7573 : ::google::protobuf::Metadata metadata;
7574 0 : metadata.descriptor = SimpleResponse_descriptor_;
7575 0 : metadata.reflection = SimpleResponse_reflection_;
7576 0 : return metadata;
7577 : }
7578 :
7579 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
7580 : // SimpleResponse
7581 :
7582 : // optional .grpc.testing.Payload payload = 1;
7583 : bool SimpleResponse::has_payload() const {
7584 : return !_is_default_instance_ && payload_ != NULL;
7585 : }
7586 : void SimpleResponse::clear_payload() {
7587 : if (GetArenaNoVirtual() == NULL && payload_ != NULL) delete payload_;
7588 : payload_ = NULL;
7589 : }
7590 : const ::grpc::testing::Payload& SimpleResponse::payload() const {
7591 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleResponse.payload)
7592 : return payload_ != NULL ? *payload_ : *default_instance_->payload_;
7593 : }
7594 : ::grpc::testing::Payload* SimpleResponse::mutable_payload() {
7595 :
7596 : if (payload_ == NULL) {
7597 : payload_ = new ::grpc::testing::Payload;
7598 : }
7599 : // @@protoc_insertion_point(field_mutable:grpc.testing.SimpleResponse.payload)
7600 : return payload_;
7601 : }
7602 : ::grpc::testing::Payload* SimpleResponse::release_payload() {
7603 :
7604 : ::grpc::testing::Payload* temp = payload_;
7605 : payload_ = NULL;
7606 : return temp;
7607 : }
7608 : void SimpleResponse::set_allocated_payload(::grpc::testing::Payload* payload) {
7609 : delete payload_;
7610 : payload_ = payload;
7611 : if (payload) {
7612 :
7613 : } else {
7614 :
7615 : }
7616 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SimpleResponse.payload)
7617 : }
7618 :
7619 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
7620 :
7621 : // @@protoc_insertion_point(namespace_scope)
7622 :
7623 : } // namespace testing
7624 18 : } // namespace grpc
7625 :
7626 : // @@protoc_insertion_point(global_scope)
|