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