Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 1 | // Generated by ProtoGen, Version=2.4.1.521, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT! |
| 2 | #pragma warning disable 1591, 0612, 3021 |
| 3 | #region Designer generated code |
| 4 | |
| 5 | using pb = global::Google.ProtocolBuffers; |
| 6 | using pbc = global::Google.ProtocolBuffers.Collections; |
| 7 | using pbd = global::Google.ProtocolBuffers.Descriptors; |
| 8 | using scg = global::System.Collections.Generic; |
| 9 | namespace math { |
| 10 | |
| 11 | namespace Proto { |
| 12 | |
| 13 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 14 | public static partial class Math { |
| 15 | |
| 16 | #region Extension registration |
| 17 | public static void RegisterAllExtensions(pb::ExtensionRegistry registry) { |
| 18 | } |
| 19 | #endregion |
| 20 | #region Static variables |
| 21 | internal static pbd::MessageDescriptor internal__static_math_DivArgs__Descriptor; |
| 22 | internal static pb::FieldAccess.FieldAccessorTable<global::math.DivArgs, global::math.DivArgs.Builder> internal__static_math_DivArgs__FieldAccessorTable; |
| 23 | internal static pbd::MessageDescriptor internal__static_math_DivReply__Descriptor; |
| 24 | internal static pb::FieldAccess.FieldAccessorTable<global::math.DivReply, global::math.DivReply.Builder> internal__static_math_DivReply__FieldAccessorTable; |
| 25 | internal static pbd::MessageDescriptor internal__static_math_FibArgs__Descriptor; |
| 26 | internal static pb::FieldAccess.FieldAccessorTable<global::math.FibArgs, global::math.FibArgs.Builder> internal__static_math_FibArgs__FieldAccessorTable; |
| 27 | internal static pbd::MessageDescriptor internal__static_math_Num__Descriptor; |
| 28 | internal static pb::FieldAccess.FieldAccessorTable<global::math.Num, global::math.Num.Builder> internal__static_math_Num__FieldAccessorTable; |
| 29 | internal static pbd::MessageDescriptor internal__static_math_FibReply__Descriptor; |
| 30 | internal static pb::FieldAccess.FieldAccessorTable<global::math.FibReply, global::math.FibReply.Builder> internal__static_math_FibReply__FieldAccessorTable; |
| 31 | #endregion |
| 32 | #region Descriptor |
| 33 | public static pbd::FileDescriptor Descriptor { |
| 34 | get { return descriptor; } |
| 35 | } |
| 36 | private static pbd::FileDescriptor descriptor; |
| 37 | |
| 38 | static Math() { |
| 39 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 40 | string.Concat( |
| 41 | "CgptYXRoLnByb3RvEgRtYXRoIiwKB0RpdkFyZ3MSEAoIZGl2aWRlbmQYASAB", |
| 42 | "KAMSDwoHZGl2aXNvchgCIAEoAyIvCghEaXZSZXBseRIQCghxdW90aWVudBgB", |
| 43 | "IAEoAxIRCglyZW1haW5kZXIYAiABKAMiGAoHRmliQXJncxINCgVsaW1pdBgB", |
| 44 | "IAEoAyISCgNOdW0SCwoDbnVtGAEgASgDIhkKCEZpYlJlcGx5Eg0KBWNvdW50", |
| 45 | "GAEgASgDMqQBCgRNYXRoEiYKA0RpdhINLm1hdGguRGl2QXJncxoOLm1hdGgu", |
| 46 | "RGl2UmVwbHkiABIuCgdEaXZNYW55Eg0ubWF0aC5EaXZBcmdzGg4ubWF0aC5E", |
| 47 | "aXZSZXBseSIAKAEwARIjCgNGaWISDS5tYXRoLkZpYkFyZ3MaCS5tYXRoLk51", |
| 48 | "bSIAMAESHwoDU3VtEgkubWF0aC5OdW0aCS5tYXRoLk51bSIAKAE=")); |
| 49 | pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) { |
| 50 | descriptor = root; |
| 51 | internal__static_math_DivArgs__Descriptor = Descriptor.MessageTypes[0]; |
| 52 | internal__static_math_DivArgs__FieldAccessorTable = |
| 53 | new pb::FieldAccess.FieldAccessorTable<global::math.DivArgs, global::math.DivArgs.Builder>(internal__static_math_DivArgs__Descriptor, |
| 54 | new string[] { "Dividend", "Divisor", }); |
| 55 | internal__static_math_DivReply__Descriptor = Descriptor.MessageTypes[1]; |
| 56 | internal__static_math_DivReply__FieldAccessorTable = |
| 57 | new pb::FieldAccess.FieldAccessorTable<global::math.DivReply, global::math.DivReply.Builder>(internal__static_math_DivReply__Descriptor, |
| 58 | new string[] { "Quotient", "Remainder", }); |
| 59 | internal__static_math_FibArgs__Descriptor = Descriptor.MessageTypes[2]; |
| 60 | internal__static_math_FibArgs__FieldAccessorTable = |
| 61 | new pb::FieldAccess.FieldAccessorTable<global::math.FibArgs, global::math.FibArgs.Builder>(internal__static_math_FibArgs__Descriptor, |
| 62 | new string[] { "Limit", }); |
| 63 | internal__static_math_Num__Descriptor = Descriptor.MessageTypes[3]; |
| 64 | internal__static_math_Num__FieldAccessorTable = |
| 65 | new pb::FieldAccess.FieldAccessorTable<global::math.Num, global::math.Num.Builder>(internal__static_math_Num__Descriptor, |
| 66 | new string[] { "Num_", }); |
| 67 | internal__static_math_FibReply__Descriptor = Descriptor.MessageTypes[4]; |
| 68 | internal__static_math_FibReply__FieldAccessorTable = |
| 69 | new pb::FieldAccess.FieldAccessorTable<global::math.FibReply, global::math.FibReply.Builder>(internal__static_math_FibReply__Descriptor, |
| 70 | new string[] { "Count", }); |
| 71 | pb::ExtensionRegistry registry = pb::ExtensionRegistry.CreateInstance(); |
| 72 | RegisterAllExtensions(registry); |
| 73 | return registry; |
| 74 | }; |
| 75 | pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
| 76 | new pbd::FileDescriptor[] { |
| 77 | }, assigner); |
| 78 | } |
| 79 | #endregion |
| 80 | |
| 81 | } |
| 82 | } |
| 83 | #region Messages |
| 84 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 85 | public sealed partial class DivArgs : pb::GeneratedMessage<DivArgs, DivArgs.Builder> { |
| 86 | private DivArgs() { } |
| 87 | private static readonly DivArgs defaultInstance = new DivArgs().MakeReadOnly(); |
| 88 | private static readonly string[] _divArgsFieldNames = new string[] { "dividend", "divisor" }; |
| 89 | private static readonly uint[] _divArgsFieldTags = new uint[] { 8, 16 }; |
| 90 | public static DivArgs DefaultInstance { |
| 91 | get { return defaultInstance; } |
| 92 | } |
| 93 | |
| 94 | public override DivArgs DefaultInstanceForType { |
| 95 | get { return DefaultInstance; } |
| 96 | } |
| 97 | |
| 98 | protected override DivArgs ThisMessage { |
| 99 | get { return this; } |
| 100 | } |
| 101 | |
| 102 | public static pbd::MessageDescriptor Descriptor { |
| 103 | get { return global::math.Proto.Math.internal__static_math_DivArgs__Descriptor; } |
| 104 | } |
| 105 | |
| 106 | protected override pb::FieldAccess.FieldAccessorTable<DivArgs, DivArgs.Builder> InternalFieldAccessors { |
| 107 | get { return global::math.Proto.Math.internal__static_math_DivArgs__FieldAccessorTable; } |
| 108 | } |
| 109 | |
| 110 | public const int DividendFieldNumber = 1; |
| 111 | private bool hasDividend; |
| 112 | private long dividend_; |
| 113 | public bool HasDividend { |
| 114 | get { return hasDividend; } |
| 115 | } |
| 116 | public long Dividend { |
| 117 | get { return dividend_; } |
| 118 | } |
| 119 | |
| 120 | public const int DivisorFieldNumber = 2; |
| 121 | private bool hasDivisor; |
| 122 | private long divisor_; |
| 123 | public bool HasDivisor { |
| 124 | get { return hasDivisor; } |
| 125 | } |
| 126 | public long Divisor { |
| 127 | get { return divisor_; } |
| 128 | } |
| 129 | |
| 130 | public override bool IsInitialized { |
| 131 | get { |
| 132 | return true; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | public override void WriteTo(pb::ICodedOutputStream output) { |
| 137 | int size = SerializedSize; |
| 138 | string[] field_names = _divArgsFieldNames; |
| 139 | if (hasDividend) { |
| 140 | output.WriteInt64(1, field_names[0], Dividend); |
| 141 | } |
| 142 | if (hasDivisor) { |
| 143 | output.WriteInt64(2, field_names[1], Divisor); |
| 144 | } |
| 145 | UnknownFields.WriteTo(output); |
| 146 | } |
| 147 | |
| 148 | private int memoizedSerializedSize = -1; |
| 149 | public override int SerializedSize { |
| 150 | get { |
| 151 | int size = memoizedSerializedSize; |
| 152 | if (size != -1) return size; |
| 153 | |
| 154 | size = 0; |
| 155 | if (hasDividend) { |
| 156 | size += pb::CodedOutputStream.ComputeInt64Size(1, Dividend); |
| 157 | } |
| 158 | if (hasDivisor) { |
| 159 | size += pb::CodedOutputStream.ComputeInt64Size(2, Divisor); |
| 160 | } |
| 161 | size += UnknownFields.SerializedSize; |
| 162 | memoizedSerializedSize = size; |
| 163 | return size; |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | public static DivArgs ParseFrom(pb::ByteString data) { |
| 168 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 169 | } |
| 170 | public static DivArgs ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 171 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 172 | } |
| 173 | public static DivArgs ParseFrom(byte[] data) { |
| 174 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 175 | } |
| 176 | public static DivArgs ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 177 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 178 | } |
| 179 | public static DivArgs ParseFrom(global::System.IO.Stream input) { |
| 180 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 181 | } |
| 182 | public static DivArgs ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 183 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 184 | } |
| 185 | public static DivArgs ParseDelimitedFrom(global::System.IO.Stream input) { |
| 186 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 187 | } |
| 188 | public static DivArgs ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 189 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 190 | } |
| 191 | public static DivArgs ParseFrom(pb::ICodedInputStream input) { |
| 192 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 193 | } |
| 194 | public static DivArgs ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 195 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 196 | } |
| 197 | private DivArgs MakeReadOnly() { |
| 198 | return this; |
| 199 | } |
| 200 | |
| 201 | public static Builder CreateBuilder() { return new Builder(); } |
| 202 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 203 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 204 | public static Builder CreateBuilder(DivArgs prototype) { |
| 205 | return new Builder(prototype); |
| 206 | } |
| 207 | |
| 208 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 209 | public sealed partial class Builder : pb::GeneratedBuilder<DivArgs, Builder> { |
| 210 | protected override Builder ThisBuilder { |
| 211 | get { return this; } |
| 212 | } |
| 213 | public Builder() { |
| 214 | result = DefaultInstance; |
| 215 | resultIsReadOnly = true; |
| 216 | } |
| 217 | internal Builder(DivArgs cloneFrom) { |
| 218 | result = cloneFrom; |
| 219 | resultIsReadOnly = true; |
| 220 | } |
| 221 | |
| 222 | private bool resultIsReadOnly; |
| 223 | private DivArgs result; |
| 224 | |
| 225 | private DivArgs PrepareBuilder() { |
| 226 | if (resultIsReadOnly) { |
| 227 | DivArgs original = result; |
| 228 | result = new DivArgs(); |
| 229 | resultIsReadOnly = false; |
| 230 | MergeFrom(original); |
| 231 | } |
| 232 | return result; |
| 233 | } |
| 234 | |
| 235 | public override bool IsInitialized { |
| 236 | get { return result.IsInitialized; } |
| 237 | } |
| 238 | |
| 239 | protected override DivArgs MessageBeingBuilt { |
| 240 | get { return PrepareBuilder(); } |
| 241 | } |
| 242 | |
| 243 | public override Builder Clear() { |
| 244 | result = DefaultInstance; |
| 245 | resultIsReadOnly = true; |
| 246 | return this; |
| 247 | } |
| 248 | |
| 249 | public override Builder Clone() { |
| 250 | if (resultIsReadOnly) { |
| 251 | return new Builder(result); |
| 252 | } else { |
| 253 | return new Builder().MergeFrom(result); |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | public override pbd::MessageDescriptor DescriptorForType { |
| 258 | get { return global::math.DivArgs.Descriptor; } |
| 259 | } |
| 260 | |
| 261 | public override DivArgs DefaultInstanceForType { |
| 262 | get { return global::math.DivArgs.DefaultInstance; } |
| 263 | } |
| 264 | |
| 265 | public override DivArgs BuildPartial() { |
| 266 | if (resultIsReadOnly) { |
| 267 | return result; |
| 268 | } |
| 269 | resultIsReadOnly = true; |
| 270 | return result.MakeReadOnly(); |
| 271 | } |
| 272 | |
| 273 | public override Builder MergeFrom(pb::IMessage other) { |
| 274 | if (other is DivArgs) { |
| 275 | return MergeFrom((DivArgs) other); |
| 276 | } else { |
| 277 | base.MergeFrom(other); |
| 278 | return this; |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | public override Builder MergeFrom(DivArgs other) { |
| 283 | if (other == global::math.DivArgs.DefaultInstance) return this; |
| 284 | PrepareBuilder(); |
| 285 | if (other.HasDividend) { |
| 286 | Dividend = other.Dividend; |
| 287 | } |
| 288 | if (other.HasDivisor) { |
| 289 | Divisor = other.Divisor; |
| 290 | } |
| 291 | this.MergeUnknownFields(other.UnknownFields); |
| 292 | return this; |
| 293 | } |
| 294 | |
| 295 | public override Builder MergeFrom(pb::ICodedInputStream input) { |
| 296 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 297 | } |
| 298 | |
| 299 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 300 | PrepareBuilder(); |
| 301 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 302 | uint tag; |
| 303 | string field_name; |
| 304 | while (input.ReadTag(out tag, out field_name)) { |
| 305 | if(tag == 0 && field_name != null) { |
| 306 | int field_ordinal = global::System.Array.BinarySearch(_divArgsFieldNames, field_name, global::System.StringComparer.Ordinal); |
| 307 | if(field_ordinal >= 0) |
| 308 | tag = _divArgsFieldTags[field_ordinal]; |
| 309 | else { |
| 310 | if (unknownFields == null) { |
| 311 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 312 | } |
| 313 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
| 314 | continue; |
| 315 | } |
| 316 | } |
| 317 | switch (tag) { |
| 318 | case 0: { |
| 319 | throw pb::InvalidProtocolBufferException.InvalidTag(); |
| 320 | } |
| 321 | default: { |
| 322 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 323 | if (unknownFields != null) { |
| 324 | this.UnknownFields = unknownFields.Build(); |
| 325 | } |
| 326 | return this; |
| 327 | } |
| 328 | if (unknownFields == null) { |
| 329 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 330 | } |
| 331 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
| 332 | break; |
| 333 | } |
| 334 | case 8: { |
| 335 | result.hasDividend = input.ReadInt64(ref result.dividend_); |
| 336 | break; |
| 337 | } |
| 338 | case 16: { |
| 339 | result.hasDivisor = input.ReadInt64(ref result.divisor_); |
| 340 | break; |
| 341 | } |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | if (unknownFields != null) { |
| 346 | this.UnknownFields = unknownFields.Build(); |
| 347 | } |
| 348 | return this; |
| 349 | } |
| 350 | |
| 351 | |
| 352 | public bool HasDividend { |
| 353 | get { return result.hasDividend; } |
| 354 | } |
| 355 | public long Dividend { |
| 356 | get { return result.Dividend; } |
| 357 | set { SetDividend(value); } |
| 358 | } |
| 359 | public Builder SetDividend(long value) { |
| 360 | PrepareBuilder(); |
| 361 | result.hasDividend = true; |
| 362 | result.dividend_ = value; |
| 363 | return this; |
| 364 | } |
| 365 | public Builder ClearDividend() { |
| 366 | PrepareBuilder(); |
| 367 | result.hasDividend = false; |
| 368 | result.dividend_ = 0L; |
| 369 | return this; |
| 370 | } |
| 371 | |
| 372 | public bool HasDivisor { |
| 373 | get { return result.hasDivisor; } |
| 374 | } |
| 375 | public long Divisor { |
| 376 | get { return result.Divisor; } |
| 377 | set { SetDivisor(value); } |
| 378 | } |
| 379 | public Builder SetDivisor(long value) { |
| 380 | PrepareBuilder(); |
| 381 | result.hasDivisor = true; |
| 382 | result.divisor_ = value; |
| 383 | return this; |
| 384 | } |
| 385 | public Builder ClearDivisor() { |
| 386 | PrepareBuilder(); |
| 387 | result.hasDivisor = false; |
| 388 | result.divisor_ = 0L; |
| 389 | return this; |
| 390 | } |
| 391 | } |
| 392 | static DivArgs() { |
| 393 | object.ReferenceEquals(global::math.Proto.Math.Descriptor, null); |
| 394 | } |
| 395 | } |
| 396 | |
| 397 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 398 | public sealed partial class DivReply : pb::GeneratedMessage<DivReply, DivReply.Builder> { |
| 399 | private DivReply() { } |
| 400 | private static readonly DivReply defaultInstance = new DivReply().MakeReadOnly(); |
| 401 | private static readonly string[] _divReplyFieldNames = new string[] { "quotient", "remainder" }; |
| 402 | private static readonly uint[] _divReplyFieldTags = new uint[] { 8, 16 }; |
| 403 | public static DivReply DefaultInstance { |
| 404 | get { return defaultInstance; } |
| 405 | } |
| 406 | |
| 407 | public override DivReply DefaultInstanceForType { |
| 408 | get { return DefaultInstance; } |
| 409 | } |
| 410 | |
| 411 | protected override DivReply ThisMessage { |
| 412 | get { return this; } |
| 413 | } |
| 414 | |
| 415 | public static pbd::MessageDescriptor Descriptor { |
| 416 | get { return global::math.Proto.Math.internal__static_math_DivReply__Descriptor; } |
| 417 | } |
| 418 | |
| 419 | protected override pb::FieldAccess.FieldAccessorTable<DivReply, DivReply.Builder> InternalFieldAccessors { |
| 420 | get { return global::math.Proto.Math.internal__static_math_DivReply__FieldAccessorTable; } |
| 421 | } |
| 422 | |
| 423 | public const int QuotientFieldNumber = 1; |
| 424 | private bool hasQuotient; |
| 425 | private long quotient_; |
| 426 | public bool HasQuotient { |
| 427 | get { return hasQuotient; } |
| 428 | } |
| 429 | public long Quotient { |
| 430 | get { return quotient_; } |
| 431 | } |
| 432 | |
| 433 | public const int RemainderFieldNumber = 2; |
| 434 | private bool hasRemainder; |
| 435 | private long remainder_; |
| 436 | public bool HasRemainder { |
| 437 | get { return hasRemainder; } |
| 438 | } |
| 439 | public long Remainder { |
| 440 | get { return remainder_; } |
| 441 | } |
| 442 | |
| 443 | public override bool IsInitialized { |
| 444 | get { |
| 445 | return true; |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | public override void WriteTo(pb::ICodedOutputStream output) { |
| 450 | int size = SerializedSize; |
| 451 | string[] field_names = _divReplyFieldNames; |
| 452 | if (hasQuotient) { |
| 453 | output.WriteInt64(1, field_names[0], Quotient); |
| 454 | } |
| 455 | if (hasRemainder) { |
| 456 | output.WriteInt64(2, field_names[1], Remainder); |
| 457 | } |
| 458 | UnknownFields.WriteTo(output); |
| 459 | } |
| 460 | |
| 461 | private int memoizedSerializedSize = -1; |
| 462 | public override int SerializedSize { |
| 463 | get { |
| 464 | int size = memoizedSerializedSize; |
| 465 | if (size != -1) return size; |
| 466 | |
| 467 | size = 0; |
| 468 | if (hasQuotient) { |
| 469 | size += pb::CodedOutputStream.ComputeInt64Size(1, Quotient); |
| 470 | } |
| 471 | if (hasRemainder) { |
| 472 | size += pb::CodedOutputStream.ComputeInt64Size(2, Remainder); |
| 473 | } |
| 474 | size += UnknownFields.SerializedSize; |
| 475 | memoizedSerializedSize = size; |
| 476 | return size; |
| 477 | } |
| 478 | } |
| 479 | |
| 480 | public static DivReply ParseFrom(pb::ByteString data) { |
| 481 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 482 | } |
| 483 | public static DivReply ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 484 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 485 | } |
| 486 | public static DivReply ParseFrom(byte[] data) { |
| 487 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 488 | } |
| 489 | public static DivReply ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 490 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 491 | } |
| 492 | public static DivReply ParseFrom(global::System.IO.Stream input) { |
| 493 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 494 | } |
| 495 | public static DivReply ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 496 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 497 | } |
| 498 | public static DivReply ParseDelimitedFrom(global::System.IO.Stream input) { |
| 499 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 500 | } |
| 501 | public static DivReply ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 502 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 503 | } |
| 504 | public static DivReply ParseFrom(pb::ICodedInputStream input) { |
| 505 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 506 | } |
| 507 | public static DivReply ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 508 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 509 | } |
| 510 | private DivReply MakeReadOnly() { |
| 511 | return this; |
| 512 | } |
| 513 | |
| 514 | public static Builder CreateBuilder() { return new Builder(); } |
| 515 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 516 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 517 | public static Builder CreateBuilder(DivReply prototype) { |
| 518 | return new Builder(prototype); |
| 519 | } |
| 520 | |
| 521 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 522 | public sealed partial class Builder : pb::GeneratedBuilder<DivReply, Builder> { |
| 523 | protected override Builder ThisBuilder { |
| 524 | get { return this; } |
| 525 | } |
| 526 | public Builder() { |
| 527 | result = DefaultInstance; |
| 528 | resultIsReadOnly = true; |
| 529 | } |
| 530 | internal Builder(DivReply cloneFrom) { |
| 531 | result = cloneFrom; |
| 532 | resultIsReadOnly = true; |
| 533 | } |
| 534 | |
| 535 | private bool resultIsReadOnly; |
| 536 | private DivReply result; |
| 537 | |
| 538 | private DivReply PrepareBuilder() { |
| 539 | if (resultIsReadOnly) { |
| 540 | DivReply original = result; |
| 541 | result = new DivReply(); |
| 542 | resultIsReadOnly = false; |
| 543 | MergeFrom(original); |
| 544 | } |
| 545 | return result; |
| 546 | } |
| 547 | |
| 548 | public override bool IsInitialized { |
| 549 | get { return result.IsInitialized; } |
| 550 | } |
| 551 | |
| 552 | protected override DivReply MessageBeingBuilt { |
| 553 | get { return PrepareBuilder(); } |
| 554 | } |
| 555 | |
| 556 | public override Builder Clear() { |
| 557 | result = DefaultInstance; |
| 558 | resultIsReadOnly = true; |
| 559 | return this; |
| 560 | } |
| 561 | |
| 562 | public override Builder Clone() { |
| 563 | if (resultIsReadOnly) { |
| 564 | return new Builder(result); |
| 565 | } else { |
| 566 | return new Builder().MergeFrom(result); |
| 567 | } |
| 568 | } |
| 569 | |
| 570 | public override pbd::MessageDescriptor DescriptorForType { |
| 571 | get { return global::math.DivReply.Descriptor; } |
| 572 | } |
| 573 | |
| 574 | public override DivReply DefaultInstanceForType { |
| 575 | get { return global::math.DivReply.DefaultInstance; } |
| 576 | } |
| 577 | |
| 578 | public override DivReply BuildPartial() { |
| 579 | if (resultIsReadOnly) { |
| 580 | return result; |
| 581 | } |
| 582 | resultIsReadOnly = true; |
| 583 | return result.MakeReadOnly(); |
| 584 | } |
| 585 | |
| 586 | public override Builder MergeFrom(pb::IMessage other) { |
| 587 | if (other is DivReply) { |
| 588 | return MergeFrom((DivReply) other); |
| 589 | } else { |
| 590 | base.MergeFrom(other); |
| 591 | return this; |
| 592 | } |
| 593 | } |
| 594 | |
| 595 | public override Builder MergeFrom(DivReply other) { |
| 596 | if (other == global::math.DivReply.DefaultInstance) return this; |
| 597 | PrepareBuilder(); |
| 598 | if (other.HasQuotient) { |
| 599 | Quotient = other.Quotient; |
| 600 | } |
| 601 | if (other.HasRemainder) { |
| 602 | Remainder = other.Remainder; |
| 603 | } |
| 604 | this.MergeUnknownFields(other.UnknownFields); |
| 605 | return this; |
| 606 | } |
| 607 | |
| 608 | public override Builder MergeFrom(pb::ICodedInputStream input) { |
| 609 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 610 | } |
| 611 | |
| 612 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 613 | PrepareBuilder(); |
| 614 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 615 | uint tag; |
| 616 | string field_name; |
| 617 | while (input.ReadTag(out tag, out field_name)) { |
| 618 | if(tag == 0 && field_name != null) { |
| 619 | int field_ordinal = global::System.Array.BinarySearch(_divReplyFieldNames, field_name, global::System.StringComparer.Ordinal); |
| 620 | if(field_ordinal >= 0) |
| 621 | tag = _divReplyFieldTags[field_ordinal]; |
| 622 | else { |
| 623 | if (unknownFields == null) { |
| 624 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 625 | } |
| 626 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
| 627 | continue; |
| 628 | } |
| 629 | } |
| 630 | switch (tag) { |
| 631 | case 0: { |
| 632 | throw pb::InvalidProtocolBufferException.InvalidTag(); |
| 633 | } |
| 634 | default: { |
| 635 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 636 | if (unknownFields != null) { |
| 637 | this.UnknownFields = unknownFields.Build(); |
| 638 | } |
| 639 | return this; |
| 640 | } |
| 641 | if (unknownFields == null) { |
| 642 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 643 | } |
| 644 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
| 645 | break; |
| 646 | } |
| 647 | case 8: { |
| 648 | result.hasQuotient = input.ReadInt64(ref result.quotient_); |
| 649 | break; |
| 650 | } |
| 651 | case 16: { |
| 652 | result.hasRemainder = input.ReadInt64(ref result.remainder_); |
| 653 | break; |
| 654 | } |
| 655 | } |
| 656 | } |
| 657 | |
| 658 | if (unknownFields != null) { |
| 659 | this.UnknownFields = unknownFields.Build(); |
| 660 | } |
| 661 | return this; |
| 662 | } |
| 663 | |
| 664 | |
| 665 | public bool HasQuotient { |
| 666 | get { return result.hasQuotient; } |
| 667 | } |
| 668 | public long Quotient { |
| 669 | get { return result.Quotient; } |
| 670 | set { SetQuotient(value); } |
| 671 | } |
| 672 | public Builder SetQuotient(long value) { |
| 673 | PrepareBuilder(); |
| 674 | result.hasQuotient = true; |
| 675 | result.quotient_ = value; |
| 676 | return this; |
| 677 | } |
| 678 | public Builder ClearQuotient() { |
| 679 | PrepareBuilder(); |
| 680 | result.hasQuotient = false; |
| 681 | result.quotient_ = 0L; |
| 682 | return this; |
| 683 | } |
| 684 | |
| 685 | public bool HasRemainder { |
| 686 | get { return result.hasRemainder; } |
| 687 | } |
| 688 | public long Remainder { |
| 689 | get { return result.Remainder; } |
| 690 | set { SetRemainder(value); } |
| 691 | } |
| 692 | public Builder SetRemainder(long value) { |
| 693 | PrepareBuilder(); |
| 694 | result.hasRemainder = true; |
| 695 | result.remainder_ = value; |
| 696 | return this; |
| 697 | } |
| 698 | public Builder ClearRemainder() { |
| 699 | PrepareBuilder(); |
| 700 | result.hasRemainder = false; |
| 701 | result.remainder_ = 0L; |
| 702 | return this; |
| 703 | } |
| 704 | } |
| 705 | static DivReply() { |
| 706 | object.ReferenceEquals(global::math.Proto.Math.Descriptor, null); |
| 707 | } |
| 708 | } |
| 709 | |
| 710 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 711 | public sealed partial class FibArgs : pb::GeneratedMessage<FibArgs, FibArgs.Builder> { |
| 712 | private FibArgs() { } |
| 713 | private static readonly FibArgs defaultInstance = new FibArgs().MakeReadOnly(); |
| 714 | private static readonly string[] _fibArgsFieldNames = new string[] { "limit" }; |
| 715 | private static readonly uint[] _fibArgsFieldTags = new uint[] { 8 }; |
| 716 | public static FibArgs DefaultInstance { |
| 717 | get { return defaultInstance; } |
| 718 | } |
| 719 | |
| 720 | public override FibArgs DefaultInstanceForType { |
| 721 | get { return DefaultInstance; } |
| 722 | } |
| 723 | |
| 724 | protected override FibArgs ThisMessage { |
| 725 | get { return this; } |
| 726 | } |
| 727 | |
| 728 | public static pbd::MessageDescriptor Descriptor { |
| 729 | get { return global::math.Proto.Math.internal__static_math_FibArgs__Descriptor; } |
| 730 | } |
| 731 | |
| 732 | protected override pb::FieldAccess.FieldAccessorTable<FibArgs, FibArgs.Builder> InternalFieldAccessors { |
| 733 | get { return global::math.Proto.Math.internal__static_math_FibArgs__FieldAccessorTable; } |
| 734 | } |
| 735 | |
| 736 | public const int LimitFieldNumber = 1; |
| 737 | private bool hasLimit; |
| 738 | private long limit_; |
| 739 | public bool HasLimit { |
| 740 | get { return hasLimit; } |
| 741 | } |
| 742 | public long Limit { |
| 743 | get { return limit_; } |
| 744 | } |
| 745 | |
| 746 | public override bool IsInitialized { |
| 747 | get { |
| 748 | return true; |
| 749 | } |
| 750 | } |
| 751 | |
| 752 | public override void WriteTo(pb::ICodedOutputStream output) { |
| 753 | int size = SerializedSize; |
| 754 | string[] field_names = _fibArgsFieldNames; |
| 755 | if (hasLimit) { |
| 756 | output.WriteInt64(1, field_names[0], Limit); |
| 757 | } |
| 758 | UnknownFields.WriteTo(output); |
| 759 | } |
| 760 | |
| 761 | private int memoizedSerializedSize = -1; |
| 762 | public override int SerializedSize { |
| 763 | get { |
| 764 | int size = memoizedSerializedSize; |
| 765 | if (size != -1) return size; |
| 766 | |
| 767 | size = 0; |
| 768 | if (hasLimit) { |
| 769 | size += pb::CodedOutputStream.ComputeInt64Size(1, Limit); |
| 770 | } |
| 771 | size += UnknownFields.SerializedSize; |
| 772 | memoizedSerializedSize = size; |
| 773 | return size; |
| 774 | } |
| 775 | } |
| 776 | |
| 777 | public static FibArgs ParseFrom(pb::ByteString data) { |
| 778 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 779 | } |
| 780 | public static FibArgs ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 781 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 782 | } |
| 783 | public static FibArgs ParseFrom(byte[] data) { |
| 784 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 785 | } |
| 786 | public static FibArgs ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 787 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 788 | } |
| 789 | public static FibArgs ParseFrom(global::System.IO.Stream input) { |
| 790 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 791 | } |
| 792 | public static FibArgs ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 793 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 794 | } |
| 795 | public static FibArgs ParseDelimitedFrom(global::System.IO.Stream input) { |
| 796 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 797 | } |
| 798 | public static FibArgs ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 799 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 800 | } |
| 801 | public static FibArgs ParseFrom(pb::ICodedInputStream input) { |
| 802 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 803 | } |
| 804 | public static FibArgs ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 805 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 806 | } |
| 807 | private FibArgs MakeReadOnly() { |
| 808 | return this; |
| 809 | } |
| 810 | |
| 811 | public static Builder CreateBuilder() { return new Builder(); } |
| 812 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 813 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 814 | public static Builder CreateBuilder(FibArgs prototype) { |
| 815 | return new Builder(prototype); |
| 816 | } |
| 817 | |
| 818 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 819 | public sealed partial class Builder : pb::GeneratedBuilder<FibArgs, Builder> { |
| 820 | protected override Builder ThisBuilder { |
| 821 | get { return this; } |
| 822 | } |
| 823 | public Builder() { |
| 824 | result = DefaultInstance; |
| 825 | resultIsReadOnly = true; |
| 826 | } |
| 827 | internal Builder(FibArgs cloneFrom) { |
| 828 | result = cloneFrom; |
| 829 | resultIsReadOnly = true; |
| 830 | } |
| 831 | |
| 832 | private bool resultIsReadOnly; |
| 833 | private FibArgs result; |
| 834 | |
| 835 | private FibArgs PrepareBuilder() { |
| 836 | if (resultIsReadOnly) { |
| 837 | FibArgs original = result; |
| 838 | result = new FibArgs(); |
| 839 | resultIsReadOnly = false; |
| 840 | MergeFrom(original); |
| 841 | } |
| 842 | return result; |
| 843 | } |
| 844 | |
| 845 | public override bool IsInitialized { |
| 846 | get { return result.IsInitialized; } |
| 847 | } |
| 848 | |
| 849 | protected override FibArgs MessageBeingBuilt { |
| 850 | get { return PrepareBuilder(); } |
| 851 | } |
| 852 | |
| 853 | public override Builder Clear() { |
| 854 | result = DefaultInstance; |
| 855 | resultIsReadOnly = true; |
| 856 | return this; |
| 857 | } |
| 858 | |
| 859 | public override Builder Clone() { |
| 860 | if (resultIsReadOnly) { |
| 861 | return new Builder(result); |
| 862 | } else { |
| 863 | return new Builder().MergeFrom(result); |
| 864 | } |
| 865 | } |
| 866 | |
| 867 | public override pbd::MessageDescriptor DescriptorForType { |
| 868 | get { return global::math.FibArgs.Descriptor; } |
| 869 | } |
| 870 | |
| 871 | public override FibArgs DefaultInstanceForType { |
| 872 | get { return global::math.FibArgs.DefaultInstance; } |
| 873 | } |
| 874 | |
| 875 | public override FibArgs BuildPartial() { |
| 876 | if (resultIsReadOnly) { |
| 877 | return result; |
| 878 | } |
| 879 | resultIsReadOnly = true; |
| 880 | return result.MakeReadOnly(); |
| 881 | } |
| 882 | |
| 883 | public override Builder MergeFrom(pb::IMessage other) { |
| 884 | if (other is FibArgs) { |
| 885 | return MergeFrom((FibArgs) other); |
| 886 | } else { |
| 887 | base.MergeFrom(other); |
| 888 | return this; |
| 889 | } |
| 890 | } |
| 891 | |
| 892 | public override Builder MergeFrom(FibArgs other) { |
| 893 | if (other == global::math.FibArgs.DefaultInstance) return this; |
| 894 | PrepareBuilder(); |
| 895 | if (other.HasLimit) { |
| 896 | Limit = other.Limit; |
| 897 | } |
| 898 | this.MergeUnknownFields(other.UnknownFields); |
| 899 | return this; |
| 900 | } |
| 901 | |
| 902 | public override Builder MergeFrom(pb::ICodedInputStream input) { |
| 903 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 904 | } |
| 905 | |
| 906 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 907 | PrepareBuilder(); |
| 908 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 909 | uint tag; |
| 910 | string field_name; |
| 911 | while (input.ReadTag(out tag, out field_name)) { |
| 912 | if(tag == 0 && field_name != null) { |
| 913 | int field_ordinal = global::System.Array.BinarySearch(_fibArgsFieldNames, field_name, global::System.StringComparer.Ordinal); |
| 914 | if(field_ordinal >= 0) |
| 915 | tag = _fibArgsFieldTags[field_ordinal]; |
| 916 | else { |
| 917 | if (unknownFields == null) { |
| 918 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 919 | } |
| 920 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
| 921 | continue; |
| 922 | } |
| 923 | } |
| 924 | switch (tag) { |
| 925 | case 0: { |
| 926 | throw pb::InvalidProtocolBufferException.InvalidTag(); |
| 927 | } |
| 928 | default: { |
| 929 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 930 | if (unknownFields != null) { |
| 931 | this.UnknownFields = unknownFields.Build(); |
| 932 | } |
| 933 | return this; |
| 934 | } |
| 935 | if (unknownFields == null) { |
| 936 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 937 | } |
| 938 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
| 939 | break; |
| 940 | } |
| 941 | case 8: { |
| 942 | result.hasLimit = input.ReadInt64(ref result.limit_); |
| 943 | break; |
| 944 | } |
| 945 | } |
| 946 | } |
| 947 | |
| 948 | if (unknownFields != null) { |
| 949 | this.UnknownFields = unknownFields.Build(); |
| 950 | } |
| 951 | return this; |
| 952 | } |
| 953 | |
| 954 | |
| 955 | public bool HasLimit { |
| 956 | get { return result.hasLimit; } |
| 957 | } |
| 958 | public long Limit { |
| 959 | get { return result.Limit; } |
| 960 | set { SetLimit(value); } |
| 961 | } |
| 962 | public Builder SetLimit(long value) { |
| 963 | PrepareBuilder(); |
| 964 | result.hasLimit = true; |
| 965 | result.limit_ = value; |
| 966 | return this; |
| 967 | } |
| 968 | public Builder ClearLimit() { |
| 969 | PrepareBuilder(); |
| 970 | result.hasLimit = false; |
| 971 | result.limit_ = 0L; |
| 972 | return this; |
| 973 | } |
| 974 | } |
| 975 | static FibArgs() { |
| 976 | object.ReferenceEquals(global::math.Proto.Math.Descriptor, null); |
| 977 | } |
| 978 | } |
| 979 | |
| 980 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 981 | public sealed partial class Num : pb::GeneratedMessage<Num, Num.Builder> { |
| 982 | private Num() { } |
| 983 | private static readonly Num defaultInstance = new Num().MakeReadOnly(); |
| 984 | private static readonly string[] _numFieldNames = new string[] { "num" }; |
| 985 | private static readonly uint[] _numFieldTags = new uint[] { 8 }; |
| 986 | public static Num DefaultInstance { |
| 987 | get { return defaultInstance; } |
| 988 | } |
| 989 | |
| 990 | public override Num DefaultInstanceForType { |
| 991 | get { return DefaultInstance; } |
| 992 | } |
| 993 | |
| 994 | protected override Num ThisMessage { |
| 995 | get { return this; } |
| 996 | } |
| 997 | |
| 998 | public static pbd::MessageDescriptor Descriptor { |
| 999 | get { return global::math.Proto.Math.internal__static_math_Num__Descriptor; } |
| 1000 | } |
| 1001 | |
| 1002 | protected override pb::FieldAccess.FieldAccessorTable<Num, Num.Builder> InternalFieldAccessors { |
| 1003 | get { return global::math.Proto.Math.internal__static_math_Num__FieldAccessorTable; } |
| 1004 | } |
| 1005 | |
| 1006 | public const int Num_FieldNumber = 1; |
| 1007 | private bool hasNum_; |
| 1008 | private long num_; |
| 1009 | public bool HasNum_ { |
| 1010 | get { return hasNum_; } |
| 1011 | } |
| 1012 | public long Num_ { |
| 1013 | get { return num_; } |
| 1014 | } |
| 1015 | |
| 1016 | public override bool IsInitialized { |
| 1017 | get { |
| 1018 | return true; |
| 1019 | } |
| 1020 | } |
| 1021 | |
| 1022 | public override void WriteTo(pb::ICodedOutputStream output) { |
| 1023 | int size = SerializedSize; |
| 1024 | string[] field_names = _numFieldNames; |
| 1025 | if (hasNum_) { |
| 1026 | output.WriteInt64(1, field_names[0], Num_); |
| 1027 | } |
| 1028 | UnknownFields.WriteTo(output); |
| 1029 | } |
| 1030 | |
| 1031 | private int memoizedSerializedSize = -1; |
| 1032 | public override int SerializedSize { |
| 1033 | get { |
| 1034 | int size = memoizedSerializedSize; |
| 1035 | if (size != -1) return size; |
| 1036 | |
| 1037 | size = 0; |
| 1038 | if (hasNum_) { |
| 1039 | size += pb::CodedOutputStream.ComputeInt64Size(1, Num_); |
| 1040 | } |
| 1041 | size += UnknownFields.SerializedSize; |
| 1042 | memoizedSerializedSize = size; |
| 1043 | return size; |
| 1044 | } |
| 1045 | } |
| 1046 | |
| 1047 | public static Num ParseFrom(pb::ByteString data) { |
| 1048 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1049 | } |
| 1050 | public static Num ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1051 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1052 | } |
| 1053 | public static Num ParseFrom(byte[] data) { |
| 1054 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1055 | } |
| 1056 | public static Num ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1057 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1058 | } |
| 1059 | public static Num ParseFrom(global::System.IO.Stream input) { |
| 1060 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1061 | } |
| 1062 | public static Num ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1063 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1064 | } |
| 1065 | public static Num ParseDelimitedFrom(global::System.IO.Stream input) { |
| 1066 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 1067 | } |
| 1068 | public static Num ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1069 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 1070 | } |
| 1071 | public static Num ParseFrom(pb::ICodedInputStream input) { |
| 1072 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1073 | } |
| 1074 | public static Num ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1075 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1076 | } |
| 1077 | private Num MakeReadOnly() { |
| 1078 | return this; |
| 1079 | } |
| 1080 | |
| 1081 | public static Builder CreateBuilder() { return new Builder(); } |
| 1082 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 1083 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1084 | public static Builder CreateBuilder(Num prototype) { |
| 1085 | return new Builder(prototype); |
| 1086 | } |
| 1087 | |
| 1088 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 1089 | public sealed partial class Builder : pb::GeneratedBuilder<Num, Builder> { |
| 1090 | protected override Builder ThisBuilder { |
| 1091 | get { return this; } |
| 1092 | } |
| 1093 | public Builder() { |
| 1094 | result = DefaultInstance; |
| 1095 | resultIsReadOnly = true; |
| 1096 | } |
| 1097 | internal Builder(Num cloneFrom) { |
| 1098 | result = cloneFrom; |
| 1099 | resultIsReadOnly = true; |
| 1100 | } |
| 1101 | |
| 1102 | private bool resultIsReadOnly; |
| 1103 | private Num result; |
| 1104 | |
| 1105 | private Num PrepareBuilder() { |
| 1106 | if (resultIsReadOnly) { |
| 1107 | Num original = result; |
| 1108 | result = new Num(); |
| 1109 | resultIsReadOnly = false; |
| 1110 | MergeFrom(original); |
| 1111 | } |
| 1112 | return result; |
| 1113 | } |
| 1114 | |
| 1115 | public override bool IsInitialized { |
| 1116 | get { return result.IsInitialized; } |
| 1117 | } |
| 1118 | |
| 1119 | protected override Num MessageBeingBuilt { |
| 1120 | get { return PrepareBuilder(); } |
| 1121 | } |
| 1122 | |
| 1123 | public override Builder Clear() { |
| 1124 | result = DefaultInstance; |
| 1125 | resultIsReadOnly = true; |
| 1126 | return this; |
| 1127 | } |
| 1128 | |
| 1129 | public override Builder Clone() { |
| 1130 | if (resultIsReadOnly) { |
| 1131 | return new Builder(result); |
| 1132 | } else { |
| 1133 | return new Builder().MergeFrom(result); |
| 1134 | } |
| 1135 | } |
| 1136 | |
| 1137 | public override pbd::MessageDescriptor DescriptorForType { |
| 1138 | get { return global::math.Num.Descriptor; } |
| 1139 | } |
| 1140 | |
| 1141 | public override Num DefaultInstanceForType { |
| 1142 | get { return global::math.Num.DefaultInstance; } |
| 1143 | } |
| 1144 | |
| 1145 | public override Num BuildPartial() { |
| 1146 | if (resultIsReadOnly) { |
| 1147 | return result; |
| 1148 | } |
| 1149 | resultIsReadOnly = true; |
| 1150 | return result.MakeReadOnly(); |
| 1151 | } |
| 1152 | |
| 1153 | public override Builder MergeFrom(pb::IMessage other) { |
| 1154 | if (other is Num) { |
| 1155 | return MergeFrom((Num) other); |
| 1156 | } else { |
| 1157 | base.MergeFrom(other); |
| 1158 | return this; |
| 1159 | } |
| 1160 | } |
| 1161 | |
| 1162 | public override Builder MergeFrom(Num other) { |
| 1163 | if (other == global::math.Num.DefaultInstance) return this; |
| 1164 | PrepareBuilder(); |
| 1165 | if (other.HasNum_) { |
| 1166 | Num_ = other.Num_; |
| 1167 | } |
| 1168 | this.MergeUnknownFields(other.UnknownFields); |
| 1169 | return this; |
| 1170 | } |
| 1171 | |
| 1172 | public override Builder MergeFrom(pb::ICodedInputStream input) { |
| 1173 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1174 | } |
| 1175 | |
| 1176 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1177 | PrepareBuilder(); |
| 1178 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 1179 | uint tag; |
| 1180 | string field_name; |
| 1181 | while (input.ReadTag(out tag, out field_name)) { |
| 1182 | if(tag == 0 && field_name != null) { |
| 1183 | int field_ordinal = global::System.Array.BinarySearch(_numFieldNames, field_name, global::System.StringComparer.Ordinal); |
| 1184 | if(field_ordinal >= 0) |
| 1185 | tag = _numFieldTags[field_ordinal]; |
| 1186 | else { |
| 1187 | if (unknownFields == null) { |
| 1188 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1189 | } |
| 1190 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
| 1191 | continue; |
| 1192 | } |
| 1193 | } |
| 1194 | switch (tag) { |
| 1195 | case 0: { |
| 1196 | throw pb::InvalidProtocolBufferException.InvalidTag(); |
| 1197 | } |
| 1198 | default: { |
| 1199 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 1200 | if (unknownFields != null) { |
| 1201 | this.UnknownFields = unknownFields.Build(); |
| 1202 | } |
| 1203 | return this; |
| 1204 | } |
| 1205 | if (unknownFields == null) { |
| 1206 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1207 | } |
| 1208 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
| 1209 | break; |
| 1210 | } |
| 1211 | case 8: { |
| 1212 | result.hasNum_ = input.ReadInt64(ref result.num_); |
| 1213 | break; |
| 1214 | } |
| 1215 | } |
| 1216 | } |
| 1217 | |
| 1218 | if (unknownFields != null) { |
| 1219 | this.UnknownFields = unknownFields.Build(); |
| 1220 | } |
| 1221 | return this; |
| 1222 | } |
| 1223 | |
| 1224 | |
| 1225 | public bool HasNum_ { |
| 1226 | get { return result.hasNum_; } |
| 1227 | } |
| 1228 | public long Num_ { |
| 1229 | get { return result.Num_; } |
| 1230 | set { SetNum_(value); } |
| 1231 | } |
| 1232 | public Builder SetNum_(long value) { |
| 1233 | PrepareBuilder(); |
| 1234 | result.hasNum_ = true; |
| 1235 | result.num_ = value; |
| 1236 | return this; |
| 1237 | } |
| 1238 | public Builder ClearNum_() { |
| 1239 | PrepareBuilder(); |
| 1240 | result.hasNum_ = false; |
| 1241 | result.num_ = 0L; |
| 1242 | return this; |
| 1243 | } |
| 1244 | } |
| 1245 | static Num() { |
| 1246 | object.ReferenceEquals(global::math.Proto.Math.Descriptor, null); |
| 1247 | } |
| 1248 | } |
| 1249 | |
| 1250 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 1251 | public sealed partial class FibReply : pb::GeneratedMessage<FibReply, FibReply.Builder> { |
| 1252 | private FibReply() { } |
| 1253 | private static readonly FibReply defaultInstance = new FibReply().MakeReadOnly(); |
| 1254 | private static readonly string[] _fibReplyFieldNames = new string[] { "count" }; |
| 1255 | private static readonly uint[] _fibReplyFieldTags = new uint[] { 8 }; |
| 1256 | public static FibReply DefaultInstance { |
| 1257 | get { return defaultInstance; } |
| 1258 | } |
| 1259 | |
| 1260 | public override FibReply DefaultInstanceForType { |
| 1261 | get { return DefaultInstance; } |
| 1262 | } |
| 1263 | |
| 1264 | protected override FibReply ThisMessage { |
| 1265 | get { return this; } |
| 1266 | } |
| 1267 | |
| 1268 | public static pbd::MessageDescriptor Descriptor { |
| 1269 | get { return global::math.Proto.Math.internal__static_math_FibReply__Descriptor; } |
| 1270 | } |
| 1271 | |
| 1272 | protected override pb::FieldAccess.FieldAccessorTable<FibReply, FibReply.Builder> InternalFieldAccessors { |
| 1273 | get { return global::math.Proto.Math.internal__static_math_FibReply__FieldAccessorTable; } |
| 1274 | } |
| 1275 | |
| 1276 | public const int CountFieldNumber = 1; |
| 1277 | private bool hasCount; |
| 1278 | private long count_; |
| 1279 | public bool HasCount { |
| 1280 | get { return hasCount; } |
| 1281 | } |
| 1282 | public long Count { |
| 1283 | get { return count_; } |
| 1284 | } |
| 1285 | |
| 1286 | public override bool IsInitialized { |
| 1287 | get { |
| 1288 | return true; |
| 1289 | } |
| 1290 | } |
| 1291 | |
| 1292 | public override void WriteTo(pb::ICodedOutputStream output) { |
| 1293 | int size = SerializedSize; |
| 1294 | string[] field_names = _fibReplyFieldNames; |
| 1295 | if (hasCount) { |
| 1296 | output.WriteInt64(1, field_names[0], Count); |
| 1297 | } |
| 1298 | UnknownFields.WriteTo(output); |
| 1299 | } |
| 1300 | |
| 1301 | private int memoizedSerializedSize = -1; |
| 1302 | public override int SerializedSize { |
| 1303 | get { |
| 1304 | int size = memoizedSerializedSize; |
| 1305 | if (size != -1) return size; |
| 1306 | |
| 1307 | size = 0; |
| 1308 | if (hasCount) { |
| 1309 | size += pb::CodedOutputStream.ComputeInt64Size(1, Count); |
| 1310 | } |
| 1311 | size += UnknownFields.SerializedSize; |
| 1312 | memoizedSerializedSize = size; |
| 1313 | return size; |
| 1314 | } |
| 1315 | } |
| 1316 | |
| 1317 | public static FibReply ParseFrom(pb::ByteString data) { |
| 1318 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1319 | } |
| 1320 | public static FibReply ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1321 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1322 | } |
| 1323 | public static FibReply ParseFrom(byte[] data) { |
| 1324 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1325 | } |
| 1326 | public static FibReply ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1327 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1328 | } |
| 1329 | public static FibReply ParseFrom(global::System.IO.Stream input) { |
| 1330 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1331 | } |
| 1332 | public static FibReply ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1333 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1334 | } |
| 1335 | public static FibReply ParseDelimitedFrom(global::System.IO.Stream input) { |
| 1336 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 1337 | } |
| 1338 | public static FibReply ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1339 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 1340 | } |
| 1341 | public static FibReply ParseFrom(pb::ICodedInputStream input) { |
| 1342 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1343 | } |
| 1344 | public static FibReply ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1345 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1346 | } |
| 1347 | private FibReply MakeReadOnly() { |
| 1348 | return this; |
| 1349 | } |
| 1350 | |
| 1351 | public static Builder CreateBuilder() { return new Builder(); } |
| 1352 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 1353 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1354 | public static Builder CreateBuilder(FibReply prototype) { |
| 1355 | return new Builder(prototype); |
| 1356 | } |
| 1357 | |
| 1358 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 1359 | public sealed partial class Builder : pb::GeneratedBuilder<FibReply, Builder> { |
| 1360 | protected override Builder ThisBuilder { |
| 1361 | get { return this; } |
| 1362 | } |
| 1363 | public Builder() { |
| 1364 | result = DefaultInstance; |
| 1365 | resultIsReadOnly = true; |
| 1366 | } |
| 1367 | internal Builder(FibReply cloneFrom) { |
| 1368 | result = cloneFrom; |
| 1369 | resultIsReadOnly = true; |
| 1370 | } |
| 1371 | |
| 1372 | private bool resultIsReadOnly; |
| 1373 | private FibReply result; |
| 1374 | |
| 1375 | private FibReply PrepareBuilder() { |
| 1376 | if (resultIsReadOnly) { |
| 1377 | FibReply original = result; |
| 1378 | result = new FibReply(); |
| 1379 | resultIsReadOnly = false; |
| 1380 | MergeFrom(original); |
| 1381 | } |
| 1382 | return result; |
| 1383 | } |
| 1384 | |
| 1385 | public override bool IsInitialized { |
| 1386 | get { return result.IsInitialized; } |
| 1387 | } |
| 1388 | |
| 1389 | protected override FibReply MessageBeingBuilt { |
| 1390 | get { return PrepareBuilder(); } |
| 1391 | } |
| 1392 | |
| 1393 | public override Builder Clear() { |
| 1394 | result = DefaultInstance; |
| 1395 | resultIsReadOnly = true; |
| 1396 | return this; |
| 1397 | } |
| 1398 | |
| 1399 | public override Builder Clone() { |
| 1400 | if (resultIsReadOnly) { |
| 1401 | return new Builder(result); |
| 1402 | } else { |
| 1403 | return new Builder().MergeFrom(result); |
| 1404 | } |
| 1405 | } |
| 1406 | |
| 1407 | public override pbd::MessageDescriptor DescriptorForType { |
| 1408 | get { return global::math.FibReply.Descriptor; } |
| 1409 | } |
| 1410 | |
| 1411 | public override FibReply DefaultInstanceForType { |
| 1412 | get { return global::math.FibReply.DefaultInstance; } |
| 1413 | } |
| 1414 | |
| 1415 | public override FibReply BuildPartial() { |
| 1416 | if (resultIsReadOnly) { |
| 1417 | return result; |
| 1418 | } |
| 1419 | resultIsReadOnly = true; |
| 1420 | return result.MakeReadOnly(); |
| 1421 | } |
| 1422 | |
| 1423 | public override Builder MergeFrom(pb::IMessage other) { |
| 1424 | if (other is FibReply) { |
| 1425 | return MergeFrom((FibReply) other); |
| 1426 | } else { |
| 1427 | base.MergeFrom(other); |
| 1428 | return this; |
| 1429 | } |
| 1430 | } |
| 1431 | |
| 1432 | public override Builder MergeFrom(FibReply other) { |
| 1433 | if (other == global::math.FibReply.DefaultInstance) return this; |
| 1434 | PrepareBuilder(); |
| 1435 | if (other.HasCount) { |
| 1436 | Count = other.Count; |
| 1437 | } |
| 1438 | this.MergeUnknownFields(other.UnknownFields); |
| 1439 | return this; |
| 1440 | } |
| 1441 | |
| 1442 | public override Builder MergeFrom(pb::ICodedInputStream input) { |
| 1443 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1444 | } |
| 1445 | |
| 1446 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1447 | PrepareBuilder(); |
| 1448 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 1449 | uint tag; |
| 1450 | string field_name; |
| 1451 | while (input.ReadTag(out tag, out field_name)) { |
| 1452 | if(tag == 0 && field_name != null) { |
| 1453 | int field_ordinal = global::System.Array.BinarySearch(_fibReplyFieldNames, field_name, global::System.StringComparer.Ordinal); |
| 1454 | if(field_ordinal >= 0) |
| 1455 | tag = _fibReplyFieldTags[field_ordinal]; |
| 1456 | else { |
| 1457 | if (unknownFields == null) { |
| 1458 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1459 | } |
| 1460 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
| 1461 | continue; |
| 1462 | } |
| 1463 | } |
| 1464 | switch (tag) { |
| 1465 | case 0: { |
| 1466 | throw pb::InvalidProtocolBufferException.InvalidTag(); |
| 1467 | } |
| 1468 | default: { |
| 1469 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 1470 | if (unknownFields != null) { |
| 1471 | this.UnknownFields = unknownFields.Build(); |
| 1472 | } |
| 1473 | return this; |
| 1474 | } |
| 1475 | if (unknownFields == null) { |
| 1476 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1477 | } |
| 1478 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
| 1479 | break; |
| 1480 | } |
| 1481 | case 8: { |
| 1482 | result.hasCount = input.ReadInt64(ref result.count_); |
| 1483 | break; |
| 1484 | } |
| 1485 | } |
| 1486 | } |
| 1487 | |
| 1488 | if (unknownFields != null) { |
| 1489 | this.UnknownFields = unknownFields.Build(); |
| 1490 | } |
| 1491 | return this; |
| 1492 | } |
| 1493 | |
| 1494 | |
| 1495 | public bool HasCount { |
| 1496 | get { return result.hasCount; } |
| 1497 | } |
| 1498 | public long Count { |
| 1499 | get { return result.Count; } |
| 1500 | set { SetCount(value); } |
| 1501 | } |
| 1502 | public Builder SetCount(long value) { |
| 1503 | PrepareBuilder(); |
| 1504 | result.hasCount = true; |
| 1505 | result.count_ = value; |
| 1506 | return this; |
| 1507 | } |
| 1508 | public Builder ClearCount() { |
| 1509 | PrepareBuilder(); |
| 1510 | result.hasCount = false; |
| 1511 | result.count_ = 0L; |
| 1512 | return this; |
| 1513 | } |
| 1514 | } |
| 1515 | static FibReply() { |
| 1516 | object.ReferenceEquals(global::math.Proto.Math.Descriptor, null); |
| 1517 | } |
| 1518 | } |
| 1519 | |
| 1520 | #endregion |
| 1521 | |
| 1522 | #region Services |
| 1523 | /* |
| 1524 | * Service generation is now disabled by default, use the following option to enable: |
| 1525 | * option (google.protobuf.csharp_file_options).service_generator_type = GENERIC; |
| 1526 | */ |
| 1527 | #endregion |
| 1528 | |
| 1529 | } |
| 1530 | |
| 1531 | #endregion Designer generated code |