Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // source: test/cpp/qps/perf_db.proto
3 :
4 : #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 : #include "test/cpp/qps/perf_db.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* Metrics_descriptor_ = NULL;
25 : const ::google::protobuf::internal::GeneratedMessageReflection*
26 : Metrics_reflection_ = NULL;
27 : const ::google::protobuf::Descriptor* SingleUserRecordRequest_descriptor_ = NULL;
28 : const ::google::protobuf::internal::GeneratedMessageReflection*
29 : SingleUserRecordRequest_reflection_ = NULL;
30 : const ::google::protobuf::Descriptor* SingleUserRecordReply_descriptor_ = NULL;
31 : const ::google::protobuf::internal::GeneratedMessageReflection*
32 : SingleUserRecordReply_reflection_ = NULL;
33 :
34 : } // namespace
35 :
36 :
37 0 : void protobuf_AssignDesc_test_2fcpp_2fqps_2fperf_5fdb_2eproto() {
38 0 : protobuf_AddDesc_test_2fcpp_2fqps_2fperf_5fdb_2eproto();
39 : const ::google::protobuf::FileDescriptor* file =
40 : ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
41 0 : "test/cpp/qps/perf_db.proto");
42 0 : GOOGLE_CHECK(file != NULL);
43 0 : Metrics_descriptor_ = file->message_type(0);
44 : static const int Metrics_offsets_[11] = {
45 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metrics, qps_),
46 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metrics, qps_per_core_),
47 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metrics, perc_lat_50_),
48 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metrics, perc_lat_90_),
49 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metrics, perc_lat_95_),
50 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metrics, perc_lat_99_),
51 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metrics, perc_lat_99_point_9_),
52 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metrics, server_system_time_),
53 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metrics, server_user_time_),
54 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metrics, client_system_time_),
55 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metrics, client_user_time_),
56 : };
57 : Metrics_reflection_ =
58 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
59 : Metrics_descriptor_,
60 : Metrics::default_instance_,
61 : Metrics_offsets_,
62 : -1,
63 : -1,
64 : -1,
65 : sizeof(Metrics),
66 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metrics, _internal_metadata_),
67 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metrics, _is_default_instance_));
68 0 : SingleUserRecordRequest_descriptor_ = file->message_type(1);
69 : static const int SingleUserRecordRequest_offsets_[7] = {
70 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleUserRecordRequest, hashed_id_),
71 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleUserRecordRequest, test_name_),
72 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleUserRecordRequest, sys_info_),
73 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleUserRecordRequest, tag_),
74 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleUserRecordRequest, metrics_),
75 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleUserRecordRequest, client_config_),
76 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleUserRecordRequest, server_config_),
77 : };
78 : SingleUserRecordRequest_reflection_ =
79 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
80 : SingleUserRecordRequest_descriptor_,
81 : SingleUserRecordRequest::default_instance_,
82 : SingleUserRecordRequest_offsets_,
83 : -1,
84 : -1,
85 : -1,
86 : sizeof(SingleUserRecordRequest),
87 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleUserRecordRequest, _internal_metadata_),
88 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleUserRecordRequest, _is_default_instance_));
89 0 : SingleUserRecordReply_descriptor_ = file->message_type(2);
90 : static const int SingleUserRecordReply_offsets_[1] = {
91 : };
92 : SingleUserRecordReply_reflection_ =
93 : ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
94 : SingleUserRecordReply_descriptor_,
95 : SingleUserRecordReply::default_instance_,
96 : SingleUserRecordReply_offsets_,
97 : -1,
98 : -1,
99 : -1,
100 : sizeof(SingleUserRecordReply),
101 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleUserRecordReply, _internal_metadata_),
102 0 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleUserRecordReply, _is_default_instance_));
103 0 : }
104 :
105 : namespace {
106 :
107 : GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
108 0 : inline void protobuf_AssignDescriptorsOnce() {
109 : ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
110 0 : &protobuf_AssignDesc_test_2fcpp_2fqps_2fperf_5fdb_2eproto);
111 0 : }
112 :
113 0 : void protobuf_RegisterTypes(const ::std::string&) {
114 0 : protobuf_AssignDescriptorsOnce();
115 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
116 0 : Metrics_descriptor_, &Metrics::default_instance());
117 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
118 0 : SingleUserRecordRequest_descriptor_, &SingleUserRecordRequest::default_instance());
119 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
120 0 : SingleUserRecordReply_descriptor_, &SingleUserRecordReply::default_instance());
121 0 : }
122 :
123 : } // namespace
124 :
125 0 : void protobuf_ShutdownFile_test_2fcpp_2fqps_2fperf_5fdb_2eproto() {
126 0 : delete Metrics::default_instance_;
127 0 : delete Metrics_reflection_;
128 0 : delete SingleUserRecordRequest::default_instance_;
129 0 : delete SingleUserRecordRequest_reflection_;
130 0 : delete SingleUserRecordReply::default_instance_;
131 0 : delete SingleUserRecordReply_reflection_;
132 0 : }
133 :
134 6 : void protobuf_AddDesc_test_2fcpp_2fqps_2fperf_5fdb_2eproto() {
135 : static bool already_here = false;
136 12 : if (already_here) return;
137 6 : already_here = true;
138 6 : GOOGLE_PROTOBUF_VERIFY_VERSION;
139 :
140 6 : ::grpc::testing::protobuf_AddDesc_test_2fcpp_2fqps_2fqpstest_2eproto();
141 : ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
142 : "\n\032test/cpp/qps/perf_db.proto\022\014grpc.testi"
143 : "ng\032\032test/cpp/qps/qpstest.proto\"\211\002\n\007Metri"
144 : "cs\022\013\n\003qps\030\001 \001(\001\022\024\n\014qps_per_core\030\002 \001(\001\022\023\n"
145 : "\013perc_lat_50\030\003 \001(\001\022\023\n\013perc_lat_90\030\004 \001(\001\022"
146 : "\023\n\013perc_lat_95\030\005 \001(\001\022\023\n\013perc_lat_99\030\006 \001("
147 : "\001\022\033\n\023perc_lat_99_point_9\030\007 \001(\001\022\032\n\022server"
148 : "_system_time\030\010 \001(\001\022\030\n\020server_user_time\030\t"
149 : " \001(\001\022\032\n\022client_system_time\030\n \001(\001\022\030\n\020clie"
150 : "nt_user_time\030\013 \001(\001\"\354\001\n\027SingleUserRecordR"
151 : "equest\022\021\n\thashed_id\030\001 \001(\t\022\021\n\ttest_name\030\002"
152 : " \001(\t\022\020\n\010sys_info\030\003 \001(\t\022\013\n\003tag\030\004 \001(\t\022&\n\007m"
153 : "etrics\030\005 \001(\0132\025.grpc.testing.Metrics\0221\n\rc"
154 : "lient_config\030\006 \001(\0132\032.grpc.testing.Client"
155 : "Config\0221\n\rserver_config\030\007 \001(\0132\032.grpc.tes"
156 : "ting.ServerConfig\"\027\n\025SingleUserRecordRep"
157 : "ly2x\n\016PerfDbTransfer\022f\n\026RecordSingleClie"
158 : "ntData\022%.grpc.testing.SingleUserRecordRe"
159 : "quest\032#.grpc.testing.SingleUserRecordRep"
160 6 : "ly\"\000b\006proto3", 732);
161 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
162 6 : "test/cpp/qps/perf_db.proto", &protobuf_RegisterTypes);
163 6 : Metrics::default_instance_ = new Metrics();
164 6 : SingleUserRecordRequest::default_instance_ = new SingleUserRecordRequest();
165 6 : SingleUserRecordReply::default_instance_ = new SingleUserRecordReply();
166 6 : Metrics::default_instance_->InitAsDefaultInstance();
167 6 : SingleUserRecordRequest::default_instance_->InitAsDefaultInstance();
168 6 : SingleUserRecordReply::default_instance_->InitAsDefaultInstance();
169 6 : ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_test_2fcpp_2fqps_2fperf_5fdb_2eproto);
170 : }
171 :
172 : // Force AddDescriptors() to be called at static initialization time.
173 : struct StaticDescriptorInitializer_test_2fcpp_2fqps_2fperf_5fdb_2eproto {
174 6 : StaticDescriptorInitializer_test_2fcpp_2fqps_2fperf_5fdb_2eproto() {
175 6 : protobuf_AddDesc_test_2fcpp_2fqps_2fperf_5fdb_2eproto();
176 6 : }
177 6 : } static_descriptor_initializer_test_2fcpp_2fqps_2fperf_5fdb_2eproto_;
178 :
179 : namespace {
180 :
181 : static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
182 0 : static void MergeFromFail(int line) {
183 0 : GOOGLE_CHECK(false) << __FILE__ << ":" << line;
184 0 : }
185 :
186 : } // namespace
187 :
188 :
189 : // ===================================================================
190 :
191 : #ifndef _MSC_VER
192 : const int Metrics::kQpsFieldNumber;
193 : const int Metrics::kQpsPerCoreFieldNumber;
194 : const int Metrics::kPercLat50FieldNumber;
195 : const int Metrics::kPercLat90FieldNumber;
196 : const int Metrics::kPercLat95FieldNumber;
197 : const int Metrics::kPercLat99FieldNumber;
198 : const int Metrics::kPercLat99Point9FieldNumber;
199 : const int Metrics::kServerSystemTimeFieldNumber;
200 : const int Metrics::kServerUserTimeFieldNumber;
201 : const int Metrics::kClientSystemTimeFieldNumber;
202 : const int Metrics::kClientUserTimeFieldNumber;
203 : #endif // !_MSC_VER
204 :
205 6 : Metrics::Metrics()
206 6 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
207 6 : SharedCtor();
208 : // @@protoc_insertion_point(constructor:grpc.testing.Metrics)
209 6 : }
210 :
211 6 : void Metrics::InitAsDefaultInstance() {
212 6 : _is_default_instance_ = true;
213 6 : }
214 :
215 0 : Metrics::Metrics(const Metrics& from)
216 : : ::google::protobuf::Message(),
217 0 : _internal_metadata_(NULL) {
218 0 : SharedCtor();
219 0 : MergeFrom(from);
220 : // @@protoc_insertion_point(copy_constructor:grpc.testing.Metrics)
221 0 : }
222 :
223 6 : void Metrics::SharedCtor() {
224 6 : _is_default_instance_ = false;
225 6 : _cached_size_ = 0;
226 6 : qps_ = 0;
227 6 : qps_per_core_ = 0;
228 6 : perc_lat_50_ = 0;
229 6 : perc_lat_90_ = 0;
230 6 : perc_lat_95_ = 0;
231 6 : perc_lat_99_ = 0;
232 6 : perc_lat_99_point_9_ = 0;
233 6 : server_system_time_ = 0;
234 6 : server_user_time_ = 0;
235 6 : client_system_time_ = 0;
236 6 : client_user_time_ = 0;
237 6 : }
238 :
239 0 : Metrics::~Metrics() {
240 : // @@protoc_insertion_point(destructor:grpc.testing.Metrics)
241 0 : SharedDtor();
242 0 : }
243 :
244 0 : void Metrics::SharedDtor() {
245 0 : if (this != default_instance_) {
246 : }
247 0 : }
248 :
249 0 : void Metrics::SetCachedSize(int size) const {
250 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
251 0 : _cached_size_ = size;
252 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
253 0 : }
254 0 : const ::google::protobuf::Descriptor* Metrics::descriptor() {
255 0 : protobuf_AssignDescriptorsOnce();
256 0 : return Metrics_descriptor_;
257 : }
258 :
259 6 : const Metrics& Metrics::default_instance() {
260 6 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fperf_5fdb_2eproto();
261 6 : return *default_instance_;
262 : }
263 :
264 : Metrics* Metrics::default_instance_ = NULL;
265 :
266 0 : Metrics* Metrics::New(::google::protobuf::Arena* arena) const {
267 0 : Metrics* n = new Metrics;
268 0 : if (arena != NULL) {
269 0 : arena->Own(n);
270 : }
271 0 : return n;
272 : }
273 :
274 0 : void Metrics::Clear() {
275 : #define ZR_HELPER_(f) reinterpret_cast<char*>(\
276 : &reinterpret_cast<Metrics*>(16)->f)
277 :
278 : #define ZR_(first, last) do {\
279 : ::memset(&first, 0,\
280 : ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
281 : } while (0)
282 :
283 0 : ZR_(qps_, server_system_time_);
284 0 : ZR_(server_user_time_, client_user_time_);
285 :
286 : #undef ZR_HELPER_
287 : #undef ZR_
288 :
289 0 : }
290 :
291 0 : bool Metrics::MergePartialFromCodedStream(
292 : ::google::protobuf::io::CodedInputStream* input) {
293 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
294 : ::google::protobuf::uint32 tag;
295 : // @@protoc_insertion_point(parse_start:grpc.testing.Metrics)
296 : for (;;) {
297 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
298 0 : tag = p.first;
299 0 : if (!p.second) goto handle_unusual;
300 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
301 : // optional double qps = 1;
302 : case 1: {
303 0 : if (tag == 9) {
304 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
305 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
306 : input, &qps_)));
307 :
308 : } else {
309 0 : goto handle_unusual;
310 : }
311 0 : if (input->ExpectTag(17)) goto parse_qps_per_core;
312 0 : break;
313 : }
314 :
315 : // optional double qps_per_core = 2;
316 : case 2: {
317 0 : if (tag == 17) {
318 : parse_qps_per_core:
319 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
320 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
321 : input, &qps_per_core_)));
322 :
323 : } else {
324 0 : goto handle_unusual;
325 : }
326 0 : if (input->ExpectTag(25)) goto parse_perc_lat_50;
327 0 : break;
328 : }
329 :
330 : // optional double perc_lat_50 = 3;
331 : case 3: {
332 0 : if (tag == 25) {
333 : parse_perc_lat_50:
334 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
335 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
336 : input, &perc_lat_50_)));
337 :
338 : } else {
339 0 : goto handle_unusual;
340 : }
341 0 : if (input->ExpectTag(33)) goto parse_perc_lat_90;
342 0 : break;
343 : }
344 :
345 : // optional double perc_lat_90 = 4;
346 : case 4: {
347 0 : if (tag == 33) {
348 : parse_perc_lat_90:
349 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
350 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
351 : input, &perc_lat_90_)));
352 :
353 : } else {
354 0 : goto handle_unusual;
355 : }
356 0 : if (input->ExpectTag(41)) goto parse_perc_lat_95;
357 0 : break;
358 : }
359 :
360 : // optional double perc_lat_95 = 5;
361 : case 5: {
362 0 : if (tag == 41) {
363 : parse_perc_lat_95:
364 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
365 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
366 : input, &perc_lat_95_)));
367 :
368 : } else {
369 0 : goto handle_unusual;
370 : }
371 0 : if (input->ExpectTag(49)) goto parse_perc_lat_99;
372 0 : break;
373 : }
374 :
375 : // optional double perc_lat_99 = 6;
376 : case 6: {
377 0 : if (tag == 49) {
378 : parse_perc_lat_99:
379 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
380 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
381 : input, &perc_lat_99_)));
382 :
383 : } else {
384 0 : goto handle_unusual;
385 : }
386 0 : if (input->ExpectTag(57)) goto parse_perc_lat_99_point_9;
387 0 : break;
388 : }
389 :
390 : // optional double perc_lat_99_point_9 = 7;
391 : case 7: {
392 0 : if (tag == 57) {
393 : parse_perc_lat_99_point_9:
394 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
395 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
396 : input, &perc_lat_99_point_9_)));
397 :
398 : } else {
399 0 : goto handle_unusual;
400 : }
401 0 : if (input->ExpectTag(65)) goto parse_server_system_time;
402 0 : break;
403 : }
404 :
405 : // optional double server_system_time = 8;
406 : case 8: {
407 0 : if (tag == 65) {
408 : parse_server_system_time:
409 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
410 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
411 : input, &server_system_time_)));
412 :
413 : } else {
414 0 : goto handle_unusual;
415 : }
416 0 : if (input->ExpectTag(73)) goto parse_server_user_time;
417 0 : break;
418 : }
419 :
420 : // optional double server_user_time = 9;
421 : case 9: {
422 0 : if (tag == 73) {
423 : parse_server_user_time:
424 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
425 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
426 : input, &server_user_time_)));
427 :
428 : } else {
429 0 : goto handle_unusual;
430 : }
431 0 : if (input->ExpectTag(81)) goto parse_client_system_time;
432 0 : break;
433 : }
434 :
435 : // optional double client_system_time = 10;
436 : case 10: {
437 0 : if (tag == 81) {
438 : parse_client_system_time:
439 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
440 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
441 : input, &client_system_time_)));
442 :
443 : } else {
444 0 : goto handle_unusual;
445 : }
446 0 : if (input->ExpectTag(89)) goto parse_client_user_time;
447 0 : break;
448 : }
449 :
450 : // optional double client_user_time = 11;
451 : case 11: {
452 0 : if (tag == 89) {
453 : parse_client_user_time:
454 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
455 : double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
456 : input, &client_user_time_)));
457 :
458 : } else {
459 0 : goto handle_unusual;
460 : }
461 0 : if (input->ExpectAtEnd()) goto success;
462 0 : break;
463 : }
464 :
465 : default: {
466 : handle_unusual:
467 0 : if (tag == 0 ||
468 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
469 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
470 0 : goto success;
471 : }
472 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
473 0 : break;
474 : }
475 : }
476 0 : }
477 : success:
478 : // @@protoc_insertion_point(parse_success:grpc.testing.Metrics)
479 0 : return true;
480 : failure:
481 : // @@protoc_insertion_point(parse_failure:grpc.testing.Metrics)
482 0 : return false;
483 : #undef DO_
484 : }
485 :
486 0 : void Metrics::SerializeWithCachedSizes(
487 : ::google::protobuf::io::CodedOutputStream* output) const {
488 : // @@protoc_insertion_point(serialize_start:grpc.testing.Metrics)
489 : // optional double qps = 1;
490 0 : if (this->qps() != 0) {
491 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->qps(), output);
492 : }
493 :
494 : // optional double qps_per_core = 2;
495 0 : if (this->qps_per_core() != 0) {
496 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->qps_per_core(), output);
497 : }
498 :
499 : // optional double perc_lat_50 = 3;
500 0 : if (this->perc_lat_50() != 0) {
501 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->perc_lat_50(), output);
502 : }
503 :
504 : // optional double perc_lat_90 = 4;
505 0 : if (this->perc_lat_90() != 0) {
506 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->perc_lat_90(), output);
507 : }
508 :
509 : // optional double perc_lat_95 = 5;
510 0 : if (this->perc_lat_95() != 0) {
511 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->perc_lat_95(), output);
512 : }
513 :
514 : // optional double perc_lat_99 = 6;
515 0 : if (this->perc_lat_99() != 0) {
516 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->perc_lat_99(), output);
517 : }
518 :
519 : // optional double perc_lat_99_point_9 = 7;
520 0 : if (this->perc_lat_99_point_9() != 0) {
521 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->perc_lat_99_point_9(), output);
522 : }
523 :
524 : // optional double server_system_time = 8;
525 0 : if (this->server_system_time() != 0) {
526 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->server_system_time(), output);
527 : }
528 :
529 : // optional double server_user_time = 9;
530 0 : if (this->server_user_time() != 0) {
531 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->server_user_time(), output);
532 : }
533 :
534 : // optional double client_system_time = 10;
535 0 : if (this->client_system_time() != 0) {
536 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->client_system_time(), output);
537 : }
538 :
539 : // optional double client_user_time = 11;
540 0 : if (this->client_user_time() != 0) {
541 0 : ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->client_user_time(), output);
542 : }
543 :
544 : // @@protoc_insertion_point(serialize_end:grpc.testing.Metrics)
545 0 : }
546 :
547 0 : ::google::protobuf::uint8* Metrics::SerializeWithCachedSizesToArray(
548 : ::google::protobuf::uint8* target) const {
549 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.Metrics)
550 : // optional double qps = 1;
551 0 : if (this->qps() != 0) {
552 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->qps(), target);
553 : }
554 :
555 : // optional double qps_per_core = 2;
556 0 : if (this->qps_per_core() != 0) {
557 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->qps_per_core(), target);
558 : }
559 :
560 : // optional double perc_lat_50 = 3;
561 0 : if (this->perc_lat_50() != 0) {
562 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->perc_lat_50(), target);
563 : }
564 :
565 : // optional double perc_lat_90 = 4;
566 0 : if (this->perc_lat_90() != 0) {
567 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->perc_lat_90(), target);
568 : }
569 :
570 : // optional double perc_lat_95 = 5;
571 0 : if (this->perc_lat_95() != 0) {
572 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->perc_lat_95(), target);
573 : }
574 :
575 : // optional double perc_lat_99 = 6;
576 0 : if (this->perc_lat_99() != 0) {
577 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->perc_lat_99(), target);
578 : }
579 :
580 : // optional double perc_lat_99_point_9 = 7;
581 0 : if (this->perc_lat_99_point_9() != 0) {
582 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->perc_lat_99_point_9(), target);
583 : }
584 :
585 : // optional double server_system_time = 8;
586 0 : if (this->server_system_time() != 0) {
587 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->server_system_time(), target);
588 : }
589 :
590 : // optional double server_user_time = 9;
591 0 : if (this->server_user_time() != 0) {
592 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->server_user_time(), target);
593 : }
594 :
595 : // optional double client_system_time = 10;
596 0 : if (this->client_system_time() != 0) {
597 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->client_system_time(), target);
598 : }
599 :
600 : // optional double client_user_time = 11;
601 0 : if (this->client_user_time() != 0) {
602 0 : target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->client_user_time(), target);
603 : }
604 :
605 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.Metrics)
606 0 : return target;
607 : }
608 :
609 0 : int Metrics::ByteSize() const {
610 0 : int total_size = 0;
611 :
612 : // optional double qps = 1;
613 0 : if (this->qps() != 0) {
614 0 : total_size += 1 + 8;
615 : }
616 :
617 : // optional double qps_per_core = 2;
618 0 : if (this->qps_per_core() != 0) {
619 0 : total_size += 1 + 8;
620 : }
621 :
622 : // optional double perc_lat_50 = 3;
623 0 : if (this->perc_lat_50() != 0) {
624 0 : total_size += 1 + 8;
625 : }
626 :
627 : // optional double perc_lat_90 = 4;
628 0 : if (this->perc_lat_90() != 0) {
629 0 : total_size += 1 + 8;
630 : }
631 :
632 : // optional double perc_lat_95 = 5;
633 0 : if (this->perc_lat_95() != 0) {
634 0 : total_size += 1 + 8;
635 : }
636 :
637 : // optional double perc_lat_99 = 6;
638 0 : if (this->perc_lat_99() != 0) {
639 0 : total_size += 1 + 8;
640 : }
641 :
642 : // optional double perc_lat_99_point_9 = 7;
643 0 : if (this->perc_lat_99_point_9() != 0) {
644 0 : total_size += 1 + 8;
645 : }
646 :
647 : // optional double server_system_time = 8;
648 0 : if (this->server_system_time() != 0) {
649 0 : total_size += 1 + 8;
650 : }
651 :
652 : // optional double server_user_time = 9;
653 0 : if (this->server_user_time() != 0) {
654 0 : total_size += 1 + 8;
655 : }
656 :
657 : // optional double client_system_time = 10;
658 0 : if (this->client_system_time() != 0) {
659 0 : total_size += 1 + 8;
660 : }
661 :
662 : // optional double client_user_time = 11;
663 0 : if (this->client_user_time() != 0) {
664 0 : total_size += 1 + 8;
665 : }
666 :
667 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
668 0 : _cached_size_ = total_size;
669 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
670 0 : return total_size;
671 : }
672 :
673 0 : void Metrics::MergeFrom(const ::google::protobuf::Message& from) {
674 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
675 : const Metrics* source =
676 : ::google::protobuf::internal::DynamicCastToGenerated<const Metrics>(
677 0 : &from);
678 0 : if (source == NULL) {
679 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
680 : } else {
681 0 : MergeFrom(*source);
682 : }
683 0 : }
684 :
685 0 : void Metrics::MergeFrom(const Metrics& from) {
686 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
687 0 : if (from.qps() != 0) {
688 0 : set_qps(from.qps());
689 : }
690 0 : if (from.qps_per_core() != 0) {
691 0 : set_qps_per_core(from.qps_per_core());
692 : }
693 0 : if (from.perc_lat_50() != 0) {
694 0 : set_perc_lat_50(from.perc_lat_50());
695 : }
696 0 : if (from.perc_lat_90() != 0) {
697 0 : set_perc_lat_90(from.perc_lat_90());
698 : }
699 0 : if (from.perc_lat_95() != 0) {
700 0 : set_perc_lat_95(from.perc_lat_95());
701 : }
702 0 : if (from.perc_lat_99() != 0) {
703 0 : set_perc_lat_99(from.perc_lat_99());
704 : }
705 0 : if (from.perc_lat_99_point_9() != 0) {
706 0 : set_perc_lat_99_point_9(from.perc_lat_99_point_9());
707 : }
708 0 : if (from.server_system_time() != 0) {
709 0 : set_server_system_time(from.server_system_time());
710 : }
711 0 : if (from.server_user_time() != 0) {
712 0 : set_server_user_time(from.server_user_time());
713 : }
714 0 : if (from.client_system_time() != 0) {
715 0 : set_client_system_time(from.client_system_time());
716 : }
717 0 : if (from.client_user_time() != 0) {
718 0 : set_client_user_time(from.client_user_time());
719 : }
720 0 : }
721 :
722 0 : void Metrics::CopyFrom(const ::google::protobuf::Message& from) {
723 0 : if (&from == this) return;
724 0 : Clear();
725 0 : MergeFrom(from);
726 : }
727 :
728 0 : void Metrics::CopyFrom(const Metrics& from) {
729 0 : if (&from == this) return;
730 0 : Clear();
731 0 : MergeFrom(from);
732 : }
733 :
734 0 : bool Metrics::IsInitialized() const {
735 :
736 0 : return true;
737 : }
738 :
739 0 : void Metrics::Swap(Metrics* other) {
740 0 : if (other == this) return;
741 0 : InternalSwap(other);
742 : }
743 0 : void Metrics::InternalSwap(Metrics* other) {
744 0 : std::swap(qps_, other->qps_);
745 0 : std::swap(qps_per_core_, other->qps_per_core_);
746 0 : std::swap(perc_lat_50_, other->perc_lat_50_);
747 0 : std::swap(perc_lat_90_, other->perc_lat_90_);
748 0 : std::swap(perc_lat_95_, other->perc_lat_95_);
749 0 : std::swap(perc_lat_99_, other->perc_lat_99_);
750 0 : std::swap(perc_lat_99_point_9_, other->perc_lat_99_point_9_);
751 0 : std::swap(server_system_time_, other->server_system_time_);
752 0 : std::swap(server_user_time_, other->server_user_time_);
753 0 : std::swap(client_system_time_, other->client_system_time_);
754 0 : std::swap(client_user_time_, other->client_user_time_);
755 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
756 0 : std::swap(_cached_size_, other->_cached_size_);
757 0 : }
758 :
759 0 : ::google::protobuf::Metadata Metrics::GetMetadata() const {
760 0 : protobuf_AssignDescriptorsOnce();
761 : ::google::protobuf::Metadata metadata;
762 0 : metadata.descriptor = Metrics_descriptor_;
763 0 : metadata.reflection = Metrics_reflection_;
764 0 : return metadata;
765 : }
766 :
767 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
768 : // Metrics
769 :
770 : // optional double qps = 1;
771 : void Metrics::clear_qps() {
772 : qps_ = 0;
773 : }
774 : double Metrics::qps() const {
775 : // @@protoc_insertion_point(field_get:grpc.testing.Metrics.qps)
776 : return qps_;
777 : }
778 : void Metrics::set_qps(double value) {
779 :
780 : qps_ = value;
781 : // @@protoc_insertion_point(field_set:grpc.testing.Metrics.qps)
782 : }
783 :
784 : // optional double qps_per_core = 2;
785 : void Metrics::clear_qps_per_core() {
786 : qps_per_core_ = 0;
787 : }
788 : double Metrics::qps_per_core() const {
789 : // @@protoc_insertion_point(field_get:grpc.testing.Metrics.qps_per_core)
790 : return qps_per_core_;
791 : }
792 : void Metrics::set_qps_per_core(double value) {
793 :
794 : qps_per_core_ = value;
795 : // @@protoc_insertion_point(field_set:grpc.testing.Metrics.qps_per_core)
796 : }
797 :
798 : // optional double perc_lat_50 = 3;
799 : void Metrics::clear_perc_lat_50() {
800 : perc_lat_50_ = 0;
801 : }
802 : double Metrics::perc_lat_50() const {
803 : // @@protoc_insertion_point(field_get:grpc.testing.Metrics.perc_lat_50)
804 : return perc_lat_50_;
805 : }
806 : void Metrics::set_perc_lat_50(double value) {
807 :
808 : perc_lat_50_ = value;
809 : // @@protoc_insertion_point(field_set:grpc.testing.Metrics.perc_lat_50)
810 : }
811 :
812 : // optional double perc_lat_90 = 4;
813 : void Metrics::clear_perc_lat_90() {
814 : perc_lat_90_ = 0;
815 : }
816 : double Metrics::perc_lat_90() const {
817 : // @@protoc_insertion_point(field_get:grpc.testing.Metrics.perc_lat_90)
818 : return perc_lat_90_;
819 : }
820 : void Metrics::set_perc_lat_90(double value) {
821 :
822 : perc_lat_90_ = value;
823 : // @@protoc_insertion_point(field_set:grpc.testing.Metrics.perc_lat_90)
824 : }
825 :
826 : // optional double perc_lat_95 = 5;
827 : void Metrics::clear_perc_lat_95() {
828 : perc_lat_95_ = 0;
829 : }
830 : double Metrics::perc_lat_95() const {
831 : // @@protoc_insertion_point(field_get:grpc.testing.Metrics.perc_lat_95)
832 : return perc_lat_95_;
833 : }
834 : void Metrics::set_perc_lat_95(double value) {
835 :
836 : perc_lat_95_ = value;
837 : // @@protoc_insertion_point(field_set:grpc.testing.Metrics.perc_lat_95)
838 : }
839 :
840 : // optional double perc_lat_99 = 6;
841 : void Metrics::clear_perc_lat_99() {
842 : perc_lat_99_ = 0;
843 : }
844 : double Metrics::perc_lat_99() const {
845 : // @@protoc_insertion_point(field_get:grpc.testing.Metrics.perc_lat_99)
846 : return perc_lat_99_;
847 : }
848 : void Metrics::set_perc_lat_99(double value) {
849 :
850 : perc_lat_99_ = value;
851 : // @@protoc_insertion_point(field_set:grpc.testing.Metrics.perc_lat_99)
852 : }
853 :
854 : // optional double perc_lat_99_point_9 = 7;
855 : void Metrics::clear_perc_lat_99_point_9() {
856 : perc_lat_99_point_9_ = 0;
857 : }
858 : double Metrics::perc_lat_99_point_9() const {
859 : // @@protoc_insertion_point(field_get:grpc.testing.Metrics.perc_lat_99_point_9)
860 : return perc_lat_99_point_9_;
861 : }
862 : void Metrics::set_perc_lat_99_point_9(double value) {
863 :
864 : perc_lat_99_point_9_ = value;
865 : // @@protoc_insertion_point(field_set:grpc.testing.Metrics.perc_lat_99_point_9)
866 : }
867 :
868 : // optional double server_system_time = 8;
869 : void Metrics::clear_server_system_time() {
870 : server_system_time_ = 0;
871 : }
872 : double Metrics::server_system_time() const {
873 : // @@protoc_insertion_point(field_get:grpc.testing.Metrics.server_system_time)
874 : return server_system_time_;
875 : }
876 : void Metrics::set_server_system_time(double value) {
877 :
878 : server_system_time_ = value;
879 : // @@protoc_insertion_point(field_set:grpc.testing.Metrics.server_system_time)
880 : }
881 :
882 : // optional double server_user_time = 9;
883 : void Metrics::clear_server_user_time() {
884 : server_user_time_ = 0;
885 : }
886 : double Metrics::server_user_time() const {
887 : // @@protoc_insertion_point(field_get:grpc.testing.Metrics.server_user_time)
888 : return server_user_time_;
889 : }
890 : void Metrics::set_server_user_time(double value) {
891 :
892 : server_user_time_ = value;
893 : // @@protoc_insertion_point(field_set:grpc.testing.Metrics.server_user_time)
894 : }
895 :
896 : // optional double client_system_time = 10;
897 : void Metrics::clear_client_system_time() {
898 : client_system_time_ = 0;
899 : }
900 : double Metrics::client_system_time() const {
901 : // @@protoc_insertion_point(field_get:grpc.testing.Metrics.client_system_time)
902 : return client_system_time_;
903 : }
904 : void Metrics::set_client_system_time(double value) {
905 :
906 : client_system_time_ = value;
907 : // @@protoc_insertion_point(field_set:grpc.testing.Metrics.client_system_time)
908 : }
909 :
910 : // optional double client_user_time = 11;
911 : void Metrics::clear_client_user_time() {
912 : client_user_time_ = 0;
913 : }
914 : double Metrics::client_user_time() const {
915 : // @@protoc_insertion_point(field_get:grpc.testing.Metrics.client_user_time)
916 : return client_user_time_;
917 : }
918 : void Metrics::set_client_user_time(double value) {
919 :
920 : client_user_time_ = value;
921 : // @@protoc_insertion_point(field_set:grpc.testing.Metrics.client_user_time)
922 : }
923 :
924 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
925 :
926 : // ===================================================================
927 :
928 : #ifndef _MSC_VER
929 : const int SingleUserRecordRequest::kHashedIdFieldNumber;
930 : const int SingleUserRecordRequest::kTestNameFieldNumber;
931 : const int SingleUserRecordRequest::kSysInfoFieldNumber;
932 : const int SingleUserRecordRequest::kTagFieldNumber;
933 : const int SingleUserRecordRequest::kMetricsFieldNumber;
934 : const int SingleUserRecordRequest::kClientConfigFieldNumber;
935 : const int SingleUserRecordRequest::kServerConfigFieldNumber;
936 : #endif // !_MSC_VER
937 :
938 6 : SingleUserRecordRequest::SingleUserRecordRequest()
939 6 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
940 6 : SharedCtor();
941 : // @@protoc_insertion_point(constructor:grpc.testing.SingleUserRecordRequest)
942 6 : }
943 :
944 6 : void SingleUserRecordRequest::InitAsDefaultInstance() {
945 6 : _is_default_instance_ = true;
946 6 : metrics_ = const_cast< ::grpc::testing::Metrics*>(&::grpc::testing::Metrics::default_instance());
947 6 : client_config_ = const_cast< ::grpc::testing::ClientConfig*>(&::grpc::testing::ClientConfig::default_instance());
948 6 : server_config_ = const_cast< ::grpc::testing::ServerConfig*>(&::grpc::testing::ServerConfig::default_instance());
949 6 : }
950 :
951 0 : SingleUserRecordRequest::SingleUserRecordRequest(const SingleUserRecordRequest& from)
952 : : ::google::protobuf::Message(),
953 0 : _internal_metadata_(NULL) {
954 0 : SharedCtor();
955 0 : MergeFrom(from);
956 : // @@protoc_insertion_point(copy_constructor:grpc.testing.SingleUserRecordRequest)
957 0 : }
958 :
959 6 : void SingleUserRecordRequest::SharedCtor() {
960 6 : _is_default_instance_ = false;
961 6 : ::google::protobuf::internal::GetEmptyString();
962 6 : _cached_size_ = 0;
963 6 : hashed_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
964 6 : test_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
965 6 : sys_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
966 6 : tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
967 6 : metrics_ = NULL;
968 6 : client_config_ = NULL;
969 6 : server_config_ = NULL;
970 6 : }
971 :
972 0 : SingleUserRecordRequest::~SingleUserRecordRequest() {
973 : // @@protoc_insertion_point(destructor:grpc.testing.SingleUserRecordRequest)
974 0 : SharedDtor();
975 0 : }
976 :
977 0 : void SingleUserRecordRequest::SharedDtor() {
978 0 : hashed_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
979 0 : test_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
980 0 : sys_info_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
981 0 : tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
982 0 : if (this != default_instance_) {
983 0 : delete metrics_;
984 0 : delete client_config_;
985 0 : delete server_config_;
986 : }
987 0 : }
988 :
989 0 : void SingleUserRecordRequest::SetCachedSize(int size) const {
990 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
991 0 : _cached_size_ = size;
992 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
993 0 : }
994 0 : const ::google::protobuf::Descriptor* SingleUserRecordRequest::descriptor() {
995 0 : protobuf_AssignDescriptorsOnce();
996 0 : return SingleUserRecordRequest_descriptor_;
997 : }
998 :
999 0 : const SingleUserRecordRequest& SingleUserRecordRequest::default_instance() {
1000 0 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fperf_5fdb_2eproto();
1001 0 : return *default_instance_;
1002 : }
1003 :
1004 : SingleUserRecordRequest* SingleUserRecordRequest::default_instance_ = NULL;
1005 :
1006 0 : SingleUserRecordRequest* SingleUserRecordRequest::New(::google::protobuf::Arena* arena) const {
1007 0 : SingleUserRecordRequest* n = new SingleUserRecordRequest;
1008 0 : if (arena != NULL) {
1009 0 : arena->Own(n);
1010 : }
1011 0 : return n;
1012 : }
1013 :
1014 0 : void SingleUserRecordRequest::Clear() {
1015 0 : hashed_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1016 0 : test_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1017 0 : sys_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1018 0 : tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1019 0 : if (GetArenaNoVirtual() == NULL && metrics_ != NULL) delete metrics_;
1020 0 : metrics_ = NULL;
1021 0 : if (GetArenaNoVirtual() == NULL && client_config_ != NULL) delete client_config_;
1022 0 : client_config_ = NULL;
1023 0 : if (GetArenaNoVirtual() == NULL && server_config_ != NULL) delete server_config_;
1024 0 : server_config_ = NULL;
1025 0 : }
1026 :
1027 0 : bool SingleUserRecordRequest::MergePartialFromCodedStream(
1028 : ::google::protobuf::io::CodedInputStream* input) {
1029 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1030 : ::google::protobuf::uint32 tag;
1031 : // @@protoc_insertion_point(parse_start:grpc.testing.SingleUserRecordRequest)
1032 : for (;;) {
1033 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1034 0 : tag = p.first;
1035 0 : if (!p.second) goto handle_unusual;
1036 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1037 : // optional string hashed_id = 1;
1038 : case 1: {
1039 0 : if (tag == 10) {
1040 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1041 : input, this->mutable_hashed_id()));
1042 0 : DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1043 : this->hashed_id().data(), this->hashed_id().length(),
1044 : ::google::protobuf::internal::WireFormatLite::PARSE,
1045 : "grpc.testing.SingleUserRecordRequest.hashed_id"));
1046 : } else {
1047 0 : goto handle_unusual;
1048 : }
1049 0 : if (input->ExpectTag(18)) goto parse_test_name;
1050 0 : break;
1051 : }
1052 :
1053 : // optional string test_name = 2;
1054 : case 2: {
1055 0 : if (tag == 18) {
1056 : parse_test_name:
1057 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1058 : input, this->mutable_test_name()));
1059 0 : DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1060 : this->test_name().data(), this->test_name().length(),
1061 : ::google::protobuf::internal::WireFormatLite::PARSE,
1062 : "grpc.testing.SingleUserRecordRequest.test_name"));
1063 : } else {
1064 0 : goto handle_unusual;
1065 : }
1066 0 : if (input->ExpectTag(26)) goto parse_sys_info;
1067 0 : break;
1068 : }
1069 :
1070 : // optional string sys_info = 3;
1071 : case 3: {
1072 0 : if (tag == 26) {
1073 : parse_sys_info:
1074 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1075 : input, this->mutable_sys_info()));
1076 0 : DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1077 : this->sys_info().data(), this->sys_info().length(),
1078 : ::google::protobuf::internal::WireFormatLite::PARSE,
1079 : "grpc.testing.SingleUserRecordRequest.sys_info"));
1080 : } else {
1081 0 : goto handle_unusual;
1082 : }
1083 0 : if (input->ExpectTag(34)) goto parse_tag;
1084 0 : break;
1085 : }
1086 :
1087 : // optional string tag = 4;
1088 : case 4: {
1089 0 : if (tag == 34) {
1090 : parse_tag:
1091 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1092 : input, this->mutable_tag()));
1093 0 : DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1094 : this->tag().data(), this->tag().length(),
1095 : ::google::protobuf::internal::WireFormatLite::PARSE,
1096 : "grpc.testing.SingleUserRecordRequest.tag"));
1097 : } else {
1098 0 : goto handle_unusual;
1099 : }
1100 0 : if (input->ExpectTag(42)) goto parse_metrics;
1101 0 : break;
1102 : }
1103 :
1104 : // optional .grpc.testing.Metrics metrics = 5;
1105 : case 5: {
1106 0 : if (tag == 42) {
1107 : parse_metrics:
1108 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1109 : input, mutable_metrics()));
1110 : } else {
1111 0 : goto handle_unusual;
1112 : }
1113 0 : if (input->ExpectTag(50)) goto parse_client_config;
1114 0 : break;
1115 : }
1116 :
1117 : // optional .grpc.testing.ClientConfig client_config = 6;
1118 : case 6: {
1119 0 : if (tag == 50) {
1120 : parse_client_config:
1121 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1122 : input, mutable_client_config()));
1123 : } else {
1124 0 : goto handle_unusual;
1125 : }
1126 0 : if (input->ExpectTag(58)) goto parse_server_config;
1127 0 : break;
1128 : }
1129 :
1130 : // optional .grpc.testing.ServerConfig server_config = 7;
1131 : case 7: {
1132 0 : if (tag == 58) {
1133 : parse_server_config:
1134 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1135 : input, mutable_server_config()));
1136 : } else {
1137 0 : goto handle_unusual;
1138 : }
1139 0 : if (input->ExpectAtEnd()) goto success;
1140 0 : break;
1141 : }
1142 :
1143 : default: {
1144 : handle_unusual:
1145 0 : if (tag == 0 ||
1146 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1147 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1148 0 : goto success;
1149 : }
1150 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
1151 0 : break;
1152 : }
1153 : }
1154 0 : }
1155 : success:
1156 : // @@protoc_insertion_point(parse_success:grpc.testing.SingleUserRecordRequest)
1157 0 : return true;
1158 : failure:
1159 : // @@protoc_insertion_point(parse_failure:grpc.testing.SingleUserRecordRequest)
1160 0 : return false;
1161 : #undef DO_
1162 : }
1163 :
1164 0 : void SingleUserRecordRequest::SerializeWithCachedSizes(
1165 : ::google::protobuf::io::CodedOutputStream* output) const {
1166 : // @@protoc_insertion_point(serialize_start:grpc.testing.SingleUserRecordRequest)
1167 : // optional string hashed_id = 1;
1168 0 : if (this->hashed_id().size() > 0) {
1169 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1170 0 : this->hashed_id().data(), this->hashed_id().length(),
1171 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1172 0 : "grpc.testing.SingleUserRecordRequest.hashed_id");
1173 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1174 0 : 1, this->hashed_id(), output);
1175 : }
1176 :
1177 : // optional string test_name = 2;
1178 0 : if (this->test_name().size() > 0) {
1179 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1180 0 : this->test_name().data(), this->test_name().length(),
1181 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1182 0 : "grpc.testing.SingleUserRecordRequest.test_name");
1183 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1184 0 : 2, this->test_name(), output);
1185 : }
1186 :
1187 : // optional string sys_info = 3;
1188 0 : if (this->sys_info().size() > 0) {
1189 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1190 0 : this->sys_info().data(), this->sys_info().length(),
1191 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1192 0 : "grpc.testing.SingleUserRecordRequest.sys_info");
1193 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1194 0 : 3, this->sys_info(), output);
1195 : }
1196 :
1197 : // optional string tag = 4;
1198 0 : if (this->tag().size() > 0) {
1199 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1200 0 : this->tag().data(), this->tag().length(),
1201 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1202 0 : "grpc.testing.SingleUserRecordRequest.tag");
1203 : ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1204 0 : 4, this->tag(), output);
1205 : }
1206 :
1207 : // optional .grpc.testing.Metrics metrics = 5;
1208 0 : if (this->has_metrics()) {
1209 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1210 0 : 5, *this->metrics_, output);
1211 : }
1212 :
1213 : // optional .grpc.testing.ClientConfig client_config = 6;
1214 0 : if (this->has_client_config()) {
1215 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1216 0 : 6, *this->client_config_, output);
1217 : }
1218 :
1219 : // optional .grpc.testing.ServerConfig server_config = 7;
1220 0 : if (this->has_server_config()) {
1221 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1222 0 : 7, *this->server_config_, output);
1223 : }
1224 :
1225 : // @@protoc_insertion_point(serialize_end:grpc.testing.SingleUserRecordRequest)
1226 0 : }
1227 :
1228 0 : ::google::protobuf::uint8* SingleUserRecordRequest::SerializeWithCachedSizesToArray(
1229 : ::google::protobuf::uint8* target) const {
1230 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.SingleUserRecordRequest)
1231 : // optional string hashed_id = 1;
1232 0 : if (this->hashed_id().size() > 0) {
1233 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1234 0 : this->hashed_id().data(), this->hashed_id().length(),
1235 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1236 0 : "grpc.testing.SingleUserRecordRequest.hashed_id");
1237 : target =
1238 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1239 0 : 1, this->hashed_id(), target);
1240 : }
1241 :
1242 : // optional string test_name = 2;
1243 0 : if (this->test_name().size() > 0) {
1244 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1245 0 : this->test_name().data(), this->test_name().length(),
1246 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1247 0 : "grpc.testing.SingleUserRecordRequest.test_name");
1248 : target =
1249 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1250 0 : 2, this->test_name(), target);
1251 : }
1252 :
1253 : // optional string sys_info = 3;
1254 0 : if (this->sys_info().size() > 0) {
1255 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1256 0 : this->sys_info().data(), this->sys_info().length(),
1257 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1258 0 : "grpc.testing.SingleUserRecordRequest.sys_info");
1259 : target =
1260 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1261 0 : 3, this->sys_info(), target);
1262 : }
1263 :
1264 : // optional string tag = 4;
1265 0 : if (this->tag().size() > 0) {
1266 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1267 0 : this->tag().data(), this->tag().length(),
1268 : ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1269 0 : "grpc.testing.SingleUserRecordRequest.tag");
1270 : target =
1271 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1272 0 : 4, this->tag(), target);
1273 : }
1274 :
1275 : // optional .grpc.testing.Metrics metrics = 5;
1276 0 : if (this->has_metrics()) {
1277 : target = ::google::protobuf::internal::WireFormatLite::
1278 : WriteMessageNoVirtualToArray(
1279 0 : 5, *this->metrics_, target);
1280 : }
1281 :
1282 : // optional .grpc.testing.ClientConfig client_config = 6;
1283 0 : if (this->has_client_config()) {
1284 : target = ::google::protobuf::internal::WireFormatLite::
1285 : WriteMessageNoVirtualToArray(
1286 0 : 6, *this->client_config_, target);
1287 : }
1288 :
1289 : // optional .grpc.testing.ServerConfig server_config = 7;
1290 0 : if (this->has_server_config()) {
1291 : target = ::google::protobuf::internal::WireFormatLite::
1292 : WriteMessageNoVirtualToArray(
1293 0 : 7, *this->server_config_, target);
1294 : }
1295 :
1296 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.SingleUserRecordRequest)
1297 0 : return target;
1298 : }
1299 :
1300 0 : int SingleUserRecordRequest::ByteSize() const {
1301 0 : int total_size = 0;
1302 :
1303 : // optional string hashed_id = 1;
1304 0 : if (this->hashed_id().size() > 0) {
1305 : total_size += 1 +
1306 : ::google::protobuf::internal::WireFormatLite::StringSize(
1307 0 : this->hashed_id());
1308 : }
1309 :
1310 : // optional string test_name = 2;
1311 0 : if (this->test_name().size() > 0) {
1312 : total_size += 1 +
1313 : ::google::protobuf::internal::WireFormatLite::StringSize(
1314 0 : this->test_name());
1315 : }
1316 :
1317 : // optional string sys_info = 3;
1318 0 : if (this->sys_info().size() > 0) {
1319 : total_size += 1 +
1320 : ::google::protobuf::internal::WireFormatLite::StringSize(
1321 0 : this->sys_info());
1322 : }
1323 :
1324 : // optional string tag = 4;
1325 0 : if (this->tag().size() > 0) {
1326 : total_size += 1 +
1327 : ::google::protobuf::internal::WireFormatLite::StringSize(
1328 0 : this->tag());
1329 : }
1330 :
1331 : // optional .grpc.testing.Metrics metrics = 5;
1332 0 : if (this->has_metrics()) {
1333 : total_size += 1 +
1334 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1335 0 : *this->metrics_);
1336 : }
1337 :
1338 : // optional .grpc.testing.ClientConfig client_config = 6;
1339 0 : if (this->has_client_config()) {
1340 : total_size += 1 +
1341 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1342 0 : *this->client_config_);
1343 : }
1344 :
1345 : // optional .grpc.testing.ServerConfig server_config = 7;
1346 0 : if (this->has_server_config()) {
1347 : total_size += 1 +
1348 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1349 0 : *this->server_config_);
1350 : }
1351 :
1352 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1353 0 : _cached_size_ = total_size;
1354 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1355 0 : return total_size;
1356 : }
1357 :
1358 0 : void SingleUserRecordRequest::MergeFrom(const ::google::protobuf::Message& from) {
1359 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1360 : const SingleUserRecordRequest* source =
1361 : ::google::protobuf::internal::DynamicCastToGenerated<const SingleUserRecordRequest>(
1362 0 : &from);
1363 0 : if (source == NULL) {
1364 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1365 : } else {
1366 0 : MergeFrom(*source);
1367 : }
1368 0 : }
1369 :
1370 0 : void SingleUserRecordRequest::MergeFrom(const SingleUserRecordRequest& from) {
1371 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1372 0 : if (from.hashed_id().size() > 0) {
1373 :
1374 0 : hashed_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hashed_id_);
1375 : }
1376 0 : if (from.test_name().size() > 0) {
1377 :
1378 0 : test_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.test_name_);
1379 : }
1380 0 : if (from.sys_info().size() > 0) {
1381 :
1382 0 : sys_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sys_info_);
1383 : }
1384 0 : if (from.tag().size() > 0) {
1385 :
1386 0 : tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_);
1387 : }
1388 0 : if (from.has_metrics()) {
1389 0 : mutable_metrics()->::grpc::testing::Metrics::MergeFrom(from.metrics());
1390 : }
1391 0 : if (from.has_client_config()) {
1392 0 : mutable_client_config()->::grpc::testing::ClientConfig::MergeFrom(from.client_config());
1393 : }
1394 0 : if (from.has_server_config()) {
1395 0 : mutable_server_config()->::grpc::testing::ServerConfig::MergeFrom(from.server_config());
1396 : }
1397 0 : }
1398 :
1399 0 : void SingleUserRecordRequest::CopyFrom(const ::google::protobuf::Message& from) {
1400 0 : if (&from == this) return;
1401 0 : Clear();
1402 0 : MergeFrom(from);
1403 : }
1404 :
1405 0 : void SingleUserRecordRequest::CopyFrom(const SingleUserRecordRequest& from) {
1406 0 : if (&from == this) return;
1407 0 : Clear();
1408 0 : MergeFrom(from);
1409 : }
1410 :
1411 0 : bool SingleUserRecordRequest::IsInitialized() const {
1412 :
1413 0 : return true;
1414 : }
1415 :
1416 0 : void SingleUserRecordRequest::Swap(SingleUserRecordRequest* other) {
1417 0 : if (other == this) return;
1418 0 : InternalSwap(other);
1419 : }
1420 0 : void SingleUserRecordRequest::InternalSwap(SingleUserRecordRequest* other) {
1421 0 : hashed_id_.Swap(&other->hashed_id_);
1422 0 : test_name_.Swap(&other->test_name_);
1423 0 : sys_info_.Swap(&other->sys_info_);
1424 0 : tag_.Swap(&other->tag_);
1425 0 : std::swap(metrics_, other->metrics_);
1426 0 : std::swap(client_config_, other->client_config_);
1427 0 : std::swap(server_config_, other->server_config_);
1428 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
1429 0 : std::swap(_cached_size_, other->_cached_size_);
1430 0 : }
1431 :
1432 0 : ::google::protobuf::Metadata SingleUserRecordRequest::GetMetadata() const {
1433 0 : protobuf_AssignDescriptorsOnce();
1434 : ::google::protobuf::Metadata metadata;
1435 0 : metadata.descriptor = SingleUserRecordRequest_descriptor_;
1436 0 : metadata.reflection = SingleUserRecordRequest_reflection_;
1437 0 : return metadata;
1438 : }
1439 :
1440 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
1441 : // SingleUserRecordRequest
1442 :
1443 : // optional string hashed_id = 1;
1444 : void SingleUserRecordRequest::clear_hashed_id() {
1445 : hashed_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1446 : }
1447 : const ::std::string& SingleUserRecordRequest::hashed_id() const {
1448 : // @@protoc_insertion_point(field_get:grpc.testing.SingleUserRecordRequest.hashed_id)
1449 : return hashed_id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1450 : }
1451 : void SingleUserRecordRequest::set_hashed_id(const ::std::string& value) {
1452 :
1453 : hashed_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1454 : // @@protoc_insertion_point(field_set:grpc.testing.SingleUserRecordRequest.hashed_id)
1455 : }
1456 : void SingleUserRecordRequest::set_hashed_id(const char* value) {
1457 :
1458 : hashed_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1459 : // @@protoc_insertion_point(field_set_char:grpc.testing.SingleUserRecordRequest.hashed_id)
1460 : }
1461 : void SingleUserRecordRequest::set_hashed_id(const char* value, size_t size) {
1462 :
1463 : hashed_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1464 : ::std::string(reinterpret_cast<const char*>(value), size));
1465 : // @@protoc_insertion_point(field_set_pointer:grpc.testing.SingleUserRecordRequest.hashed_id)
1466 : }
1467 : ::std::string* SingleUserRecordRequest::mutable_hashed_id() {
1468 :
1469 : // @@protoc_insertion_point(field_mutable:grpc.testing.SingleUserRecordRequest.hashed_id)
1470 : return hashed_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1471 : }
1472 : ::std::string* SingleUserRecordRequest::release_hashed_id() {
1473 :
1474 : return hashed_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1475 : }
1476 : void SingleUserRecordRequest::set_allocated_hashed_id(::std::string* hashed_id) {
1477 : if (hashed_id != NULL) {
1478 :
1479 : } else {
1480 :
1481 : }
1482 : hashed_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hashed_id);
1483 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SingleUserRecordRequest.hashed_id)
1484 : }
1485 :
1486 : // optional string test_name = 2;
1487 : void SingleUserRecordRequest::clear_test_name() {
1488 : test_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1489 : }
1490 : const ::std::string& SingleUserRecordRequest::test_name() const {
1491 : // @@protoc_insertion_point(field_get:grpc.testing.SingleUserRecordRequest.test_name)
1492 : return test_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1493 : }
1494 : void SingleUserRecordRequest::set_test_name(const ::std::string& value) {
1495 :
1496 : test_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1497 : // @@protoc_insertion_point(field_set:grpc.testing.SingleUserRecordRequest.test_name)
1498 : }
1499 : void SingleUserRecordRequest::set_test_name(const char* value) {
1500 :
1501 : test_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1502 : // @@protoc_insertion_point(field_set_char:grpc.testing.SingleUserRecordRequest.test_name)
1503 : }
1504 : void SingleUserRecordRequest::set_test_name(const char* value, size_t size) {
1505 :
1506 : test_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1507 : ::std::string(reinterpret_cast<const char*>(value), size));
1508 : // @@protoc_insertion_point(field_set_pointer:grpc.testing.SingleUserRecordRequest.test_name)
1509 : }
1510 : ::std::string* SingleUserRecordRequest::mutable_test_name() {
1511 :
1512 : // @@protoc_insertion_point(field_mutable:grpc.testing.SingleUserRecordRequest.test_name)
1513 : return test_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1514 : }
1515 : ::std::string* SingleUserRecordRequest::release_test_name() {
1516 :
1517 : return test_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1518 : }
1519 : void SingleUserRecordRequest::set_allocated_test_name(::std::string* test_name) {
1520 : if (test_name != NULL) {
1521 :
1522 : } else {
1523 :
1524 : }
1525 : test_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), test_name);
1526 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SingleUserRecordRequest.test_name)
1527 : }
1528 :
1529 : // optional string sys_info = 3;
1530 : void SingleUserRecordRequest::clear_sys_info() {
1531 : sys_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1532 : }
1533 : const ::std::string& SingleUserRecordRequest::sys_info() const {
1534 : // @@protoc_insertion_point(field_get:grpc.testing.SingleUserRecordRequest.sys_info)
1535 : return sys_info_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1536 : }
1537 : void SingleUserRecordRequest::set_sys_info(const ::std::string& value) {
1538 :
1539 : sys_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1540 : // @@protoc_insertion_point(field_set:grpc.testing.SingleUserRecordRequest.sys_info)
1541 : }
1542 : void SingleUserRecordRequest::set_sys_info(const char* value) {
1543 :
1544 : sys_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1545 : // @@protoc_insertion_point(field_set_char:grpc.testing.SingleUserRecordRequest.sys_info)
1546 : }
1547 : void SingleUserRecordRequest::set_sys_info(const char* value, size_t size) {
1548 :
1549 : sys_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1550 : ::std::string(reinterpret_cast<const char*>(value), size));
1551 : // @@protoc_insertion_point(field_set_pointer:grpc.testing.SingleUserRecordRequest.sys_info)
1552 : }
1553 : ::std::string* SingleUserRecordRequest::mutable_sys_info() {
1554 :
1555 : // @@protoc_insertion_point(field_mutable:grpc.testing.SingleUserRecordRequest.sys_info)
1556 : return sys_info_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1557 : }
1558 : ::std::string* SingleUserRecordRequest::release_sys_info() {
1559 :
1560 : return sys_info_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1561 : }
1562 : void SingleUserRecordRequest::set_allocated_sys_info(::std::string* sys_info) {
1563 : if (sys_info != NULL) {
1564 :
1565 : } else {
1566 :
1567 : }
1568 : sys_info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sys_info);
1569 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SingleUserRecordRequest.sys_info)
1570 : }
1571 :
1572 : // optional string tag = 4;
1573 : void SingleUserRecordRequest::clear_tag() {
1574 : tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1575 : }
1576 : const ::std::string& SingleUserRecordRequest::tag() const {
1577 : // @@protoc_insertion_point(field_get:grpc.testing.SingleUserRecordRequest.tag)
1578 : return tag_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1579 : }
1580 : void SingleUserRecordRequest::set_tag(const ::std::string& value) {
1581 :
1582 : tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1583 : // @@protoc_insertion_point(field_set:grpc.testing.SingleUserRecordRequest.tag)
1584 : }
1585 : void SingleUserRecordRequest::set_tag(const char* value) {
1586 :
1587 : tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1588 : // @@protoc_insertion_point(field_set_char:grpc.testing.SingleUserRecordRequest.tag)
1589 : }
1590 : void SingleUserRecordRequest::set_tag(const char* value, size_t size) {
1591 :
1592 : tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1593 : ::std::string(reinterpret_cast<const char*>(value), size));
1594 : // @@protoc_insertion_point(field_set_pointer:grpc.testing.SingleUserRecordRequest.tag)
1595 : }
1596 : ::std::string* SingleUserRecordRequest::mutable_tag() {
1597 :
1598 : // @@protoc_insertion_point(field_mutable:grpc.testing.SingleUserRecordRequest.tag)
1599 : return tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1600 : }
1601 : ::std::string* SingleUserRecordRequest::release_tag() {
1602 :
1603 : return tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1604 : }
1605 : void SingleUserRecordRequest::set_allocated_tag(::std::string* tag) {
1606 : if (tag != NULL) {
1607 :
1608 : } else {
1609 :
1610 : }
1611 : tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag);
1612 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SingleUserRecordRequest.tag)
1613 : }
1614 :
1615 : // optional .grpc.testing.Metrics metrics = 5;
1616 : bool SingleUserRecordRequest::has_metrics() const {
1617 : return !_is_default_instance_ && metrics_ != NULL;
1618 : }
1619 : void SingleUserRecordRequest::clear_metrics() {
1620 : if (GetArenaNoVirtual() == NULL && metrics_ != NULL) delete metrics_;
1621 : metrics_ = NULL;
1622 : }
1623 : const ::grpc::testing::Metrics& SingleUserRecordRequest::metrics() const {
1624 : // @@protoc_insertion_point(field_get:grpc.testing.SingleUserRecordRequest.metrics)
1625 : return metrics_ != NULL ? *metrics_ : *default_instance_->metrics_;
1626 : }
1627 : ::grpc::testing::Metrics* SingleUserRecordRequest::mutable_metrics() {
1628 :
1629 : if (metrics_ == NULL) {
1630 : metrics_ = new ::grpc::testing::Metrics;
1631 : }
1632 : // @@protoc_insertion_point(field_mutable:grpc.testing.SingleUserRecordRequest.metrics)
1633 : return metrics_;
1634 : }
1635 : ::grpc::testing::Metrics* SingleUserRecordRequest::release_metrics() {
1636 :
1637 : ::grpc::testing::Metrics* temp = metrics_;
1638 : metrics_ = NULL;
1639 : return temp;
1640 : }
1641 : void SingleUserRecordRequest::set_allocated_metrics(::grpc::testing::Metrics* metrics) {
1642 : delete metrics_;
1643 : metrics_ = metrics;
1644 : if (metrics) {
1645 :
1646 : } else {
1647 :
1648 : }
1649 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SingleUserRecordRequest.metrics)
1650 : }
1651 :
1652 : // optional .grpc.testing.ClientConfig client_config = 6;
1653 : bool SingleUserRecordRequest::has_client_config() const {
1654 : return !_is_default_instance_ && client_config_ != NULL;
1655 : }
1656 : void SingleUserRecordRequest::clear_client_config() {
1657 : if (GetArenaNoVirtual() == NULL && client_config_ != NULL) delete client_config_;
1658 : client_config_ = NULL;
1659 : }
1660 : const ::grpc::testing::ClientConfig& SingleUserRecordRequest::client_config() const {
1661 : // @@protoc_insertion_point(field_get:grpc.testing.SingleUserRecordRequest.client_config)
1662 : return client_config_ != NULL ? *client_config_ : *default_instance_->client_config_;
1663 : }
1664 : ::grpc::testing::ClientConfig* SingleUserRecordRequest::mutable_client_config() {
1665 :
1666 : if (client_config_ == NULL) {
1667 : client_config_ = new ::grpc::testing::ClientConfig;
1668 : }
1669 : // @@protoc_insertion_point(field_mutable:grpc.testing.SingleUserRecordRequest.client_config)
1670 : return client_config_;
1671 : }
1672 : ::grpc::testing::ClientConfig* SingleUserRecordRequest::release_client_config() {
1673 :
1674 : ::grpc::testing::ClientConfig* temp = client_config_;
1675 : client_config_ = NULL;
1676 : return temp;
1677 : }
1678 : void SingleUserRecordRequest::set_allocated_client_config(::grpc::testing::ClientConfig* client_config) {
1679 : delete client_config_;
1680 : client_config_ = client_config;
1681 : if (client_config) {
1682 :
1683 : } else {
1684 :
1685 : }
1686 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SingleUserRecordRequest.client_config)
1687 : }
1688 :
1689 : // optional .grpc.testing.ServerConfig server_config = 7;
1690 : bool SingleUserRecordRequest::has_server_config() const {
1691 : return !_is_default_instance_ && server_config_ != NULL;
1692 : }
1693 : void SingleUserRecordRequest::clear_server_config() {
1694 : if (GetArenaNoVirtual() == NULL && server_config_ != NULL) delete server_config_;
1695 : server_config_ = NULL;
1696 : }
1697 : const ::grpc::testing::ServerConfig& SingleUserRecordRequest::server_config() const {
1698 : // @@protoc_insertion_point(field_get:grpc.testing.SingleUserRecordRequest.server_config)
1699 : return server_config_ != NULL ? *server_config_ : *default_instance_->server_config_;
1700 : }
1701 : ::grpc::testing::ServerConfig* SingleUserRecordRequest::mutable_server_config() {
1702 :
1703 : if (server_config_ == NULL) {
1704 : server_config_ = new ::grpc::testing::ServerConfig;
1705 : }
1706 : // @@protoc_insertion_point(field_mutable:grpc.testing.SingleUserRecordRequest.server_config)
1707 : return server_config_;
1708 : }
1709 : ::grpc::testing::ServerConfig* SingleUserRecordRequest::release_server_config() {
1710 :
1711 : ::grpc::testing::ServerConfig* temp = server_config_;
1712 : server_config_ = NULL;
1713 : return temp;
1714 : }
1715 : void SingleUserRecordRequest::set_allocated_server_config(::grpc::testing::ServerConfig* server_config) {
1716 : delete server_config_;
1717 : server_config_ = server_config;
1718 : if (server_config) {
1719 :
1720 : } else {
1721 :
1722 : }
1723 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SingleUserRecordRequest.server_config)
1724 : }
1725 :
1726 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1727 :
1728 : // ===================================================================
1729 :
1730 : #ifndef _MSC_VER
1731 : #endif // !_MSC_VER
1732 :
1733 6 : SingleUserRecordReply::SingleUserRecordReply()
1734 6 : : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1735 6 : SharedCtor();
1736 : // @@protoc_insertion_point(constructor:grpc.testing.SingleUserRecordReply)
1737 6 : }
1738 :
1739 6 : void SingleUserRecordReply::InitAsDefaultInstance() {
1740 6 : _is_default_instance_ = true;
1741 6 : }
1742 :
1743 0 : SingleUserRecordReply::SingleUserRecordReply(const SingleUserRecordReply& from)
1744 : : ::google::protobuf::Message(),
1745 0 : _internal_metadata_(NULL) {
1746 0 : SharedCtor();
1747 0 : MergeFrom(from);
1748 : // @@protoc_insertion_point(copy_constructor:grpc.testing.SingleUserRecordReply)
1749 0 : }
1750 :
1751 6 : void SingleUserRecordReply::SharedCtor() {
1752 6 : _is_default_instance_ = false;
1753 6 : _cached_size_ = 0;
1754 6 : }
1755 :
1756 0 : SingleUserRecordReply::~SingleUserRecordReply() {
1757 : // @@protoc_insertion_point(destructor:grpc.testing.SingleUserRecordReply)
1758 0 : SharedDtor();
1759 0 : }
1760 :
1761 0 : void SingleUserRecordReply::SharedDtor() {
1762 0 : if (this != default_instance_) {
1763 : }
1764 0 : }
1765 :
1766 0 : void SingleUserRecordReply::SetCachedSize(int size) const {
1767 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1768 0 : _cached_size_ = size;
1769 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1770 0 : }
1771 0 : const ::google::protobuf::Descriptor* SingleUserRecordReply::descriptor() {
1772 0 : protobuf_AssignDescriptorsOnce();
1773 0 : return SingleUserRecordReply_descriptor_;
1774 : }
1775 :
1776 0 : const SingleUserRecordReply& SingleUserRecordReply::default_instance() {
1777 0 : if (default_instance_ == NULL) protobuf_AddDesc_test_2fcpp_2fqps_2fperf_5fdb_2eproto();
1778 0 : return *default_instance_;
1779 : }
1780 :
1781 : SingleUserRecordReply* SingleUserRecordReply::default_instance_ = NULL;
1782 :
1783 0 : SingleUserRecordReply* SingleUserRecordReply::New(::google::protobuf::Arena* arena) const {
1784 0 : SingleUserRecordReply* n = new SingleUserRecordReply;
1785 0 : if (arena != NULL) {
1786 0 : arena->Own(n);
1787 : }
1788 0 : return n;
1789 : }
1790 :
1791 0 : void SingleUserRecordReply::Clear() {
1792 0 : }
1793 :
1794 0 : bool SingleUserRecordReply::MergePartialFromCodedStream(
1795 : ::google::protobuf::io::CodedInputStream* input) {
1796 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1797 : ::google::protobuf::uint32 tag;
1798 : // @@protoc_insertion_point(parse_start:grpc.testing.SingleUserRecordReply)
1799 : for (;;) {
1800 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1801 0 : tag = p.first;
1802 0 : if (!p.second) goto handle_unusual;
1803 : handle_unusual:
1804 0 : if (tag == 0 ||
1805 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1806 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1807 0 : goto success;
1808 : }
1809 0 : DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
1810 0 : }
1811 : success:
1812 : // @@protoc_insertion_point(parse_success:grpc.testing.SingleUserRecordReply)
1813 0 : return true;
1814 : failure:
1815 : // @@protoc_insertion_point(parse_failure:grpc.testing.SingleUserRecordReply)
1816 0 : return false;
1817 : #undef DO_
1818 : }
1819 :
1820 0 : void SingleUserRecordReply::SerializeWithCachedSizes(
1821 : ::google::protobuf::io::CodedOutputStream* output) const {
1822 : // @@protoc_insertion_point(serialize_start:grpc.testing.SingleUserRecordReply)
1823 : // @@protoc_insertion_point(serialize_end:grpc.testing.SingleUserRecordReply)
1824 0 : }
1825 :
1826 0 : ::google::protobuf::uint8* SingleUserRecordReply::SerializeWithCachedSizesToArray(
1827 : ::google::protobuf::uint8* target) const {
1828 : // @@protoc_insertion_point(serialize_to_array_start:grpc.testing.SingleUserRecordReply)
1829 : // @@protoc_insertion_point(serialize_to_array_end:grpc.testing.SingleUserRecordReply)
1830 0 : return target;
1831 : }
1832 :
1833 0 : int SingleUserRecordReply::ByteSize() const {
1834 0 : int total_size = 0;
1835 :
1836 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1837 0 : _cached_size_ = total_size;
1838 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1839 0 : return total_size;
1840 : }
1841 :
1842 0 : void SingleUserRecordReply::MergeFrom(const ::google::protobuf::Message& from) {
1843 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1844 : const SingleUserRecordReply* source =
1845 : ::google::protobuf::internal::DynamicCastToGenerated<const SingleUserRecordReply>(
1846 0 : &from);
1847 0 : if (source == NULL) {
1848 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1849 : } else {
1850 0 : MergeFrom(*source);
1851 : }
1852 0 : }
1853 :
1854 0 : void SingleUserRecordReply::MergeFrom(const SingleUserRecordReply& from) {
1855 0 : if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1856 0 : }
1857 :
1858 0 : void SingleUserRecordReply::CopyFrom(const ::google::protobuf::Message& from) {
1859 0 : if (&from == this) return;
1860 0 : Clear();
1861 0 : MergeFrom(from);
1862 : }
1863 :
1864 0 : void SingleUserRecordReply::CopyFrom(const SingleUserRecordReply& from) {
1865 0 : if (&from == this) return;
1866 0 : Clear();
1867 0 : MergeFrom(from);
1868 : }
1869 :
1870 0 : bool SingleUserRecordReply::IsInitialized() const {
1871 :
1872 0 : return true;
1873 : }
1874 :
1875 0 : void SingleUserRecordReply::Swap(SingleUserRecordReply* other) {
1876 0 : if (other == this) return;
1877 0 : InternalSwap(other);
1878 : }
1879 0 : void SingleUserRecordReply::InternalSwap(SingleUserRecordReply* other) {
1880 0 : _internal_metadata_.Swap(&other->_internal_metadata_);
1881 0 : std::swap(_cached_size_, other->_cached_size_);
1882 0 : }
1883 :
1884 0 : ::google::protobuf::Metadata SingleUserRecordReply::GetMetadata() const {
1885 0 : protobuf_AssignDescriptorsOnce();
1886 : ::google::protobuf::Metadata metadata;
1887 0 : metadata.descriptor = SingleUserRecordReply_descriptor_;
1888 0 : metadata.reflection = SingleUserRecordReply_reflection_;
1889 0 : return metadata;
1890 : }
1891 :
1892 : #if PROTOBUF_INLINE_NOT_IN_HEADERS
1893 : // SingleUserRecordReply
1894 :
1895 : #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1896 :
1897 : // @@protoc_insertion_point(namespace_scope)
1898 :
1899 : } // namespace testing
1900 18 : } // namespace grpc
1901 :
1902 : // @@protoc_insertion_point(global_scope)
|