blob: 101f6cce91ff9f8563eebf0346a17654c3a90e71 [file] [log] [blame]
Jan Tattermuschd0c1bfa2015-10-22 19:14:57 -07001// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: test/proto/benchmarks/control.proto
3#pragma warning disable 1591, 0612, 3021
4#region Designer generated code
5
6using pb = global::Google.Protobuf;
7using pbc = global::Google.Protobuf.Collections;
8using pbr = global::Google.Protobuf.Reflection;
9using scg = global::System.Collections.Generic;
10namespace Grpc.Testing {
11
12 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
13 public static partial class Control {
14
15 #region Descriptor
16 public static pbr::FileDescriptor Descriptor {
17 get { return descriptor; }
18 }
19 private static pbr::FileDescriptor descriptor;
20
21 static Control() {
22 byte[] descriptorData = global::System.Convert.FromBase64String(
23 string.Concat(
24 "CiN0ZXN0L3Byb3RvL2JlbmNobWFya3MvY29udHJvbC5wcm90bxIMZ3JwYy50",
25 "ZXN0aW5nGiR0ZXN0L3Byb3RvL2JlbmNobWFya3MvcGF5bG9hZHMucHJvdG8a",
26 "IXRlc3QvcHJvdG8vYmVuY2htYXJrcy9zdGF0cy5wcm90byIlCg1Qb2lzc29u",
27 "UGFyYW1zEhQKDG9mZmVyZWRfbG9hZBgBIAEoASJBCg1Vbmlmb3JtUGFyYW1z",
28 "EhcKD2ludGVyYXJyaXZhbF9sbxgBIAEoARIXCg9pbnRlcmFycml2YWxfaGkY",
29 "AiABKAEiKwoTRGV0ZXJtaW5pc3RpY1BhcmFtcxIUCgxvZmZlcmVkX2xvYWQY",
30 "ASABKAEiOAoMUGFyZXRvUGFyYW1zEhkKEWludGVyYXJyaXZhbF9iYXNlGAEg",
31 "ASgBEg0KBWFscGhhGAIgASgBIhIKEENsb3NlZExvb3BQYXJhbXMijgIKCkxv",
32 "YWRQYXJhbXMSNQoLY2xvc2VkX2xvb3AYASABKAsyHi5ncnBjLnRlc3Rpbmcu",
33 "Q2xvc2VkTG9vcFBhcmFtc0gAEi4KB3BvaXNzb24YAiABKAsyGy5ncnBjLnRl",
34 "c3RpbmcuUG9pc3NvblBhcmFtc0gAEi4KB3VuaWZvcm0YAyABKAsyGy5ncnBj",
35 "LnRlc3RpbmcuVW5pZm9ybVBhcmFtc0gAEjMKBmRldGVybRgEIAEoCzIhLmdy",
36 "cGMudGVzdGluZy5EZXRlcm1pbmlzdGljUGFyYW1zSAASLAoGcGFyZXRvGAUg",
37 "ASgLMhouZ3JwYy50ZXN0aW5nLlBhcmV0b1BhcmFtc0gAQgYKBGxvYWQiQwoO",
38 "U2VjdXJpdHlQYXJhbXMSEwoLdXNlX3Rlc3RfY2EYASABKAgSHAoUc2VydmVy",
39 "X2hvc3Rfb3ZlcnJpZGUYAiABKAki9gIKDENsaWVudENvbmZpZxIWCg5zZXJ2",
40 "ZXJfdGFyZ2V0cxgBIAMoCRItCgtjbGllbnRfdHlwZRgCIAEoDjIYLmdycGMu",
41 "dGVzdGluZy5DbGllbnRUeXBlEjUKD3NlY3VyaXR5X3BhcmFtcxgDIAEoCzIc",
42 "LmdycGMudGVzdGluZy5TZWN1cml0eVBhcmFtcxIkChxvdXRzdGFuZGluZ19y",
43 "cGNzX3Blcl9jaGFubmVsGAQgASgFEhcKD2NsaWVudF9jaGFubmVscxgFIAEo",
44 "BRIcChRhc3luY19jbGllbnRfdGhyZWFkcxgHIAEoBRInCghycGNfdHlwZRgI",
45 "IAEoDjIVLmdycGMudGVzdGluZy5ScGNUeXBlEi0KC2xvYWRfcGFyYW1zGAog",
46 "ASgLMhguZ3JwYy50ZXN0aW5nLkxvYWRQYXJhbXMSMwoOcGF5bG9hZF9jb25m",
47 "aWcYCyABKAsyGy5ncnBjLnRlc3RpbmcuUGF5bG9hZENvbmZpZyI4CgxDbGll",
48 "bnRTdGF0dXMSKAoFc3RhdHMYASABKAsyGS5ncnBjLnRlc3RpbmcuQ2xpZW50",
49 "U3RhdHMiFQoETWFyaxINCgVyZXNldBgBIAEoCCJoCgpDbGllbnRBcmdzEisK",
50 "BXNldHVwGAEgASgLMhouZ3JwYy50ZXN0aW5nLkNsaWVudENvbmZpZ0gAEiIK",
51 "BG1hcmsYAiABKAsyEi5ncnBjLnRlc3RpbmcuTWFya0gAQgkKB2FyZ3R5cGUi",
52 "6QEKDFNlcnZlckNvbmZpZxItCgtzZXJ2ZXJfdHlwZRgBIAEoDjIYLmdycGMu",
53 "dGVzdGluZy5TZXJ2ZXJUeXBlEjUKD3NlY3VyaXR5X3BhcmFtcxgCIAEoCzIc",
54 "LmdycGMudGVzdGluZy5TZWN1cml0eVBhcmFtcxIMCgRwb3J0GAQgASgFEhwK",
55 "FGFzeW5jX3NlcnZlcl90aHJlYWRzGAcgASgFEhIKCmNvcmVfbGltaXQYCCAB",
56 "KAUSMwoOcGF5bG9hZF9jb25maWcYCSABKAsyGy5ncnBjLnRlc3RpbmcuUGF5",
57 "bG9hZENvbmZpZyJoCgpTZXJ2ZXJBcmdzEisKBXNldHVwGAEgASgLMhouZ3Jw",
58 "Yy50ZXN0aW5nLlNlcnZlckNvbmZpZ0gAEiIKBG1hcmsYAiABKAsyEi5ncnBj",
59 "LnRlc3RpbmcuTWFya0gAQgkKB2FyZ3R5cGUiVQoMU2VydmVyU3RhdHVzEigK",
60 "BXN0YXRzGAEgASgLMhkuZ3JwYy50ZXN0aW5nLlNlcnZlclN0YXRzEgwKBHBv",
61 "cnQYAiABKAUSDQoFY29yZXMYAyABKAUqLwoKQ2xpZW50VHlwZRIPCgtTWU5D",
62 "X0NMSUVOVBAAEhAKDEFTWU5DX0NMSUVOVBABKi8KClNlcnZlclR5cGUSDwoL",
63 "U1lOQ19TRVJWRVIQABIQCgxBU1lOQ19TRVJWRVIQASojCgdScGNUeXBlEgkK",
64 "BVVOQVJZEAASDQoJU1RSRUFNSU5HEAFiBnByb3RvMw=="));
65 descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
66 new pbr::FileDescriptor[] { global::Grpc.Testing.Payloads.Descriptor, global::Grpc.Testing.Stats.Descriptor, },
67 new pbr::GeneratedCodeInfo(new[] {typeof(global::Grpc.Testing.ClientType), typeof(global::Grpc.Testing.ServerType), typeof(global::Grpc.Testing.RpcType), }, new pbr::GeneratedCodeInfo[] {
68 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.PoissonParams), new[]{ "OfferedLoad" }, null, null, null),
69 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.UniformParams), new[]{ "InterarrivalLo", "InterarrivalHi" }, null, null, null),
70 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.DeterministicParams), new[]{ "OfferedLoad" }, null, null, null),
71 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ParetoParams), new[]{ "InterarrivalBase", "Alpha" }, null, null, null),
72 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClosedLoopParams), null, null, null, null),
73 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.LoadParams), new[]{ "ClosedLoop", "Poisson", "Uniform", "Determ", "Pareto" }, new[]{ "Load" }, null, null),
74 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.SecurityParams), new[]{ "UseTestCa", "ServerHostOverride" }, null, null, null),
75 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientConfig), new[]{ "ServerTargets", "ClientType", "SecurityParams", "OutstandingRpcsPerChannel", "ClientChannels", "AsyncClientThreads", "RpcType", "LoadParams", "PayloadConfig" }, null, null, null),
76 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientStatus), new[]{ "Stats" }, null, null, null),
77 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.Mark), new[]{ "Reset" }, null, null, null),
78 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientArgs), new[]{ "Setup", "Mark" }, new[]{ "Argtype" }, null, null),
79 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerConfig), new[]{ "ServerType", "SecurityParams", "Port", "AsyncServerThreads", "CoreLimit", "PayloadConfig" }, null, null, null),
80 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerArgs), new[]{ "Setup", "Mark" }, new[]{ "Argtype" }, null, null),
81 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerStatus), new[]{ "Stats", "Port", "Cores" }, null, null, null)
82 }));
83 }
84 #endregion
85
86 }
87 #region Enums
88 public enum ClientType {
89 SYNC_CLIENT = 0,
90 ASYNC_CLIENT = 1,
91 }
92
93 public enum ServerType {
94 SYNC_SERVER = 0,
95 ASYNC_SERVER = 1,
96 }
97
98 public enum RpcType {
99 UNARY = 0,
100 STREAMING = 1,
101 }
102
103 #endregion
104
105 #region Messages
106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
107 public sealed partial class PoissonParams : pb::IMessage<PoissonParams> {
108 private static readonly pb::MessageParser<PoissonParams> _parser = new pb::MessageParser<PoissonParams>(() => new PoissonParams());
109 public static pb::MessageParser<PoissonParams> Parser { get { return _parser; } }
110
111 public static pbr::MessageDescriptor Descriptor {
112 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[0]; }
113 }
114
115 pbr::MessageDescriptor pb::IMessage.Descriptor {
116 get { return Descriptor; }
117 }
118
119 public PoissonParams() {
120 OnConstruction();
121 }
122
123 partial void OnConstruction();
124
125 public PoissonParams(PoissonParams other) : this() {
126 offeredLoad_ = other.offeredLoad_;
127 }
128
129 public PoissonParams Clone() {
130 return new PoissonParams(this);
131 }
132
133 public const int OfferedLoadFieldNumber = 1;
134 private double offeredLoad_;
135 public double OfferedLoad {
136 get { return offeredLoad_; }
137 set {
138 offeredLoad_ = value;
139 }
140 }
141
142 public override bool Equals(object other) {
143 return Equals(other as PoissonParams);
144 }
145
146 public bool Equals(PoissonParams other) {
147 if (ReferenceEquals(other, null)) {
148 return false;
149 }
150 if (ReferenceEquals(other, this)) {
151 return true;
152 }
153 if (OfferedLoad != other.OfferedLoad) return false;
154 return true;
155 }
156
157 public override int GetHashCode() {
158 int hash = 1;
159 if (OfferedLoad != 0D) hash ^= OfferedLoad.GetHashCode();
160 return hash;
161 }
162
163 public override string ToString() {
164 return pb::JsonFormatter.Default.Format(this);
165 }
166
167 public void WriteTo(pb::CodedOutputStream output) {
168 if (OfferedLoad != 0D) {
169 output.WriteRawTag(9);
170 output.WriteDouble(OfferedLoad);
171 }
172 }
173
174 public int CalculateSize() {
175 int size = 0;
176 if (OfferedLoad != 0D) {
177 size += 1 + 8;
178 }
179 return size;
180 }
181
182 public void MergeFrom(PoissonParams other) {
183 if (other == null) {
184 return;
185 }
186 if (other.OfferedLoad != 0D) {
187 OfferedLoad = other.OfferedLoad;
188 }
189 }
190
191 public void MergeFrom(pb::CodedInputStream input) {
192 uint tag;
193 while ((tag = input.ReadTag()) != 0) {
194 switch(tag) {
195 default:
196 input.SkipLastField();
197 break;
198 case 9: {
199 OfferedLoad = input.ReadDouble();
200 break;
201 }
202 }
203 }
204 }
205
206 }
207
208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
209 public sealed partial class UniformParams : pb::IMessage<UniformParams> {
210 private static readonly pb::MessageParser<UniformParams> _parser = new pb::MessageParser<UniformParams>(() => new UniformParams());
211 public static pb::MessageParser<UniformParams> Parser { get { return _parser; } }
212
213 public static pbr::MessageDescriptor Descriptor {
214 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[1]; }
215 }
216
217 pbr::MessageDescriptor pb::IMessage.Descriptor {
218 get { return Descriptor; }
219 }
220
221 public UniformParams() {
222 OnConstruction();
223 }
224
225 partial void OnConstruction();
226
227 public UniformParams(UniformParams other) : this() {
228 interarrivalLo_ = other.interarrivalLo_;
229 interarrivalHi_ = other.interarrivalHi_;
230 }
231
232 public UniformParams Clone() {
233 return new UniformParams(this);
234 }
235
236 public const int InterarrivalLoFieldNumber = 1;
237 private double interarrivalLo_;
238 public double InterarrivalLo {
239 get { return interarrivalLo_; }
240 set {
241 interarrivalLo_ = value;
242 }
243 }
244
245 public const int InterarrivalHiFieldNumber = 2;
246 private double interarrivalHi_;
247 public double InterarrivalHi {
248 get { return interarrivalHi_; }
249 set {
250 interarrivalHi_ = value;
251 }
252 }
253
254 public override bool Equals(object other) {
255 return Equals(other as UniformParams);
256 }
257
258 public bool Equals(UniformParams other) {
259 if (ReferenceEquals(other, null)) {
260 return false;
261 }
262 if (ReferenceEquals(other, this)) {
263 return true;
264 }
265 if (InterarrivalLo != other.InterarrivalLo) return false;
266 if (InterarrivalHi != other.InterarrivalHi) return false;
267 return true;
268 }
269
270 public override int GetHashCode() {
271 int hash = 1;
272 if (InterarrivalLo != 0D) hash ^= InterarrivalLo.GetHashCode();
273 if (InterarrivalHi != 0D) hash ^= InterarrivalHi.GetHashCode();
274 return hash;
275 }
276
277 public override string ToString() {
278 return pb::JsonFormatter.Default.Format(this);
279 }
280
281 public void WriteTo(pb::CodedOutputStream output) {
282 if (InterarrivalLo != 0D) {
283 output.WriteRawTag(9);
284 output.WriteDouble(InterarrivalLo);
285 }
286 if (InterarrivalHi != 0D) {
287 output.WriteRawTag(17);
288 output.WriteDouble(InterarrivalHi);
289 }
290 }
291
292 public int CalculateSize() {
293 int size = 0;
294 if (InterarrivalLo != 0D) {
295 size += 1 + 8;
296 }
297 if (InterarrivalHi != 0D) {
298 size += 1 + 8;
299 }
300 return size;
301 }
302
303 public void MergeFrom(UniformParams other) {
304 if (other == null) {
305 return;
306 }
307 if (other.InterarrivalLo != 0D) {
308 InterarrivalLo = other.InterarrivalLo;
309 }
310 if (other.InterarrivalHi != 0D) {
311 InterarrivalHi = other.InterarrivalHi;
312 }
313 }
314
315 public void MergeFrom(pb::CodedInputStream input) {
316 uint tag;
317 while ((tag = input.ReadTag()) != 0) {
318 switch(tag) {
319 default:
320 input.SkipLastField();
321 break;
322 case 9: {
323 InterarrivalLo = input.ReadDouble();
324 break;
325 }
326 case 17: {
327 InterarrivalHi = input.ReadDouble();
328 break;
329 }
330 }
331 }
332 }
333
334 }
335
336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
337 public sealed partial class DeterministicParams : pb::IMessage<DeterministicParams> {
338 private static readonly pb::MessageParser<DeterministicParams> _parser = new pb::MessageParser<DeterministicParams>(() => new DeterministicParams());
339 public static pb::MessageParser<DeterministicParams> Parser { get { return _parser; } }
340
341 public static pbr::MessageDescriptor Descriptor {
342 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[2]; }
343 }
344
345 pbr::MessageDescriptor pb::IMessage.Descriptor {
346 get { return Descriptor; }
347 }
348
349 public DeterministicParams() {
350 OnConstruction();
351 }
352
353 partial void OnConstruction();
354
355 public DeterministicParams(DeterministicParams other) : this() {
356 offeredLoad_ = other.offeredLoad_;
357 }
358
359 public DeterministicParams Clone() {
360 return new DeterministicParams(this);
361 }
362
363 public const int OfferedLoadFieldNumber = 1;
364 private double offeredLoad_;
365 public double OfferedLoad {
366 get { return offeredLoad_; }
367 set {
368 offeredLoad_ = value;
369 }
370 }
371
372 public override bool Equals(object other) {
373 return Equals(other as DeterministicParams);
374 }
375
376 public bool Equals(DeterministicParams other) {
377 if (ReferenceEquals(other, null)) {
378 return false;
379 }
380 if (ReferenceEquals(other, this)) {
381 return true;
382 }
383 if (OfferedLoad != other.OfferedLoad) return false;
384 return true;
385 }
386
387 public override int GetHashCode() {
388 int hash = 1;
389 if (OfferedLoad != 0D) hash ^= OfferedLoad.GetHashCode();
390 return hash;
391 }
392
393 public override string ToString() {
394 return pb::JsonFormatter.Default.Format(this);
395 }
396
397 public void WriteTo(pb::CodedOutputStream output) {
398 if (OfferedLoad != 0D) {
399 output.WriteRawTag(9);
400 output.WriteDouble(OfferedLoad);
401 }
402 }
403
404 public int CalculateSize() {
405 int size = 0;
406 if (OfferedLoad != 0D) {
407 size += 1 + 8;
408 }
409 return size;
410 }
411
412 public void MergeFrom(DeterministicParams other) {
413 if (other == null) {
414 return;
415 }
416 if (other.OfferedLoad != 0D) {
417 OfferedLoad = other.OfferedLoad;
418 }
419 }
420
421 public void MergeFrom(pb::CodedInputStream input) {
422 uint tag;
423 while ((tag = input.ReadTag()) != 0) {
424 switch(tag) {
425 default:
426 input.SkipLastField();
427 break;
428 case 9: {
429 OfferedLoad = input.ReadDouble();
430 break;
431 }
432 }
433 }
434 }
435
436 }
437
438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
439 public sealed partial class ParetoParams : pb::IMessage<ParetoParams> {
440 private static readonly pb::MessageParser<ParetoParams> _parser = new pb::MessageParser<ParetoParams>(() => new ParetoParams());
441 public static pb::MessageParser<ParetoParams> Parser { get { return _parser; } }
442
443 public static pbr::MessageDescriptor Descriptor {
444 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[3]; }
445 }
446
447 pbr::MessageDescriptor pb::IMessage.Descriptor {
448 get { return Descriptor; }
449 }
450
451 public ParetoParams() {
452 OnConstruction();
453 }
454
455 partial void OnConstruction();
456
457 public ParetoParams(ParetoParams other) : this() {
458 interarrivalBase_ = other.interarrivalBase_;
459 alpha_ = other.alpha_;
460 }
461
462 public ParetoParams Clone() {
463 return new ParetoParams(this);
464 }
465
466 public const int InterarrivalBaseFieldNumber = 1;
467 private double interarrivalBase_;
468 public double InterarrivalBase {
469 get { return interarrivalBase_; }
470 set {
471 interarrivalBase_ = value;
472 }
473 }
474
475 public const int AlphaFieldNumber = 2;
476 private double alpha_;
477 public double Alpha {
478 get { return alpha_; }
479 set {
480 alpha_ = value;
481 }
482 }
483
484 public override bool Equals(object other) {
485 return Equals(other as ParetoParams);
486 }
487
488 public bool Equals(ParetoParams other) {
489 if (ReferenceEquals(other, null)) {
490 return false;
491 }
492 if (ReferenceEquals(other, this)) {
493 return true;
494 }
495 if (InterarrivalBase != other.InterarrivalBase) return false;
496 if (Alpha != other.Alpha) return false;
497 return true;
498 }
499
500 public override int GetHashCode() {
501 int hash = 1;
502 if (InterarrivalBase != 0D) hash ^= InterarrivalBase.GetHashCode();
503 if (Alpha != 0D) hash ^= Alpha.GetHashCode();
504 return hash;
505 }
506
507 public override string ToString() {
508 return pb::JsonFormatter.Default.Format(this);
509 }
510
511 public void WriteTo(pb::CodedOutputStream output) {
512 if (InterarrivalBase != 0D) {
513 output.WriteRawTag(9);
514 output.WriteDouble(InterarrivalBase);
515 }
516 if (Alpha != 0D) {
517 output.WriteRawTag(17);
518 output.WriteDouble(Alpha);
519 }
520 }
521
522 public int CalculateSize() {
523 int size = 0;
524 if (InterarrivalBase != 0D) {
525 size += 1 + 8;
526 }
527 if (Alpha != 0D) {
528 size += 1 + 8;
529 }
530 return size;
531 }
532
533 public void MergeFrom(ParetoParams other) {
534 if (other == null) {
535 return;
536 }
537 if (other.InterarrivalBase != 0D) {
538 InterarrivalBase = other.InterarrivalBase;
539 }
540 if (other.Alpha != 0D) {
541 Alpha = other.Alpha;
542 }
543 }
544
545 public void MergeFrom(pb::CodedInputStream input) {
546 uint tag;
547 while ((tag = input.ReadTag()) != 0) {
548 switch(tag) {
549 default:
550 input.SkipLastField();
551 break;
552 case 9: {
553 InterarrivalBase = input.ReadDouble();
554 break;
555 }
556 case 17: {
557 Alpha = input.ReadDouble();
558 break;
559 }
560 }
561 }
562 }
563
564 }
565
566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
567 public sealed partial class ClosedLoopParams : pb::IMessage<ClosedLoopParams> {
568 private static readonly pb::MessageParser<ClosedLoopParams> _parser = new pb::MessageParser<ClosedLoopParams>(() => new ClosedLoopParams());
569 public static pb::MessageParser<ClosedLoopParams> Parser { get { return _parser; } }
570
571 public static pbr::MessageDescriptor Descriptor {
572 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[4]; }
573 }
574
575 pbr::MessageDescriptor pb::IMessage.Descriptor {
576 get { return Descriptor; }
577 }
578
579 public ClosedLoopParams() {
580 OnConstruction();
581 }
582
583 partial void OnConstruction();
584
585 public ClosedLoopParams(ClosedLoopParams other) : this() {
586 }
587
588 public ClosedLoopParams Clone() {
589 return new ClosedLoopParams(this);
590 }
591
592 public override bool Equals(object other) {
593 return Equals(other as ClosedLoopParams);
594 }
595
596 public bool Equals(ClosedLoopParams other) {
597 if (ReferenceEquals(other, null)) {
598 return false;
599 }
600 if (ReferenceEquals(other, this)) {
601 return true;
602 }
603 return true;
604 }
605
606 public override int GetHashCode() {
607 int hash = 1;
608 return hash;
609 }
610
611 public override string ToString() {
612 return pb::JsonFormatter.Default.Format(this);
613 }
614
615 public void WriteTo(pb::CodedOutputStream output) {
616 }
617
618 public int CalculateSize() {
619 int size = 0;
620 return size;
621 }
622
623 public void MergeFrom(ClosedLoopParams other) {
624 if (other == null) {
625 return;
626 }
627 }
628
629 public void MergeFrom(pb::CodedInputStream input) {
630 uint tag;
631 while ((tag = input.ReadTag()) != 0) {
632 switch(tag) {
633 default:
634 input.SkipLastField();
635 break;
636 }
637 }
638 }
639
640 }
641
642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
643 public sealed partial class LoadParams : pb::IMessage<LoadParams> {
644 private static readonly pb::MessageParser<LoadParams> _parser = new pb::MessageParser<LoadParams>(() => new LoadParams());
645 public static pb::MessageParser<LoadParams> Parser { get { return _parser; } }
646
647 public static pbr::MessageDescriptor Descriptor {
648 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[5]; }
649 }
650
651 pbr::MessageDescriptor pb::IMessage.Descriptor {
652 get { return Descriptor; }
653 }
654
655 public LoadParams() {
656 OnConstruction();
657 }
658
659 partial void OnConstruction();
660
661 public LoadParams(LoadParams other) : this() {
662 switch (other.LoadCase) {
663 case LoadOneofCase.ClosedLoop:
664 ClosedLoop = other.ClosedLoop.Clone();
665 break;
666 case LoadOneofCase.Poisson:
667 Poisson = other.Poisson.Clone();
668 break;
669 case LoadOneofCase.Uniform:
670 Uniform = other.Uniform.Clone();
671 break;
672 case LoadOneofCase.Determ:
673 Determ = other.Determ.Clone();
674 break;
675 case LoadOneofCase.Pareto:
676 Pareto = other.Pareto.Clone();
677 break;
678 }
679
680 }
681
682 public LoadParams Clone() {
683 return new LoadParams(this);
684 }
685
686 public const int ClosedLoopFieldNumber = 1;
687 public global::Grpc.Testing.ClosedLoopParams ClosedLoop {
688 get { return loadCase_ == LoadOneofCase.ClosedLoop ? (global::Grpc.Testing.ClosedLoopParams) load_ : null; }
689 set {
690 load_ = value;
691 loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.ClosedLoop;
692 }
693 }
694
695 public const int PoissonFieldNumber = 2;
696 public global::Grpc.Testing.PoissonParams Poisson {
697 get { return loadCase_ == LoadOneofCase.Poisson ? (global::Grpc.Testing.PoissonParams) load_ : null; }
698 set {
699 load_ = value;
700 loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.Poisson;
701 }
702 }
703
704 public const int UniformFieldNumber = 3;
705 public global::Grpc.Testing.UniformParams Uniform {
706 get { return loadCase_ == LoadOneofCase.Uniform ? (global::Grpc.Testing.UniformParams) load_ : null; }
707 set {
708 load_ = value;
709 loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.Uniform;
710 }
711 }
712
713 public const int DetermFieldNumber = 4;
714 public global::Grpc.Testing.DeterministicParams Determ {
715 get { return loadCase_ == LoadOneofCase.Determ ? (global::Grpc.Testing.DeterministicParams) load_ : null; }
716 set {
717 load_ = value;
718 loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.Determ;
719 }
720 }
721
722 public const int ParetoFieldNumber = 5;
723 public global::Grpc.Testing.ParetoParams Pareto {
724 get { return loadCase_ == LoadOneofCase.Pareto ? (global::Grpc.Testing.ParetoParams) load_ : null; }
725 set {
726 load_ = value;
727 loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.Pareto;
728 }
729 }
730
731 private object load_;
732 public enum LoadOneofCase {
733 None = 0,
734 ClosedLoop = 1,
735 Poisson = 2,
736 Uniform = 3,
737 Determ = 4,
738 Pareto = 5,
739 }
740 private LoadOneofCase loadCase_ = LoadOneofCase.None;
741 public LoadOneofCase LoadCase {
742 get { return loadCase_; }
743 }
744
745 public void ClearLoad() {
746 loadCase_ = LoadOneofCase.None;
747 load_ = null;
748 }
749
750 public override bool Equals(object other) {
751 return Equals(other as LoadParams);
752 }
753
754 public bool Equals(LoadParams other) {
755 if (ReferenceEquals(other, null)) {
756 return false;
757 }
758 if (ReferenceEquals(other, this)) {
759 return true;
760 }
761 if (!object.Equals(ClosedLoop, other.ClosedLoop)) return false;
762 if (!object.Equals(Poisson, other.Poisson)) return false;
763 if (!object.Equals(Uniform, other.Uniform)) return false;
764 if (!object.Equals(Determ, other.Determ)) return false;
765 if (!object.Equals(Pareto, other.Pareto)) return false;
766 return true;
767 }
768
769 public override int GetHashCode() {
770 int hash = 1;
771 if (loadCase_ == LoadOneofCase.ClosedLoop) hash ^= ClosedLoop.GetHashCode();
772 if (loadCase_ == LoadOneofCase.Poisson) hash ^= Poisson.GetHashCode();
773 if (loadCase_ == LoadOneofCase.Uniform) hash ^= Uniform.GetHashCode();
774 if (loadCase_ == LoadOneofCase.Determ) hash ^= Determ.GetHashCode();
775 if (loadCase_ == LoadOneofCase.Pareto) hash ^= Pareto.GetHashCode();
776 return hash;
777 }
778
779 public override string ToString() {
780 return pb::JsonFormatter.Default.Format(this);
781 }
782
783 public void WriteTo(pb::CodedOutputStream output) {
784 if (loadCase_ == LoadOneofCase.ClosedLoop) {
785 output.WriteRawTag(10);
786 output.WriteMessage(ClosedLoop);
787 }
788 if (loadCase_ == LoadOneofCase.Poisson) {
789 output.WriteRawTag(18);
790 output.WriteMessage(Poisson);
791 }
792 if (loadCase_ == LoadOneofCase.Uniform) {
793 output.WriteRawTag(26);
794 output.WriteMessage(Uniform);
795 }
796 if (loadCase_ == LoadOneofCase.Determ) {
797 output.WriteRawTag(34);
798 output.WriteMessage(Determ);
799 }
800 if (loadCase_ == LoadOneofCase.Pareto) {
801 output.WriteRawTag(42);
802 output.WriteMessage(Pareto);
803 }
804 }
805
806 public int CalculateSize() {
807 int size = 0;
808 if (loadCase_ == LoadOneofCase.ClosedLoop) {
809 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClosedLoop);
810 }
811 if (loadCase_ == LoadOneofCase.Poisson) {
812 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Poisson);
813 }
814 if (loadCase_ == LoadOneofCase.Uniform) {
815 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Uniform);
816 }
817 if (loadCase_ == LoadOneofCase.Determ) {
818 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Determ);
819 }
820 if (loadCase_ == LoadOneofCase.Pareto) {
821 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Pareto);
822 }
823 return size;
824 }
825
826 public void MergeFrom(LoadParams other) {
827 if (other == null) {
828 return;
829 }
830 switch (other.LoadCase) {
831 case LoadOneofCase.ClosedLoop:
832 ClosedLoop = other.ClosedLoop;
833 break;
834 case LoadOneofCase.Poisson:
835 Poisson = other.Poisson;
836 break;
837 case LoadOneofCase.Uniform:
838 Uniform = other.Uniform;
839 break;
840 case LoadOneofCase.Determ:
841 Determ = other.Determ;
842 break;
843 case LoadOneofCase.Pareto:
844 Pareto = other.Pareto;
845 break;
846 }
847
848 }
849
850 public void MergeFrom(pb::CodedInputStream input) {
851 uint tag;
852 while ((tag = input.ReadTag()) != 0) {
853 switch(tag) {
854 default:
855 input.SkipLastField();
856 break;
857 case 10: {
858 global::Grpc.Testing.ClosedLoopParams subBuilder = new global::Grpc.Testing.ClosedLoopParams();
859 if (loadCase_ == LoadOneofCase.ClosedLoop) {
860 subBuilder.MergeFrom(ClosedLoop);
861 }
862 input.ReadMessage(subBuilder);
863 ClosedLoop = subBuilder;
864 break;
865 }
866 case 18: {
867 global::Grpc.Testing.PoissonParams subBuilder = new global::Grpc.Testing.PoissonParams();
868 if (loadCase_ == LoadOneofCase.Poisson) {
869 subBuilder.MergeFrom(Poisson);
870 }
871 input.ReadMessage(subBuilder);
872 Poisson = subBuilder;
873 break;
874 }
875 case 26: {
876 global::Grpc.Testing.UniformParams subBuilder = new global::Grpc.Testing.UniformParams();
877 if (loadCase_ == LoadOneofCase.Uniform) {
878 subBuilder.MergeFrom(Uniform);
879 }
880 input.ReadMessage(subBuilder);
881 Uniform = subBuilder;
882 break;
883 }
884 case 34: {
885 global::Grpc.Testing.DeterministicParams subBuilder = new global::Grpc.Testing.DeterministicParams();
886 if (loadCase_ == LoadOneofCase.Determ) {
887 subBuilder.MergeFrom(Determ);
888 }
889 input.ReadMessage(subBuilder);
890 Determ = subBuilder;
891 break;
892 }
893 case 42: {
894 global::Grpc.Testing.ParetoParams subBuilder = new global::Grpc.Testing.ParetoParams();
895 if (loadCase_ == LoadOneofCase.Pareto) {
896 subBuilder.MergeFrom(Pareto);
897 }
898 input.ReadMessage(subBuilder);
899 Pareto = subBuilder;
900 break;
901 }
902 }
903 }
904 }
905
906 }
907
908 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
909 public sealed partial class SecurityParams : pb::IMessage<SecurityParams> {
910 private static readonly pb::MessageParser<SecurityParams> _parser = new pb::MessageParser<SecurityParams>(() => new SecurityParams());
911 public static pb::MessageParser<SecurityParams> Parser { get { return _parser; } }
912
913 public static pbr::MessageDescriptor Descriptor {
914 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[6]; }
915 }
916
917 pbr::MessageDescriptor pb::IMessage.Descriptor {
918 get { return Descriptor; }
919 }
920
921 public SecurityParams() {
922 OnConstruction();
923 }
924
925 partial void OnConstruction();
926
927 public SecurityParams(SecurityParams other) : this() {
928 useTestCa_ = other.useTestCa_;
929 serverHostOverride_ = other.serverHostOverride_;
930 }
931
932 public SecurityParams Clone() {
933 return new SecurityParams(this);
934 }
935
936 public const int UseTestCaFieldNumber = 1;
937 private bool useTestCa_;
938 public bool UseTestCa {
939 get { return useTestCa_; }
940 set {
941 useTestCa_ = value;
942 }
943 }
944
945 public const int ServerHostOverrideFieldNumber = 2;
946 private string serverHostOverride_ = "";
947 public string ServerHostOverride {
948 get { return serverHostOverride_; }
949 set {
950 serverHostOverride_ = pb::Preconditions.CheckNotNull(value, "value");
951 }
952 }
953
954 public override bool Equals(object other) {
955 return Equals(other as SecurityParams);
956 }
957
958 public bool Equals(SecurityParams other) {
959 if (ReferenceEquals(other, null)) {
960 return false;
961 }
962 if (ReferenceEquals(other, this)) {
963 return true;
964 }
965 if (UseTestCa != other.UseTestCa) return false;
966 if (ServerHostOverride != other.ServerHostOverride) return false;
967 return true;
968 }
969
970 public override int GetHashCode() {
971 int hash = 1;
972 if (UseTestCa != false) hash ^= UseTestCa.GetHashCode();
973 if (ServerHostOverride.Length != 0) hash ^= ServerHostOverride.GetHashCode();
974 return hash;
975 }
976
977 public override string ToString() {
978 return pb::JsonFormatter.Default.Format(this);
979 }
980
981 public void WriteTo(pb::CodedOutputStream output) {
982 if (UseTestCa != false) {
983 output.WriteRawTag(8);
984 output.WriteBool(UseTestCa);
985 }
986 if (ServerHostOverride.Length != 0) {
987 output.WriteRawTag(18);
988 output.WriteString(ServerHostOverride);
989 }
990 }
991
992 public int CalculateSize() {
993 int size = 0;
994 if (UseTestCa != false) {
995 size += 1 + 1;
996 }
997 if (ServerHostOverride.Length != 0) {
998 size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerHostOverride);
999 }
1000 return size;
1001 }
1002
1003 public void MergeFrom(SecurityParams other) {
1004 if (other == null) {
1005 return;
1006 }
1007 if (other.UseTestCa != false) {
1008 UseTestCa = other.UseTestCa;
1009 }
1010 if (other.ServerHostOverride.Length != 0) {
1011 ServerHostOverride = other.ServerHostOverride;
1012 }
1013 }
1014
1015 public void MergeFrom(pb::CodedInputStream input) {
1016 uint tag;
1017 while ((tag = input.ReadTag()) != 0) {
1018 switch(tag) {
1019 default:
1020 input.SkipLastField();
1021 break;
1022 case 8: {
1023 UseTestCa = input.ReadBool();
1024 break;
1025 }
1026 case 18: {
1027 ServerHostOverride = input.ReadString();
1028 break;
1029 }
1030 }
1031 }
1032 }
1033
1034 }
1035
1036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1037 public sealed partial class ClientConfig : pb::IMessage<ClientConfig> {
1038 private static readonly pb::MessageParser<ClientConfig> _parser = new pb::MessageParser<ClientConfig>(() => new ClientConfig());
1039 public static pb::MessageParser<ClientConfig> Parser { get { return _parser; } }
1040
1041 public static pbr::MessageDescriptor Descriptor {
1042 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[7]; }
1043 }
1044
1045 pbr::MessageDescriptor pb::IMessage.Descriptor {
1046 get { return Descriptor; }
1047 }
1048
1049 public ClientConfig() {
1050 OnConstruction();
1051 }
1052
1053 partial void OnConstruction();
1054
1055 public ClientConfig(ClientConfig other) : this() {
1056 serverTargets_ = other.serverTargets_.Clone();
1057 clientType_ = other.clientType_;
1058 SecurityParams = other.securityParams_ != null ? other.SecurityParams.Clone() : null;
1059 outstandingRpcsPerChannel_ = other.outstandingRpcsPerChannel_;
1060 clientChannels_ = other.clientChannels_;
1061 asyncClientThreads_ = other.asyncClientThreads_;
1062 rpcType_ = other.rpcType_;
1063 LoadParams = other.loadParams_ != null ? other.LoadParams.Clone() : null;
1064 PayloadConfig = other.payloadConfig_ != null ? other.PayloadConfig.Clone() : null;
1065 }
1066
1067 public ClientConfig Clone() {
1068 return new ClientConfig(this);
1069 }
1070
1071 public const int ServerTargetsFieldNumber = 1;
1072 private static readonly pb::FieldCodec<string> _repeated_serverTargets_codec
1073 = pb::FieldCodec.ForString(10);
1074 private readonly pbc::RepeatedField<string> serverTargets_ = new pbc::RepeatedField<string>();
1075 public pbc::RepeatedField<string> ServerTargets {
1076 get { return serverTargets_; }
1077 }
1078
1079 public const int ClientTypeFieldNumber = 2;
1080 private global::Grpc.Testing.ClientType clientType_ = global::Grpc.Testing.ClientType.SYNC_CLIENT;
1081 public global::Grpc.Testing.ClientType ClientType {
1082 get { return clientType_; }
1083 set {
1084 clientType_ = value;
1085 }
1086 }
1087
1088 public const int SecurityParamsFieldNumber = 3;
1089 private global::Grpc.Testing.SecurityParams securityParams_;
1090 public global::Grpc.Testing.SecurityParams SecurityParams {
1091 get { return securityParams_; }
1092 set {
1093 securityParams_ = value;
1094 }
1095 }
1096
1097 public const int OutstandingRpcsPerChannelFieldNumber = 4;
1098 private int outstandingRpcsPerChannel_;
1099 public int OutstandingRpcsPerChannel {
1100 get { return outstandingRpcsPerChannel_; }
1101 set {
1102 outstandingRpcsPerChannel_ = value;
1103 }
1104 }
1105
1106 public const int ClientChannelsFieldNumber = 5;
1107 private int clientChannels_;
1108 public int ClientChannels {
1109 get { return clientChannels_; }
1110 set {
1111 clientChannels_ = value;
1112 }
1113 }
1114
1115 public const int AsyncClientThreadsFieldNumber = 7;
1116 private int asyncClientThreads_;
1117 public int AsyncClientThreads {
1118 get { return asyncClientThreads_; }
1119 set {
1120 asyncClientThreads_ = value;
1121 }
1122 }
1123
1124 public const int RpcTypeFieldNumber = 8;
1125 private global::Grpc.Testing.RpcType rpcType_ = global::Grpc.Testing.RpcType.UNARY;
1126 public global::Grpc.Testing.RpcType RpcType {
1127 get { return rpcType_; }
1128 set {
1129 rpcType_ = value;
1130 }
1131 }
1132
1133 public const int LoadParamsFieldNumber = 10;
1134 private global::Grpc.Testing.LoadParams loadParams_;
1135 public global::Grpc.Testing.LoadParams LoadParams {
1136 get { return loadParams_; }
1137 set {
1138 loadParams_ = value;
1139 }
1140 }
1141
1142 public const int PayloadConfigFieldNumber = 11;
1143 private global::Grpc.Testing.PayloadConfig payloadConfig_;
1144 public global::Grpc.Testing.PayloadConfig PayloadConfig {
1145 get { return payloadConfig_; }
1146 set {
1147 payloadConfig_ = value;
1148 }
1149 }
1150
1151 public override bool Equals(object other) {
1152 return Equals(other as ClientConfig);
1153 }
1154
1155 public bool Equals(ClientConfig other) {
1156 if (ReferenceEquals(other, null)) {
1157 return false;
1158 }
1159 if (ReferenceEquals(other, this)) {
1160 return true;
1161 }
1162 if(!serverTargets_.Equals(other.serverTargets_)) return false;
1163 if (ClientType != other.ClientType) return false;
1164 if (!object.Equals(SecurityParams, other.SecurityParams)) return false;
1165 if (OutstandingRpcsPerChannel != other.OutstandingRpcsPerChannel) return false;
1166 if (ClientChannels != other.ClientChannels) return false;
1167 if (AsyncClientThreads != other.AsyncClientThreads) return false;
1168 if (RpcType != other.RpcType) return false;
1169 if (!object.Equals(LoadParams, other.LoadParams)) return false;
1170 if (!object.Equals(PayloadConfig, other.PayloadConfig)) return false;
1171 return true;
1172 }
1173
1174 public override int GetHashCode() {
1175 int hash = 1;
1176 hash ^= serverTargets_.GetHashCode();
1177 if (ClientType != global::Grpc.Testing.ClientType.SYNC_CLIENT) hash ^= ClientType.GetHashCode();
1178 if (securityParams_ != null) hash ^= SecurityParams.GetHashCode();
1179 if (OutstandingRpcsPerChannel != 0) hash ^= OutstandingRpcsPerChannel.GetHashCode();
1180 if (ClientChannels != 0) hash ^= ClientChannels.GetHashCode();
1181 if (AsyncClientThreads != 0) hash ^= AsyncClientThreads.GetHashCode();
1182 if (RpcType != global::Grpc.Testing.RpcType.UNARY) hash ^= RpcType.GetHashCode();
1183 if (loadParams_ != null) hash ^= LoadParams.GetHashCode();
1184 if (payloadConfig_ != null) hash ^= PayloadConfig.GetHashCode();
1185 return hash;
1186 }
1187
1188 public override string ToString() {
1189 return pb::JsonFormatter.Default.Format(this);
1190 }
1191
1192 public void WriteTo(pb::CodedOutputStream output) {
1193 serverTargets_.WriteTo(output, _repeated_serverTargets_codec);
1194 if (ClientType != global::Grpc.Testing.ClientType.SYNC_CLIENT) {
1195 output.WriteRawTag(16);
1196 output.WriteEnum((int) ClientType);
1197 }
1198 if (securityParams_ != null) {
1199 output.WriteRawTag(26);
1200 output.WriteMessage(SecurityParams);
1201 }
1202 if (OutstandingRpcsPerChannel != 0) {
1203 output.WriteRawTag(32);
1204 output.WriteInt32(OutstandingRpcsPerChannel);
1205 }
1206 if (ClientChannels != 0) {
1207 output.WriteRawTag(40);
1208 output.WriteInt32(ClientChannels);
1209 }
1210 if (AsyncClientThreads != 0) {
1211 output.WriteRawTag(56);
1212 output.WriteInt32(AsyncClientThreads);
1213 }
1214 if (RpcType != global::Grpc.Testing.RpcType.UNARY) {
1215 output.WriteRawTag(64);
1216 output.WriteEnum((int) RpcType);
1217 }
1218 if (loadParams_ != null) {
1219 output.WriteRawTag(82);
1220 output.WriteMessage(LoadParams);
1221 }
1222 if (payloadConfig_ != null) {
1223 output.WriteRawTag(90);
1224 output.WriteMessage(PayloadConfig);
1225 }
1226 }
1227
1228 public int CalculateSize() {
1229 int size = 0;
1230 size += serverTargets_.CalculateSize(_repeated_serverTargets_codec);
1231 if (ClientType != global::Grpc.Testing.ClientType.SYNC_CLIENT) {
1232 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ClientType);
1233 }
1234 if (securityParams_ != null) {
1235 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityParams);
1236 }
1237 if (OutstandingRpcsPerChannel != 0) {
1238 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OutstandingRpcsPerChannel);
1239 }
1240 if (ClientChannels != 0) {
1241 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClientChannels);
1242 }
1243 if (AsyncClientThreads != 0) {
1244 size += 1 + pb::CodedOutputStream.ComputeInt32Size(AsyncClientThreads);
1245 }
1246 if (RpcType != global::Grpc.Testing.RpcType.UNARY) {
1247 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RpcType);
1248 }
1249 if (loadParams_ != null) {
1250 size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoadParams);
1251 }
1252 if (payloadConfig_ != null) {
1253 size += 1 + pb::CodedOutputStream.ComputeMessageSize(PayloadConfig);
1254 }
1255 return size;
1256 }
1257
1258 public void MergeFrom(ClientConfig other) {
1259 if (other == null) {
1260 return;
1261 }
1262 serverTargets_.Add(other.serverTargets_);
1263 if (other.ClientType != global::Grpc.Testing.ClientType.SYNC_CLIENT) {
1264 ClientType = other.ClientType;
1265 }
1266 if (other.securityParams_ != null) {
1267 if (securityParams_ == null) {
1268 securityParams_ = new global::Grpc.Testing.SecurityParams();
1269 }
1270 SecurityParams.MergeFrom(other.SecurityParams);
1271 }
1272 if (other.OutstandingRpcsPerChannel != 0) {
1273 OutstandingRpcsPerChannel = other.OutstandingRpcsPerChannel;
1274 }
1275 if (other.ClientChannels != 0) {
1276 ClientChannels = other.ClientChannels;
1277 }
1278 if (other.AsyncClientThreads != 0) {
1279 AsyncClientThreads = other.AsyncClientThreads;
1280 }
1281 if (other.RpcType != global::Grpc.Testing.RpcType.UNARY) {
1282 RpcType = other.RpcType;
1283 }
1284 if (other.loadParams_ != null) {
1285 if (loadParams_ == null) {
1286 loadParams_ = new global::Grpc.Testing.LoadParams();
1287 }
1288 LoadParams.MergeFrom(other.LoadParams);
1289 }
1290 if (other.payloadConfig_ != null) {
1291 if (payloadConfig_ == null) {
1292 payloadConfig_ = new global::Grpc.Testing.PayloadConfig();
1293 }
1294 PayloadConfig.MergeFrom(other.PayloadConfig);
1295 }
1296 }
1297
1298 public void MergeFrom(pb::CodedInputStream input) {
1299 uint tag;
1300 while ((tag = input.ReadTag()) != 0) {
1301 switch(tag) {
1302 default:
1303 input.SkipLastField();
1304 break;
1305 case 10: {
1306 serverTargets_.AddEntriesFrom(input, _repeated_serverTargets_codec);
1307 break;
1308 }
1309 case 16: {
1310 clientType_ = (global::Grpc.Testing.ClientType) input.ReadEnum();
1311 break;
1312 }
1313 case 26: {
1314 if (securityParams_ == null) {
1315 securityParams_ = new global::Grpc.Testing.SecurityParams();
1316 }
1317 input.ReadMessage(securityParams_);
1318 break;
1319 }
1320 case 32: {
1321 OutstandingRpcsPerChannel = input.ReadInt32();
1322 break;
1323 }
1324 case 40: {
1325 ClientChannels = input.ReadInt32();
1326 break;
1327 }
1328 case 56: {
1329 AsyncClientThreads = input.ReadInt32();
1330 break;
1331 }
1332 case 64: {
1333 rpcType_ = (global::Grpc.Testing.RpcType) input.ReadEnum();
1334 break;
1335 }
1336 case 82: {
1337 if (loadParams_ == null) {
1338 loadParams_ = new global::Grpc.Testing.LoadParams();
1339 }
1340 input.ReadMessage(loadParams_);
1341 break;
1342 }
1343 case 90: {
1344 if (payloadConfig_ == null) {
1345 payloadConfig_ = new global::Grpc.Testing.PayloadConfig();
1346 }
1347 input.ReadMessage(payloadConfig_);
1348 break;
1349 }
1350 }
1351 }
1352 }
1353
1354 }
1355
1356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1357 public sealed partial class ClientStatus : pb::IMessage<ClientStatus> {
1358 private static readonly pb::MessageParser<ClientStatus> _parser = new pb::MessageParser<ClientStatus>(() => new ClientStatus());
1359 public static pb::MessageParser<ClientStatus> Parser { get { return _parser; } }
1360
1361 public static pbr::MessageDescriptor Descriptor {
1362 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[8]; }
1363 }
1364
1365 pbr::MessageDescriptor pb::IMessage.Descriptor {
1366 get { return Descriptor; }
1367 }
1368
1369 public ClientStatus() {
1370 OnConstruction();
1371 }
1372
1373 partial void OnConstruction();
1374
1375 public ClientStatus(ClientStatus other) : this() {
1376 Stats = other.stats_ != null ? other.Stats.Clone() : null;
1377 }
1378
1379 public ClientStatus Clone() {
1380 return new ClientStatus(this);
1381 }
1382
1383 public const int StatsFieldNumber = 1;
1384 private global::Grpc.Testing.ClientStats stats_;
1385 public global::Grpc.Testing.ClientStats Stats {
1386 get { return stats_; }
1387 set {
1388 stats_ = value;
1389 }
1390 }
1391
1392 public override bool Equals(object other) {
1393 return Equals(other as ClientStatus);
1394 }
1395
1396 public bool Equals(ClientStatus other) {
1397 if (ReferenceEquals(other, null)) {
1398 return false;
1399 }
1400 if (ReferenceEquals(other, this)) {
1401 return true;
1402 }
1403 if (!object.Equals(Stats, other.Stats)) return false;
1404 return true;
1405 }
1406
1407 public override int GetHashCode() {
1408 int hash = 1;
1409 if (stats_ != null) hash ^= Stats.GetHashCode();
1410 return hash;
1411 }
1412
1413 public override string ToString() {
1414 return pb::JsonFormatter.Default.Format(this);
1415 }
1416
1417 public void WriteTo(pb::CodedOutputStream output) {
1418 if (stats_ != null) {
1419 output.WriteRawTag(10);
1420 output.WriteMessage(Stats);
1421 }
1422 }
1423
1424 public int CalculateSize() {
1425 int size = 0;
1426 if (stats_ != null) {
1427 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stats);
1428 }
1429 return size;
1430 }
1431
1432 public void MergeFrom(ClientStatus other) {
1433 if (other == null) {
1434 return;
1435 }
1436 if (other.stats_ != null) {
1437 if (stats_ == null) {
1438 stats_ = new global::Grpc.Testing.ClientStats();
1439 }
1440 Stats.MergeFrom(other.Stats);
1441 }
1442 }
1443
1444 public void MergeFrom(pb::CodedInputStream input) {
1445 uint tag;
1446 while ((tag = input.ReadTag()) != 0) {
1447 switch(tag) {
1448 default:
1449 input.SkipLastField();
1450 break;
1451 case 10: {
1452 if (stats_ == null) {
1453 stats_ = new global::Grpc.Testing.ClientStats();
1454 }
1455 input.ReadMessage(stats_);
1456 break;
1457 }
1458 }
1459 }
1460 }
1461
1462 }
1463
1464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1465 public sealed partial class Mark : pb::IMessage<Mark> {
1466 private static readonly pb::MessageParser<Mark> _parser = new pb::MessageParser<Mark>(() => new Mark());
1467 public static pb::MessageParser<Mark> Parser { get { return _parser; } }
1468
1469 public static pbr::MessageDescriptor Descriptor {
1470 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[9]; }
1471 }
1472
1473 pbr::MessageDescriptor pb::IMessage.Descriptor {
1474 get { return Descriptor; }
1475 }
1476
1477 public Mark() {
1478 OnConstruction();
1479 }
1480
1481 partial void OnConstruction();
1482
1483 public Mark(Mark other) : this() {
1484 reset_ = other.reset_;
1485 }
1486
1487 public Mark Clone() {
1488 return new Mark(this);
1489 }
1490
1491 public const int ResetFieldNumber = 1;
1492 private bool reset_;
1493 public bool Reset {
1494 get { return reset_; }
1495 set {
1496 reset_ = value;
1497 }
1498 }
1499
1500 public override bool Equals(object other) {
1501 return Equals(other as Mark);
1502 }
1503
1504 public bool Equals(Mark other) {
1505 if (ReferenceEquals(other, null)) {
1506 return false;
1507 }
1508 if (ReferenceEquals(other, this)) {
1509 return true;
1510 }
1511 if (Reset != other.Reset) return false;
1512 return true;
1513 }
1514
1515 public override int GetHashCode() {
1516 int hash = 1;
1517 if (Reset != false) hash ^= Reset.GetHashCode();
1518 return hash;
1519 }
1520
1521 public override string ToString() {
1522 return pb::JsonFormatter.Default.Format(this);
1523 }
1524
1525 public void WriteTo(pb::CodedOutputStream output) {
1526 if (Reset != false) {
1527 output.WriteRawTag(8);
1528 output.WriteBool(Reset);
1529 }
1530 }
1531
1532 public int CalculateSize() {
1533 int size = 0;
1534 if (Reset != false) {
1535 size += 1 + 1;
1536 }
1537 return size;
1538 }
1539
1540 public void MergeFrom(Mark other) {
1541 if (other == null) {
1542 return;
1543 }
1544 if (other.Reset != false) {
1545 Reset = other.Reset;
1546 }
1547 }
1548
1549 public void MergeFrom(pb::CodedInputStream input) {
1550 uint tag;
1551 while ((tag = input.ReadTag()) != 0) {
1552 switch(tag) {
1553 default:
1554 input.SkipLastField();
1555 break;
1556 case 8: {
1557 Reset = input.ReadBool();
1558 break;
1559 }
1560 }
1561 }
1562 }
1563
1564 }
1565
1566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1567 public sealed partial class ClientArgs : pb::IMessage<ClientArgs> {
1568 private static readonly pb::MessageParser<ClientArgs> _parser = new pb::MessageParser<ClientArgs>(() => new ClientArgs());
1569 public static pb::MessageParser<ClientArgs> Parser { get { return _parser; } }
1570
1571 public static pbr::MessageDescriptor Descriptor {
1572 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[10]; }
1573 }
1574
1575 pbr::MessageDescriptor pb::IMessage.Descriptor {
1576 get { return Descriptor; }
1577 }
1578
1579 public ClientArgs() {
1580 OnConstruction();
1581 }
1582
1583 partial void OnConstruction();
1584
1585 public ClientArgs(ClientArgs other) : this() {
1586 switch (other.ArgtypeCase) {
1587 case ArgtypeOneofCase.Setup:
1588 Setup = other.Setup.Clone();
1589 break;
1590 case ArgtypeOneofCase.Mark:
1591 Mark = other.Mark.Clone();
1592 break;
1593 }
1594
1595 }
1596
1597 public ClientArgs Clone() {
1598 return new ClientArgs(this);
1599 }
1600
1601 public const int SetupFieldNumber = 1;
1602 public global::Grpc.Testing.ClientConfig Setup {
1603 get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testing.ClientConfig) argtype_ : null; }
1604 set {
1605 argtype_ = value;
1606 argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Setup;
1607 }
1608 }
1609
1610 public const int MarkFieldNumber = 2;
1611 public global::Grpc.Testing.Mark Mark {
1612 get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing.Mark) argtype_ : null; }
1613 set {
1614 argtype_ = value;
1615 argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Mark;
1616 }
1617 }
1618
1619 private object argtype_;
1620 public enum ArgtypeOneofCase {
1621 None = 0,
1622 Setup = 1,
1623 Mark = 2,
1624 }
1625 private ArgtypeOneofCase argtypeCase_ = ArgtypeOneofCase.None;
1626 public ArgtypeOneofCase ArgtypeCase {
1627 get { return argtypeCase_; }
1628 }
1629
1630 public void ClearArgtype() {
1631 argtypeCase_ = ArgtypeOneofCase.None;
1632 argtype_ = null;
1633 }
1634
1635 public override bool Equals(object other) {
1636 return Equals(other as ClientArgs);
1637 }
1638
1639 public bool Equals(ClientArgs other) {
1640 if (ReferenceEquals(other, null)) {
1641 return false;
1642 }
1643 if (ReferenceEquals(other, this)) {
1644 return true;
1645 }
1646 if (!object.Equals(Setup, other.Setup)) return false;
1647 if (!object.Equals(Mark, other.Mark)) return false;
1648 return true;
1649 }
1650
1651 public override int GetHashCode() {
1652 int hash = 1;
1653 if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode();
1654 if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode();
1655 return hash;
1656 }
1657
1658 public override string ToString() {
1659 return pb::JsonFormatter.Default.Format(this);
1660 }
1661
1662 public void WriteTo(pb::CodedOutputStream output) {
1663 if (argtypeCase_ == ArgtypeOneofCase.Setup) {
1664 output.WriteRawTag(10);
1665 output.WriteMessage(Setup);
1666 }
1667 if (argtypeCase_ == ArgtypeOneofCase.Mark) {
1668 output.WriteRawTag(18);
1669 output.WriteMessage(Mark);
1670 }
1671 }
1672
1673 public int CalculateSize() {
1674 int size = 0;
1675 if (argtypeCase_ == ArgtypeOneofCase.Setup) {
1676 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Setup);
1677 }
1678 if (argtypeCase_ == ArgtypeOneofCase.Mark) {
1679 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mark);
1680 }
1681 return size;
1682 }
1683
1684 public void MergeFrom(ClientArgs other) {
1685 if (other == null) {
1686 return;
1687 }
1688 switch (other.ArgtypeCase) {
1689 case ArgtypeOneofCase.Setup:
1690 Setup = other.Setup;
1691 break;
1692 case ArgtypeOneofCase.Mark:
1693 Mark = other.Mark;
1694 break;
1695 }
1696
1697 }
1698
1699 public void MergeFrom(pb::CodedInputStream input) {
1700 uint tag;
1701 while ((tag = input.ReadTag()) != 0) {
1702 switch(tag) {
1703 default:
1704 input.SkipLastField();
1705 break;
1706 case 10: {
1707 global::Grpc.Testing.ClientConfig subBuilder = new global::Grpc.Testing.ClientConfig();
1708 if (argtypeCase_ == ArgtypeOneofCase.Setup) {
1709 subBuilder.MergeFrom(Setup);
1710 }
1711 input.ReadMessage(subBuilder);
1712 Setup = subBuilder;
1713 break;
1714 }
1715 case 18: {
1716 global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark();
1717 if (argtypeCase_ == ArgtypeOneofCase.Mark) {
1718 subBuilder.MergeFrom(Mark);
1719 }
1720 input.ReadMessage(subBuilder);
1721 Mark = subBuilder;
1722 break;
1723 }
1724 }
1725 }
1726 }
1727
1728 }
1729
1730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1731 public sealed partial class ServerConfig : pb::IMessage<ServerConfig> {
1732 private static readonly pb::MessageParser<ServerConfig> _parser = new pb::MessageParser<ServerConfig>(() => new ServerConfig());
1733 public static pb::MessageParser<ServerConfig> Parser { get { return _parser; } }
1734
1735 public static pbr::MessageDescriptor Descriptor {
1736 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[11]; }
1737 }
1738
1739 pbr::MessageDescriptor pb::IMessage.Descriptor {
1740 get { return Descriptor; }
1741 }
1742
1743 public ServerConfig() {
1744 OnConstruction();
1745 }
1746
1747 partial void OnConstruction();
1748
1749 public ServerConfig(ServerConfig other) : this() {
1750 serverType_ = other.serverType_;
1751 SecurityParams = other.securityParams_ != null ? other.SecurityParams.Clone() : null;
1752 port_ = other.port_;
1753 asyncServerThreads_ = other.asyncServerThreads_;
1754 coreLimit_ = other.coreLimit_;
1755 PayloadConfig = other.payloadConfig_ != null ? other.PayloadConfig.Clone() : null;
1756 }
1757
1758 public ServerConfig Clone() {
1759 return new ServerConfig(this);
1760 }
1761
1762 public const int ServerTypeFieldNumber = 1;
1763 private global::Grpc.Testing.ServerType serverType_ = global::Grpc.Testing.ServerType.SYNC_SERVER;
1764 public global::Grpc.Testing.ServerType ServerType {
1765 get { return serverType_; }
1766 set {
1767 serverType_ = value;
1768 }
1769 }
1770
1771 public const int SecurityParamsFieldNumber = 2;
1772 private global::Grpc.Testing.SecurityParams securityParams_;
1773 public global::Grpc.Testing.SecurityParams SecurityParams {
1774 get { return securityParams_; }
1775 set {
1776 securityParams_ = value;
1777 }
1778 }
1779
1780 public const int PortFieldNumber = 4;
1781 private int port_;
1782 public int Port {
1783 get { return port_; }
1784 set {
1785 port_ = value;
1786 }
1787 }
1788
1789 public const int AsyncServerThreadsFieldNumber = 7;
1790 private int asyncServerThreads_;
1791 public int AsyncServerThreads {
1792 get { return asyncServerThreads_; }
1793 set {
1794 asyncServerThreads_ = value;
1795 }
1796 }
1797
1798 public const int CoreLimitFieldNumber = 8;
1799 private int coreLimit_;
1800 public int CoreLimit {
1801 get { return coreLimit_; }
1802 set {
1803 coreLimit_ = value;
1804 }
1805 }
1806
1807 public const int PayloadConfigFieldNumber = 9;
1808 private global::Grpc.Testing.PayloadConfig payloadConfig_;
1809 public global::Grpc.Testing.PayloadConfig PayloadConfig {
1810 get { return payloadConfig_; }
1811 set {
1812 payloadConfig_ = value;
1813 }
1814 }
1815
1816 public override bool Equals(object other) {
1817 return Equals(other as ServerConfig);
1818 }
1819
1820 public bool Equals(ServerConfig other) {
1821 if (ReferenceEquals(other, null)) {
1822 return false;
1823 }
1824 if (ReferenceEquals(other, this)) {
1825 return true;
1826 }
1827 if (ServerType != other.ServerType) return false;
1828 if (!object.Equals(SecurityParams, other.SecurityParams)) return false;
1829 if (Port != other.Port) return false;
1830 if (AsyncServerThreads != other.AsyncServerThreads) return false;
1831 if (CoreLimit != other.CoreLimit) return false;
1832 if (!object.Equals(PayloadConfig, other.PayloadConfig)) return false;
1833 return true;
1834 }
1835
1836 public override int GetHashCode() {
1837 int hash = 1;
1838 if (ServerType != global::Grpc.Testing.ServerType.SYNC_SERVER) hash ^= ServerType.GetHashCode();
1839 if (securityParams_ != null) hash ^= SecurityParams.GetHashCode();
1840 if (Port != 0) hash ^= Port.GetHashCode();
1841 if (AsyncServerThreads != 0) hash ^= AsyncServerThreads.GetHashCode();
1842 if (CoreLimit != 0) hash ^= CoreLimit.GetHashCode();
1843 if (payloadConfig_ != null) hash ^= PayloadConfig.GetHashCode();
1844 return hash;
1845 }
1846
1847 public override string ToString() {
1848 return pb::JsonFormatter.Default.Format(this);
1849 }
1850
1851 public void WriteTo(pb::CodedOutputStream output) {
1852 if (ServerType != global::Grpc.Testing.ServerType.SYNC_SERVER) {
1853 output.WriteRawTag(8);
1854 output.WriteEnum((int) ServerType);
1855 }
1856 if (securityParams_ != null) {
1857 output.WriteRawTag(18);
1858 output.WriteMessage(SecurityParams);
1859 }
1860 if (Port != 0) {
1861 output.WriteRawTag(32);
1862 output.WriteInt32(Port);
1863 }
1864 if (AsyncServerThreads != 0) {
1865 output.WriteRawTag(56);
1866 output.WriteInt32(AsyncServerThreads);
1867 }
1868 if (CoreLimit != 0) {
1869 output.WriteRawTag(64);
1870 output.WriteInt32(CoreLimit);
1871 }
1872 if (payloadConfig_ != null) {
1873 output.WriteRawTag(74);
1874 output.WriteMessage(PayloadConfig);
1875 }
1876 }
1877
1878 public int CalculateSize() {
1879 int size = 0;
1880 if (ServerType != global::Grpc.Testing.ServerType.SYNC_SERVER) {
1881 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ServerType);
1882 }
1883 if (securityParams_ != null) {
1884 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityParams);
1885 }
1886 if (Port != 0) {
1887 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port);
1888 }
1889 if (AsyncServerThreads != 0) {
1890 size += 1 + pb::CodedOutputStream.ComputeInt32Size(AsyncServerThreads);
1891 }
1892 if (CoreLimit != 0) {
1893 size += 1 + pb::CodedOutputStream.ComputeInt32Size(CoreLimit);
1894 }
1895 if (payloadConfig_ != null) {
1896 size += 1 + pb::CodedOutputStream.ComputeMessageSize(PayloadConfig);
1897 }
1898 return size;
1899 }
1900
1901 public void MergeFrom(ServerConfig other) {
1902 if (other == null) {
1903 return;
1904 }
1905 if (other.ServerType != global::Grpc.Testing.ServerType.SYNC_SERVER) {
1906 ServerType = other.ServerType;
1907 }
1908 if (other.securityParams_ != null) {
1909 if (securityParams_ == null) {
1910 securityParams_ = new global::Grpc.Testing.SecurityParams();
1911 }
1912 SecurityParams.MergeFrom(other.SecurityParams);
1913 }
1914 if (other.Port != 0) {
1915 Port = other.Port;
1916 }
1917 if (other.AsyncServerThreads != 0) {
1918 AsyncServerThreads = other.AsyncServerThreads;
1919 }
1920 if (other.CoreLimit != 0) {
1921 CoreLimit = other.CoreLimit;
1922 }
1923 if (other.payloadConfig_ != null) {
1924 if (payloadConfig_ == null) {
1925 payloadConfig_ = new global::Grpc.Testing.PayloadConfig();
1926 }
1927 PayloadConfig.MergeFrom(other.PayloadConfig);
1928 }
1929 }
1930
1931 public void MergeFrom(pb::CodedInputStream input) {
1932 uint tag;
1933 while ((tag = input.ReadTag()) != 0) {
1934 switch(tag) {
1935 default:
1936 input.SkipLastField();
1937 break;
1938 case 8: {
1939 serverType_ = (global::Grpc.Testing.ServerType) input.ReadEnum();
1940 break;
1941 }
1942 case 18: {
1943 if (securityParams_ == null) {
1944 securityParams_ = new global::Grpc.Testing.SecurityParams();
1945 }
1946 input.ReadMessage(securityParams_);
1947 break;
1948 }
1949 case 32: {
1950 Port = input.ReadInt32();
1951 break;
1952 }
1953 case 56: {
1954 AsyncServerThreads = input.ReadInt32();
1955 break;
1956 }
1957 case 64: {
1958 CoreLimit = input.ReadInt32();
1959 break;
1960 }
1961 case 74: {
1962 if (payloadConfig_ == null) {
1963 payloadConfig_ = new global::Grpc.Testing.PayloadConfig();
1964 }
1965 input.ReadMessage(payloadConfig_);
1966 break;
1967 }
1968 }
1969 }
1970 }
1971
1972 }
1973
1974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1975 public sealed partial class ServerArgs : pb::IMessage<ServerArgs> {
1976 private static readonly pb::MessageParser<ServerArgs> _parser = new pb::MessageParser<ServerArgs>(() => new ServerArgs());
1977 public static pb::MessageParser<ServerArgs> Parser { get { return _parser; } }
1978
1979 public static pbr::MessageDescriptor Descriptor {
1980 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[12]; }
1981 }
1982
1983 pbr::MessageDescriptor pb::IMessage.Descriptor {
1984 get { return Descriptor; }
1985 }
1986
1987 public ServerArgs() {
1988 OnConstruction();
1989 }
1990
1991 partial void OnConstruction();
1992
1993 public ServerArgs(ServerArgs other) : this() {
1994 switch (other.ArgtypeCase) {
1995 case ArgtypeOneofCase.Setup:
1996 Setup = other.Setup.Clone();
1997 break;
1998 case ArgtypeOneofCase.Mark:
1999 Mark = other.Mark.Clone();
2000 break;
2001 }
2002
2003 }
2004
2005 public ServerArgs Clone() {
2006 return new ServerArgs(this);
2007 }
2008
2009 public const int SetupFieldNumber = 1;
2010 public global::Grpc.Testing.ServerConfig Setup {
2011 get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testing.ServerConfig) argtype_ : null; }
2012 set {
2013 argtype_ = value;
2014 argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Setup;
2015 }
2016 }
2017
2018 public const int MarkFieldNumber = 2;
2019 public global::Grpc.Testing.Mark Mark {
2020 get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing.Mark) argtype_ : null; }
2021 set {
2022 argtype_ = value;
2023 argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Mark;
2024 }
2025 }
2026
2027 private object argtype_;
2028 public enum ArgtypeOneofCase {
2029 None = 0,
2030 Setup = 1,
2031 Mark = 2,
2032 }
2033 private ArgtypeOneofCase argtypeCase_ = ArgtypeOneofCase.None;
2034 public ArgtypeOneofCase ArgtypeCase {
2035 get { return argtypeCase_; }
2036 }
2037
2038 public void ClearArgtype() {
2039 argtypeCase_ = ArgtypeOneofCase.None;
2040 argtype_ = null;
2041 }
2042
2043 public override bool Equals(object other) {
2044 return Equals(other as ServerArgs);
2045 }
2046
2047 public bool Equals(ServerArgs other) {
2048 if (ReferenceEquals(other, null)) {
2049 return false;
2050 }
2051 if (ReferenceEquals(other, this)) {
2052 return true;
2053 }
2054 if (!object.Equals(Setup, other.Setup)) return false;
2055 if (!object.Equals(Mark, other.Mark)) return false;
2056 return true;
2057 }
2058
2059 public override int GetHashCode() {
2060 int hash = 1;
2061 if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode();
2062 if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode();
2063 return hash;
2064 }
2065
2066 public override string ToString() {
2067 return pb::JsonFormatter.Default.Format(this);
2068 }
2069
2070 public void WriteTo(pb::CodedOutputStream output) {
2071 if (argtypeCase_ == ArgtypeOneofCase.Setup) {
2072 output.WriteRawTag(10);
2073 output.WriteMessage(Setup);
2074 }
2075 if (argtypeCase_ == ArgtypeOneofCase.Mark) {
2076 output.WriteRawTag(18);
2077 output.WriteMessage(Mark);
2078 }
2079 }
2080
2081 public int CalculateSize() {
2082 int size = 0;
2083 if (argtypeCase_ == ArgtypeOneofCase.Setup) {
2084 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Setup);
2085 }
2086 if (argtypeCase_ == ArgtypeOneofCase.Mark) {
2087 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mark);
2088 }
2089 return size;
2090 }
2091
2092 public void MergeFrom(ServerArgs other) {
2093 if (other == null) {
2094 return;
2095 }
2096 switch (other.ArgtypeCase) {
2097 case ArgtypeOneofCase.Setup:
2098 Setup = other.Setup;
2099 break;
2100 case ArgtypeOneofCase.Mark:
2101 Mark = other.Mark;
2102 break;
2103 }
2104
2105 }
2106
2107 public void MergeFrom(pb::CodedInputStream input) {
2108 uint tag;
2109 while ((tag = input.ReadTag()) != 0) {
2110 switch(tag) {
2111 default:
2112 input.SkipLastField();
2113 break;
2114 case 10: {
2115 global::Grpc.Testing.ServerConfig subBuilder = new global::Grpc.Testing.ServerConfig();
2116 if (argtypeCase_ == ArgtypeOneofCase.Setup) {
2117 subBuilder.MergeFrom(Setup);
2118 }
2119 input.ReadMessage(subBuilder);
2120 Setup = subBuilder;
2121 break;
2122 }
2123 case 18: {
2124 global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark();
2125 if (argtypeCase_ == ArgtypeOneofCase.Mark) {
2126 subBuilder.MergeFrom(Mark);
2127 }
2128 input.ReadMessage(subBuilder);
2129 Mark = subBuilder;
2130 break;
2131 }
2132 }
2133 }
2134 }
2135
2136 }
2137
2138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2139 public sealed partial class ServerStatus : pb::IMessage<ServerStatus> {
2140 private static readonly pb::MessageParser<ServerStatus> _parser = new pb::MessageParser<ServerStatus>(() => new ServerStatus());
2141 public static pb::MessageParser<ServerStatus> Parser { get { return _parser; } }
2142
2143 public static pbr::MessageDescriptor Descriptor {
2144 get { return global::Grpc.Testing.Control.Descriptor.MessageTypes[13]; }
2145 }
2146
2147 pbr::MessageDescriptor pb::IMessage.Descriptor {
2148 get { return Descriptor; }
2149 }
2150
2151 public ServerStatus() {
2152 OnConstruction();
2153 }
2154
2155 partial void OnConstruction();
2156
2157 public ServerStatus(ServerStatus other) : this() {
2158 Stats = other.stats_ != null ? other.Stats.Clone() : null;
2159 port_ = other.port_;
2160 cores_ = other.cores_;
2161 }
2162
2163 public ServerStatus Clone() {
2164 return new ServerStatus(this);
2165 }
2166
2167 public const int StatsFieldNumber = 1;
2168 private global::Grpc.Testing.ServerStats stats_;
2169 public global::Grpc.Testing.ServerStats Stats {
2170 get { return stats_; }
2171 set {
2172 stats_ = value;
2173 }
2174 }
2175
2176 public const int PortFieldNumber = 2;
2177 private int port_;
2178 public int Port {
2179 get { return port_; }
2180 set {
2181 port_ = value;
2182 }
2183 }
2184
2185 public const int CoresFieldNumber = 3;
2186 private int cores_;
2187 public int Cores {
2188 get { return cores_; }
2189 set {
2190 cores_ = value;
2191 }
2192 }
2193
2194 public override bool Equals(object other) {
2195 return Equals(other as ServerStatus);
2196 }
2197
2198 public bool Equals(ServerStatus other) {
2199 if (ReferenceEquals(other, null)) {
2200 return false;
2201 }
2202 if (ReferenceEquals(other, this)) {
2203 return true;
2204 }
2205 if (!object.Equals(Stats, other.Stats)) return false;
2206 if (Port != other.Port) return false;
2207 if (Cores != other.Cores) return false;
2208 return true;
2209 }
2210
2211 public override int GetHashCode() {
2212 int hash = 1;
2213 if (stats_ != null) hash ^= Stats.GetHashCode();
2214 if (Port != 0) hash ^= Port.GetHashCode();
2215 if (Cores != 0) hash ^= Cores.GetHashCode();
2216 return hash;
2217 }
2218
2219 public override string ToString() {
2220 return pb::JsonFormatter.Default.Format(this);
2221 }
2222
2223 public void WriteTo(pb::CodedOutputStream output) {
2224 if (stats_ != null) {
2225 output.WriteRawTag(10);
2226 output.WriteMessage(Stats);
2227 }
2228 if (Port != 0) {
2229 output.WriteRawTag(16);
2230 output.WriteInt32(Port);
2231 }
2232 if (Cores != 0) {
2233 output.WriteRawTag(24);
2234 output.WriteInt32(Cores);
2235 }
2236 }
2237
2238 public int CalculateSize() {
2239 int size = 0;
2240 if (stats_ != null) {
2241 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stats);
2242 }
2243 if (Port != 0) {
2244 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port);
2245 }
2246 if (Cores != 0) {
2247 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cores);
2248 }
2249 return size;
2250 }
2251
2252 public void MergeFrom(ServerStatus other) {
2253 if (other == null) {
2254 return;
2255 }
2256 if (other.stats_ != null) {
2257 if (stats_ == null) {
2258 stats_ = new global::Grpc.Testing.ServerStats();
2259 }
2260 Stats.MergeFrom(other.Stats);
2261 }
2262 if (other.Port != 0) {
2263 Port = other.Port;
2264 }
2265 if (other.Cores != 0) {
2266 Cores = other.Cores;
2267 }
2268 }
2269
2270 public void MergeFrom(pb::CodedInputStream input) {
2271 uint tag;
2272 while ((tag = input.ReadTag()) != 0) {
2273 switch(tag) {
2274 default:
2275 input.SkipLastField();
2276 break;
2277 case 10: {
2278 if (stats_ == null) {
2279 stats_ = new global::Grpc.Testing.ServerStats();
2280 }
2281 input.ReadMessage(stats_);
2282 break;
2283 }
2284 case 16: {
2285 Port = input.ReadInt32();
2286 break;
2287 }
2288 case 24: {
2289 Cores = input.ReadInt32();
2290 break;
2291 }
2292 }
2293 }
2294 }
2295
2296 }
2297
2298 #endregion
2299
2300}
2301
2302#endregion Designer generated code