OLD | NEW |
(Empty) | |
| 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 // source: src/proto/grpc/testing/control.proto |
| 3 #pragma warning disable 1591, 0612, 3021 |
| 4 #region Designer generated code |
| 5 |
| 6 using pb = global::Google.Protobuf; |
| 7 using pbc = global::Google.Protobuf.Collections; |
| 8 using pbr = global::Google.Protobuf.Reflection; |
| 9 using scg = global::System.Collections.Generic; |
| 10 namespace Grpc.Testing { |
| 11 |
| 12 /// <summary>Holder for reflection information generated from src/proto/grpc/t
esting/control.proto</summary> |
| 13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 14 public static partial class ControlReflection { |
| 15 |
| 16 #region Descriptor |
| 17 /// <summary>File descriptor for src/proto/grpc/testing/control.proto</summa
ry> |
| 18 public static pbr::FileDescriptor Descriptor { |
| 19 get { return descriptor; } |
| 20 } |
| 21 private static pbr::FileDescriptor descriptor; |
| 22 |
| 23 static ControlReflection() { |
| 24 byte[] descriptorData = global::System.Convert.FromBase64String( |
| 25 string.Concat( |
| 26 "CiRzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL2NvbnRyb2wucHJvdG8SDGdycGMu", |
| 27 "dGVzdGluZxolc3JjL3Byb3RvL2dycGMvdGVzdGluZy9wYXlsb2Fkcy5wcm90", |
| 28 "bxoic3JjL3Byb3RvL2dycGMvdGVzdGluZy9zdGF0cy5wcm90byIlCg1Qb2lz", |
| 29 "c29uUGFyYW1zEhQKDG9mZmVyZWRfbG9hZBgBIAEoASJBCg1Vbmlmb3JtUGFy", |
| 30 "YW1zEhcKD2ludGVyYXJyaXZhbF9sbxgBIAEoARIXCg9pbnRlcmFycml2YWxf", |
| 31 "aGkYAiABKAEiKwoTRGV0ZXJtaW5pc3RpY1BhcmFtcxIUCgxvZmZlcmVkX2xv", |
| 32 "YWQYASABKAEiOAoMUGFyZXRvUGFyYW1zEhkKEWludGVyYXJyaXZhbF9iYXNl", |
| 33 "GAEgASgBEg0KBWFscGhhGAIgASgBIhIKEENsb3NlZExvb3BQYXJhbXMijgIK", |
| 34 "CkxvYWRQYXJhbXMSNQoLY2xvc2VkX2xvb3AYASABKAsyHi5ncnBjLnRlc3Rp", |
| 35 "bmcuQ2xvc2VkTG9vcFBhcmFtc0gAEi4KB3BvaXNzb24YAiABKAsyGy5ncnBj", |
| 36 "LnRlc3RpbmcuUG9pc3NvblBhcmFtc0gAEi4KB3VuaWZvcm0YAyABKAsyGy5n", |
| 37 "cnBjLnRlc3RpbmcuVW5pZm9ybVBhcmFtc0gAEjMKBmRldGVybRgEIAEoCzIh", |
| 38 "LmdycGMudGVzdGluZy5EZXRlcm1pbmlzdGljUGFyYW1zSAASLAoGcGFyZXRv", |
| 39 "GAUgASgLMhouZ3JwYy50ZXN0aW5nLlBhcmV0b1BhcmFtc0gAQgYKBGxvYWQi", |
| 40 "QwoOU2VjdXJpdHlQYXJhbXMSEwoLdXNlX3Rlc3RfY2EYASABKAgSHAoUc2Vy", |
| 41 "dmVyX2hvc3Rfb3ZlcnJpZGUYAiABKAki1gMKDENsaWVudENvbmZpZxIWCg5z", |
| 42 "ZXJ2ZXJfdGFyZ2V0cxgBIAMoCRItCgtjbGllbnRfdHlwZRgCIAEoDjIYLmdy", |
| 43 "cGMudGVzdGluZy5DbGllbnRUeXBlEjUKD3NlY3VyaXR5X3BhcmFtcxgDIAEo", |
| 44 "CzIcLmdycGMudGVzdGluZy5TZWN1cml0eVBhcmFtcxIkChxvdXRzdGFuZGlu", |
| 45 "Z19ycGNzX3Blcl9jaGFubmVsGAQgASgFEhcKD2NsaWVudF9jaGFubmVscxgF", |
| 46 "IAEoBRIcChRhc3luY19jbGllbnRfdGhyZWFkcxgHIAEoBRInCghycGNfdHlw", |
| 47 "ZRgIIAEoDjIVLmdycGMudGVzdGluZy5ScGNUeXBlEi0KC2xvYWRfcGFyYW1z", |
| 48 "GAogASgLMhguZ3JwYy50ZXN0aW5nLkxvYWRQYXJhbXMSMwoOcGF5bG9hZF9j", |
| 49 "b25maWcYCyABKAsyGy5ncnBjLnRlc3RpbmcuUGF5bG9hZENvbmZpZxI3ChBo", |
| 50 "aXN0b2dyYW1fcGFyYW1zGAwgASgLMh0uZ3JwYy50ZXN0aW5nLkhpc3RvZ3Jh", |
| 51 "bVBhcmFtcxIRCgljb3JlX2xpc3QYDSADKAUSEgoKY29yZV9saW1pdBgOIAEo", |
| 52 "BSI4CgxDbGllbnRTdGF0dXMSKAoFc3RhdHMYASABKAsyGS5ncnBjLnRlc3Rp", |
| 53 "bmcuQ2xpZW50U3RhdHMiFQoETWFyaxINCgVyZXNldBgBIAEoCCJoCgpDbGll", |
| 54 "bnRBcmdzEisKBXNldHVwGAEgASgLMhouZ3JwYy50ZXN0aW5nLkNsaWVudENv", |
| 55 "bmZpZ0gAEiIKBG1hcmsYAiABKAsyEi5ncnBjLnRlc3RpbmcuTWFya0gAQgkK", |
| 56 "B2FyZ3R5cGUi/AEKDFNlcnZlckNvbmZpZxItCgtzZXJ2ZXJfdHlwZRgBIAEo", |
| 57 "DjIYLmdycGMudGVzdGluZy5TZXJ2ZXJUeXBlEjUKD3NlY3VyaXR5X3BhcmFt", |
| 58 "cxgCIAEoCzIcLmdycGMudGVzdGluZy5TZWN1cml0eVBhcmFtcxIMCgRwb3J0", |
| 59 "GAQgASgFEhwKFGFzeW5jX3NlcnZlcl90aHJlYWRzGAcgASgFEhIKCmNvcmVf", |
| 60 "bGltaXQYCCABKAUSMwoOcGF5bG9hZF9jb25maWcYCSABKAsyGy5ncnBjLnRl", |
| 61 "c3RpbmcuUGF5bG9hZENvbmZpZxIRCgljb3JlX2xpc3QYCiADKAUiaAoKU2Vy", |
| 62 "dmVyQXJncxIrCgVzZXR1cBgBIAEoCzIaLmdycGMudGVzdGluZy5TZXJ2ZXJD", |
| 63 "b25maWdIABIiCgRtYXJrGAIgASgLMhIuZ3JwYy50ZXN0aW5nLk1hcmtIAEIJ", |
| 64 "Cgdhcmd0eXBlIlUKDFNlcnZlclN0YXR1cxIoCgVzdGF0cxgBIAEoCzIZLmdy", |
| 65 "cGMudGVzdGluZy5TZXJ2ZXJTdGF0cxIMCgRwb3J0GAIgASgFEg0KBWNvcmVz", |
| 66 "GAMgASgFIg0KC0NvcmVSZXF1ZXN0Ih0KDENvcmVSZXNwb25zZRINCgVjb3Jl", |
| 67 "cxgBIAEoBSIGCgRWb2lkKi8KCkNsaWVudFR5cGUSDwoLU1lOQ19DTElFTlQQ", |
| 68 "ABIQCgxBU1lOQ19DTElFTlQQASpJCgpTZXJ2ZXJUeXBlEg8KC1NZTkNfU0VS", |
| 69 "VkVSEAASEAoMQVNZTkNfU0VSVkVSEAESGAoUQVNZTkNfR0VORVJJQ19TRVJW", |
| 70 "RVIQAiojCgdScGNUeXBlEgkKBVVOQVJZEAASDQoJU1RSRUFNSU5HEAFiBnBy", |
| 71 "b3RvMw==")); |
| 72 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| 73 new pbr::FileDescriptor[] { global::Grpc.Testing.PayloadsReflection.De
scriptor, global::Grpc.Testing.StatsReflection.Descriptor, }, |
| 74 new pbr::GeneratedCodeInfo(new[] {typeof(global::Grpc.Testing.ClientTy
pe), typeof(global::Grpc.Testing.ServerType), typeof(global::Grpc.Testing.RpcTyp
e), }, new pbr::GeneratedCodeInfo[] { |
| 75 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.PoissonParams
), global::Grpc.Testing.PoissonParams.Parser, new[]{ "OfferedLoad" }, null, null
, null), |
| 76 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.UniformParams
), global::Grpc.Testing.UniformParams.Parser, new[]{ "InterarrivalLo", "Interarr
ivalHi" }, null, null, null), |
| 77 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.Deterministic
Params), global::Grpc.Testing.DeterministicParams.Parser, new[]{ "OfferedLoad" }
, null, null, null), |
| 78 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ParetoParams)
, global::Grpc.Testing.ParetoParams.Parser, new[]{ "InterarrivalBase", "Alpha" }
, null, null, null), |
| 79 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClosedLoopPar
ams), global::Grpc.Testing.ClosedLoopParams.Parser, null, null, null, null), |
| 80 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.LoadParams),
global::Grpc.Testing.LoadParams.Parser, new[]{ "ClosedLoop", "Poisson", "Uniform
", "Determ", "Pareto" }, new[]{ "Load" }, null, null), |
| 81 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.SecurityParam
s), global::Grpc.Testing.SecurityParams.Parser, new[]{ "UseTestCa", "ServerHostO
verride" }, null, null, null), |
| 82 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientConfig)
, global::Grpc.Testing.ClientConfig.Parser, new[]{ "ServerTargets", "ClientType"
, "SecurityParams", "OutstandingRpcsPerChannel", "ClientChannels", "AsyncClientT
hreads", "RpcType", "LoadParams", "PayloadConfig", "HistogramParams", "CoreList"
, "CoreLimit" }, null, null, null), |
| 83 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientStatus)
, global::Grpc.Testing.ClientStatus.Parser, new[]{ "Stats" }, null, null, null), |
| 84 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.Mark), global
::Grpc.Testing.Mark.Parser, new[]{ "Reset" }, null, null, null), |
| 85 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ClientArgs),
global::Grpc.Testing.ClientArgs.Parser, new[]{ "Setup", "Mark" }, new[]{ "Argtyp
e" }, null, null), |
| 86 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerConfig)
, global::Grpc.Testing.ServerConfig.Parser, new[]{ "ServerType", "SecurityParams
", "Port", "AsyncServerThreads", "CoreLimit", "PayloadConfig", "CoreList" }, nul
l, null, null), |
| 87 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerArgs),
global::Grpc.Testing.ServerArgs.Parser, new[]{ "Setup", "Mark" }, new[]{ "Argtyp
e" }, null, null), |
| 88 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.ServerStatus)
, global::Grpc.Testing.ServerStatus.Parser, new[]{ "Stats", "Port", "Cores" }, n
ull, null, null), |
| 89 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.CoreRequest),
global::Grpc.Testing.CoreRequest.Parser, null, null, null, null), |
| 90 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.CoreResponse)
, global::Grpc.Testing.CoreResponse.Parser, new[]{ "Cores" }, null, null, null), |
| 91 new pbr::GeneratedCodeInfo(typeof(global::Grpc.Testing.Void), global
::Grpc.Testing.Void.Parser, null, null, null, null) |
| 92 })); |
| 93 } |
| 94 #endregion |
| 95 |
| 96 } |
| 97 #region Enums |
| 98 public enum ClientType { |
| 99 SYNC_CLIENT = 0, |
| 100 ASYNC_CLIENT = 1, |
| 101 } |
| 102 |
| 103 public enum ServerType { |
| 104 SYNC_SERVER = 0, |
| 105 ASYNC_SERVER = 1, |
| 106 ASYNC_GENERIC_SERVER = 2, |
| 107 } |
| 108 |
| 109 public enum RpcType { |
| 110 UNARY = 0, |
| 111 STREAMING = 1, |
| 112 } |
| 113 |
| 114 #endregion |
| 115 |
| 116 #region Messages |
| 117 /// <summary> |
| 118 /// Parameters of poisson process distribution, which is a good representatio
n |
| 119 /// of activity coming in from independent identical stationary sources. |
| 120 /// </summary> |
| 121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 122 public sealed partial class PoissonParams : pb::IMessage<PoissonParams> { |
| 123 private static readonly pb::MessageParser<PoissonParams> _parser = new pb::M
essageParser<PoissonParams>(() => new PoissonParams()); |
| 124 public static pb::MessageParser<PoissonParams> Parser { get { return _parser
; } } |
| 125 |
| 126 public static pbr::MessageDescriptor Descriptor { |
| 127 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[0]; } |
| 128 } |
| 129 |
| 130 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 131 get { return Descriptor; } |
| 132 } |
| 133 |
| 134 public PoissonParams() { |
| 135 OnConstruction(); |
| 136 } |
| 137 |
| 138 partial void OnConstruction(); |
| 139 |
| 140 public PoissonParams(PoissonParams other) : this() { |
| 141 offeredLoad_ = other.offeredLoad_; |
| 142 } |
| 143 |
| 144 public PoissonParams Clone() { |
| 145 return new PoissonParams(this); |
| 146 } |
| 147 |
| 148 /// <summary>Field number for the "offered_load" field.</summary> |
| 149 public const int OfferedLoadFieldNumber = 1; |
| 150 private double offeredLoad_; |
| 151 /// <summary> |
| 152 /// The rate of arrivals (a.k.a. lambda parameter of the exp distribution). |
| 153 /// </summary> |
| 154 public double OfferedLoad { |
| 155 get { return offeredLoad_; } |
| 156 set { |
| 157 offeredLoad_ = value; |
| 158 } |
| 159 } |
| 160 |
| 161 public override bool Equals(object other) { |
| 162 return Equals(other as PoissonParams); |
| 163 } |
| 164 |
| 165 public bool Equals(PoissonParams other) { |
| 166 if (ReferenceEquals(other, null)) { |
| 167 return false; |
| 168 } |
| 169 if (ReferenceEquals(other, this)) { |
| 170 return true; |
| 171 } |
| 172 if (OfferedLoad != other.OfferedLoad) return false; |
| 173 return true; |
| 174 } |
| 175 |
| 176 public override int GetHashCode() { |
| 177 int hash = 1; |
| 178 if (OfferedLoad != 0D) hash ^= OfferedLoad.GetHashCode(); |
| 179 return hash; |
| 180 } |
| 181 |
| 182 public override string ToString() { |
| 183 return pb::JsonFormatter.ToDiagnosticString(this); |
| 184 } |
| 185 |
| 186 public void WriteTo(pb::CodedOutputStream output) { |
| 187 if (OfferedLoad != 0D) { |
| 188 output.WriteRawTag(9); |
| 189 output.WriteDouble(OfferedLoad); |
| 190 } |
| 191 } |
| 192 |
| 193 public int CalculateSize() { |
| 194 int size = 0; |
| 195 if (OfferedLoad != 0D) { |
| 196 size += 1 + 8; |
| 197 } |
| 198 return size; |
| 199 } |
| 200 |
| 201 public void MergeFrom(PoissonParams other) { |
| 202 if (other == null) { |
| 203 return; |
| 204 } |
| 205 if (other.OfferedLoad != 0D) { |
| 206 OfferedLoad = other.OfferedLoad; |
| 207 } |
| 208 } |
| 209 |
| 210 public void MergeFrom(pb::CodedInputStream input) { |
| 211 uint tag; |
| 212 while ((tag = input.ReadTag()) != 0) { |
| 213 switch(tag) { |
| 214 default: |
| 215 input.SkipLastField(); |
| 216 break; |
| 217 case 9: { |
| 218 OfferedLoad = input.ReadDouble(); |
| 219 break; |
| 220 } |
| 221 } |
| 222 } |
| 223 } |
| 224 |
| 225 } |
| 226 |
| 227 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 228 public sealed partial class UniformParams : pb::IMessage<UniformParams> { |
| 229 private static readonly pb::MessageParser<UniformParams> _parser = new pb::M
essageParser<UniformParams>(() => new UniformParams()); |
| 230 public static pb::MessageParser<UniformParams> Parser { get { return _parser
; } } |
| 231 |
| 232 public static pbr::MessageDescriptor Descriptor { |
| 233 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[1]; } |
| 234 } |
| 235 |
| 236 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 237 get { return Descriptor; } |
| 238 } |
| 239 |
| 240 public UniformParams() { |
| 241 OnConstruction(); |
| 242 } |
| 243 |
| 244 partial void OnConstruction(); |
| 245 |
| 246 public UniformParams(UniformParams other) : this() { |
| 247 interarrivalLo_ = other.interarrivalLo_; |
| 248 interarrivalHi_ = other.interarrivalHi_; |
| 249 } |
| 250 |
| 251 public UniformParams Clone() { |
| 252 return new UniformParams(this); |
| 253 } |
| 254 |
| 255 /// <summary>Field number for the "interarrival_lo" field.</summary> |
| 256 public const int InterarrivalLoFieldNumber = 1; |
| 257 private double interarrivalLo_; |
| 258 public double InterarrivalLo { |
| 259 get { return interarrivalLo_; } |
| 260 set { |
| 261 interarrivalLo_ = value; |
| 262 } |
| 263 } |
| 264 |
| 265 /// <summary>Field number for the "interarrival_hi" field.</summary> |
| 266 public const int InterarrivalHiFieldNumber = 2; |
| 267 private double interarrivalHi_; |
| 268 public double InterarrivalHi { |
| 269 get { return interarrivalHi_; } |
| 270 set { |
| 271 interarrivalHi_ = value; |
| 272 } |
| 273 } |
| 274 |
| 275 public override bool Equals(object other) { |
| 276 return Equals(other as UniformParams); |
| 277 } |
| 278 |
| 279 public bool Equals(UniformParams other) { |
| 280 if (ReferenceEquals(other, null)) { |
| 281 return false; |
| 282 } |
| 283 if (ReferenceEquals(other, this)) { |
| 284 return true; |
| 285 } |
| 286 if (InterarrivalLo != other.InterarrivalLo) return false; |
| 287 if (InterarrivalHi != other.InterarrivalHi) return false; |
| 288 return true; |
| 289 } |
| 290 |
| 291 public override int GetHashCode() { |
| 292 int hash = 1; |
| 293 if (InterarrivalLo != 0D) hash ^= InterarrivalLo.GetHashCode(); |
| 294 if (InterarrivalHi != 0D) hash ^= InterarrivalHi.GetHashCode(); |
| 295 return hash; |
| 296 } |
| 297 |
| 298 public override string ToString() { |
| 299 return pb::JsonFormatter.ToDiagnosticString(this); |
| 300 } |
| 301 |
| 302 public void WriteTo(pb::CodedOutputStream output) { |
| 303 if (InterarrivalLo != 0D) { |
| 304 output.WriteRawTag(9); |
| 305 output.WriteDouble(InterarrivalLo); |
| 306 } |
| 307 if (InterarrivalHi != 0D) { |
| 308 output.WriteRawTag(17); |
| 309 output.WriteDouble(InterarrivalHi); |
| 310 } |
| 311 } |
| 312 |
| 313 public int CalculateSize() { |
| 314 int size = 0; |
| 315 if (InterarrivalLo != 0D) { |
| 316 size += 1 + 8; |
| 317 } |
| 318 if (InterarrivalHi != 0D) { |
| 319 size += 1 + 8; |
| 320 } |
| 321 return size; |
| 322 } |
| 323 |
| 324 public void MergeFrom(UniformParams other) { |
| 325 if (other == null) { |
| 326 return; |
| 327 } |
| 328 if (other.InterarrivalLo != 0D) { |
| 329 InterarrivalLo = other.InterarrivalLo; |
| 330 } |
| 331 if (other.InterarrivalHi != 0D) { |
| 332 InterarrivalHi = other.InterarrivalHi; |
| 333 } |
| 334 } |
| 335 |
| 336 public void MergeFrom(pb::CodedInputStream input) { |
| 337 uint tag; |
| 338 while ((tag = input.ReadTag()) != 0) { |
| 339 switch(tag) { |
| 340 default: |
| 341 input.SkipLastField(); |
| 342 break; |
| 343 case 9: { |
| 344 InterarrivalLo = input.ReadDouble(); |
| 345 break; |
| 346 } |
| 347 case 17: { |
| 348 InterarrivalHi = input.ReadDouble(); |
| 349 break; |
| 350 } |
| 351 } |
| 352 } |
| 353 } |
| 354 |
| 355 } |
| 356 |
| 357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 358 public sealed partial class DeterministicParams : pb::IMessage<DeterministicPa
rams> { |
| 359 private static readonly pb::MessageParser<DeterministicParams> _parser = new
pb::MessageParser<DeterministicParams>(() => new DeterministicParams()); |
| 360 public static pb::MessageParser<DeterministicParams> Parser { get { return _
parser; } } |
| 361 |
| 362 public static pbr::MessageDescriptor Descriptor { |
| 363 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[2]; } |
| 364 } |
| 365 |
| 366 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 367 get { return Descriptor; } |
| 368 } |
| 369 |
| 370 public DeterministicParams() { |
| 371 OnConstruction(); |
| 372 } |
| 373 |
| 374 partial void OnConstruction(); |
| 375 |
| 376 public DeterministicParams(DeterministicParams other) : this() { |
| 377 offeredLoad_ = other.offeredLoad_; |
| 378 } |
| 379 |
| 380 public DeterministicParams Clone() { |
| 381 return new DeterministicParams(this); |
| 382 } |
| 383 |
| 384 /// <summary>Field number for the "offered_load" field.</summary> |
| 385 public const int OfferedLoadFieldNumber = 1; |
| 386 private double offeredLoad_; |
| 387 public double OfferedLoad { |
| 388 get { return offeredLoad_; } |
| 389 set { |
| 390 offeredLoad_ = value; |
| 391 } |
| 392 } |
| 393 |
| 394 public override bool Equals(object other) { |
| 395 return Equals(other as DeterministicParams); |
| 396 } |
| 397 |
| 398 public bool Equals(DeterministicParams other) { |
| 399 if (ReferenceEquals(other, null)) { |
| 400 return false; |
| 401 } |
| 402 if (ReferenceEquals(other, this)) { |
| 403 return true; |
| 404 } |
| 405 if (OfferedLoad != other.OfferedLoad) return false; |
| 406 return true; |
| 407 } |
| 408 |
| 409 public override int GetHashCode() { |
| 410 int hash = 1; |
| 411 if (OfferedLoad != 0D) hash ^= OfferedLoad.GetHashCode(); |
| 412 return hash; |
| 413 } |
| 414 |
| 415 public override string ToString() { |
| 416 return pb::JsonFormatter.ToDiagnosticString(this); |
| 417 } |
| 418 |
| 419 public void WriteTo(pb::CodedOutputStream output) { |
| 420 if (OfferedLoad != 0D) { |
| 421 output.WriteRawTag(9); |
| 422 output.WriteDouble(OfferedLoad); |
| 423 } |
| 424 } |
| 425 |
| 426 public int CalculateSize() { |
| 427 int size = 0; |
| 428 if (OfferedLoad != 0D) { |
| 429 size += 1 + 8; |
| 430 } |
| 431 return size; |
| 432 } |
| 433 |
| 434 public void MergeFrom(DeterministicParams other) { |
| 435 if (other == null) { |
| 436 return; |
| 437 } |
| 438 if (other.OfferedLoad != 0D) { |
| 439 OfferedLoad = other.OfferedLoad; |
| 440 } |
| 441 } |
| 442 |
| 443 public void MergeFrom(pb::CodedInputStream input) { |
| 444 uint tag; |
| 445 while ((tag = input.ReadTag()) != 0) { |
| 446 switch(tag) { |
| 447 default: |
| 448 input.SkipLastField(); |
| 449 break; |
| 450 case 9: { |
| 451 OfferedLoad = input.ReadDouble(); |
| 452 break; |
| 453 } |
| 454 } |
| 455 } |
| 456 } |
| 457 |
| 458 } |
| 459 |
| 460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 461 public sealed partial class ParetoParams : pb::IMessage<ParetoParams> { |
| 462 private static readonly pb::MessageParser<ParetoParams> _parser = new pb::Me
ssageParser<ParetoParams>(() => new ParetoParams()); |
| 463 public static pb::MessageParser<ParetoParams> Parser { get { return _parser;
} } |
| 464 |
| 465 public static pbr::MessageDescriptor Descriptor { |
| 466 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[3]; } |
| 467 } |
| 468 |
| 469 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 470 get { return Descriptor; } |
| 471 } |
| 472 |
| 473 public ParetoParams() { |
| 474 OnConstruction(); |
| 475 } |
| 476 |
| 477 partial void OnConstruction(); |
| 478 |
| 479 public ParetoParams(ParetoParams other) : this() { |
| 480 interarrivalBase_ = other.interarrivalBase_; |
| 481 alpha_ = other.alpha_; |
| 482 } |
| 483 |
| 484 public ParetoParams Clone() { |
| 485 return new ParetoParams(this); |
| 486 } |
| 487 |
| 488 /// <summary>Field number for the "interarrival_base" field.</summary> |
| 489 public const int InterarrivalBaseFieldNumber = 1; |
| 490 private double interarrivalBase_; |
| 491 public double InterarrivalBase { |
| 492 get { return interarrivalBase_; } |
| 493 set { |
| 494 interarrivalBase_ = value; |
| 495 } |
| 496 } |
| 497 |
| 498 /// <summary>Field number for the "alpha" field.</summary> |
| 499 public const int AlphaFieldNumber = 2; |
| 500 private double alpha_; |
| 501 public double Alpha { |
| 502 get { return alpha_; } |
| 503 set { |
| 504 alpha_ = value; |
| 505 } |
| 506 } |
| 507 |
| 508 public override bool Equals(object other) { |
| 509 return Equals(other as ParetoParams); |
| 510 } |
| 511 |
| 512 public bool Equals(ParetoParams other) { |
| 513 if (ReferenceEquals(other, null)) { |
| 514 return false; |
| 515 } |
| 516 if (ReferenceEquals(other, this)) { |
| 517 return true; |
| 518 } |
| 519 if (InterarrivalBase != other.InterarrivalBase) return false; |
| 520 if (Alpha != other.Alpha) return false; |
| 521 return true; |
| 522 } |
| 523 |
| 524 public override int GetHashCode() { |
| 525 int hash = 1; |
| 526 if (InterarrivalBase != 0D) hash ^= InterarrivalBase.GetHashCode(); |
| 527 if (Alpha != 0D) hash ^= Alpha.GetHashCode(); |
| 528 return hash; |
| 529 } |
| 530 |
| 531 public override string ToString() { |
| 532 return pb::JsonFormatter.ToDiagnosticString(this); |
| 533 } |
| 534 |
| 535 public void WriteTo(pb::CodedOutputStream output) { |
| 536 if (InterarrivalBase != 0D) { |
| 537 output.WriteRawTag(9); |
| 538 output.WriteDouble(InterarrivalBase); |
| 539 } |
| 540 if (Alpha != 0D) { |
| 541 output.WriteRawTag(17); |
| 542 output.WriteDouble(Alpha); |
| 543 } |
| 544 } |
| 545 |
| 546 public int CalculateSize() { |
| 547 int size = 0; |
| 548 if (InterarrivalBase != 0D) { |
| 549 size += 1 + 8; |
| 550 } |
| 551 if (Alpha != 0D) { |
| 552 size += 1 + 8; |
| 553 } |
| 554 return size; |
| 555 } |
| 556 |
| 557 public void MergeFrom(ParetoParams other) { |
| 558 if (other == null) { |
| 559 return; |
| 560 } |
| 561 if (other.InterarrivalBase != 0D) { |
| 562 InterarrivalBase = other.InterarrivalBase; |
| 563 } |
| 564 if (other.Alpha != 0D) { |
| 565 Alpha = other.Alpha; |
| 566 } |
| 567 } |
| 568 |
| 569 public void MergeFrom(pb::CodedInputStream input) { |
| 570 uint tag; |
| 571 while ((tag = input.ReadTag()) != 0) { |
| 572 switch(tag) { |
| 573 default: |
| 574 input.SkipLastField(); |
| 575 break; |
| 576 case 9: { |
| 577 InterarrivalBase = input.ReadDouble(); |
| 578 break; |
| 579 } |
| 580 case 17: { |
| 581 Alpha = input.ReadDouble(); |
| 582 break; |
| 583 } |
| 584 } |
| 585 } |
| 586 } |
| 587 |
| 588 } |
| 589 |
| 590 /// <summary> |
| 591 /// Once an RPC finishes, immediately start a new one. |
| 592 /// No configuration parameters needed. |
| 593 /// </summary> |
| 594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 595 public sealed partial class ClosedLoopParams : pb::IMessage<ClosedLoopParams>
{ |
| 596 private static readonly pb::MessageParser<ClosedLoopParams> _parser = new pb
::MessageParser<ClosedLoopParams>(() => new ClosedLoopParams()); |
| 597 public static pb::MessageParser<ClosedLoopParams> Parser { get { return _par
ser; } } |
| 598 |
| 599 public static pbr::MessageDescriptor Descriptor { |
| 600 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[4]; } |
| 601 } |
| 602 |
| 603 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 604 get { return Descriptor; } |
| 605 } |
| 606 |
| 607 public ClosedLoopParams() { |
| 608 OnConstruction(); |
| 609 } |
| 610 |
| 611 partial void OnConstruction(); |
| 612 |
| 613 public ClosedLoopParams(ClosedLoopParams other) : this() { |
| 614 } |
| 615 |
| 616 public ClosedLoopParams Clone() { |
| 617 return new ClosedLoopParams(this); |
| 618 } |
| 619 |
| 620 public override bool Equals(object other) { |
| 621 return Equals(other as ClosedLoopParams); |
| 622 } |
| 623 |
| 624 public bool Equals(ClosedLoopParams other) { |
| 625 if (ReferenceEquals(other, null)) { |
| 626 return false; |
| 627 } |
| 628 if (ReferenceEquals(other, this)) { |
| 629 return true; |
| 630 } |
| 631 return true; |
| 632 } |
| 633 |
| 634 public override int GetHashCode() { |
| 635 int hash = 1; |
| 636 return hash; |
| 637 } |
| 638 |
| 639 public override string ToString() { |
| 640 return pb::JsonFormatter.ToDiagnosticString(this); |
| 641 } |
| 642 |
| 643 public void WriteTo(pb::CodedOutputStream output) { |
| 644 } |
| 645 |
| 646 public int CalculateSize() { |
| 647 int size = 0; |
| 648 return size; |
| 649 } |
| 650 |
| 651 public void MergeFrom(ClosedLoopParams other) { |
| 652 if (other == null) { |
| 653 return; |
| 654 } |
| 655 } |
| 656 |
| 657 public void MergeFrom(pb::CodedInputStream input) { |
| 658 uint tag; |
| 659 while ((tag = input.ReadTag()) != 0) { |
| 660 switch(tag) { |
| 661 default: |
| 662 input.SkipLastField(); |
| 663 break; |
| 664 } |
| 665 } |
| 666 } |
| 667 |
| 668 } |
| 669 |
| 670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 671 public sealed partial class LoadParams : pb::IMessage<LoadParams> { |
| 672 private static readonly pb::MessageParser<LoadParams> _parser = new pb::Mess
ageParser<LoadParams>(() => new LoadParams()); |
| 673 public static pb::MessageParser<LoadParams> Parser { get { return _parser; }
} |
| 674 |
| 675 public static pbr::MessageDescriptor Descriptor { |
| 676 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[5]; } |
| 677 } |
| 678 |
| 679 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 680 get { return Descriptor; } |
| 681 } |
| 682 |
| 683 public LoadParams() { |
| 684 OnConstruction(); |
| 685 } |
| 686 |
| 687 partial void OnConstruction(); |
| 688 |
| 689 public LoadParams(LoadParams other) : this() { |
| 690 switch (other.LoadCase) { |
| 691 case LoadOneofCase.ClosedLoop: |
| 692 ClosedLoop = other.ClosedLoop.Clone(); |
| 693 break; |
| 694 case LoadOneofCase.Poisson: |
| 695 Poisson = other.Poisson.Clone(); |
| 696 break; |
| 697 case LoadOneofCase.Uniform: |
| 698 Uniform = other.Uniform.Clone(); |
| 699 break; |
| 700 case LoadOneofCase.Determ: |
| 701 Determ = other.Determ.Clone(); |
| 702 break; |
| 703 case LoadOneofCase.Pareto: |
| 704 Pareto = other.Pareto.Clone(); |
| 705 break; |
| 706 } |
| 707 |
| 708 } |
| 709 |
| 710 public LoadParams Clone() { |
| 711 return new LoadParams(this); |
| 712 } |
| 713 |
| 714 /// <summary>Field number for the "closed_loop" field.</summary> |
| 715 public const int ClosedLoopFieldNumber = 1; |
| 716 public global::Grpc.Testing.ClosedLoopParams ClosedLoop { |
| 717 get { return loadCase_ == LoadOneofCase.ClosedLoop ? (global::Grpc.Testing
.ClosedLoopParams) load_ : null; } |
| 718 set { |
| 719 load_ = value; |
| 720 loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.ClosedLoo
p; |
| 721 } |
| 722 } |
| 723 |
| 724 /// <summary>Field number for the "poisson" field.</summary> |
| 725 public const int PoissonFieldNumber = 2; |
| 726 public global::Grpc.Testing.PoissonParams Poisson { |
| 727 get { return loadCase_ == LoadOneofCase.Poisson ? (global::Grpc.Testing.Po
issonParams) load_ : null; } |
| 728 set { |
| 729 load_ = value; |
| 730 loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.Poisson; |
| 731 } |
| 732 } |
| 733 |
| 734 /// <summary>Field number for the "uniform" field.</summary> |
| 735 public const int UniformFieldNumber = 3; |
| 736 public global::Grpc.Testing.UniformParams Uniform { |
| 737 get { return loadCase_ == LoadOneofCase.Uniform ? (global::Grpc.Testing.Un
iformParams) load_ : null; } |
| 738 set { |
| 739 load_ = value; |
| 740 loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.Uniform; |
| 741 } |
| 742 } |
| 743 |
| 744 /// <summary>Field number for the "determ" field.</summary> |
| 745 public const int DetermFieldNumber = 4; |
| 746 public global::Grpc.Testing.DeterministicParams Determ { |
| 747 get { return loadCase_ == LoadOneofCase.Determ ? (global::Grpc.Testing.Det
erministicParams) load_ : null; } |
| 748 set { |
| 749 load_ = value; |
| 750 loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.Determ; |
| 751 } |
| 752 } |
| 753 |
| 754 /// <summary>Field number for the "pareto" field.</summary> |
| 755 public const int ParetoFieldNumber = 5; |
| 756 public global::Grpc.Testing.ParetoParams Pareto { |
| 757 get { return loadCase_ == LoadOneofCase.Pareto ? (global::Grpc.Testing.Par
etoParams) load_ : null; } |
| 758 set { |
| 759 load_ = value; |
| 760 loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.Pareto; |
| 761 } |
| 762 } |
| 763 |
| 764 private object load_; |
| 765 /// <summary>Enum of possible cases for the "load" oneof.</summary> |
| 766 public enum LoadOneofCase { |
| 767 None = 0, |
| 768 ClosedLoop = 1, |
| 769 Poisson = 2, |
| 770 Uniform = 3, |
| 771 Determ = 4, |
| 772 Pareto = 5, |
| 773 } |
| 774 private LoadOneofCase loadCase_ = LoadOneofCase.None; |
| 775 public LoadOneofCase LoadCase { |
| 776 get { return loadCase_; } |
| 777 } |
| 778 |
| 779 public void ClearLoad() { |
| 780 loadCase_ = LoadOneofCase.None; |
| 781 load_ = null; |
| 782 } |
| 783 |
| 784 public override bool Equals(object other) { |
| 785 return Equals(other as LoadParams); |
| 786 } |
| 787 |
| 788 public bool Equals(LoadParams other) { |
| 789 if (ReferenceEquals(other, null)) { |
| 790 return false; |
| 791 } |
| 792 if (ReferenceEquals(other, this)) { |
| 793 return true; |
| 794 } |
| 795 if (!object.Equals(ClosedLoop, other.ClosedLoop)) return false; |
| 796 if (!object.Equals(Poisson, other.Poisson)) return false; |
| 797 if (!object.Equals(Uniform, other.Uniform)) return false; |
| 798 if (!object.Equals(Determ, other.Determ)) return false; |
| 799 if (!object.Equals(Pareto, other.Pareto)) return false; |
| 800 if (LoadCase != other.LoadCase) return false; |
| 801 return true; |
| 802 } |
| 803 |
| 804 public override int GetHashCode() { |
| 805 int hash = 1; |
| 806 if (loadCase_ == LoadOneofCase.ClosedLoop) hash ^= ClosedLoop.GetHashCode(
); |
| 807 if (loadCase_ == LoadOneofCase.Poisson) hash ^= Poisson.GetHashCode(); |
| 808 if (loadCase_ == LoadOneofCase.Uniform) hash ^= Uniform.GetHashCode(); |
| 809 if (loadCase_ == LoadOneofCase.Determ) hash ^= Determ.GetHashCode(); |
| 810 if (loadCase_ == LoadOneofCase.Pareto) hash ^= Pareto.GetHashCode(); |
| 811 hash ^= (int) loadCase_; |
| 812 return hash; |
| 813 } |
| 814 |
| 815 public override string ToString() { |
| 816 return pb::JsonFormatter.ToDiagnosticString(this); |
| 817 } |
| 818 |
| 819 public void WriteTo(pb::CodedOutputStream output) { |
| 820 if (loadCase_ == LoadOneofCase.ClosedLoop) { |
| 821 output.WriteRawTag(10); |
| 822 output.WriteMessage(ClosedLoop); |
| 823 } |
| 824 if (loadCase_ == LoadOneofCase.Poisson) { |
| 825 output.WriteRawTag(18); |
| 826 output.WriteMessage(Poisson); |
| 827 } |
| 828 if (loadCase_ == LoadOneofCase.Uniform) { |
| 829 output.WriteRawTag(26); |
| 830 output.WriteMessage(Uniform); |
| 831 } |
| 832 if (loadCase_ == LoadOneofCase.Determ) { |
| 833 output.WriteRawTag(34); |
| 834 output.WriteMessage(Determ); |
| 835 } |
| 836 if (loadCase_ == LoadOneofCase.Pareto) { |
| 837 output.WriteRawTag(42); |
| 838 output.WriteMessage(Pareto); |
| 839 } |
| 840 } |
| 841 |
| 842 public int CalculateSize() { |
| 843 int size = 0; |
| 844 if (loadCase_ == LoadOneofCase.ClosedLoop) { |
| 845 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClosedLoop); |
| 846 } |
| 847 if (loadCase_ == LoadOneofCase.Poisson) { |
| 848 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Poisson); |
| 849 } |
| 850 if (loadCase_ == LoadOneofCase.Uniform) { |
| 851 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Uniform); |
| 852 } |
| 853 if (loadCase_ == LoadOneofCase.Determ) { |
| 854 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Determ); |
| 855 } |
| 856 if (loadCase_ == LoadOneofCase.Pareto) { |
| 857 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Pareto); |
| 858 } |
| 859 return size; |
| 860 } |
| 861 |
| 862 public void MergeFrom(LoadParams other) { |
| 863 if (other == null) { |
| 864 return; |
| 865 } |
| 866 switch (other.LoadCase) { |
| 867 case LoadOneofCase.ClosedLoop: |
| 868 ClosedLoop = other.ClosedLoop; |
| 869 break; |
| 870 case LoadOneofCase.Poisson: |
| 871 Poisson = other.Poisson; |
| 872 break; |
| 873 case LoadOneofCase.Uniform: |
| 874 Uniform = other.Uniform; |
| 875 break; |
| 876 case LoadOneofCase.Determ: |
| 877 Determ = other.Determ; |
| 878 break; |
| 879 case LoadOneofCase.Pareto: |
| 880 Pareto = other.Pareto; |
| 881 break; |
| 882 } |
| 883 |
| 884 } |
| 885 |
| 886 public void MergeFrom(pb::CodedInputStream input) { |
| 887 uint tag; |
| 888 while ((tag = input.ReadTag()) != 0) { |
| 889 switch(tag) { |
| 890 default: |
| 891 input.SkipLastField(); |
| 892 break; |
| 893 case 10: { |
| 894 global::Grpc.Testing.ClosedLoopParams subBuilder = new global::Grpc.
Testing.ClosedLoopParams(); |
| 895 if (loadCase_ == LoadOneofCase.ClosedLoop) { |
| 896 subBuilder.MergeFrom(ClosedLoop); |
| 897 } |
| 898 input.ReadMessage(subBuilder); |
| 899 ClosedLoop = subBuilder; |
| 900 break; |
| 901 } |
| 902 case 18: { |
| 903 global::Grpc.Testing.PoissonParams subBuilder = new global::Grpc.Tes
ting.PoissonParams(); |
| 904 if (loadCase_ == LoadOneofCase.Poisson) { |
| 905 subBuilder.MergeFrom(Poisson); |
| 906 } |
| 907 input.ReadMessage(subBuilder); |
| 908 Poisson = subBuilder; |
| 909 break; |
| 910 } |
| 911 case 26: { |
| 912 global::Grpc.Testing.UniformParams subBuilder = new global::Grpc.Tes
ting.UniformParams(); |
| 913 if (loadCase_ == LoadOneofCase.Uniform) { |
| 914 subBuilder.MergeFrom(Uniform); |
| 915 } |
| 916 input.ReadMessage(subBuilder); |
| 917 Uniform = subBuilder; |
| 918 break; |
| 919 } |
| 920 case 34: { |
| 921 global::Grpc.Testing.DeterministicParams subBuilder = new global::Gr
pc.Testing.DeterministicParams(); |
| 922 if (loadCase_ == LoadOneofCase.Determ) { |
| 923 subBuilder.MergeFrom(Determ); |
| 924 } |
| 925 input.ReadMessage(subBuilder); |
| 926 Determ = subBuilder; |
| 927 break; |
| 928 } |
| 929 case 42: { |
| 930 global::Grpc.Testing.ParetoParams subBuilder = new global::Grpc.Test
ing.ParetoParams(); |
| 931 if (loadCase_ == LoadOneofCase.Pareto) { |
| 932 subBuilder.MergeFrom(Pareto); |
| 933 } |
| 934 input.ReadMessage(subBuilder); |
| 935 Pareto = subBuilder; |
| 936 break; |
| 937 } |
| 938 } |
| 939 } |
| 940 } |
| 941 |
| 942 } |
| 943 |
| 944 /// <summary> |
| 945 /// presence of SecurityParams implies use of TLS |
| 946 /// </summary> |
| 947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 948 public sealed partial class SecurityParams : pb::IMessage<SecurityParams> { |
| 949 private static readonly pb::MessageParser<SecurityParams> _parser = new pb::
MessageParser<SecurityParams>(() => new SecurityParams()); |
| 950 public static pb::MessageParser<SecurityParams> Parser { get { return _parse
r; } } |
| 951 |
| 952 public static pbr::MessageDescriptor Descriptor { |
| 953 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[6]; } |
| 954 } |
| 955 |
| 956 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 957 get { return Descriptor; } |
| 958 } |
| 959 |
| 960 public SecurityParams() { |
| 961 OnConstruction(); |
| 962 } |
| 963 |
| 964 partial void OnConstruction(); |
| 965 |
| 966 public SecurityParams(SecurityParams other) : this() { |
| 967 useTestCa_ = other.useTestCa_; |
| 968 serverHostOverride_ = other.serverHostOverride_; |
| 969 } |
| 970 |
| 971 public SecurityParams Clone() { |
| 972 return new SecurityParams(this); |
| 973 } |
| 974 |
| 975 /// <summary>Field number for the "use_test_ca" field.</summary> |
| 976 public const int UseTestCaFieldNumber = 1; |
| 977 private bool useTestCa_; |
| 978 public bool UseTestCa { |
| 979 get { return useTestCa_; } |
| 980 set { |
| 981 useTestCa_ = value; |
| 982 } |
| 983 } |
| 984 |
| 985 /// <summary>Field number for the "server_host_override" field.</summary> |
| 986 public const int ServerHostOverrideFieldNumber = 2; |
| 987 private string serverHostOverride_ = ""; |
| 988 public string ServerHostOverride { |
| 989 get { return serverHostOverride_; } |
| 990 set { |
| 991 serverHostOverride_ = pb::Preconditions.CheckNotNull(value, "value"); |
| 992 } |
| 993 } |
| 994 |
| 995 public override bool Equals(object other) { |
| 996 return Equals(other as SecurityParams); |
| 997 } |
| 998 |
| 999 public bool Equals(SecurityParams other) { |
| 1000 if (ReferenceEquals(other, null)) { |
| 1001 return false; |
| 1002 } |
| 1003 if (ReferenceEquals(other, this)) { |
| 1004 return true; |
| 1005 } |
| 1006 if (UseTestCa != other.UseTestCa) return false; |
| 1007 if (ServerHostOverride != other.ServerHostOverride) return false; |
| 1008 return true; |
| 1009 } |
| 1010 |
| 1011 public override int GetHashCode() { |
| 1012 int hash = 1; |
| 1013 if (UseTestCa != false) hash ^= UseTestCa.GetHashCode(); |
| 1014 if (ServerHostOverride.Length != 0) hash ^= ServerHostOverride.GetHashCode
(); |
| 1015 return hash; |
| 1016 } |
| 1017 |
| 1018 public override string ToString() { |
| 1019 return pb::JsonFormatter.ToDiagnosticString(this); |
| 1020 } |
| 1021 |
| 1022 public void WriteTo(pb::CodedOutputStream output) { |
| 1023 if (UseTestCa != false) { |
| 1024 output.WriteRawTag(8); |
| 1025 output.WriteBool(UseTestCa); |
| 1026 } |
| 1027 if (ServerHostOverride.Length != 0) { |
| 1028 output.WriteRawTag(18); |
| 1029 output.WriteString(ServerHostOverride); |
| 1030 } |
| 1031 } |
| 1032 |
| 1033 public int CalculateSize() { |
| 1034 int size = 0; |
| 1035 if (UseTestCa != false) { |
| 1036 size += 1 + 1; |
| 1037 } |
| 1038 if (ServerHostOverride.Length != 0) { |
| 1039 size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerHostOverride); |
| 1040 } |
| 1041 return size; |
| 1042 } |
| 1043 |
| 1044 public void MergeFrom(SecurityParams other) { |
| 1045 if (other == null) { |
| 1046 return; |
| 1047 } |
| 1048 if (other.UseTestCa != false) { |
| 1049 UseTestCa = other.UseTestCa; |
| 1050 } |
| 1051 if (other.ServerHostOverride.Length != 0) { |
| 1052 ServerHostOverride = other.ServerHostOverride; |
| 1053 } |
| 1054 } |
| 1055 |
| 1056 public void MergeFrom(pb::CodedInputStream input) { |
| 1057 uint tag; |
| 1058 while ((tag = input.ReadTag()) != 0) { |
| 1059 switch(tag) { |
| 1060 default: |
| 1061 input.SkipLastField(); |
| 1062 break; |
| 1063 case 8: { |
| 1064 UseTestCa = input.ReadBool(); |
| 1065 break; |
| 1066 } |
| 1067 case 18: { |
| 1068 ServerHostOverride = input.ReadString(); |
| 1069 break; |
| 1070 } |
| 1071 } |
| 1072 } |
| 1073 } |
| 1074 |
| 1075 } |
| 1076 |
| 1077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 1078 public sealed partial class ClientConfig : pb::IMessage<ClientConfig> { |
| 1079 private static readonly pb::MessageParser<ClientConfig> _parser = new pb::Me
ssageParser<ClientConfig>(() => new ClientConfig()); |
| 1080 public static pb::MessageParser<ClientConfig> Parser { get { return _parser;
} } |
| 1081 |
| 1082 public static pbr::MessageDescriptor Descriptor { |
| 1083 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[7]; } |
| 1084 } |
| 1085 |
| 1086 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1087 get { return Descriptor; } |
| 1088 } |
| 1089 |
| 1090 public ClientConfig() { |
| 1091 OnConstruction(); |
| 1092 } |
| 1093 |
| 1094 partial void OnConstruction(); |
| 1095 |
| 1096 public ClientConfig(ClientConfig other) : this() { |
| 1097 serverTargets_ = other.serverTargets_.Clone(); |
| 1098 clientType_ = other.clientType_; |
| 1099 SecurityParams = other.securityParams_ != null ? other.SecurityParams.Clon
e() : null; |
| 1100 outstandingRpcsPerChannel_ = other.outstandingRpcsPerChannel_; |
| 1101 clientChannels_ = other.clientChannels_; |
| 1102 asyncClientThreads_ = other.asyncClientThreads_; |
| 1103 rpcType_ = other.rpcType_; |
| 1104 LoadParams = other.loadParams_ != null ? other.LoadParams.Clone() : null; |
| 1105 PayloadConfig = other.payloadConfig_ != null ? other.PayloadConfig.Clone()
: null; |
| 1106 HistogramParams = other.histogramParams_ != null ? other.HistogramParams.C
lone() : null; |
| 1107 coreList_ = other.coreList_.Clone(); |
| 1108 coreLimit_ = other.coreLimit_; |
| 1109 } |
| 1110 |
| 1111 public ClientConfig Clone() { |
| 1112 return new ClientConfig(this); |
| 1113 } |
| 1114 |
| 1115 /// <summary>Field number for the "server_targets" field.</summary> |
| 1116 public const int ServerTargetsFieldNumber = 1; |
| 1117 private static readonly pb::FieldCodec<string> _repeated_serverTargets_codec |
| 1118 = pb::FieldCodec.ForString(10); |
| 1119 private readonly pbc::RepeatedField<string> serverTargets_ = new pbc::Repeat
edField<string>(); |
| 1120 /// <summary> |
| 1121 /// List of targets to connect to. At least one target needs to be specifie
d. |
| 1122 /// </summary> |
| 1123 public pbc::RepeatedField<string> ServerTargets { |
| 1124 get { return serverTargets_; } |
| 1125 } |
| 1126 |
| 1127 /// <summary>Field number for the "client_type" field.</summary> |
| 1128 public const int ClientTypeFieldNumber = 2; |
| 1129 private global::Grpc.Testing.ClientType clientType_ = global::Grpc.Testing.C
lientType.SYNC_CLIENT; |
| 1130 public global::Grpc.Testing.ClientType ClientType { |
| 1131 get { return clientType_; } |
| 1132 set { |
| 1133 clientType_ = value; |
| 1134 } |
| 1135 } |
| 1136 |
| 1137 /// <summary>Field number for the "security_params" field.</summary> |
| 1138 public const int SecurityParamsFieldNumber = 3; |
| 1139 private global::Grpc.Testing.SecurityParams securityParams_; |
| 1140 public global::Grpc.Testing.SecurityParams SecurityParams { |
| 1141 get { return securityParams_; } |
| 1142 set { |
| 1143 securityParams_ = value; |
| 1144 } |
| 1145 } |
| 1146 |
| 1147 /// <summary>Field number for the "outstanding_rpcs_per_channel" field.</sum
mary> |
| 1148 public const int OutstandingRpcsPerChannelFieldNumber = 4; |
| 1149 private int outstandingRpcsPerChannel_; |
| 1150 /// <summary> |
| 1151 /// How many concurrent RPCs to start for each channel. |
| 1152 /// For synchronous client, use a separate thread for each outstanding RPC. |
| 1153 /// </summary> |
| 1154 public int OutstandingRpcsPerChannel { |
| 1155 get { return outstandingRpcsPerChannel_; } |
| 1156 set { |
| 1157 outstandingRpcsPerChannel_ = value; |
| 1158 } |
| 1159 } |
| 1160 |
| 1161 /// <summary>Field number for the "client_channels" field.</summary> |
| 1162 public const int ClientChannelsFieldNumber = 5; |
| 1163 private int clientChannels_; |
| 1164 /// <summary> |
| 1165 /// Number of independent client channels to create. |
| 1166 /// i-th channel will connect to server_target[i % server_targets.size()] |
| 1167 /// </summary> |
| 1168 public int ClientChannels { |
| 1169 get { return clientChannels_; } |
| 1170 set { |
| 1171 clientChannels_ = value; |
| 1172 } |
| 1173 } |
| 1174 |
| 1175 /// <summary>Field number for the "async_client_threads" field.</summary> |
| 1176 public const int AsyncClientThreadsFieldNumber = 7; |
| 1177 private int asyncClientThreads_; |
| 1178 /// <summary> |
| 1179 /// Only for async client. Number of threads to use to start/manage RPCs. |
| 1180 /// </summary> |
| 1181 public int AsyncClientThreads { |
| 1182 get { return asyncClientThreads_; } |
| 1183 set { |
| 1184 asyncClientThreads_ = value; |
| 1185 } |
| 1186 } |
| 1187 |
| 1188 /// <summary>Field number for the "rpc_type" field.</summary> |
| 1189 public const int RpcTypeFieldNumber = 8; |
| 1190 private global::Grpc.Testing.RpcType rpcType_ = global::Grpc.Testing.RpcType
.UNARY; |
| 1191 public global::Grpc.Testing.RpcType RpcType { |
| 1192 get { return rpcType_; } |
| 1193 set { |
| 1194 rpcType_ = value; |
| 1195 } |
| 1196 } |
| 1197 |
| 1198 /// <summary>Field number for the "load_params" field.</summary> |
| 1199 public const int LoadParamsFieldNumber = 10; |
| 1200 private global::Grpc.Testing.LoadParams loadParams_; |
| 1201 /// <summary> |
| 1202 /// The requested load for the entire client (aggregated over all the threa
ds). |
| 1203 /// </summary> |
| 1204 public global::Grpc.Testing.LoadParams LoadParams { |
| 1205 get { return loadParams_; } |
| 1206 set { |
| 1207 loadParams_ = value; |
| 1208 } |
| 1209 } |
| 1210 |
| 1211 /// <summary>Field number for the "payload_config" field.</summary> |
| 1212 public const int PayloadConfigFieldNumber = 11; |
| 1213 private global::Grpc.Testing.PayloadConfig payloadConfig_; |
| 1214 public global::Grpc.Testing.PayloadConfig PayloadConfig { |
| 1215 get { return payloadConfig_; } |
| 1216 set { |
| 1217 payloadConfig_ = value; |
| 1218 } |
| 1219 } |
| 1220 |
| 1221 /// <summary>Field number for the "histogram_params" field.</summary> |
| 1222 public const int HistogramParamsFieldNumber = 12; |
| 1223 private global::Grpc.Testing.HistogramParams histogramParams_; |
| 1224 public global::Grpc.Testing.HistogramParams HistogramParams { |
| 1225 get { return histogramParams_; } |
| 1226 set { |
| 1227 histogramParams_ = value; |
| 1228 } |
| 1229 } |
| 1230 |
| 1231 /// <summary>Field number for the "core_list" field.</summary> |
| 1232 public const int CoreListFieldNumber = 13; |
| 1233 private static readonly pb::FieldCodec<int> _repeated_coreList_codec |
| 1234 = pb::FieldCodec.ForInt32(106); |
| 1235 private readonly pbc::RepeatedField<int> coreList_ = new pbc::RepeatedField<
int>(); |
| 1236 /// <summary> |
| 1237 /// Specify the cores we should run the client on, if desired |
| 1238 /// </summary> |
| 1239 public pbc::RepeatedField<int> CoreList { |
| 1240 get { return coreList_; } |
| 1241 } |
| 1242 |
| 1243 /// <summary>Field number for the "core_limit" field.</summary> |
| 1244 public const int CoreLimitFieldNumber = 14; |
| 1245 private int coreLimit_; |
| 1246 public int CoreLimit { |
| 1247 get { return coreLimit_; } |
| 1248 set { |
| 1249 coreLimit_ = value; |
| 1250 } |
| 1251 } |
| 1252 |
| 1253 public override bool Equals(object other) { |
| 1254 return Equals(other as ClientConfig); |
| 1255 } |
| 1256 |
| 1257 public bool Equals(ClientConfig other) { |
| 1258 if (ReferenceEquals(other, null)) { |
| 1259 return false; |
| 1260 } |
| 1261 if (ReferenceEquals(other, this)) { |
| 1262 return true; |
| 1263 } |
| 1264 if(!serverTargets_.Equals(other.serverTargets_)) return false; |
| 1265 if (ClientType != other.ClientType) return false; |
| 1266 if (!object.Equals(SecurityParams, other.SecurityParams)) return false; |
| 1267 if (OutstandingRpcsPerChannel != other.OutstandingRpcsPerChannel) return f
alse; |
| 1268 if (ClientChannels != other.ClientChannels) return false; |
| 1269 if (AsyncClientThreads != other.AsyncClientThreads) return false; |
| 1270 if (RpcType != other.RpcType) return false; |
| 1271 if (!object.Equals(LoadParams, other.LoadParams)) return false; |
| 1272 if (!object.Equals(PayloadConfig, other.PayloadConfig)) return false; |
| 1273 if (!object.Equals(HistogramParams, other.HistogramParams)) return false; |
| 1274 if(!coreList_.Equals(other.coreList_)) return false; |
| 1275 if (CoreLimit != other.CoreLimit) return false; |
| 1276 return true; |
| 1277 } |
| 1278 |
| 1279 public override int GetHashCode() { |
| 1280 int hash = 1; |
| 1281 hash ^= serverTargets_.GetHashCode(); |
| 1282 if (ClientType != global::Grpc.Testing.ClientType.SYNC_CLIENT) hash ^= Cli
entType.GetHashCode(); |
| 1283 if (securityParams_ != null) hash ^= SecurityParams.GetHashCode(); |
| 1284 if (OutstandingRpcsPerChannel != 0) hash ^= OutstandingRpcsPerChannel.GetH
ashCode(); |
| 1285 if (ClientChannels != 0) hash ^= ClientChannels.GetHashCode(); |
| 1286 if (AsyncClientThreads != 0) hash ^= AsyncClientThreads.GetHashCode(); |
| 1287 if (RpcType != global::Grpc.Testing.RpcType.UNARY) hash ^= RpcType.GetHash
Code(); |
| 1288 if (loadParams_ != null) hash ^= LoadParams.GetHashCode(); |
| 1289 if (payloadConfig_ != null) hash ^= PayloadConfig.GetHashCode(); |
| 1290 if (histogramParams_ != null) hash ^= HistogramParams.GetHashCode(); |
| 1291 hash ^= coreList_.GetHashCode(); |
| 1292 if (CoreLimit != 0) hash ^= CoreLimit.GetHashCode(); |
| 1293 return hash; |
| 1294 } |
| 1295 |
| 1296 public override string ToString() { |
| 1297 return pb::JsonFormatter.ToDiagnosticString(this); |
| 1298 } |
| 1299 |
| 1300 public void WriteTo(pb::CodedOutputStream output) { |
| 1301 serverTargets_.WriteTo(output, _repeated_serverTargets_codec); |
| 1302 if (ClientType != global::Grpc.Testing.ClientType.SYNC_CLIENT) { |
| 1303 output.WriteRawTag(16); |
| 1304 output.WriteEnum((int) ClientType); |
| 1305 } |
| 1306 if (securityParams_ != null) { |
| 1307 output.WriteRawTag(26); |
| 1308 output.WriteMessage(SecurityParams); |
| 1309 } |
| 1310 if (OutstandingRpcsPerChannel != 0) { |
| 1311 output.WriteRawTag(32); |
| 1312 output.WriteInt32(OutstandingRpcsPerChannel); |
| 1313 } |
| 1314 if (ClientChannels != 0) { |
| 1315 output.WriteRawTag(40); |
| 1316 output.WriteInt32(ClientChannels); |
| 1317 } |
| 1318 if (AsyncClientThreads != 0) { |
| 1319 output.WriteRawTag(56); |
| 1320 output.WriteInt32(AsyncClientThreads); |
| 1321 } |
| 1322 if (RpcType != global::Grpc.Testing.RpcType.UNARY) { |
| 1323 output.WriteRawTag(64); |
| 1324 output.WriteEnum((int) RpcType); |
| 1325 } |
| 1326 if (loadParams_ != null) { |
| 1327 output.WriteRawTag(82); |
| 1328 output.WriteMessage(LoadParams); |
| 1329 } |
| 1330 if (payloadConfig_ != null) { |
| 1331 output.WriteRawTag(90); |
| 1332 output.WriteMessage(PayloadConfig); |
| 1333 } |
| 1334 if (histogramParams_ != null) { |
| 1335 output.WriteRawTag(98); |
| 1336 output.WriteMessage(HistogramParams); |
| 1337 } |
| 1338 coreList_.WriteTo(output, _repeated_coreList_codec); |
| 1339 if (CoreLimit != 0) { |
| 1340 output.WriteRawTag(112); |
| 1341 output.WriteInt32(CoreLimit); |
| 1342 } |
| 1343 } |
| 1344 |
| 1345 public int CalculateSize() { |
| 1346 int size = 0; |
| 1347 size += serverTargets_.CalculateSize(_repeated_serverTargets_codec); |
| 1348 if (ClientType != global::Grpc.Testing.ClientType.SYNC_CLIENT) { |
| 1349 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ClientType); |
| 1350 } |
| 1351 if (securityParams_ != null) { |
| 1352 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityParams); |
| 1353 } |
| 1354 if (OutstandingRpcsPerChannel != 0) { |
| 1355 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OutstandingRpcsPerCha
nnel); |
| 1356 } |
| 1357 if (ClientChannels != 0) { |
| 1358 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClientChannels); |
| 1359 } |
| 1360 if (AsyncClientThreads != 0) { |
| 1361 size += 1 + pb::CodedOutputStream.ComputeInt32Size(AsyncClientThreads); |
| 1362 } |
| 1363 if (RpcType != global::Grpc.Testing.RpcType.UNARY) { |
| 1364 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RpcType); |
| 1365 } |
| 1366 if (loadParams_ != null) { |
| 1367 size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoadParams); |
| 1368 } |
| 1369 if (payloadConfig_ != null) { |
| 1370 size += 1 + pb::CodedOutputStream.ComputeMessageSize(PayloadConfig); |
| 1371 } |
| 1372 if (histogramParams_ != null) { |
| 1373 size += 1 + pb::CodedOutputStream.ComputeMessageSize(HistogramParams); |
| 1374 } |
| 1375 size += coreList_.CalculateSize(_repeated_coreList_codec); |
| 1376 if (CoreLimit != 0) { |
| 1377 size += 1 + pb::CodedOutputStream.ComputeInt32Size(CoreLimit); |
| 1378 } |
| 1379 return size; |
| 1380 } |
| 1381 |
| 1382 public void MergeFrom(ClientConfig other) { |
| 1383 if (other == null) { |
| 1384 return; |
| 1385 } |
| 1386 serverTargets_.Add(other.serverTargets_); |
| 1387 if (other.ClientType != global::Grpc.Testing.ClientType.SYNC_CLIENT) { |
| 1388 ClientType = other.ClientType; |
| 1389 } |
| 1390 if (other.securityParams_ != null) { |
| 1391 if (securityParams_ == null) { |
| 1392 securityParams_ = new global::Grpc.Testing.SecurityParams(); |
| 1393 } |
| 1394 SecurityParams.MergeFrom(other.SecurityParams); |
| 1395 } |
| 1396 if (other.OutstandingRpcsPerChannel != 0) { |
| 1397 OutstandingRpcsPerChannel = other.OutstandingRpcsPerChannel; |
| 1398 } |
| 1399 if (other.ClientChannels != 0) { |
| 1400 ClientChannels = other.ClientChannels; |
| 1401 } |
| 1402 if (other.AsyncClientThreads != 0) { |
| 1403 AsyncClientThreads = other.AsyncClientThreads; |
| 1404 } |
| 1405 if (other.RpcType != global::Grpc.Testing.RpcType.UNARY) { |
| 1406 RpcType = other.RpcType; |
| 1407 } |
| 1408 if (other.loadParams_ != null) { |
| 1409 if (loadParams_ == null) { |
| 1410 loadParams_ = new global::Grpc.Testing.LoadParams(); |
| 1411 } |
| 1412 LoadParams.MergeFrom(other.LoadParams); |
| 1413 } |
| 1414 if (other.payloadConfig_ != null) { |
| 1415 if (payloadConfig_ == null) { |
| 1416 payloadConfig_ = new global::Grpc.Testing.PayloadConfig(); |
| 1417 } |
| 1418 PayloadConfig.MergeFrom(other.PayloadConfig); |
| 1419 } |
| 1420 if (other.histogramParams_ != null) { |
| 1421 if (histogramParams_ == null) { |
| 1422 histogramParams_ = new global::Grpc.Testing.HistogramParams(); |
| 1423 } |
| 1424 HistogramParams.MergeFrom(other.HistogramParams); |
| 1425 } |
| 1426 coreList_.Add(other.coreList_); |
| 1427 if (other.CoreLimit != 0) { |
| 1428 CoreLimit = other.CoreLimit; |
| 1429 } |
| 1430 } |
| 1431 |
| 1432 public void MergeFrom(pb::CodedInputStream input) { |
| 1433 uint tag; |
| 1434 while ((tag = input.ReadTag()) != 0) { |
| 1435 switch(tag) { |
| 1436 default: |
| 1437 input.SkipLastField(); |
| 1438 break; |
| 1439 case 10: { |
| 1440 serverTargets_.AddEntriesFrom(input, _repeated_serverTargets_codec); |
| 1441 break; |
| 1442 } |
| 1443 case 16: { |
| 1444 clientType_ = (global::Grpc.Testing.ClientType) input.ReadEnum(); |
| 1445 break; |
| 1446 } |
| 1447 case 26: { |
| 1448 if (securityParams_ == null) { |
| 1449 securityParams_ = new global::Grpc.Testing.SecurityParams(); |
| 1450 } |
| 1451 input.ReadMessage(securityParams_); |
| 1452 break; |
| 1453 } |
| 1454 case 32: { |
| 1455 OutstandingRpcsPerChannel = input.ReadInt32(); |
| 1456 break; |
| 1457 } |
| 1458 case 40: { |
| 1459 ClientChannels = input.ReadInt32(); |
| 1460 break; |
| 1461 } |
| 1462 case 56: { |
| 1463 AsyncClientThreads = input.ReadInt32(); |
| 1464 break; |
| 1465 } |
| 1466 case 64: { |
| 1467 rpcType_ = (global::Grpc.Testing.RpcType) input.ReadEnum(); |
| 1468 break; |
| 1469 } |
| 1470 case 82: { |
| 1471 if (loadParams_ == null) { |
| 1472 loadParams_ = new global::Grpc.Testing.LoadParams(); |
| 1473 } |
| 1474 input.ReadMessage(loadParams_); |
| 1475 break; |
| 1476 } |
| 1477 case 90: { |
| 1478 if (payloadConfig_ == null) { |
| 1479 payloadConfig_ = new global::Grpc.Testing.PayloadConfig(); |
| 1480 } |
| 1481 input.ReadMessage(payloadConfig_); |
| 1482 break; |
| 1483 } |
| 1484 case 98: { |
| 1485 if (histogramParams_ == null) { |
| 1486 histogramParams_ = new global::Grpc.Testing.HistogramParams(); |
| 1487 } |
| 1488 input.ReadMessage(histogramParams_); |
| 1489 break; |
| 1490 } |
| 1491 case 106: |
| 1492 case 104: { |
| 1493 coreList_.AddEntriesFrom(input, _repeated_coreList_codec); |
| 1494 break; |
| 1495 } |
| 1496 case 112: { |
| 1497 CoreLimit = input.ReadInt32(); |
| 1498 break; |
| 1499 } |
| 1500 } |
| 1501 } |
| 1502 } |
| 1503 |
| 1504 } |
| 1505 |
| 1506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 1507 public sealed partial class ClientStatus : pb::IMessage<ClientStatus> { |
| 1508 private static readonly pb::MessageParser<ClientStatus> _parser = new pb::Me
ssageParser<ClientStatus>(() => new ClientStatus()); |
| 1509 public static pb::MessageParser<ClientStatus> Parser { get { return _parser;
} } |
| 1510 |
| 1511 public static pbr::MessageDescriptor Descriptor { |
| 1512 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[8]; } |
| 1513 } |
| 1514 |
| 1515 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1516 get { return Descriptor; } |
| 1517 } |
| 1518 |
| 1519 public ClientStatus() { |
| 1520 OnConstruction(); |
| 1521 } |
| 1522 |
| 1523 partial void OnConstruction(); |
| 1524 |
| 1525 public ClientStatus(ClientStatus other) : this() { |
| 1526 Stats = other.stats_ != null ? other.Stats.Clone() : null; |
| 1527 } |
| 1528 |
| 1529 public ClientStatus Clone() { |
| 1530 return new ClientStatus(this); |
| 1531 } |
| 1532 |
| 1533 /// <summary>Field number for the "stats" field.</summary> |
| 1534 public const int StatsFieldNumber = 1; |
| 1535 private global::Grpc.Testing.ClientStats stats_; |
| 1536 public global::Grpc.Testing.ClientStats Stats { |
| 1537 get { return stats_; } |
| 1538 set { |
| 1539 stats_ = value; |
| 1540 } |
| 1541 } |
| 1542 |
| 1543 public override bool Equals(object other) { |
| 1544 return Equals(other as ClientStatus); |
| 1545 } |
| 1546 |
| 1547 public bool Equals(ClientStatus other) { |
| 1548 if (ReferenceEquals(other, null)) { |
| 1549 return false; |
| 1550 } |
| 1551 if (ReferenceEquals(other, this)) { |
| 1552 return true; |
| 1553 } |
| 1554 if (!object.Equals(Stats, other.Stats)) return false; |
| 1555 return true; |
| 1556 } |
| 1557 |
| 1558 public override int GetHashCode() { |
| 1559 int hash = 1; |
| 1560 if (stats_ != null) hash ^= Stats.GetHashCode(); |
| 1561 return hash; |
| 1562 } |
| 1563 |
| 1564 public override string ToString() { |
| 1565 return pb::JsonFormatter.ToDiagnosticString(this); |
| 1566 } |
| 1567 |
| 1568 public void WriteTo(pb::CodedOutputStream output) { |
| 1569 if (stats_ != null) { |
| 1570 output.WriteRawTag(10); |
| 1571 output.WriteMessage(Stats); |
| 1572 } |
| 1573 } |
| 1574 |
| 1575 public int CalculateSize() { |
| 1576 int size = 0; |
| 1577 if (stats_ != null) { |
| 1578 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stats); |
| 1579 } |
| 1580 return size; |
| 1581 } |
| 1582 |
| 1583 public void MergeFrom(ClientStatus other) { |
| 1584 if (other == null) { |
| 1585 return; |
| 1586 } |
| 1587 if (other.stats_ != null) { |
| 1588 if (stats_ == null) { |
| 1589 stats_ = new global::Grpc.Testing.ClientStats(); |
| 1590 } |
| 1591 Stats.MergeFrom(other.Stats); |
| 1592 } |
| 1593 } |
| 1594 |
| 1595 public void MergeFrom(pb::CodedInputStream input) { |
| 1596 uint tag; |
| 1597 while ((tag = input.ReadTag()) != 0) { |
| 1598 switch(tag) { |
| 1599 default: |
| 1600 input.SkipLastField(); |
| 1601 break; |
| 1602 case 10: { |
| 1603 if (stats_ == null) { |
| 1604 stats_ = new global::Grpc.Testing.ClientStats(); |
| 1605 } |
| 1606 input.ReadMessage(stats_); |
| 1607 break; |
| 1608 } |
| 1609 } |
| 1610 } |
| 1611 } |
| 1612 |
| 1613 } |
| 1614 |
| 1615 /// <summary> |
| 1616 /// Request current stats |
| 1617 /// </summary> |
| 1618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 1619 public sealed partial class Mark : pb::IMessage<Mark> { |
| 1620 private static readonly pb::MessageParser<Mark> _parser = new pb::MessagePar
ser<Mark>(() => new Mark()); |
| 1621 public static pb::MessageParser<Mark> Parser { get { return _parser; } } |
| 1622 |
| 1623 public static pbr::MessageDescriptor Descriptor { |
| 1624 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[9]; } |
| 1625 } |
| 1626 |
| 1627 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1628 get { return Descriptor; } |
| 1629 } |
| 1630 |
| 1631 public Mark() { |
| 1632 OnConstruction(); |
| 1633 } |
| 1634 |
| 1635 partial void OnConstruction(); |
| 1636 |
| 1637 public Mark(Mark other) : this() { |
| 1638 reset_ = other.reset_; |
| 1639 } |
| 1640 |
| 1641 public Mark Clone() { |
| 1642 return new Mark(this); |
| 1643 } |
| 1644 |
| 1645 /// <summary>Field number for the "reset" field.</summary> |
| 1646 public const int ResetFieldNumber = 1; |
| 1647 private bool reset_; |
| 1648 /// <summary> |
| 1649 /// if true, the stats will be reset after taking their snapshot. |
| 1650 /// </summary> |
| 1651 public bool Reset { |
| 1652 get { return reset_; } |
| 1653 set { |
| 1654 reset_ = value; |
| 1655 } |
| 1656 } |
| 1657 |
| 1658 public override bool Equals(object other) { |
| 1659 return Equals(other as Mark); |
| 1660 } |
| 1661 |
| 1662 public bool Equals(Mark other) { |
| 1663 if (ReferenceEquals(other, null)) { |
| 1664 return false; |
| 1665 } |
| 1666 if (ReferenceEquals(other, this)) { |
| 1667 return true; |
| 1668 } |
| 1669 if (Reset != other.Reset) return false; |
| 1670 return true; |
| 1671 } |
| 1672 |
| 1673 public override int GetHashCode() { |
| 1674 int hash = 1; |
| 1675 if (Reset != false) hash ^= Reset.GetHashCode(); |
| 1676 return hash; |
| 1677 } |
| 1678 |
| 1679 public override string ToString() { |
| 1680 return pb::JsonFormatter.ToDiagnosticString(this); |
| 1681 } |
| 1682 |
| 1683 public void WriteTo(pb::CodedOutputStream output) { |
| 1684 if (Reset != false) { |
| 1685 output.WriteRawTag(8); |
| 1686 output.WriteBool(Reset); |
| 1687 } |
| 1688 } |
| 1689 |
| 1690 public int CalculateSize() { |
| 1691 int size = 0; |
| 1692 if (Reset != false) { |
| 1693 size += 1 + 1; |
| 1694 } |
| 1695 return size; |
| 1696 } |
| 1697 |
| 1698 public void MergeFrom(Mark other) { |
| 1699 if (other == null) { |
| 1700 return; |
| 1701 } |
| 1702 if (other.Reset != false) { |
| 1703 Reset = other.Reset; |
| 1704 } |
| 1705 } |
| 1706 |
| 1707 public void MergeFrom(pb::CodedInputStream input) { |
| 1708 uint tag; |
| 1709 while ((tag = input.ReadTag()) != 0) { |
| 1710 switch(tag) { |
| 1711 default: |
| 1712 input.SkipLastField(); |
| 1713 break; |
| 1714 case 8: { |
| 1715 Reset = input.ReadBool(); |
| 1716 break; |
| 1717 } |
| 1718 } |
| 1719 } |
| 1720 } |
| 1721 |
| 1722 } |
| 1723 |
| 1724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 1725 public sealed partial class ClientArgs : pb::IMessage<ClientArgs> { |
| 1726 private static readonly pb::MessageParser<ClientArgs> _parser = new pb::Mess
ageParser<ClientArgs>(() => new ClientArgs()); |
| 1727 public static pb::MessageParser<ClientArgs> Parser { get { return _parser; }
} |
| 1728 |
| 1729 public static pbr::MessageDescriptor Descriptor { |
| 1730 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[10]; } |
| 1731 } |
| 1732 |
| 1733 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1734 get { return Descriptor; } |
| 1735 } |
| 1736 |
| 1737 public ClientArgs() { |
| 1738 OnConstruction(); |
| 1739 } |
| 1740 |
| 1741 partial void OnConstruction(); |
| 1742 |
| 1743 public ClientArgs(ClientArgs other) : this() { |
| 1744 switch (other.ArgtypeCase) { |
| 1745 case ArgtypeOneofCase.Setup: |
| 1746 Setup = other.Setup.Clone(); |
| 1747 break; |
| 1748 case ArgtypeOneofCase.Mark: |
| 1749 Mark = other.Mark.Clone(); |
| 1750 break; |
| 1751 } |
| 1752 |
| 1753 } |
| 1754 |
| 1755 public ClientArgs Clone() { |
| 1756 return new ClientArgs(this); |
| 1757 } |
| 1758 |
| 1759 /// <summary>Field number for the "setup" field.</summary> |
| 1760 public const int SetupFieldNumber = 1; |
| 1761 public global::Grpc.Testing.ClientConfig Setup { |
| 1762 get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testin
g.ClientConfig) argtype_ : null; } |
| 1763 set { |
| 1764 argtype_ = value; |
| 1765 argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.
Setup; |
| 1766 } |
| 1767 } |
| 1768 |
| 1769 /// <summary>Field number for the "mark" field.</summary> |
| 1770 public const int MarkFieldNumber = 2; |
| 1771 public global::Grpc.Testing.Mark Mark { |
| 1772 get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing
.Mark) argtype_ : null; } |
| 1773 set { |
| 1774 argtype_ = value; |
| 1775 argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.
Mark; |
| 1776 } |
| 1777 } |
| 1778 |
| 1779 private object argtype_; |
| 1780 /// <summary>Enum of possible cases for the "argtype" oneof.</summary> |
| 1781 public enum ArgtypeOneofCase { |
| 1782 None = 0, |
| 1783 Setup = 1, |
| 1784 Mark = 2, |
| 1785 } |
| 1786 private ArgtypeOneofCase argtypeCase_ = ArgtypeOneofCase.None; |
| 1787 public ArgtypeOneofCase ArgtypeCase { |
| 1788 get { return argtypeCase_; } |
| 1789 } |
| 1790 |
| 1791 public void ClearArgtype() { |
| 1792 argtypeCase_ = ArgtypeOneofCase.None; |
| 1793 argtype_ = null; |
| 1794 } |
| 1795 |
| 1796 public override bool Equals(object other) { |
| 1797 return Equals(other as ClientArgs); |
| 1798 } |
| 1799 |
| 1800 public bool Equals(ClientArgs other) { |
| 1801 if (ReferenceEquals(other, null)) { |
| 1802 return false; |
| 1803 } |
| 1804 if (ReferenceEquals(other, this)) { |
| 1805 return true; |
| 1806 } |
| 1807 if (!object.Equals(Setup, other.Setup)) return false; |
| 1808 if (!object.Equals(Mark, other.Mark)) return false; |
| 1809 if (ArgtypeCase != other.ArgtypeCase) return false; |
| 1810 return true; |
| 1811 } |
| 1812 |
| 1813 public override int GetHashCode() { |
| 1814 int hash = 1; |
| 1815 if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode(); |
| 1816 if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode(); |
| 1817 hash ^= (int) argtypeCase_; |
| 1818 return hash; |
| 1819 } |
| 1820 |
| 1821 public override string ToString() { |
| 1822 return pb::JsonFormatter.ToDiagnosticString(this); |
| 1823 } |
| 1824 |
| 1825 public void WriteTo(pb::CodedOutputStream output) { |
| 1826 if (argtypeCase_ == ArgtypeOneofCase.Setup) { |
| 1827 output.WriteRawTag(10); |
| 1828 output.WriteMessage(Setup); |
| 1829 } |
| 1830 if (argtypeCase_ == ArgtypeOneofCase.Mark) { |
| 1831 output.WriteRawTag(18); |
| 1832 output.WriteMessage(Mark); |
| 1833 } |
| 1834 } |
| 1835 |
| 1836 public int CalculateSize() { |
| 1837 int size = 0; |
| 1838 if (argtypeCase_ == ArgtypeOneofCase.Setup) { |
| 1839 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Setup); |
| 1840 } |
| 1841 if (argtypeCase_ == ArgtypeOneofCase.Mark) { |
| 1842 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mark); |
| 1843 } |
| 1844 return size; |
| 1845 } |
| 1846 |
| 1847 public void MergeFrom(ClientArgs other) { |
| 1848 if (other == null) { |
| 1849 return; |
| 1850 } |
| 1851 switch (other.ArgtypeCase) { |
| 1852 case ArgtypeOneofCase.Setup: |
| 1853 Setup = other.Setup; |
| 1854 break; |
| 1855 case ArgtypeOneofCase.Mark: |
| 1856 Mark = other.Mark; |
| 1857 break; |
| 1858 } |
| 1859 |
| 1860 } |
| 1861 |
| 1862 public void MergeFrom(pb::CodedInputStream input) { |
| 1863 uint tag; |
| 1864 while ((tag = input.ReadTag()) != 0) { |
| 1865 switch(tag) { |
| 1866 default: |
| 1867 input.SkipLastField(); |
| 1868 break; |
| 1869 case 10: { |
| 1870 global::Grpc.Testing.ClientConfig subBuilder = new global::Grpc.Test
ing.ClientConfig(); |
| 1871 if (argtypeCase_ == ArgtypeOneofCase.Setup) { |
| 1872 subBuilder.MergeFrom(Setup); |
| 1873 } |
| 1874 input.ReadMessage(subBuilder); |
| 1875 Setup = subBuilder; |
| 1876 break; |
| 1877 } |
| 1878 case 18: { |
| 1879 global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark
(); |
| 1880 if (argtypeCase_ == ArgtypeOneofCase.Mark) { |
| 1881 subBuilder.MergeFrom(Mark); |
| 1882 } |
| 1883 input.ReadMessage(subBuilder); |
| 1884 Mark = subBuilder; |
| 1885 break; |
| 1886 } |
| 1887 } |
| 1888 } |
| 1889 } |
| 1890 |
| 1891 } |
| 1892 |
| 1893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 1894 public sealed partial class ServerConfig : pb::IMessage<ServerConfig> { |
| 1895 private static readonly pb::MessageParser<ServerConfig> _parser = new pb::Me
ssageParser<ServerConfig>(() => new ServerConfig()); |
| 1896 public static pb::MessageParser<ServerConfig> Parser { get { return _parser;
} } |
| 1897 |
| 1898 public static pbr::MessageDescriptor Descriptor { |
| 1899 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[11]; } |
| 1900 } |
| 1901 |
| 1902 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1903 get { return Descriptor; } |
| 1904 } |
| 1905 |
| 1906 public ServerConfig() { |
| 1907 OnConstruction(); |
| 1908 } |
| 1909 |
| 1910 partial void OnConstruction(); |
| 1911 |
| 1912 public ServerConfig(ServerConfig other) : this() { |
| 1913 serverType_ = other.serverType_; |
| 1914 SecurityParams = other.securityParams_ != null ? other.SecurityParams.Clon
e() : null; |
| 1915 port_ = other.port_; |
| 1916 asyncServerThreads_ = other.asyncServerThreads_; |
| 1917 coreLimit_ = other.coreLimit_; |
| 1918 PayloadConfig = other.payloadConfig_ != null ? other.PayloadConfig.Clone()
: null; |
| 1919 coreList_ = other.coreList_.Clone(); |
| 1920 } |
| 1921 |
| 1922 public ServerConfig Clone() { |
| 1923 return new ServerConfig(this); |
| 1924 } |
| 1925 |
| 1926 /// <summary>Field number for the "server_type" field.</summary> |
| 1927 public const int ServerTypeFieldNumber = 1; |
| 1928 private global::Grpc.Testing.ServerType serverType_ = global::Grpc.Testing.S
erverType.SYNC_SERVER; |
| 1929 public global::Grpc.Testing.ServerType ServerType { |
| 1930 get { return serverType_; } |
| 1931 set { |
| 1932 serverType_ = value; |
| 1933 } |
| 1934 } |
| 1935 |
| 1936 /// <summary>Field number for the "security_params" field.</summary> |
| 1937 public const int SecurityParamsFieldNumber = 2; |
| 1938 private global::Grpc.Testing.SecurityParams securityParams_; |
| 1939 public global::Grpc.Testing.SecurityParams SecurityParams { |
| 1940 get { return securityParams_; } |
| 1941 set { |
| 1942 securityParams_ = value; |
| 1943 } |
| 1944 } |
| 1945 |
| 1946 /// <summary>Field number for the "port" field.</summary> |
| 1947 public const int PortFieldNumber = 4; |
| 1948 private int port_; |
| 1949 /// <summary> |
| 1950 /// Port on which to listen. Zero means pick unused port. |
| 1951 /// </summary> |
| 1952 public int Port { |
| 1953 get { return port_; } |
| 1954 set { |
| 1955 port_ = value; |
| 1956 } |
| 1957 } |
| 1958 |
| 1959 /// <summary>Field number for the "async_server_threads" field.</summary> |
| 1960 public const int AsyncServerThreadsFieldNumber = 7; |
| 1961 private int asyncServerThreads_; |
| 1962 /// <summary> |
| 1963 /// Only for async server. Number of threads used to serve the requests. |
| 1964 /// </summary> |
| 1965 public int AsyncServerThreads { |
| 1966 get { return asyncServerThreads_; } |
| 1967 set { |
| 1968 asyncServerThreads_ = value; |
| 1969 } |
| 1970 } |
| 1971 |
| 1972 /// <summary>Field number for the "core_limit" field.</summary> |
| 1973 public const int CoreLimitFieldNumber = 8; |
| 1974 private int coreLimit_; |
| 1975 /// <summary> |
| 1976 /// Specify the number of cores to limit server to, if desired |
| 1977 /// </summary> |
| 1978 public int CoreLimit { |
| 1979 get { return coreLimit_; } |
| 1980 set { |
| 1981 coreLimit_ = value; |
| 1982 } |
| 1983 } |
| 1984 |
| 1985 /// <summary>Field number for the "payload_config" field.</summary> |
| 1986 public const int PayloadConfigFieldNumber = 9; |
| 1987 private global::Grpc.Testing.PayloadConfig payloadConfig_; |
| 1988 /// <summary> |
| 1989 /// payload config, used in generic server |
| 1990 /// </summary> |
| 1991 public global::Grpc.Testing.PayloadConfig PayloadConfig { |
| 1992 get { return payloadConfig_; } |
| 1993 set { |
| 1994 payloadConfig_ = value; |
| 1995 } |
| 1996 } |
| 1997 |
| 1998 /// <summary>Field number for the "core_list" field.</summary> |
| 1999 public const int CoreListFieldNumber = 10; |
| 2000 private static readonly pb::FieldCodec<int> _repeated_coreList_codec |
| 2001 = pb::FieldCodec.ForInt32(82); |
| 2002 private readonly pbc::RepeatedField<int> coreList_ = new pbc::RepeatedField<
int>(); |
| 2003 /// <summary> |
| 2004 /// Specify the cores we should run the server on, if desired |
| 2005 /// </summary> |
| 2006 public pbc::RepeatedField<int> CoreList { |
| 2007 get { return coreList_; } |
| 2008 } |
| 2009 |
| 2010 public override bool Equals(object other) { |
| 2011 return Equals(other as ServerConfig); |
| 2012 } |
| 2013 |
| 2014 public bool Equals(ServerConfig other) { |
| 2015 if (ReferenceEquals(other, null)) { |
| 2016 return false; |
| 2017 } |
| 2018 if (ReferenceEquals(other, this)) { |
| 2019 return true; |
| 2020 } |
| 2021 if (ServerType != other.ServerType) return false; |
| 2022 if (!object.Equals(SecurityParams, other.SecurityParams)) return false; |
| 2023 if (Port != other.Port) return false; |
| 2024 if (AsyncServerThreads != other.AsyncServerThreads) return false; |
| 2025 if (CoreLimit != other.CoreLimit) return false; |
| 2026 if (!object.Equals(PayloadConfig, other.PayloadConfig)) return false; |
| 2027 if(!coreList_.Equals(other.coreList_)) return false; |
| 2028 return true; |
| 2029 } |
| 2030 |
| 2031 public override int GetHashCode() { |
| 2032 int hash = 1; |
| 2033 if (ServerType != global::Grpc.Testing.ServerType.SYNC_SERVER) hash ^= Ser
verType.GetHashCode(); |
| 2034 if (securityParams_ != null) hash ^= SecurityParams.GetHashCode(); |
| 2035 if (Port != 0) hash ^= Port.GetHashCode(); |
| 2036 if (AsyncServerThreads != 0) hash ^= AsyncServerThreads.GetHashCode(); |
| 2037 if (CoreLimit != 0) hash ^= CoreLimit.GetHashCode(); |
| 2038 if (payloadConfig_ != null) hash ^= PayloadConfig.GetHashCode(); |
| 2039 hash ^= coreList_.GetHashCode(); |
| 2040 return hash; |
| 2041 } |
| 2042 |
| 2043 public override string ToString() { |
| 2044 return pb::JsonFormatter.ToDiagnosticString(this); |
| 2045 } |
| 2046 |
| 2047 public void WriteTo(pb::CodedOutputStream output) { |
| 2048 if (ServerType != global::Grpc.Testing.ServerType.SYNC_SERVER) { |
| 2049 output.WriteRawTag(8); |
| 2050 output.WriteEnum((int) ServerType); |
| 2051 } |
| 2052 if (securityParams_ != null) { |
| 2053 output.WriteRawTag(18); |
| 2054 output.WriteMessage(SecurityParams); |
| 2055 } |
| 2056 if (Port != 0) { |
| 2057 output.WriteRawTag(32); |
| 2058 output.WriteInt32(Port); |
| 2059 } |
| 2060 if (AsyncServerThreads != 0) { |
| 2061 output.WriteRawTag(56); |
| 2062 output.WriteInt32(AsyncServerThreads); |
| 2063 } |
| 2064 if (CoreLimit != 0) { |
| 2065 output.WriteRawTag(64); |
| 2066 output.WriteInt32(CoreLimit); |
| 2067 } |
| 2068 if (payloadConfig_ != null) { |
| 2069 output.WriteRawTag(74); |
| 2070 output.WriteMessage(PayloadConfig); |
| 2071 } |
| 2072 coreList_.WriteTo(output, _repeated_coreList_codec); |
| 2073 } |
| 2074 |
| 2075 public int CalculateSize() { |
| 2076 int size = 0; |
| 2077 if (ServerType != global::Grpc.Testing.ServerType.SYNC_SERVER) { |
| 2078 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ServerType); |
| 2079 } |
| 2080 if (securityParams_ != null) { |
| 2081 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityParams); |
| 2082 } |
| 2083 if (Port != 0) { |
| 2084 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); |
| 2085 } |
| 2086 if (AsyncServerThreads != 0) { |
| 2087 size += 1 + pb::CodedOutputStream.ComputeInt32Size(AsyncServerThreads); |
| 2088 } |
| 2089 if (CoreLimit != 0) { |
| 2090 size += 1 + pb::CodedOutputStream.ComputeInt32Size(CoreLimit); |
| 2091 } |
| 2092 if (payloadConfig_ != null) { |
| 2093 size += 1 + pb::CodedOutputStream.ComputeMessageSize(PayloadConfig); |
| 2094 } |
| 2095 size += coreList_.CalculateSize(_repeated_coreList_codec); |
| 2096 return size; |
| 2097 } |
| 2098 |
| 2099 public void MergeFrom(ServerConfig other) { |
| 2100 if (other == null) { |
| 2101 return; |
| 2102 } |
| 2103 if (other.ServerType != global::Grpc.Testing.ServerType.SYNC_SERVER) { |
| 2104 ServerType = other.ServerType; |
| 2105 } |
| 2106 if (other.securityParams_ != null) { |
| 2107 if (securityParams_ == null) { |
| 2108 securityParams_ = new global::Grpc.Testing.SecurityParams(); |
| 2109 } |
| 2110 SecurityParams.MergeFrom(other.SecurityParams); |
| 2111 } |
| 2112 if (other.Port != 0) { |
| 2113 Port = other.Port; |
| 2114 } |
| 2115 if (other.AsyncServerThreads != 0) { |
| 2116 AsyncServerThreads = other.AsyncServerThreads; |
| 2117 } |
| 2118 if (other.CoreLimit != 0) { |
| 2119 CoreLimit = other.CoreLimit; |
| 2120 } |
| 2121 if (other.payloadConfig_ != null) { |
| 2122 if (payloadConfig_ == null) { |
| 2123 payloadConfig_ = new global::Grpc.Testing.PayloadConfig(); |
| 2124 } |
| 2125 PayloadConfig.MergeFrom(other.PayloadConfig); |
| 2126 } |
| 2127 coreList_.Add(other.coreList_); |
| 2128 } |
| 2129 |
| 2130 public void MergeFrom(pb::CodedInputStream input) { |
| 2131 uint tag; |
| 2132 while ((tag = input.ReadTag()) != 0) { |
| 2133 switch(tag) { |
| 2134 default: |
| 2135 input.SkipLastField(); |
| 2136 break; |
| 2137 case 8: { |
| 2138 serverType_ = (global::Grpc.Testing.ServerType) input.ReadEnum(); |
| 2139 break; |
| 2140 } |
| 2141 case 18: { |
| 2142 if (securityParams_ == null) { |
| 2143 securityParams_ = new global::Grpc.Testing.SecurityParams(); |
| 2144 } |
| 2145 input.ReadMessage(securityParams_); |
| 2146 break; |
| 2147 } |
| 2148 case 32: { |
| 2149 Port = input.ReadInt32(); |
| 2150 break; |
| 2151 } |
| 2152 case 56: { |
| 2153 AsyncServerThreads = input.ReadInt32(); |
| 2154 break; |
| 2155 } |
| 2156 case 64: { |
| 2157 CoreLimit = input.ReadInt32(); |
| 2158 break; |
| 2159 } |
| 2160 case 74: { |
| 2161 if (payloadConfig_ == null) { |
| 2162 payloadConfig_ = new global::Grpc.Testing.PayloadConfig(); |
| 2163 } |
| 2164 input.ReadMessage(payloadConfig_); |
| 2165 break; |
| 2166 } |
| 2167 case 82: |
| 2168 case 80: { |
| 2169 coreList_.AddEntriesFrom(input, _repeated_coreList_codec); |
| 2170 break; |
| 2171 } |
| 2172 } |
| 2173 } |
| 2174 } |
| 2175 |
| 2176 } |
| 2177 |
| 2178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 2179 public sealed partial class ServerArgs : pb::IMessage<ServerArgs> { |
| 2180 private static readonly pb::MessageParser<ServerArgs> _parser = new pb::Mess
ageParser<ServerArgs>(() => new ServerArgs()); |
| 2181 public static pb::MessageParser<ServerArgs> Parser { get { return _parser; }
} |
| 2182 |
| 2183 public static pbr::MessageDescriptor Descriptor { |
| 2184 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[12]; } |
| 2185 } |
| 2186 |
| 2187 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 2188 get { return Descriptor; } |
| 2189 } |
| 2190 |
| 2191 public ServerArgs() { |
| 2192 OnConstruction(); |
| 2193 } |
| 2194 |
| 2195 partial void OnConstruction(); |
| 2196 |
| 2197 public ServerArgs(ServerArgs other) : this() { |
| 2198 switch (other.ArgtypeCase) { |
| 2199 case ArgtypeOneofCase.Setup: |
| 2200 Setup = other.Setup.Clone(); |
| 2201 break; |
| 2202 case ArgtypeOneofCase.Mark: |
| 2203 Mark = other.Mark.Clone(); |
| 2204 break; |
| 2205 } |
| 2206 |
| 2207 } |
| 2208 |
| 2209 public ServerArgs Clone() { |
| 2210 return new ServerArgs(this); |
| 2211 } |
| 2212 |
| 2213 /// <summary>Field number for the "setup" field.</summary> |
| 2214 public const int SetupFieldNumber = 1; |
| 2215 public global::Grpc.Testing.ServerConfig Setup { |
| 2216 get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testin
g.ServerConfig) argtype_ : null; } |
| 2217 set { |
| 2218 argtype_ = value; |
| 2219 argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.
Setup; |
| 2220 } |
| 2221 } |
| 2222 |
| 2223 /// <summary>Field number for the "mark" field.</summary> |
| 2224 public const int MarkFieldNumber = 2; |
| 2225 public global::Grpc.Testing.Mark Mark { |
| 2226 get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing
.Mark) argtype_ : null; } |
| 2227 set { |
| 2228 argtype_ = value; |
| 2229 argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.
Mark; |
| 2230 } |
| 2231 } |
| 2232 |
| 2233 private object argtype_; |
| 2234 /// <summary>Enum of possible cases for the "argtype" oneof.</summary> |
| 2235 public enum ArgtypeOneofCase { |
| 2236 None = 0, |
| 2237 Setup = 1, |
| 2238 Mark = 2, |
| 2239 } |
| 2240 private ArgtypeOneofCase argtypeCase_ = ArgtypeOneofCase.None; |
| 2241 public ArgtypeOneofCase ArgtypeCase { |
| 2242 get { return argtypeCase_; } |
| 2243 } |
| 2244 |
| 2245 public void ClearArgtype() { |
| 2246 argtypeCase_ = ArgtypeOneofCase.None; |
| 2247 argtype_ = null; |
| 2248 } |
| 2249 |
| 2250 public override bool Equals(object other) { |
| 2251 return Equals(other as ServerArgs); |
| 2252 } |
| 2253 |
| 2254 public bool Equals(ServerArgs other) { |
| 2255 if (ReferenceEquals(other, null)) { |
| 2256 return false; |
| 2257 } |
| 2258 if (ReferenceEquals(other, this)) { |
| 2259 return true; |
| 2260 } |
| 2261 if (!object.Equals(Setup, other.Setup)) return false; |
| 2262 if (!object.Equals(Mark, other.Mark)) return false; |
| 2263 if (ArgtypeCase != other.ArgtypeCase) return false; |
| 2264 return true; |
| 2265 } |
| 2266 |
| 2267 public override int GetHashCode() { |
| 2268 int hash = 1; |
| 2269 if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode(); |
| 2270 if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode(); |
| 2271 hash ^= (int) argtypeCase_; |
| 2272 return hash; |
| 2273 } |
| 2274 |
| 2275 public override string ToString() { |
| 2276 return pb::JsonFormatter.ToDiagnosticString(this); |
| 2277 } |
| 2278 |
| 2279 public void WriteTo(pb::CodedOutputStream output) { |
| 2280 if (argtypeCase_ == ArgtypeOneofCase.Setup) { |
| 2281 output.WriteRawTag(10); |
| 2282 output.WriteMessage(Setup); |
| 2283 } |
| 2284 if (argtypeCase_ == ArgtypeOneofCase.Mark) { |
| 2285 output.WriteRawTag(18); |
| 2286 output.WriteMessage(Mark); |
| 2287 } |
| 2288 } |
| 2289 |
| 2290 public int CalculateSize() { |
| 2291 int size = 0; |
| 2292 if (argtypeCase_ == ArgtypeOneofCase.Setup) { |
| 2293 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Setup); |
| 2294 } |
| 2295 if (argtypeCase_ == ArgtypeOneofCase.Mark) { |
| 2296 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mark); |
| 2297 } |
| 2298 return size; |
| 2299 } |
| 2300 |
| 2301 public void MergeFrom(ServerArgs other) { |
| 2302 if (other == null) { |
| 2303 return; |
| 2304 } |
| 2305 switch (other.ArgtypeCase) { |
| 2306 case ArgtypeOneofCase.Setup: |
| 2307 Setup = other.Setup; |
| 2308 break; |
| 2309 case ArgtypeOneofCase.Mark: |
| 2310 Mark = other.Mark; |
| 2311 break; |
| 2312 } |
| 2313 |
| 2314 } |
| 2315 |
| 2316 public void MergeFrom(pb::CodedInputStream input) { |
| 2317 uint tag; |
| 2318 while ((tag = input.ReadTag()) != 0) { |
| 2319 switch(tag) { |
| 2320 default: |
| 2321 input.SkipLastField(); |
| 2322 break; |
| 2323 case 10: { |
| 2324 global::Grpc.Testing.ServerConfig subBuilder = new global::Grpc.Test
ing.ServerConfig(); |
| 2325 if (argtypeCase_ == ArgtypeOneofCase.Setup) { |
| 2326 subBuilder.MergeFrom(Setup); |
| 2327 } |
| 2328 input.ReadMessage(subBuilder); |
| 2329 Setup = subBuilder; |
| 2330 break; |
| 2331 } |
| 2332 case 18: { |
| 2333 global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark
(); |
| 2334 if (argtypeCase_ == ArgtypeOneofCase.Mark) { |
| 2335 subBuilder.MergeFrom(Mark); |
| 2336 } |
| 2337 input.ReadMessage(subBuilder); |
| 2338 Mark = subBuilder; |
| 2339 break; |
| 2340 } |
| 2341 } |
| 2342 } |
| 2343 } |
| 2344 |
| 2345 } |
| 2346 |
| 2347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 2348 public sealed partial class ServerStatus : pb::IMessage<ServerStatus> { |
| 2349 private static readonly pb::MessageParser<ServerStatus> _parser = new pb::Me
ssageParser<ServerStatus>(() => new ServerStatus()); |
| 2350 public static pb::MessageParser<ServerStatus> Parser { get { return _parser;
} } |
| 2351 |
| 2352 public static pbr::MessageDescriptor Descriptor { |
| 2353 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[13]; } |
| 2354 } |
| 2355 |
| 2356 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 2357 get { return Descriptor; } |
| 2358 } |
| 2359 |
| 2360 public ServerStatus() { |
| 2361 OnConstruction(); |
| 2362 } |
| 2363 |
| 2364 partial void OnConstruction(); |
| 2365 |
| 2366 public ServerStatus(ServerStatus other) : this() { |
| 2367 Stats = other.stats_ != null ? other.Stats.Clone() : null; |
| 2368 port_ = other.port_; |
| 2369 cores_ = other.cores_; |
| 2370 } |
| 2371 |
| 2372 public ServerStatus Clone() { |
| 2373 return new ServerStatus(this); |
| 2374 } |
| 2375 |
| 2376 /// <summary>Field number for the "stats" field.</summary> |
| 2377 public const int StatsFieldNumber = 1; |
| 2378 private global::Grpc.Testing.ServerStats stats_; |
| 2379 public global::Grpc.Testing.ServerStats Stats { |
| 2380 get { return stats_; } |
| 2381 set { |
| 2382 stats_ = value; |
| 2383 } |
| 2384 } |
| 2385 |
| 2386 /// <summary>Field number for the "port" field.</summary> |
| 2387 public const int PortFieldNumber = 2; |
| 2388 private int port_; |
| 2389 /// <summary> |
| 2390 /// the port bound by the server |
| 2391 /// </summary> |
| 2392 public int Port { |
| 2393 get { return port_; } |
| 2394 set { |
| 2395 port_ = value; |
| 2396 } |
| 2397 } |
| 2398 |
| 2399 /// <summary>Field number for the "cores" field.</summary> |
| 2400 public const int CoresFieldNumber = 3; |
| 2401 private int cores_; |
| 2402 /// <summary> |
| 2403 /// Number of cores available to the server |
| 2404 /// </summary> |
| 2405 public int Cores { |
| 2406 get { return cores_; } |
| 2407 set { |
| 2408 cores_ = value; |
| 2409 } |
| 2410 } |
| 2411 |
| 2412 public override bool Equals(object other) { |
| 2413 return Equals(other as ServerStatus); |
| 2414 } |
| 2415 |
| 2416 public bool Equals(ServerStatus other) { |
| 2417 if (ReferenceEquals(other, null)) { |
| 2418 return false; |
| 2419 } |
| 2420 if (ReferenceEquals(other, this)) { |
| 2421 return true; |
| 2422 } |
| 2423 if (!object.Equals(Stats, other.Stats)) return false; |
| 2424 if (Port != other.Port) return false; |
| 2425 if (Cores != other.Cores) return false; |
| 2426 return true; |
| 2427 } |
| 2428 |
| 2429 public override int GetHashCode() { |
| 2430 int hash = 1; |
| 2431 if (stats_ != null) hash ^= Stats.GetHashCode(); |
| 2432 if (Port != 0) hash ^= Port.GetHashCode(); |
| 2433 if (Cores != 0) hash ^= Cores.GetHashCode(); |
| 2434 return hash; |
| 2435 } |
| 2436 |
| 2437 public override string ToString() { |
| 2438 return pb::JsonFormatter.ToDiagnosticString(this); |
| 2439 } |
| 2440 |
| 2441 public void WriteTo(pb::CodedOutputStream output) { |
| 2442 if (stats_ != null) { |
| 2443 output.WriteRawTag(10); |
| 2444 output.WriteMessage(Stats); |
| 2445 } |
| 2446 if (Port != 0) { |
| 2447 output.WriteRawTag(16); |
| 2448 output.WriteInt32(Port); |
| 2449 } |
| 2450 if (Cores != 0) { |
| 2451 output.WriteRawTag(24); |
| 2452 output.WriteInt32(Cores); |
| 2453 } |
| 2454 } |
| 2455 |
| 2456 public int CalculateSize() { |
| 2457 int size = 0; |
| 2458 if (stats_ != null) { |
| 2459 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stats); |
| 2460 } |
| 2461 if (Port != 0) { |
| 2462 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); |
| 2463 } |
| 2464 if (Cores != 0) { |
| 2465 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cores); |
| 2466 } |
| 2467 return size; |
| 2468 } |
| 2469 |
| 2470 public void MergeFrom(ServerStatus other) { |
| 2471 if (other == null) { |
| 2472 return; |
| 2473 } |
| 2474 if (other.stats_ != null) { |
| 2475 if (stats_ == null) { |
| 2476 stats_ = new global::Grpc.Testing.ServerStats(); |
| 2477 } |
| 2478 Stats.MergeFrom(other.Stats); |
| 2479 } |
| 2480 if (other.Port != 0) { |
| 2481 Port = other.Port; |
| 2482 } |
| 2483 if (other.Cores != 0) { |
| 2484 Cores = other.Cores; |
| 2485 } |
| 2486 } |
| 2487 |
| 2488 public void MergeFrom(pb::CodedInputStream input) { |
| 2489 uint tag; |
| 2490 while ((tag = input.ReadTag()) != 0) { |
| 2491 switch(tag) { |
| 2492 default: |
| 2493 input.SkipLastField(); |
| 2494 break; |
| 2495 case 10: { |
| 2496 if (stats_ == null) { |
| 2497 stats_ = new global::Grpc.Testing.ServerStats(); |
| 2498 } |
| 2499 input.ReadMessage(stats_); |
| 2500 break; |
| 2501 } |
| 2502 case 16: { |
| 2503 Port = input.ReadInt32(); |
| 2504 break; |
| 2505 } |
| 2506 case 24: { |
| 2507 Cores = input.ReadInt32(); |
| 2508 break; |
| 2509 } |
| 2510 } |
| 2511 } |
| 2512 } |
| 2513 |
| 2514 } |
| 2515 |
| 2516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 2517 public sealed partial class CoreRequest : pb::IMessage<CoreRequest> { |
| 2518 private static readonly pb::MessageParser<CoreRequest> _parser = new pb::Mes
sageParser<CoreRequest>(() => new CoreRequest()); |
| 2519 public static pb::MessageParser<CoreRequest> Parser { get { return _parser;
} } |
| 2520 |
| 2521 public static pbr::MessageDescriptor Descriptor { |
| 2522 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[14]; } |
| 2523 } |
| 2524 |
| 2525 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 2526 get { return Descriptor; } |
| 2527 } |
| 2528 |
| 2529 public CoreRequest() { |
| 2530 OnConstruction(); |
| 2531 } |
| 2532 |
| 2533 partial void OnConstruction(); |
| 2534 |
| 2535 public CoreRequest(CoreRequest other) : this() { |
| 2536 } |
| 2537 |
| 2538 public CoreRequest Clone() { |
| 2539 return new CoreRequest(this); |
| 2540 } |
| 2541 |
| 2542 public override bool Equals(object other) { |
| 2543 return Equals(other as CoreRequest); |
| 2544 } |
| 2545 |
| 2546 public bool Equals(CoreRequest other) { |
| 2547 if (ReferenceEquals(other, null)) { |
| 2548 return false; |
| 2549 } |
| 2550 if (ReferenceEquals(other, this)) { |
| 2551 return true; |
| 2552 } |
| 2553 return true; |
| 2554 } |
| 2555 |
| 2556 public override int GetHashCode() { |
| 2557 int hash = 1; |
| 2558 return hash; |
| 2559 } |
| 2560 |
| 2561 public override string ToString() { |
| 2562 return pb::JsonFormatter.ToDiagnosticString(this); |
| 2563 } |
| 2564 |
| 2565 public void WriteTo(pb::CodedOutputStream output) { |
| 2566 } |
| 2567 |
| 2568 public int CalculateSize() { |
| 2569 int size = 0; |
| 2570 return size; |
| 2571 } |
| 2572 |
| 2573 public void MergeFrom(CoreRequest other) { |
| 2574 if (other == null) { |
| 2575 return; |
| 2576 } |
| 2577 } |
| 2578 |
| 2579 public void MergeFrom(pb::CodedInputStream input) { |
| 2580 uint tag; |
| 2581 while ((tag = input.ReadTag()) != 0) { |
| 2582 switch(tag) { |
| 2583 default: |
| 2584 input.SkipLastField(); |
| 2585 break; |
| 2586 } |
| 2587 } |
| 2588 } |
| 2589 |
| 2590 } |
| 2591 |
| 2592 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 2593 public sealed partial class CoreResponse : pb::IMessage<CoreResponse> { |
| 2594 private static readonly pb::MessageParser<CoreResponse> _parser = new pb::Me
ssageParser<CoreResponse>(() => new CoreResponse()); |
| 2595 public static pb::MessageParser<CoreResponse> Parser { get { return _parser;
} } |
| 2596 |
| 2597 public static pbr::MessageDescriptor Descriptor { |
| 2598 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[15]; } |
| 2599 } |
| 2600 |
| 2601 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 2602 get { return Descriptor; } |
| 2603 } |
| 2604 |
| 2605 public CoreResponse() { |
| 2606 OnConstruction(); |
| 2607 } |
| 2608 |
| 2609 partial void OnConstruction(); |
| 2610 |
| 2611 public CoreResponse(CoreResponse other) : this() { |
| 2612 cores_ = other.cores_; |
| 2613 } |
| 2614 |
| 2615 public CoreResponse Clone() { |
| 2616 return new CoreResponse(this); |
| 2617 } |
| 2618 |
| 2619 /// <summary>Field number for the "cores" field.</summary> |
| 2620 public const int CoresFieldNumber = 1; |
| 2621 private int cores_; |
| 2622 /// <summary> |
| 2623 /// Number of cores available on the server |
| 2624 /// </summary> |
| 2625 public int Cores { |
| 2626 get { return cores_; } |
| 2627 set { |
| 2628 cores_ = value; |
| 2629 } |
| 2630 } |
| 2631 |
| 2632 public override bool Equals(object other) { |
| 2633 return Equals(other as CoreResponse); |
| 2634 } |
| 2635 |
| 2636 public bool Equals(CoreResponse other) { |
| 2637 if (ReferenceEquals(other, null)) { |
| 2638 return false; |
| 2639 } |
| 2640 if (ReferenceEquals(other, this)) { |
| 2641 return true; |
| 2642 } |
| 2643 if (Cores != other.Cores) return false; |
| 2644 return true; |
| 2645 } |
| 2646 |
| 2647 public override int GetHashCode() { |
| 2648 int hash = 1; |
| 2649 if (Cores != 0) hash ^= Cores.GetHashCode(); |
| 2650 return hash; |
| 2651 } |
| 2652 |
| 2653 public override string ToString() { |
| 2654 return pb::JsonFormatter.ToDiagnosticString(this); |
| 2655 } |
| 2656 |
| 2657 public void WriteTo(pb::CodedOutputStream output) { |
| 2658 if (Cores != 0) { |
| 2659 output.WriteRawTag(8); |
| 2660 output.WriteInt32(Cores); |
| 2661 } |
| 2662 } |
| 2663 |
| 2664 public int CalculateSize() { |
| 2665 int size = 0; |
| 2666 if (Cores != 0) { |
| 2667 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cores); |
| 2668 } |
| 2669 return size; |
| 2670 } |
| 2671 |
| 2672 public void MergeFrom(CoreResponse other) { |
| 2673 if (other == null) { |
| 2674 return; |
| 2675 } |
| 2676 if (other.Cores != 0) { |
| 2677 Cores = other.Cores; |
| 2678 } |
| 2679 } |
| 2680 |
| 2681 public void MergeFrom(pb::CodedInputStream input) { |
| 2682 uint tag; |
| 2683 while ((tag = input.ReadTag()) != 0) { |
| 2684 switch(tag) { |
| 2685 default: |
| 2686 input.SkipLastField(); |
| 2687 break; |
| 2688 case 8: { |
| 2689 Cores = input.ReadInt32(); |
| 2690 break; |
| 2691 } |
| 2692 } |
| 2693 } |
| 2694 } |
| 2695 |
| 2696 } |
| 2697 |
| 2698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 2699 public sealed partial class Void : pb::IMessage<Void> { |
| 2700 private static readonly pb::MessageParser<Void> _parser = new pb::MessagePar
ser<Void>(() => new Void()); |
| 2701 public static pb::MessageParser<Void> Parser { get { return _parser; } } |
| 2702 |
| 2703 public static pbr::MessageDescriptor Descriptor { |
| 2704 get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageType
s[16]; } |
| 2705 } |
| 2706 |
| 2707 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 2708 get { return Descriptor; } |
| 2709 } |
| 2710 |
| 2711 public Void() { |
| 2712 OnConstruction(); |
| 2713 } |
| 2714 |
| 2715 partial void OnConstruction(); |
| 2716 |
| 2717 public Void(Void other) : this() { |
| 2718 } |
| 2719 |
| 2720 public Void Clone() { |
| 2721 return new Void(this); |
| 2722 } |
| 2723 |
| 2724 public override bool Equals(object other) { |
| 2725 return Equals(other as Void); |
| 2726 } |
| 2727 |
| 2728 public bool Equals(Void other) { |
| 2729 if (ReferenceEquals(other, null)) { |
| 2730 return false; |
| 2731 } |
| 2732 if (ReferenceEquals(other, this)) { |
| 2733 return true; |
| 2734 } |
| 2735 return true; |
| 2736 } |
| 2737 |
| 2738 public override int GetHashCode() { |
| 2739 int hash = 1; |
| 2740 return hash; |
| 2741 } |
| 2742 |
| 2743 public override string ToString() { |
| 2744 return pb::JsonFormatter.ToDiagnosticString(this); |
| 2745 } |
| 2746 |
| 2747 public void WriteTo(pb::CodedOutputStream output) { |
| 2748 } |
| 2749 |
| 2750 public int CalculateSize() { |
| 2751 int size = 0; |
| 2752 return size; |
| 2753 } |
| 2754 |
| 2755 public void MergeFrom(Void other) { |
| 2756 if (other == null) { |
| 2757 return; |
| 2758 } |
| 2759 } |
| 2760 |
| 2761 public void MergeFrom(pb::CodedInputStream input) { |
| 2762 uint tag; |
| 2763 while ((tag = input.ReadTag()) != 0) { |
| 2764 switch(tag) { |
| 2765 default: |
| 2766 input.SkipLastField(); |
| 2767 break; |
| 2768 } |
| 2769 } |
| 2770 } |
| 2771 |
| 2772 } |
| 2773 |
| 2774 #endregion |
| 2775 |
| 2776 } |
| 2777 |
| 2778 #endregion Designer generated code |
OLD | NEW |