OLD | NEW |
(Empty) | |
| 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 // source: math.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 Math { |
| 11 |
| 12 /// <summary>Holder for reflection information generated from math.proto</summ
ary> |
| 13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 14 public static partial class MathReflection { |
| 15 |
| 16 #region Descriptor |
| 17 /// <summary>File descriptor for math.proto</summary> |
| 18 public static pbr::FileDescriptor Descriptor { |
| 19 get { return descriptor; } |
| 20 } |
| 21 private static pbr::FileDescriptor descriptor; |
| 22 |
| 23 static MathReflection() { |
| 24 byte[] descriptorData = global::System.Convert.FromBase64String( |
| 25 string.Concat( |
| 26 "CgptYXRoLnByb3RvEgRtYXRoIiwKB0RpdkFyZ3MSEAoIZGl2aWRlbmQYASAB", |
| 27 "KAMSDwoHZGl2aXNvchgCIAEoAyIvCghEaXZSZXBseRIQCghxdW90aWVudBgB", |
| 28 "IAEoAxIRCglyZW1haW5kZXIYAiABKAMiGAoHRmliQXJncxINCgVsaW1pdBgB", |
| 29 "IAEoAyISCgNOdW0SCwoDbnVtGAEgASgDIhkKCEZpYlJlcGx5Eg0KBWNvdW50", |
| 30 "GAEgASgDMqQBCgRNYXRoEiYKA0RpdhINLm1hdGguRGl2QXJncxoOLm1hdGgu", |
| 31 "RGl2UmVwbHkiABIuCgdEaXZNYW55Eg0ubWF0aC5EaXZBcmdzGg4ubWF0aC5E", |
| 32 "aXZSZXBseSIAKAEwARIjCgNGaWISDS5tYXRoLkZpYkFyZ3MaCS5tYXRoLk51", |
| 33 "bSIAMAESHwoDU3VtEgkubWF0aC5OdW0aCS5tYXRoLk51bSIAKAFiBnByb3Rv", |
| 34 "Mw==")); |
| 35 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| 36 new pbr::FileDescriptor[] { }, |
| 37 new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { |
| 38 new pbr::GeneratedCodeInfo(typeof(global::Math.DivArgs), global::Mat
h.DivArgs.Parser, new[]{ "Dividend", "Divisor" }, null, null, null), |
| 39 new pbr::GeneratedCodeInfo(typeof(global::Math.DivReply), global::Ma
th.DivReply.Parser, new[]{ "Quotient", "Remainder" }, null, null, null), |
| 40 new pbr::GeneratedCodeInfo(typeof(global::Math.FibArgs), global::Mat
h.FibArgs.Parser, new[]{ "Limit" }, null, null, null), |
| 41 new pbr::GeneratedCodeInfo(typeof(global::Math.Num), global::Math.Nu
m.Parser, new[]{ "Num_" }, null, null, null), |
| 42 new pbr::GeneratedCodeInfo(typeof(global::Math.FibReply), global::Ma
th.FibReply.Parser, new[]{ "Count" }, null, null, null) |
| 43 })); |
| 44 } |
| 45 #endregion |
| 46 |
| 47 } |
| 48 #region Messages |
| 49 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 50 public sealed partial class DivArgs : pb::IMessage<DivArgs> { |
| 51 private static readonly pb::MessageParser<DivArgs> _parser = new pb::Message
Parser<DivArgs>(() => new DivArgs()); |
| 52 public static pb::MessageParser<DivArgs> Parser { get { return _parser; } } |
| 53 |
| 54 public static pbr::MessageDescriptor Descriptor { |
| 55 get { return global::Math.MathReflection.Descriptor.MessageTypes[0]; } |
| 56 } |
| 57 |
| 58 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 59 get { return Descriptor; } |
| 60 } |
| 61 |
| 62 public DivArgs() { |
| 63 OnConstruction(); |
| 64 } |
| 65 |
| 66 partial void OnConstruction(); |
| 67 |
| 68 public DivArgs(DivArgs other) : this() { |
| 69 dividend_ = other.dividend_; |
| 70 divisor_ = other.divisor_; |
| 71 } |
| 72 |
| 73 public DivArgs Clone() { |
| 74 return new DivArgs(this); |
| 75 } |
| 76 |
| 77 /// <summary>Field number for the "dividend" field.</summary> |
| 78 public const int DividendFieldNumber = 1; |
| 79 private long dividend_; |
| 80 public long Dividend { |
| 81 get { return dividend_; } |
| 82 set { |
| 83 dividend_ = value; |
| 84 } |
| 85 } |
| 86 |
| 87 /// <summary>Field number for the "divisor" field.</summary> |
| 88 public const int DivisorFieldNumber = 2; |
| 89 private long divisor_; |
| 90 public long Divisor { |
| 91 get { return divisor_; } |
| 92 set { |
| 93 divisor_ = value; |
| 94 } |
| 95 } |
| 96 |
| 97 public override bool Equals(object other) { |
| 98 return Equals(other as DivArgs); |
| 99 } |
| 100 |
| 101 public bool Equals(DivArgs other) { |
| 102 if (ReferenceEquals(other, null)) { |
| 103 return false; |
| 104 } |
| 105 if (ReferenceEquals(other, this)) { |
| 106 return true; |
| 107 } |
| 108 if (Dividend != other.Dividend) return false; |
| 109 if (Divisor != other.Divisor) return false; |
| 110 return true; |
| 111 } |
| 112 |
| 113 public override int GetHashCode() { |
| 114 int hash = 1; |
| 115 if (Dividend != 0L) hash ^= Dividend.GetHashCode(); |
| 116 if (Divisor != 0L) hash ^= Divisor.GetHashCode(); |
| 117 return hash; |
| 118 } |
| 119 |
| 120 public override string ToString() { |
| 121 return pb::JsonFormatter.ToDiagnosticString(this); |
| 122 } |
| 123 |
| 124 public void WriteTo(pb::CodedOutputStream output) { |
| 125 if (Dividend != 0L) { |
| 126 output.WriteRawTag(8); |
| 127 output.WriteInt64(Dividend); |
| 128 } |
| 129 if (Divisor != 0L) { |
| 130 output.WriteRawTag(16); |
| 131 output.WriteInt64(Divisor); |
| 132 } |
| 133 } |
| 134 |
| 135 public int CalculateSize() { |
| 136 int size = 0; |
| 137 if (Dividend != 0L) { |
| 138 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Dividend); |
| 139 } |
| 140 if (Divisor != 0L) { |
| 141 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Divisor); |
| 142 } |
| 143 return size; |
| 144 } |
| 145 |
| 146 public void MergeFrom(DivArgs other) { |
| 147 if (other == null) { |
| 148 return; |
| 149 } |
| 150 if (other.Dividend != 0L) { |
| 151 Dividend = other.Dividend; |
| 152 } |
| 153 if (other.Divisor != 0L) { |
| 154 Divisor = other.Divisor; |
| 155 } |
| 156 } |
| 157 |
| 158 public void MergeFrom(pb::CodedInputStream input) { |
| 159 uint tag; |
| 160 while ((tag = input.ReadTag()) != 0) { |
| 161 switch(tag) { |
| 162 default: |
| 163 input.SkipLastField(); |
| 164 break; |
| 165 case 8: { |
| 166 Dividend = input.ReadInt64(); |
| 167 break; |
| 168 } |
| 169 case 16: { |
| 170 Divisor = input.ReadInt64(); |
| 171 break; |
| 172 } |
| 173 } |
| 174 } |
| 175 } |
| 176 |
| 177 } |
| 178 |
| 179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 180 public sealed partial class DivReply : pb::IMessage<DivReply> { |
| 181 private static readonly pb::MessageParser<DivReply> _parser = new pb::Messag
eParser<DivReply>(() => new DivReply()); |
| 182 public static pb::MessageParser<DivReply> Parser { get { return _parser; } } |
| 183 |
| 184 public static pbr::MessageDescriptor Descriptor { |
| 185 get { return global::Math.MathReflection.Descriptor.MessageTypes[1]; } |
| 186 } |
| 187 |
| 188 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 189 get { return Descriptor; } |
| 190 } |
| 191 |
| 192 public DivReply() { |
| 193 OnConstruction(); |
| 194 } |
| 195 |
| 196 partial void OnConstruction(); |
| 197 |
| 198 public DivReply(DivReply other) : this() { |
| 199 quotient_ = other.quotient_; |
| 200 remainder_ = other.remainder_; |
| 201 } |
| 202 |
| 203 public DivReply Clone() { |
| 204 return new DivReply(this); |
| 205 } |
| 206 |
| 207 /// <summary>Field number for the "quotient" field.</summary> |
| 208 public const int QuotientFieldNumber = 1; |
| 209 private long quotient_; |
| 210 public long Quotient { |
| 211 get { return quotient_; } |
| 212 set { |
| 213 quotient_ = value; |
| 214 } |
| 215 } |
| 216 |
| 217 /// <summary>Field number for the "remainder" field.</summary> |
| 218 public const int RemainderFieldNumber = 2; |
| 219 private long remainder_; |
| 220 public long Remainder { |
| 221 get { return remainder_; } |
| 222 set { |
| 223 remainder_ = value; |
| 224 } |
| 225 } |
| 226 |
| 227 public override bool Equals(object other) { |
| 228 return Equals(other as DivReply); |
| 229 } |
| 230 |
| 231 public bool Equals(DivReply other) { |
| 232 if (ReferenceEquals(other, null)) { |
| 233 return false; |
| 234 } |
| 235 if (ReferenceEquals(other, this)) { |
| 236 return true; |
| 237 } |
| 238 if (Quotient != other.Quotient) return false; |
| 239 if (Remainder != other.Remainder) return false; |
| 240 return true; |
| 241 } |
| 242 |
| 243 public override int GetHashCode() { |
| 244 int hash = 1; |
| 245 if (Quotient != 0L) hash ^= Quotient.GetHashCode(); |
| 246 if (Remainder != 0L) hash ^= Remainder.GetHashCode(); |
| 247 return hash; |
| 248 } |
| 249 |
| 250 public override string ToString() { |
| 251 return pb::JsonFormatter.ToDiagnosticString(this); |
| 252 } |
| 253 |
| 254 public void WriteTo(pb::CodedOutputStream output) { |
| 255 if (Quotient != 0L) { |
| 256 output.WriteRawTag(8); |
| 257 output.WriteInt64(Quotient); |
| 258 } |
| 259 if (Remainder != 0L) { |
| 260 output.WriteRawTag(16); |
| 261 output.WriteInt64(Remainder); |
| 262 } |
| 263 } |
| 264 |
| 265 public int CalculateSize() { |
| 266 int size = 0; |
| 267 if (Quotient != 0L) { |
| 268 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Quotient); |
| 269 } |
| 270 if (Remainder != 0L) { |
| 271 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Remainder); |
| 272 } |
| 273 return size; |
| 274 } |
| 275 |
| 276 public void MergeFrom(DivReply other) { |
| 277 if (other == null) { |
| 278 return; |
| 279 } |
| 280 if (other.Quotient != 0L) { |
| 281 Quotient = other.Quotient; |
| 282 } |
| 283 if (other.Remainder != 0L) { |
| 284 Remainder = other.Remainder; |
| 285 } |
| 286 } |
| 287 |
| 288 public void MergeFrom(pb::CodedInputStream input) { |
| 289 uint tag; |
| 290 while ((tag = input.ReadTag()) != 0) { |
| 291 switch(tag) { |
| 292 default: |
| 293 input.SkipLastField(); |
| 294 break; |
| 295 case 8: { |
| 296 Quotient = input.ReadInt64(); |
| 297 break; |
| 298 } |
| 299 case 16: { |
| 300 Remainder = input.ReadInt64(); |
| 301 break; |
| 302 } |
| 303 } |
| 304 } |
| 305 } |
| 306 |
| 307 } |
| 308 |
| 309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 310 public sealed partial class FibArgs : pb::IMessage<FibArgs> { |
| 311 private static readonly pb::MessageParser<FibArgs> _parser = new pb::Message
Parser<FibArgs>(() => new FibArgs()); |
| 312 public static pb::MessageParser<FibArgs> Parser { get { return _parser; } } |
| 313 |
| 314 public static pbr::MessageDescriptor Descriptor { |
| 315 get { return global::Math.MathReflection.Descriptor.MessageTypes[2]; } |
| 316 } |
| 317 |
| 318 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 319 get { return Descriptor; } |
| 320 } |
| 321 |
| 322 public FibArgs() { |
| 323 OnConstruction(); |
| 324 } |
| 325 |
| 326 partial void OnConstruction(); |
| 327 |
| 328 public FibArgs(FibArgs other) : this() { |
| 329 limit_ = other.limit_; |
| 330 } |
| 331 |
| 332 public FibArgs Clone() { |
| 333 return new FibArgs(this); |
| 334 } |
| 335 |
| 336 /// <summary>Field number for the "limit" field.</summary> |
| 337 public const int LimitFieldNumber = 1; |
| 338 private long limit_; |
| 339 public long Limit { |
| 340 get { return limit_; } |
| 341 set { |
| 342 limit_ = value; |
| 343 } |
| 344 } |
| 345 |
| 346 public override bool Equals(object other) { |
| 347 return Equals(other as FibArgs); |
| 348 } |
| 349 |
| 350 public bool Equals(FibArgs other) { |
| 351 if (ReferenceEquals(other, null)) { |
| 352 return false; |
| 353 } |
| 354 if (ReferenceEquals(other, this)) { |
| 355 return true; |
| 356 } |
| 357 if (Limit != other.Limit) return false; |
| 358 return true; |
| 359 } |
| 360 |
| 361 public override int GetHashCode() { |
| 362 int hash = 1; |
| 363 if (Limit != 0L) hash ^= Limit.GetHashCode(); |
| 364 return hash; |
| 365 } |
| 366 |
| 367 public override string ToString() { |
| 368 return pb::JsonFormatter.ToDiagnosticString(this); |
| 369 } |
| 370 |
| 371 public void WriteTo(pb::CodedOutputStream output) { |
| 372 if (Limit != 0L) { |
| 373 output.WriteRawTag(8); |
| 374 output.WriteInt64(Limit); |
| 375 } |
| 376 } |
| 377 |
| 378 public int CalculateSize() { |
| 379 int size = 0; |
| 380 if (Limit != 0L) { |
| 381 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); |
| 382 } |
| 383 return size; |
| 384 } |
| 385 |
| 386 public void MergeFrom(FibArgs other) { |
| 387 if (other == null) { |
| 388 return; |
| 389 } |
| 390 if (other.Limit != 0L) { |
| 391 Limit = other.Limit; |
| 392 } |
| 393 } |
| 394 |
| 395 public void MergeFrom(pb::CodedInputStream input) { |
| 396 uint tag; |
| 397 while ((tag = input.ReadTag()) != 0) { |
| 398 switch(tag) { |
| 399 default: |
| 400 input.SkipLastField(); |
| 401 break; |
| 402 case 8: { |
| 403 Limit = input.ReadInt64(); |
| 404 break; |
| 405 } |
| 406 } |
| 407 } |
| 408 } |
| 409 |
| 410 } |
| 411 |
| 412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 413 public sealed partial class Num : pb::IMessage<Num> { |
| 414 private static readonly pb::MessageParser<Num> _parser = new pb::MessagePars
er<Num>(() => new Num()); |
| 415 public static pb::MessageParser<Num> Parser { get { return _parser; } } |
| 416 |
| 417 public static pbr::MessageDescriptor Descriptor { |
| 418 get { return global::Math.MathReflection.Descriptor.MessageTypes[3]; } |
| 419 } |
| 420 |
| 421 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 422 get { return Descriptor; } |
| 423 } |
| 424 |
| 425 public Num() { |
| 426 OnConstruction(); |
| 427 } |
| 428 |
| 429 partial void OnConstruction(); |
| 430 |
| 431 public Num(Num other) : this() { |
| 432 num_ = other.num_; |
| 433 } |
| 434 |
| 435 public Num Clone() { |
| 436 return new Num(this); |
| 437 } |
| 438 |
| 439 /// <summary>Field number for the "num" field.</summary> |
| 440 public const int Num_FieldNumber = 1; |
| 441 private long num_; |
| 442 public long Num_ { |
| 443 get { return num_; } |
| 444 set { |
| 445 num_ = value; |
| 446 } |
| 447 } |
| 448 |
| 449 public override bool Equals(object other) { |
| 450 return Equals(other as Num); |
| 451 } |
| 452 |
| 453 public bool Equals(Num other) { |
| 454 if (ReferenceEquals(other, null)) { |
| 455 return false; |
| 456 } |
| 457 if (ReferenceEquals(other, this)) { |
| 458 return true; |
| 459 } |
| 460 if (Num_ != other.Num_) return false; |
| 461 return true; |
| 462 } |
| 463 |
| 464 public override int GetHashCode() { |
| 465 int hash = 1; |
| 466 if (Num_ != 0L) hash ^= Num_.GetHashCode(); |
| 467 return hash; |
| 468 } |
| 469 |
| 470 public override string ToString() { |
| 471 return pb::JsonFormatter.ToDiagnosticString(this); |
| 472 } |
| 473 |
| 474 public void WriteTo(pb::CodedOutputStream output) { |
| 475 if (Num_ != 0L) { |
| 476 output.WriteRawTag(8); |
| 477 output.WriteInt64(Num_); |
| 478 } |
| 479 } |
| 480 |
| 481 public int CalculateSize() { |
| 482 int size = 0; |
| 483 if (Num_ != 0L) { |
| 484 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Num_); |
| 485 } |
| 486 return size; |
| 487 } |
| 488 |
| 489 public void MergeFrom(Num other) { |
| 490 if (other == null) { |
| 491 return; |
| 492 } |
| 493 if (other.Num_ != 0L) { |
| 494 Num_ = other.Num_; |
| 495 } |
| 496 } |
| 497 |
| 498 public void MergeFrom(pb::CodedInputStream input) { |
| 499 uint tag; |
| 500 while ((tag = input.ReadTag()) != 0) { |
| 501 switch(tag) { |
| 502 default: |
| 503 input.SkipLastField(); |
| 504 break; |
| 505 case 8: { |
| 506 Num_ = input.ReadInt64(); |
| 507 break; |
| 508 } |
| 509 } |
| 510 } |
| 511 } |
| 512 |
| 513 } |
| 514 |
| 515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 516 public sealed partial class FibReply : pb::IMessage<FibReply> { |
| 517 private static readonly pb::MessageParser<FibReply> _parser = new pb::Messag
eParser<FibReply>(() => new FibReply()); |
| 518 public static pb::MessageParser<FibReply> Parser { get { return _parser; } } |
| 519 |
| 520 public static pbr::MessageDescriptor Descriptor { |
| 521 get { return global::Math.MathReflection.Descriptor.MessageTypes[4]; } |
| 522 } |
| 523 |
| 524 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 525 get { return Descriptor; } |
| 526 } |
| 527 |
| 528 public FibReply() { |
| 529 OnConstruction(); |
| 530 } |
| 531 |
| 532 partial void OnConstruction(); |
| 533 |
| 534 public FibReply(FibReply other) : this() { |
| 535 count_ = other.count_; |
| 536 } |
| 537 |
| 538 public FibReply Clone() { |
| 539 return new FibReply(this); |
| 540 } |
| 541 |
| 542 /// <summary>Field number for the "count" field.</summary> |
| 543 public const int CountFieldNumber = 1; |
| 544 private long count_; |
| 545 public long Count { |
| 546 get { return count_; } |
| 547 set { |
| 548 count_ = value; |
| 549 } |
| 550 } |
| 551 |
| 552 public override bool Equals(object other) { |
| 553 return Equals(other as FibReply); |
| 554 } |
| 555 |
| 556 public bool Equals(FibReply other) { |
| 557 if (ReferenceEquals(other, null)) { |
| 558 return false; |
| 559 } |
| 560 if (ReferenceEquals(other, this)) { |
| 561 return true; |
| 562 } |
| 563 if (Count != other.Count) return false; |
| 564 return true; |
| 565 } |
| 566 |
| 567 public override int GetHashCode() { |
| 568 int hash = 1; |
| 569 if (Count != 0L) hash ^= Count.GetHashCode(); |
| 570 return hash; |
| 571 } |
| 572 |
| 573 public override string ToString() { |
| 574 return pb::JsonFormatter.ToDiagnosticString(this); |
| 575 } |
| 576 |
| 577 public void WriteTo(pb::CodedOutputStream output) { |
| 578 if (Count != 0L) { |
| 579 output.WriteRawTag(8); |
| 580 output.WriteInt64(Count); |
| 581 } |
| 582 } |
| 583 |
| 584 public int CalculateSize() { |
| 585 int size = 0; |
| 586 if (Count != 0L) { |
| 587 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); |
| 588 } |
| 589 return size; |
| 590 } |
| 591 |
| 592 public void MergeFrom(FibReply other) { |
| 593 if (other == null) { |
| 594 return; |
| 595 } |
| 596 if (other.Count != 0L) { |
| 597 Count = other.Count; |
| 598 } |
| 599 } |
| 600 |
| 601 public void MergeFrom(pb::CodedInputStream input) { |
| 602 uint tag; |
| 603 while ((tag = input.ReadTag()) != 0) { |
| 604 switch(tag) { |
| 605 default: |
| 606 input.SkipLastField(); |
| 607 break; |
| 608 case 8: { |
| 609 Count = input.ReadInt64(); |
| 610 break; |
| 611 } |
| 612 } |
| 613 } |
| 614 } |
| 615 |
| 616 } |
| 617 |
| 618 #endregion |
| 619 |
| 620 } |
| 621 |
| 622 #endregion Designer generated code |
OLD | NEW |