OLD | NEW |
1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 // source: google/protobuf/unittest_proto3.proto | 2 // source: google/protobuf/unittest_proto3.proto |
3 #pragma warning disable 1591, 0612, 3021 | 3 #pragma warning disable 1591, 0612, 3021 |
4 #region Designer generated code | 4 #region Designer generated code |
5 | 5 |
6 using pb = global::Google.Protobuf; | 6 using pb = global::Google.Protobuf; |
7 using pbc = global::Google.Protobuf.Collections; | 7 using pbc = global::Google.Protobuf.Collections; |
8 using pbr = global::Google.Protobuf.Reflection; | 8 using pbr = global::Google.Protobuf.Reflection; |
9 using scg = global::System.Collections.Generic; | 9 using scg = global::System.Collections.Generic; |
10 namespace Google.Protobuf.TestProtos { | 10 namespace Google.Protobuf.TestProtos { |
11 | 11 |
12 /// <summary>Holder for reflection information generated from google/protobuf/
unittest_proto3.proto</summary> | 12 /// <summary>Holder for reflection information generated from google/protobuf/
unittest_proto3.proto</summary> |
13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
14 public static partial class UnittestProto3Reflection { | 13 public static partial class UnittestProto3Reflection { |
15 | 14 |
16 #region Descriptor | 15 #region Descriptor |
17 /// <summary>File descriptor for google/protobuf/unittest_proto3.proto</summ
ary> | 16 /// <summary>File descriptor for google/protobuf/unittest_proto3.proto</summ
ary> |
18 public static pbr::FileDescriptor Descriptor { | 17 public static pbr::FileDescriptor Descriptor { |
19 get { return descriptor; } | 18 get { return descriptor; } |
20 } | 19 } |
21 private static pbr::FileDescriptor descriptor; | 20 private static pbr::FileDescriptor descriptor; |
22 | 21 |
23 static UnittestProto3Reflection() { | 22 static UnittestProto3Reflection() { |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 } | 192 } |
194 #region Enums | 193 #region Enums |
195 public enum ForeignEnum { | 194 public enum ForeignEnum { |
196 [pbr::OriginalName("FOREIGN_UNSPECIFIED")] ForeignUnspecified = 0, | 195 [pbr::OriginalName("FOREIGN_UNSPECIFIED")] ForeignUnspecified = 0, |
197 [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 4, | 196 [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 4, |
198 [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 5, | 197 [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 5, |
199 [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 6, | 198 [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 6, |
200 } | 199 } |
201 | 200 |
202 /// <summary> | 201 /// <summary> |
203 /// Test an enum that has multiple values with the same number. | 202 /// Test an enum that has multiple values with the same number. |
204 /// </summary> | 203 /// </summary> |
205 public enum TestEnumWithDupValue { | 204 public enum TestEnumWithDupValue { |
206 [pbr::OriginalName("TEST_ENUM_WITH_DUP_VALUE_UNSPECIFIED")] Unspecified = 0, | 205 [pbr::OriginalName("TEST_ENUM_WITH_DUP_VALUE_UNSPECIFIED")] Unspecified = 0, |
207 [pbr::OriginalName("FOO1")] Foo1 = 1, | 206 [pbr::OriginalName("FOO1")] Foo1 = 1, |
208 [pbr::OriginalName("BAR1")] Bar1 = 2, | 207 [pbr::OriginalName("BAR1")] Bar1 = 2, |
209 [pbr::OriginalName("BAZ")] Baz = 3, | 208 [pbr::OriginalName("BAZ")] Baz = 3, |
210 [pbr::OriginalName("FOO2")] Foo2 = 1, | 209 [pbr::OriginalName("FOO2")] Foo2 = 1, |
211 [pbr::OriginalName("BAR2")] Bar2 = 2, | 210 [pbr::OriginalName("BAR2")] Bar2 = 2, |
212 } | 211 } |
213 | 212 |
214 /// <summary> | 213 /// <summary> |
215 /// Test an enum with large, unordered values. | 214 /// Test an enum with large, unordered values. |
216 /// </summary> | 215 /// </summary> |
217 public enum TestSparseEnum { | 216 public enum TestSparseEnum { |
218 [pbr::OriginalName("TEST_SPARSE_ENUM_UNSPECIFIED")] Unspecified = 0, | 217 [pbr::OriginalName("TEST_SPARSE_ENUM_UNSPECIFIED")] Unspecified = 0, |
219 [pbr::OriginalName("SPARSE_A")] SparseA = 123, | 218 [pbr::OriginalName("SPARSE_A")] SparseA = 123, |
220 [pbr::OriginalName("SPARSE_B")] SparseB = 62374, | 219 [pbr::OriginalName("SPARSE_B")] SparseB = 62374, |
221 [pbr::OriginalName("SPARSE_C")] SparseC = 12589234, | 220 [pbr::OriginalName("SPARSE_C")] SparseC = 12589234, |
222 [pbr::OriginalName("SPARSE_D")] SparseD = -15, | 221 [pbr::OriginalName("SPARSE_D")] SparseD = -15, |
223 [pbr::OriginalName("SPARSE_E")] SparseE = -53452, | 222 [pbr::OriginalName("SPARSE_E")] SparseE = -53452, |
224 /// <summary> | 223 /// <summary> |
225 /// In proto3, value 0 must be the first one specified | 224 /// In proto3, value 0 must be the first one specified |
226 /// SPARSE_F = 0; | 225 /// SPARSE_F = 0; |
227 /// </summary> | 226 /// </summary> |
228 [pbr::OriginalName("SPARSE_G")] SparseG = 2, | 227 [pbr::OriginalName("SPARSE_G")] SparseG = 2, |
229 } | 228 } |
230 | 229 |
231 #endregion | 230 #endregion |
232 | 231 |
233 #region Messages | 232 #region Messages |
234 /// <summary> | 233 /// <summary> |
235 /// This proto includes every type of field in both singular and repeated | 234 /// This proto includes every type of field in both singular and repeated |
236 /// forms. | 235 /// forms. |
237 /// </summary> | 236 /// </summary> |
238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
239 public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> { | 237 public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> { |
240 private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::Me
ssageParser<TestAllTypes>(() => new TestAllTypes()); | 238 private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::Me
ssageParser<TestAllTypes>(() => new TestAllTypes()); |
| 239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
241 public static pb::MessageParser<TestAllTypes> Parser { get { return _parser;
} } | 240 public static pb::MessageParser<TestAllTypes> Parser { get { return _parser;
} } |
242 | 241 |
| 242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
243 public static pbr::MessageDescriptor Descriptor { | 243 public static pbr::MessageDescriptor Descriptor { |
244 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[0]; } | 244 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[0]; } |
245 } | 245 } |
246 | 246 |
| 247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
247 pbr::MessageDescriptor pb::IMessage.Descriptor { | 248 pbr::MessageDescriptor pb::IMessage.Descriptor { |
248 get { return Descriptor; } | 249 get { return Descriptor; } |
249 } | 250 } |
250 | 251 |
| 252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
251 public TestAllTypes() { | 253 public TestAllTypes() { |
252 OnConstruction(); | 254 OnConstruction(); |
253 } | 255 } |
254 | 256 |
255 partial void OnConstruction(); | 257 partial void OnConstruction(); |
256 | 258 |
| 259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
257 public TestAllTypes(TestAllTypes other) : this() { | 260 public TestAllTypes(TestAllTypes other) : this() { |
258 singleInt32_ = other.singleInt32_; | 261 singleInt32_ = other.singleInt32_; |
259 singleInt64_ = other.singleInt64_; | 262 singleInt64_ = other.singleInt64_; |
260 singleUint32_ = other.singleUint32_; | 263 singleUint32_ = other.singleUint32_; |
261 singleUint64_ = other.singleUint64_; | 264 singleUint64_ = other.singleUint64_; |
262 singleSint32_ = other.singleSint32_; | 265 singleSint32_ = other.singleSint32_; |
263 singleSint64_ = other.singleSint64_; | 266 singleSint64_ = other.singleSint64_; |
264 singleFixed32_ = other.singleFixed32_; | 267 singleFixed32_ = other.singleFixed32_; |
265 singleFixed64_ = other.singleFixed64_; | 268 singleFixed64_ = other.singleFixed64_; |
266 singleSfixed32_ = other.singleSfixed32_; | 269 singleSfixed32_ = other.singleSfixed32_; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 case OneofFieldOneofCase.OneofString: | 312 case OneofFieldOneofCase.OneofString: |
310 OneofString = other.OneofString; | 313 OneofString = other.OneofString; |
311 break; | 314 break; |
312 case OneofFieldOneofCase.OneofBytes: | 315 case OneofFieldOneofCase.OneofBytes: |
313 OneofBytes = other.OneofBytes; | 316 OneofBytes = other.OneofBytes; |
314 break; | 317 break; |
315 } | 318 } |
316 | 319 |
317 } | 320 } |
318 | 321 |
| 322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
319 public TestAllTypes Clone() { | 323 public TestAllTypes Clone() { |
320 return new TestAllTypes(this); | 324 return new TestAllTypes(this); |
321 } | 325 } |
322 | 326 |
323 /// <summary>Field number for the "single_int32" field.</summary> | 327 /// <summary>Field number for the "single_int32" field.</summary> |
324 public const int SingleInt32FieldNumber = 1; | 328 public const int SingleInt32FieldNumber = 1; |
325 private int singleInt32_; | 329 private int singleInt32_; |
326 /// <summary> | 330 /// <summary> |
327 /// Singular | 331 /// Singular |
328 /// </summary> | 332 /// </summary> |
| 333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
329 public int SingleInt32 { | 334 public int SingleInt32 { |
330 get { return singleInt32_; } | 335 get { return singleInt32_; } |
331 set { | 336 set { |
332 singleInt32_ = value; | 337 singleInt32_ = value; |
333 } | 338 } |
334 } | 339 } |
335 | 340 |
336 /// <summary>Field number for the "single_int64" field.</summary> | 341 /// <summary>Field number for the "single_int64" field.</summary> |
337 public const int SingleInt64FieldNumber = 2; | 342 public const int SingleInt64FieldNumber = 2; |
338 private long singleInt64_; | 343 private long singleInt64_; |
| 344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
339 public long SingleInt64 { | 345 public long SingleInt64 { |
340 get { return singleInt64_; } | 346 get { return singleInt64_; } |
341 set { | 347 set { |
342 singleInt64_ = value; | 348 singleInt64_ = value; |
343 } | 349 } |
344 } | 350 } |
345 | 351 |
346 /// <summary>Field number for the "single_uint32" field.</summary> | 352 /// <summary>Field number for the "single_uint32" field.</summary> |
347 public const int SingleUint32FieldNumber = 3; | 353 public const int SingleUint32FieldNumber = 3; |
348 private uint singleUint32_; | 354 private uint singleUint32_; |
| 355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
349 public uint SingleUint32 { | 356 public uint SingleUint32 { |
350 get { return singleUint32_; } | 357 get { return singleUint32_; } |
351 set { | 358 set { |
352 singleUint32_ = value; | 359 singleUint32_ = value; |
353 } | 360 } |
354 } | 361 } |
355 | 362 |
356 /// <summary>Field number for the "single_uint64" field.</summary> | 363 /// <summary>Field number for the "single_uint64" field.</summary> |
357 public const int SingleUint64FieldNumber = 4; | 364 public const int SingleUint64FieldNumber = 4; |
358 private ulong singleUint64_; | 365 private ulong singleUint64_; |
| 366 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
359 public ulong SingleUint64 { | 367 public ulong SingleUint64 { |
360 get { return singleUint64_; } | 368 get { return singleUint64_; } |
361 set { | 369 set { |
362 singleUint64_ = value; | 370 singleUint64_ = value; |
363 } | 371 } |
364 } | 372 } |
365 | 373 |
366 /// <summary>Field number for the "single_sint32" field.</summary> | 374 /// <summary>Field number for the "single_sint32" field.</summary> |
367 public const int SingleSint32FieldNumber = 5; | 375 public const int SingleSint32FieldNumber = 5; |
368 private int singleSint32_; | 376 private int singleSint32_; |
| 377 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
369 public int SingleSint32 { | 378 public int SingleSint32 { |
370 get { return singleSint32_; } | 379 get { return singleSint32_; } |
371 set { | 380 set { |
372 singleSint32_ = value; | 381 singleSint32_ = value; |
373 } | 382 } |
374 } | 383 } |
375 | 384 |
376 /// <summary>Field number for the "single_sint64" field.</summary> | 385 /// <summary>Field number for the "single_sint64" field.</summary> |
377 public const int SingleSint64FieldNumber = 6; | 386 public const int SingleSint64FieldNumber = 6; |
378 private long singleSint64_; | 387 private long singleSint64_; |
| 388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
379 public long SingleSint64 { | 389 public long SingleSint64 { |
380 get { return singleSint64_; } | 390 get { return singleSint64_; } |
381 set { | 391 set { |
382 singleSint64_ = value; | 392 singleSint64_ = value; |
383 } | 393 } |
384 } | 394 } |
385 | 395 |
386 /// <summary>Field number for the "single_fixed32" field.</summary> | 396 /// <summary>Field number for the "single_fixed32" field.</summary> |
387 public const int SingleFixed32FieldNumber = 7; | 397 public const int SingleFixed32FieldNumber = 7; |
388 private uint singleFixed32_; | 398 private uint singleFixed32_; |
| 399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
389 public uint SingleFixed32 { | 400 public uint SingleFixed32 { |
390 get { return singleFixed32_; } | 401 get { return singleFixed32_; } |
391 set { | 402 set { |
392 singleFixed32_ = value; | 403 singleFixed32_ = value; |
393 } | 404 } |
394 } | 405 } |
395 | 406 |
396 /// <summary>Field number for the "single_fixed64" field.</summary> | 407 /// <summary>Field number for the "single_fixed64" field.</summary> |
397 public const int SingleFixed64FieldNumber = 8; | 408 public const int SingleFixed64FieldNumber = 8; |
398 private ulong singleFixed64_; | 409 private ulong singleFixed64_; |
| 410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
399 public ulong SingleFixed64 { | 411 public ulong SingleFixed64 { |
400 get { return singleFixed64_; } | 412 get { return singleFixed64_; } |
401 set { | 413 set { |
402 singleFixed64_ = value; | 414 singleFixed64_ = value; |
403 } | 415 } |
404 } | 416 } |
405 | 417 |
406 /// <summary>Field number for the "single_sfixed32" field.</summary> | 418 /// <summary>Field number for the "single_sfixed32" field.</summary> |
407 public const int SingleSfixed32FieldNumber = 9; | 419 public const int SingleSfixed32FieldNumber = 9; |
408 private int singleSfixed32_; | 420 private int singleSfixed32_; |
| 421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
409 public int SingleSfixed32 { | 422 public int SingleSfixed32 { |
410 get { return singleSfixed32_; } | 423 get { return singleSfixed32_; } |
411 set { | 424 set { |
412 singleSfixed32_ = value; | 425 singleSfixed32_ = value; |
413 } | 426 } |
414 } | 427 } |
415 | 428 |
416 /// <summary>Field number for the "single_sfixed64" field.</summary> | 429 /// <summary>Field number for the "single_sfixed64" field.</summary> |
417 public const int SingleSfixed64FieldNumber = 10; | 430 public const int SingleSfixed64FieldNumber = 10; |
418 private long singleSfixed64_; | 431 private long singleSfixed64_; |
| 432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
419 public long SingleSfixed64 { | 433 public long SingleSfixed64 { |
420 get { return singleSfixed64_; } | 434 get { return singleSfixed64_; } |
421 set { | 435 set { |
422 singleSfixed64_ = value; | 436 singleSfixed64_ = value; |
423 } | 437 } |
424 } | 438 } |
425 | 439 |
426 /// <summary>Field number for the "single_float" field.</summary> | 440 /// <summary>Field number for the "single_float" field.</summary> |
427 public const int SingleFloatFieldNumber = 11; | 441 public const int SingleFloatFieldNumber = 11; |
428 private float singleFloat_; | 442 private float singleFloat_; |
| 443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
429 public float SingleFloat { | 444 public float SingleFloat { |
430 get { return singleFloat_; } | 445 get { return singleFloat_; } |
431 set { | 446 set { |
432 singleFloat_ = value; | 447 singleFloat_ = value; |
433 } | 448 } |
434 } | 449 } |
435 | 450 |
436 /// <summary>Field number for the "single_double" field.</summary> | 451 /// <summary>Field number for the "single_double" field.</summary> |
437 public const int SingleDoubleFieldNumber = 12; | 452 public const int SingleDoubleFieldNumber = 12; |
438 private double singleDouble_; | 453 private double singleDouble_; |
| 454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
439 public double SingleDouble { | 455 public double SingleDouble { |
440 get { return singleDouble_; } | 456 get { return singleDouble_; } |
441 set { | 457 set { |
442 singleDouble_ = value; | 458 singleDouble_ = value; |
443 } | 459 } |
444 } | 460 } |
445 | 461 |
446 /// <summary>Field number for the "single_bool" field.</summary> | 462 /// <summary>Field number for the "single_bool" field.</summary> |
447 public const int SingleBoolFieldNumber = 13; | 463 public const int SingleBoolFieldNumber = 13; |
448 private bool singleBool_; | 464 private bool singleBool_; |
| 465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
449 public bool SingleBool { | 466 public bool SingleBool { |
450 get { return singleBool_; } | 467 get { return singleBool_; } |
451 set { | 468 set { |
452 singleBool_ = value; | 469 singleBool_ = value; |
453 } | 470 } |
454 } | 471 } |
455 | 472 |
456 /// <summary>Field number for the "single_string" field.</summary> | 473 /// <summary>Field number for the "single_string" field.</summary> |
457 public const int SingleStringFieldNumber = 14; | 474 public const int SingleStringFieldNumber = 14; |
458 private string singleString_ = ""; | 475 private string singleString_ = ""; |
| 476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
459 public string SingleString { | 477 public string SingleString { |
460 get { return singleString_; } | 478 get { return singleString_; } |
461 set { | 479 set { |
462 singleString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 480 singleString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
463 } | 481 } |
464 } | 482 } |
465 | 483 |
466 /// <summary>Field number for the "single_bytes" field.</summary> | 484 /// <summary>Field number for the "single_bytes" field.</summary> |
467 public const int SingleBytesFieldNumber = 15; | 485 public const int SingleBytesFieldNumber = 15; |
468 private pb::ByteString singleBytes_ = pb::ByteString.Empty; | 486 private pb::ByteString singleBytes_ = pb::ByteString.Empty; |
| 487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
469 public pb::ByteString SingleBytes { | 488 public pb::ByteString SingleBytes { |
470 get { return singleBytes_; } | 489 get { return singleBytes_; } |
471 set { | 490 set { |
472 singleBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 491 singleBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
473 } | 492 } |
474 } | 493 } |
475 | 494 |
476 /// <summary>Field number for the "single_nested_message" field.</summary> | 495 /// <summary>Field number for the "single_nested_message" field.</summary> |
477 public const int SingleNestedMessageFieldNumber = 18; | 496 public const int SingleNestedMessageFieldNumber = 18; |
478 private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage
singleNestedMessage_; | 497 private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage
singleNestedMessage_; |
| 498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
479 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage S
ingleNestedMessage { | 499 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage S
ingleNestedMessage { |
480 get { return singleNestedMessage_; } | 500 get { return singleNestedMessage_; } |
481 set { | 501 set { |
482 singleNestedMessage_ = value; | 502 singleNestedMessage_ = value; |
483 } | 503 } |
484 } | 504 } |
485 | 505 |
486 /// <summary>Field number for the "single_foreign_message" field.</summary> | 506 /// <summary>Field number for the "single_foreign_message" field.</summary> |
487 public const int SingleForeignMessageFieldNumber = 19; | 507 public const int SingleForeignMessageFieldNumber = 19; |
488 private global::Google.Protobuf.TestProtos.ForeignMessage singleForeignMessa
ge_; | 508 private global::Google.Protobuf.TestProtos.ForeignMessage singleForeignMessa
ge_; |
| 509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
489 public global::Google.Protobuf.TestProtos.ForeignMessage SingleForeignMessag
e { | 510 public global::Google.Protobuf.TestProtos.ForeignMessage SingleForeignMessag
e { |
490 get { return singleForeignMessage_; } | 511 get { return singleForeignMessage_; } |
491 set { | 512 set { |
492 singleForeignMessage_ = value; | 513 singleForeignMessage_ = value; |
493 } | 514 } |
494 } | 515 } |
495 | 516 |
496 /// <summary>Field number for the "single_import_message" field.</summary> | 517 /// <summary>Field number for the "single_import_message" field.</summary> |
497 public const int SingleImportMessageFieldNumber = 20; | 518 public const int SingleImportMessageFieldNumber = 20; |
498 private global::Google.Protobuf.TestProtos.ImportMessage singleImportMessage
_; | 519 private global::Google.Protobuf.TestProtos.ImportMessage singleImportMessage
_; |
| 520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
499 public global::Google.Protobuf.TestProtos.ImportMessage SingleImportMessage
{ | 521 public global::Google.Protobuf.TestProtos.ImportMessage SingleImportMessage
{ |
500 get { return singleImportMessage_; } | 522 get { return singleImportMessage_; } |
501 set { | 523 set { |
502 singleImportMessage_ = value; | 524 singleImportMessage_ = value; |
503 } | 525 } |
504 } | 526 } |
505 | 527 |
506 /// <summary>Field number for the "single_nested_enum" field.</summary> | 528 /// <summary>Field number for the "single_nested_enum" field.</summary> |
507 public const int SingleNestedEnumFieldNumber = 21; | 529 public const int SingleNestedEnumFieldNumber = 21; |
508 private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum sin
gleNestedEnum_ = 0; | 530 private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum sin
gleNestedEnum_ = 0; |
| 531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
509 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum Sing
leNestedEnum { | 532 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum Sing
leNestedEnum { |
510 get { return singleNestedEnum_; } | 533 get { return singleNestedEnum_; } |
511 set { | 534 set { |
512 singleNestedEnum_ = value; | 535 singleNestedEnum_ = value; |
513 } | 536 } |
514 } | 537 } |
515 | 538 |
516 /// <summary>Field number for the "single_foreign_enum" field.</summary> | 539 /// <summary>Field number for the "single_foreign_enum" field.</summary> |
517 public const int SingleForeignEnumFieldNumber = 22; | 540 public const int SingleForeignEnumFieldNumber = 22; |
518 private global::Google.Protobuf.TestProtos.ForeignEnum singleForeignEnum_ =
0; | 541 private global::Google.Protobuf.TestProtos.ForeignEnum singleForeignEnum_ =
0; |
| 542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
519 public global::Google.Protobuf.TestProtos.ForeignEnum SingleForeignEnum { | 543 public global::Google.Protobuf.TestProtos.ForeignEnum SingleForeignEnum { |
520 get { return singleForeignEnum_; } | 544 get { return singleForeignEnum_; } |
521 set { | 545 set { |
522 singleForeignEnum_ = value; | 546 singleForeignEnum_ = value; |
523 } | 547 } |
524 } | 548 } |
525 | 549 |
526 /// <summary>Field number for the "single_import_enum" field.</summary> | 550 /// <summary>Field number for the "single_import_enum" field.</summary> |
527 public const int SingleImportEnumFieldNumber = 23; | 551 public const int SingleImportEnumFieldNumber = 23; |
528 private global::Google.Protobuf.TestProtos.ImportEnum singleImportEnum_ = 0; | 552 private global::Google.Protobuf.TestProtos.ImportEnum singleImportEnum_ = 0; |
| 553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
529 public global::Google.Protobuf.TestProtos.ImportEnum SingleImportEnum { | 554 public global::Google.Protobuf.TestProtos.ImportEnum SingleImportEnum { |
530 get { return singleImportEnum_; } | 555 get { return singleImportEnum_; } |
531 set { | 556 set { |
532 singleImportEnum_ = value; | 557 singleImportEnum_ = value; |
533 } | 558 } |
534 } | 559 } |
535 | 560 |
536 /// <summary>Field number for the "single_public_import_message" field.</sum
mary> | 561 /// <summary>Field number for the "single_public_import_message" field.</sum
mary> |
537 public const int SinglePublicImportMessageFieldNumber = 26; | 562 public const int SinglePublicImportMessageFieldNumber = 26; |
538 private global::Google.Protobuf.TestProtos.PublicImportMessage singlePublicI
mportMessage_; | 563 private global::Google.Protobuf.TestProtos.PublicImportMessage singlePublicI
mportMessage_; |
539 /// <summary> | 564 /// <summary> |
540 /// Defined in unittest_import_public.proto | 565 /// Defined in unittest_import_public.proto |
541 /// </summary> | 566 /// </summary> |
| 567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
542 public global::Google.Protobuf.TestProtos.PublicImportMessage SinglePublicIm
portMessage { | 568 public global::Google.Protobuf.TestProtos.PublicImportMessage SinglePublicIm
portMessage { |
543 get { return singlePublicImportMessage_; } | 569 get { return singlePublicImportMessage_; } |
544 set { | 570 set { |
545 singlePublicImportMessage_ = value; | 571 singlePublicImportMessage_ = value; |
546 } | 572 } |
547 } | 573 } |
548 | 574 |
549 /// <summary>Field number for the "repeated_int32" field.</summary> | 575 /// <summary>Field number for the "repeated_int32" field.</summary> |
550 public const int RepeatedInt32FieldNumber = 31; | 576 public const int RepeatedInt32FieldNumber = 31; |
551 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec | 577 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec |
552 = pb::FieldCodec.ForInt32(250); | 578 = pb::FieldCodec.ForInt32(250); |
553 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedF
ield<int>(); | 579 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedF
ield<int>(); |
554 /// <summary> | 580 /// <summary> |
555 /// Repeated | 581 /// Repeated |
556 /// </summary> | 582 /// </summary> |
| 583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
557 public pbc::RepeatedField<int> RepeatedInt32 { | 584 public pbc::RepeatedField<int> RepeatedInt32 { |
558 get { return repeatedInt32_; } | 585 get { return repeatedInt32_; } |
559 } | 586 } |
560 | 587 |
561 /// <summary>Field number for the "repeated_int64" field.</summary> | 588 /// <summary>Field number for the "repeated_int64" field.</summary> |
562 public const int RepeatedInt64FieldNumber = 32; | 589 public const int RepeatedInt64FieldNumber = 32; |
563 private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec | 590 private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec |
564 = pb::FieldCodec.ForInt64(258); | 591 = pb::FieldCodec.ForInt64(258); |
565 private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::Repeated
Field<long>(); | 592 private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::Repeated
Field<long>(); |
| 593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
566 public pbc::RepeatedField<long> RepeatedInt64 { | 594 public pbc::RepeatedField<long> RepeatedInt64 { |
567 get { return repeatedInt64_; } | 595 get { return repeatedInt64_; } |
568 } | 596 } |
569 | 597 |
570 /// <summary>Field number for the "repeated_uint32" field.</summary> | 598 /// <summary>Field number for the "repeated_uint32" field.</summary> |
571 public const int RepeatedUint32FieldNumber = 33; | 599 public const int RepeatedUint32FieldNumber = 33; |
572 private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec | 600 private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec |
573 = pb::FieldCodec.ForUInt32(266); | 601 = pb::FieldCodec.ForUInt32(266); |
574 private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::Repeate
dField<uint>(); | 602 private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::Repeate
dField<uint>(); |
| 603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
575 public pbc::RepeatedField<uint> RepeatedUint32 { | 604 public pbc::RepeatedField<uint> RepeatedUint32 { |
576 get { return repeatedUint32_; } | 605 get { return repeatedUint32_; } |
577 } | 606 } |
578 | 607 |
579 /// <summary>Field number for the "repeated_uint64" field.</summary> | 608 /// <summary>Field number for the "repeated_uint64" field.</summary> |
580 public const int RepeatedUint64FieldNumber = 34; | 609 public const int RepeatedUint64FieldNumber = 34; |
581 private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec | 610 private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec |
582 = pb::FieldCodec.ForUInt64(274); | 611 = pb::FieldCodec.ForUInt64(274); |
583 private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::Repeat
edField<ulong>(); | 612 private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::Repeat
edField<ulong>(); |
| 613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
584 public pbc::RepeatedField<ulong> RepeatedUint64 { | 614 public pbc::RepeatedField<ulong> RepeatedUint64 { |
585 get { return repeatedUint64_; } | 615 get { return repeatedUint64_; } |
586 } | 616 } |
587 | 617 |
588 /// <summary>Field number for the "repeated_sint32" field.</summary> | 618 /// <summary>Field number for the "repeated_sint32" field.</summary> |
589 public const int RepeatedSint32FieldNumber = 35; | 619 public const int RepeatedSint32FieldNumber = 35; |
590 private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec | 620 private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec |
591 = pb::FieldCodec.ForSInt32(282); | 621 = pb::FieldCodec.ForSInt32(282); |
592 private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::Repeated
Field<int>(); | 622 private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::Repeated
Field<int>(); |
| 623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
593 public pbc::RepeatedField<int> RepeatedSint32 { | 624 public pbc::RepeatedField<int> RepeatedSint32 { |
594 get { return repeatedSint32_; } | 625 get { return repeatedSint32_; } |
595 } | 626 } |
596 | 627 |
597 /// <summary>Field number for the "repeated_sint64" field.</summary> | 628 /// <summary>Field number for the "repeated_sint64" field.</summary> |
598 public const int RepeatedSint64FieldNumber = 36; | 629 public const int RepeatedSint64FieldNumber = 36; |
599 private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec | 630 private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec |
600 = pb::FieldCodec.ForSInt64(290); | 631 = pb::FieldCodec.ForSInt64(290); |
601 private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::Repeate
dField<long>(); | 632 private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::Repeate
dField<long>(); |
| 633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
602 public pbc::RepeatedField<long> RepeatedSint64 { | 634 public pbc::RepeatedField<long> RepeatedSint64 { |
603 get { return repeatedSint64_; } | 635 get { return repeatedSint64_; } |
604 } | 636 } |
605 | 637 |
606 /// <summary>Field number for the "repeated_fixed32" field.</summary> | 638 /// <summary>Field number for the "repeated_fixed32" field.</summary> |
607 public const int RepeatedFixed32FieldNumber = 37; | 639 public const int RepeatedFixed32FieldNumber = 37; |
608 private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec | 640 private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec |
609 = pb::FieldCodec.ForFixed32(298); | 641 = pb::FieldCodec.ForFixed32(298); |
610 private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::Repeat
edField<uint>(); | 642 private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::Repeat
edField<uint>(); |
| 643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
611 public pbc::RepeatedField<uint> RepeatedFixed32 { | 644 public pbc::RepeatedField<uint> RepeatedFixed32 { |
612 get { return repeatedFixed32_; } | 645 get { return repeatedFixed32_; } |
613 } | 646 } |
614 | 647 |
615 /// <summary>Field number for the "repeated_fixed64" field.</summary> | 648 /// <summary>Field number for the "repeated_fixed64" field.</summary> |
616 public const int RepeatedFixed64FieldNumber = 38; | 649 public const int RepeatedFixed64FieldNumber = 38; |
617 private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_code
c | 650 private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_code
c |
618 = pb::FieldCodec.ForFixed64(306); | 651 = pb::FieldCodec.ForFixed64(306); |
619 private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::Repea
tedField<ulong>(); | 652 private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::Repea
tedField<ulong>(); |
| 653 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
620 public pbc::RepeatedField<ulong> RepeatedFixed64 { | 654 public pbc::RepeatedField<ulong> RepeatedFixed64 { |
621 get { return repeatedFixed64_; } | 655 get { return repeatedFixed64_; } |
622 } | 656 } |
623 | 657 |
624 /// <summary>Field number for the "repeated_sfixed32" field.</summary> | 658 /// <summary>Field number for the "repeated_sfixed32" field.</summary> |
625 public const int RepeatedSfixed32FieldNumber = 39; | 659 public const int RepeatedSfixed32FieldNumber = 39; |
626 private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec | 660 private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec |
627 = pb::FieldCodec.ForSFixed32(314); | 661 = pb::FieldCodec.ForSFixed32(314); |
628 private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::Repeat
edField<int>(); | 662 private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::Repeat
edField<int>(); |
| 663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
629 public pbc::RepeatedField<int> RepeatedSfixed32 { | 664 public pbc::RepeatedField<int> RepeatedSfixed32 { |
630 get { return repeatedSfixed32_; } | 665 get { return repeatedSfixed32_; } |
631 } | 666 } |
632 | 667 |
633 /// <summary>Field number for the "repeated_sfixed64" field.</summary> | 668 /// <summary>Field number for the "repeated_sfixed64" field.</summary> |
634 public const int RepeatedSfixed64FieldNumber = 40; | 669 public const int RepeatedSfixed64FieldNumber = 40; |
635 private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_code
c | 670 private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_code
c |
636 = pb::FieldCodec.ForSFixed64(322); | 671 = pb::FieldCodec.ForSFixed64(322); |
637 private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::Repea
tedField<long>(); | 672 private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::Repea
tedField<long>(); |
| 673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
638 public pbc::RepeatedField<long> RepeatedSfixed64 { | 674 public pbc::RepeatedField<long> RepeatedSfixed64 { |
639 get { return repeatedSfixed64_; } | 675 get { return repeatedSfixed64_; } |
640 } | 676 } |
641 | 677 |
642 /// <summary>Field number for the "repeated_float" field.</summary> | 678 /// <summary>Field number for the "repeated_float" field.</summary> |
643 public const int RepeatedFloatFieldNumber = 41; | 679 public const int RepeatedFloatFieldNumber = 41; |
644 private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec | 680 private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec |
645 = pb::FieldCodec.ForFloat(330); | 681 = pb::FieldCodec.ForFloat(330); |
646 private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::Repeate
dField<float>(); | 682 private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::Repeate
dField<float>(); |
| 683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
647 public pbc::RepeatedField<float> RepeatedFloat { | 684 public pbc::RepeatedField<float> RepeatedFloat { |
648 get { return repeatedFloat_; } | 685 get { return repeatedFloat_; } |
649 } | 686 } |
650 | 687 |
651 /// <summary>Field number for the "repeated_double" field.</summary> | 688 /// <summary>Field number for the "repeated_double" field.</summary> |
652 public const int RepeatedDoubleFieldNumber = 42; | 689 public const int RepeatedDoubleFieldNumber = 42; |
653 private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_code
c | 690 private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_code
c |
654 = pb::FieldCodec.ForDouble(338); | 691 = pb::FieldCodec.ForDouble(338); |
655 private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::Repea
tedField<double>(); | 692 private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::Repea
tedField<double>(); |
| 693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
656 public pbc::RepeatedField<double> RepeatedDouble { | 694 public pbc::RepeatedField<double> RepeatedDouble { |
657 get { return repeatedDouble_; } | 695 get { return repeatedDouble_; } |
658 } | 696 } |
659 | 697 |
660 /// <summary>Field number for the "repeated_bool" field.</summary> | 698 /// <summary>Field number for the "repeated_bool" field.</summary> |
661 public const int RepeatedBoolFieldNumber = 43; | 699 public const int RepeatedBoolFieldNumber = 43; |
662 private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec | 700 private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec |
663 = pb::FieldCodec.ForBool(346); | 701 = pb::FieldCodec.ForBool(346); |
664 private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedF
ield<bool>(); | 702 private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedF
ield<bool>(); |
| 703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
665 public pbc::RepeatedField<bool> RepeatedBool { | 704 public pbc::RepeatedField<bool> RepeatedBool { |
666 get { return repeatedBool_; } | 705 get { return repeatedBool_; } |
667 } | 706 } |
668 | 707 |
669 /// <summary>Field number for the "repeated_string" field.</summary> | 708 /// <summary>Field number for the "repeated_string" field.</summary> |
670 public const int RepeatedStringFieldNumber = 44; | 709 public const int RepeatedStringFieldNumber = 44; |
671 private static readonly pb::FieldCodec<string> _repeated_repeatedString_code
c | 710 private static readonly pb::FieldCodec<string> _repeated_repeatedString_code
c |
672 = pb::FieldCodec.ForString(354); | 711 = pb::FieldCodec.ForString(354); |
673 private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::Repea
tedField<string>(); | 712 private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::Repea
tedField<string>(); |
| 713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
674 public pbc::RepeatedField<string> RepeatedString { | 714 public pbc::RepeatedField<string> RepeatedString { |
675 get { return repeatedString_; } | 715 get { return repeatedString_; } |
676 } | 716 } |
677 | 717 |
678 /// <summary>Field number for the "repeated_bytes" field.</summary> | 718 /// <summary>Field number for the "repeated_bytes" field.</summary> |
679 public const int RepeatedBytesFieldNumber = 45; | 719 public const int RepeatedBytesFieldNumber = 45; |
680 private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedByt
es_codec | 720 private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedByt
es_codec |
681 = pb::FieldCodec.ForBytes(362); | 721 = pb::FieldCodec.ForBytes(362); |
682 private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc
::RepeatedField<pb::ByteString>(); | 722 private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc
::RepeatedField<pb::ByteString>(); |
| 723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
683 public pbc::RepeatedField<pb::ByteString> RepeatedBytes { | 724 public pbc::RepeatedField<pb::ByteString> RepeatedBytes { |
684 get { return repeatedBytes_; } | 725 get { return repeatedBytes_; } |
685 } | 726 } |
686 | 727 |
687 /// <summary>Field number for the "repeated_nested_message" field.</summary> | 728 /// <summary>Field number for the "repeated_nested_message" field.</summary> |
688 public const int RepeatedNestedMessageFieldNumber = 48; | 729 public const int RepeatedNestedMessageFieldNumber = 48; |
689 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Te
stAllTypes.Types.NestedMessage> _repeated_repeatedNestedMessage_codec | 730 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Te
stAllTypes.Types.NestedMessage> _repeated_repeatedNestedMessage_codec |
690 = pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.Test
AllTypes.Types.NestedMessage.Parser); | 731 = pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.Test
AllTypes.Types.NestedMessage.Parser); |
691 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestA
llTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<glo
bal::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage>(); | 732 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestA
llTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<glo
bal::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage>(); |
| 733 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
692 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Ty
pes.NestedMessage> RepeatedNestedMessage { | 734 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Ty
pes.NestedMessage> RepeatedNestedMessage { |
693 get { return repeatedNestedMessage_; } | 735 get { return repeatedNestedMessage_; } |
694 } | 736 } |
695 | 737 |
696 /// <summary>Field number for the "repeated_foreign_message" field.</summary
> | 738 /// <summary>Field number for the "repeated_foreign_message" field.</summary
> |
697 public const int RepeatedForeignMessageFieldNumber = 49; | 739 public const int RepeatedForeignMessageFieldNumber = 49; |
698 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Fo
reignMessage> _repeated_repeatedForeignMessage_codec | 740 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Fo
reignMessage> _repeated_repeatedForeignMessage_codec |
699 = pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.Fore
ignMessage.Parser); | 741 = pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.Fore
ignMessage.Parser); |
700 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Forei
gnMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Google.Proto
buf.TestProtos.ForeignMessage>(); | 742 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Forei
gnMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Google.Proto
buf.TestProtos.ForeignMessage>(); |
| 743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
701 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage>
RepeatedForeignMessage { | 744 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage>
RepeatedForeignMessage { |
702 get { return repeatedForeignMessage_; } | 745 get { return repeatedForeignMessage_; } |
703 } | 746 } |
704 | 747 |
705 /// <summary>Field number for the "repeated_import_message" field.</summary> | 748 /// <summary>Field number for the "repeated_import_message" field.</summary> |
706 public const int RepeatedImportMessageFieldNumber = 50; | 749 public const int RepeatedImportMessageFieldNumber = 50; |
707 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Im
portMessage> _repeated_repeatedImportMessage_codec | 750 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Im
portMessage> _repeated_repeatedImportMessage_codec |
708 = pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.Impo
rtMessage.Parser); | 751 = pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.Impo
rtMessage.Parser); |
709 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Impor
tMessage> repeatedImportMessage_ = new pbc::RepeatedField<global::Google.Protobu
f.TestProtos.ImportMessage>(); | 752 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Impor
tMessage> repeatedImportMessage_ = new pbc::RepeatedField<global::Google.Protobu
f.TestProtos.ImportMessage>(); |
| 753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
710 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage>
RepeatedImportMessage { | 754 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage>
RepeatedImportMessage { |
711 get { return repeatedImportMessage_; } | 755 get { return repeatedImportMessage_; } |
712 } | 756 } |
713 | 757 |
714 /// <summary>Field number for the "repeated_nested_enum" field.</summary> | 758 /// <summary>Field number for the "repeated_nested_enum" field.</summary> |
715 public const int RepeatedNestedEnumFieldNumber = 51; | 759 public const int RepeatedNestedEnumFieldNumber = 51; |
716 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Te
stAllTypes.Types.NestedEnum> _repeated_repeatedNestedEnum_codec | 760 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Te
stAllTypes.Types.NestedEnum> _repeated_repeatedNestedEnum_codec |
717 = pb::FieldCodec.ForEnum(410, x => (int) x, x => (global::Google.Protobu
f.TestProtos.TestAllTypes.Types.NestedEnum) x); | 761 = pb::FieldCodec.ForEnum(410, x => (int) x, x => (global::Google.Protobu
f.TestProtos.TestAllTypes.Types.NestedEnum) x); |
718 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestA
llTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::G
oogle.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum>(); | 762 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestA
llTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::G
oogle.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum>(); |
| 763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
719 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Ty
pes.NestedEnum> RepeatedNestedEnum { | 764 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Ty
pes.NestedEnum> RepeatedNestedEnum { |
720 get { return repeatedNestedEnum_; } | 765 get { return repeatedNestedEnum_; } |
721 } | 766 } |
722 | 767 |
723 /// <summary>Field number for the "repeated_foreign_enum" field.</summary> | 768 /// <summary>Field number for the "repeated_foreign_enum" field.</summary> |
724 public const int RepeatedForeignEnumFieldNumber = 52; | 769 public const int RepeatedForeignEnumFieldNumber = 52; |
725 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Fo
reignEnum> _repeated_repeatedForeignEnum_codec | 770 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Fo
reignEnum> _repeated_repeatedForeignEnum_codec |
726 = pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::Google.Protobu
f.TestProtos.ForeignEnum) x); | 771 = pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::Google.Protobu
f.TestProtos.ForeignEnum) x); |
727 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Forei
gnEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Google.Protobuf.Te
stProtos.ForeignEnum>(); | 772 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Forei
gnEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Google.Protobuf.Te
stProtos.ForeignEnum>(); |
| 773 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
728 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> Re
peatedForeignEnum { | 774 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> Re
peatedForeignEnum { |
729 get { return repeatedForeignEnum_; } | 775 get { return repeatedForeignEnum_; } |
730 } | 776 } |
731 | 777 |
732 /// <summary>Field number for the "repeated_import_enum" field.</summary> | 778 /// <summary>Field number for the "repeated_import_enum" field.</summary> |
733 public const int RepeatedImportEnumFieldNumber = 53; | 779 public const int RepeatedImportEnumFieldNumber = 53; |
734 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Im
portEnum> _repeated_repeatedImportEnum_codec | 780 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Im
portEnum> _repeated_repeatedImportEnum_codec |
735 = pb::FieldCodec.ForEnum(426, x => (int) x, x => (global::Google.Protobu
f.TestProtos.ImportEnum) x); | 781 = pb::FieldCodec.ForEnum(426, x => (int) x, x => (global::Google.Protobu
f.TestProtos.ImportEnum) x); |
736 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Impor
tEnum> repeatedImportEnum_ = new pbc::RepeatedField<global::Google.Protobuf.Test
Protos.ImportEnum>(); | 782 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Impor
tEnum> repeatedImportEnum_ = new pbc::RepeatedField<global::Google.Protobuf.Test
Protos.ImportEnum>(); |
| 783 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
737 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum> Rep
eatedImportEnum { | 784 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum> Rep
eatedImportEnum { |
738 get { return repeatedImportEnum_; } | 785 get { return repeatedImportEnum_; } |
739 } | 786 } |
740 | 787 |
741 /// <summary>Field number for the "repeated_public_import_message" field.</s
ummary> | 788 /// <summary>Field number for the "repeated_public_import_message" field.</s
ummary> |
742 public const int RepeatedPublicImportMessageFieldNumber = 54; | 789 public const int RepeatedPublicImportMessageFieldNumber = 54; |
743 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Pu
blicImportMessage> _repeated_repeatedPublicImportMessage_codec | 790 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Pu
blicImportMessage> _repeated_repeatedPublicImportMessage_codec |
744 = pb::FieldCodec.ForMessage(434, global::Google.Protobuf.TestProtos.Publ
icImportMessage.Parser); | 791 = pb::FieldCodec.ForMessage(434, global::Google.Protobuf.TestProtos.Publ
icImportMessage.Parser); |
745 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Publi
cImportMessage> repeatedPublicImportMessage_ = new pbc::RepeatedField<global::Go
ogle.Protobuf.TestProtos.PublicImportMessage>(); | 792 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Publi
cImportMessage> repeatedPublicImportMessage_ = new pbc::RepeatedField<global::Go
ogle.Protobuf.TestProtos.PublicImportMessage>(); |
746 /// <summary> | 793 /// <summary> |
747 /// Defined in unittest_import_public.proto | 794 /// Defined in unittest_import_public.proto |
748 /// </summary> | 795 /// </summary> |
| 796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
749 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMes
sage> RepeatedPublicImportMessage { | 797 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMes
sage> RepeatedPublicImportMessage { |
750 get { return repeatedPublicImportMessage_; } | 798 get { return repeatedPublicImportMessage_; } |
751 } | 799 } |
752 | 800 |
753 /// <summary>Field number for the "oneof_uint32" field.</summary> | 801 /// <summary>Field number for the "oneof_uint32" field.</summary> |
754 public const int OneofUint32FieldNumber = 111; | 802 public const int OneofUint32FieldNumber = 111; |
| 803 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
755 public uint OneofUint32 { | 804 public uint OneofUint32 { |
756 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32 ? (uint) o
neofField_ : 0; } | 805 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32 ? (uint) o
neofField_ : 0; } |
757 set { | 806 set { |
758 oneofField_ = value; | 807 oneofField_ = value; |
759 oneofFieldCase_ = OneofFieldOneofCase.OneofUint32; | 808 oneofFieldCase_ = OneofFieldOneofCase.OneofUint32; |
760 } | 809 } |
761 } | 810 } |
762 | 811 |
763 /// <summary>Field number for the "oneof_nested_message" field.</summary> | 812 /// <summary>Field number for the "oneof_nested_message" field.</summary> |
764 public const int OneofNestedMessageFieldNumber = 112; | 813 public const int OneofNestedMessageFieldNumber = 112; |
| 814 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
765 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage O
neofNestedMessage { | 815 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage O
neofNestedMessage { |
766 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (
global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage) oneofField_
: null; } | 816 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (
global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage) oneofField_
: null; } |
767 set { | 817 set { |
768 oneofField_ = value; | 818 oneofField_ = value; |
769 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO
neofCase.OneofNestedMessage; | 819 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO
neofCase.OneofNestedMessage; |
770 } | 820 } |
771 } | 821 } |
772 | 822 |
773 /// <summary>Field number for the "oneof_string" field.</summary> | 823 /// <summary>Field number for the "oneof_string" field.</summary> |
774 public const int OneofStringFieldNumber = 113; | 824 public const int OneofStringFieldNumber = 113; |
| 825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
775 public string OneofString { | 826 public string OneofString { |
776 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string)
oneofField_ : ""; } | 827 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string)
oneofField_ : ""; } |
777 set { | 828 set { |
778 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 829 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
779 oneofFieldCase_ = OneofFieldOneofCase.OneofString; | 830 oneofFieldCase_ = OneofFieldOneofCase.OneofString; |
780 } | 831 } |
781 } | 832 } |
782 | 833 |
783 /// <summary>Field number for the "oneof_bytes" field.</summary> | 834 /// <summary>Field number for the "oneof_bytes" field.</summary> |
784 public const int OneofBytesFieldNumber = 114; | 835 public const int OneofBytesFieldNumber = 114; |
| 836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
785 public pb::ByteString OneofBytes { | 837 public pb::ByteString OneofBytes { |
786 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::Byte
String) oneofField_ : pb::ByteString.Empty; } | 838 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::Byte
String) oneofField_ : pb::ByteString.Empty; } |
787 set { | 839 set { |
788 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 840 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
789 oneofFieldCase_ = OneofFieldOneofCase.OneofBytes; | 841 oneofFieldCase_ = OneofFieldOneofCase.OneofBytes; |
790 } | 842 } |
791 } | 843 } |
792 | 844 |
793 private object oneofField_; | 845 private object oneofField_; |
794 /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary> | 846 /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary> |
795 public enum OneofFieldOneofCase { | 847 public enum OneofFieldOneofCase { |
796 None = 0, | 848 None = 0, |
797 OneofUint32 = 111, | 849 OneofUint32 = 111, |
798 OneofNestedMessage = 112, | 850 OneofNestedMessage = 112, |
799 OneofString = 113, | 851 OneofString = 113, |
800 OneofBytes = 114, | 852 OneofBytes = 114, |
801 } | 853 } |
802 private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None; | 854 private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None; |
| 855 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
803 public OneofFieldOneofCase OneofFieldCase { | 856 public OneofFieldOneofCase OneofFieldCase { |
804 get { return oneofFieldCase_; } | 857 get { return oneofFieldCase_; } |
805 } | 858 } |
806 | 859 |
| 860 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
807 public void ClearOneofField() { | 861 public void ClearOneofField() { |
808 oneofFieldCase_ = OneofFieldOneofCase.None; | 862 oneofFieldCase_ = OneofFieldOneofCase.None; |
809 oneofField_ = null; | 863 oneofField_ = null; |
810 } | 864 } |
811 | 865 |
| 866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
812 public override bool Equals(object other) { | 867 public override bool Equals(object other) { |
813 return Equals(other as TestAllTypes); | 868 return Equals(other as TestAllTypes); |
814 } | 869 } |
815 | 870 |
| 871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
816 public bool Equals(TestAllTypes other) { | 872 public bool Equals(TestAllTypes other) { |
817 if (ReferenceEquals(other, null)) { | 873 if (ReferenceEquals(other, null)) { |
818 return false; | 874 return false; |
819 } | 875 } |
820 if (ReferenceEquals(other, this)) { | 876 if (ReferenceEquals(other, this)) { |
821 return true; | 877 return true; |
822 } | 878 } |
823 if (SingleInt32 != other.SingleInt32) return false; | 879 if (SingleInt32 != other.SingleInt32) return false; |
824 if (SingleInt64 != other.SingleInt64) return false; | 880 if (SingleInt64 != other.SingleInt64) return false; |
825 if (SingleUint32 != other.SingleUint32) return false; | 881 if (SingleUint32 != other.SingleUint32) return false; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 if(!repeatedImportEnum_.Equals(other.repeatedImportEnum_)) return false; | 921 if(!repeatedImportEnum_.Equals(other.repeatedImportEnum_)) return false; |
866 if(!repeatedPublicImportMessage_.Equals(other.repeatedPublicImportMessage_
)) return false; | 922 if(!repeatedPublicImportMessage_.Equals(other.repeatedPublicImportMessage_
)) return false; |
867 if (OneofUint32 != other.OneofUint32) return false; | 923 if (OneofUint32 != other.OneofUint32) return false; |
868 if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return f
alse; | 924 if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return f
alse; |
869 if (OneofString != other.OneofString) return false; | 925 if (OneofString != other.OneofString) return false; |
870 if (OneofBytes != other.OneofBytes) return false; | 926 if (OneofBytes != other.OneofBytes) return false; |
871 if (OneofFieldCase != other.OneofFieldCase) return false; | 927 if (OneofFieldCase != other.OneofFieldCase) return false; |
872 return true; | 928 return true; |
873 } | 929 } |
874 | 930 |
| 931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
875 public override int GetHashCode() { | 932 public override int GetHashCode() { |
876 int hash = 1; | 933 int hash = 1; |
877 if (SingleInt32 != 0) hash ^= SingleInt32.GetHashCode(); | 934 if (SingleInt32 != 0) hash ^= SingleInt32.GetHashCode(); |
878 if (SingleInt64 != 0L) hash ^= SingleInt64.GetHashCode(); | 935 if (SingleInt64 != 0L) hash ^= SingleInt64.GetHashCode(); |
879 if (SingleUint32 != 0) hash ^= SingleUint32.GetHashCode(); | 936 if (SingleUint32 != 0) hash ^= SingleUint32.GetHashCode(); |
880 if (SingleUint64 != 0UL) hash ^= SingleUint64.GetHashCode(); | 937 if (SingleUint64 != 0UL) hash ^= SingleUint64.GetHashCode(); |
881 if (SingleSint32 != 0) hash ^= SingleSint32.GetHashCode(); | 938 if (SingleSint32 != 0) hash ^= SingleSint32.GetHashCode(); |
882 if (SingleSint64 != 0L) hash ^= SingleSint64.GetHashCode(); | 939 if (SingleSint64 != 0L) hash ^= SingleSint64.GetHashCode(); |
883 if (SingleFixed32 != 0) hash ^= SingleFixed32.GetHashCode(); | 940 if (SingleFixed32 != 0) hash ^= SingleFixed32.GetHashCode(); |
884 if (SingleFixed64 != 0UL) hash ^= SingleFixed64.GetHashCode(); | 941 if (SingleFixed64 != 0UL) hash ^= SingleFixed64.GetHashCode(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 hash ^= repeatedImportEnum_.GetHashCode(); | 976 hash ^= repeatedImportEnum_.GetHashCode(); |
920 hash ^= repeatedPublicImportMessage_.GetHashCode(); | 977 hash ^= repeatedPublicImportMessage_.GetHashCode(); |
921 if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) hash ^= OneofUint3
2.GetHashCode(); | 978 if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) hash ^= OneofUint3
2.GetHashCode(); |
922 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= One
ofNestedMessage.GetHashCode(); | 979 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= One
ofNestedMessage.GetHashCode(); |
923 if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) hash ^= OneofStrin
g.GetHashCode(); | 980 if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) hash ^= OneofStrin
g.GetHashCode(); |
924 if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) hash ^= OneofBytes.
GetHashCode(); | 981 if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) hash ^= OneofBytes.
GetHashCode(); |
925 hash ^= (int) oneofFieldCase_; | 982 hash ^= (int) oneofFieldCase_; |
926 return hash; | 983 return hash; |
927 } | 984 } |
928 | 985 |
| 986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
929 public override string ToString() { | 987 public override string ToString() { |
930 return pb::JsonFormatter.ToDiagnosticString(this); | 988 return pb::JsonFormatter.ToDiagnosticString(this); |
931 } | 989 } |
932 | 990 |
| 991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
933 public void WriteTo(pb::CodedOutputStream output) { | 992 public void WriteTo(pb::CodedOutputStream output) { |
934 if (SingleInt32 != 0) { | 993 if (SingleInt32 != 0) { |
935 output.WriteRawTag(8); | 994 output.WriteRawTag(8); |
936 output.WriteInt32(SingleInt32); | 995 output.WriteInt32(SingleInt32); |
937 } | 996 } |
938 if (SingleInt64 != 0L) { | 997 if (SingleInt64 != 0L) { |
939 output.WriteRawTag(16); | 998 output.WriteRawTag(16); |
940 output.WriteInt64(SingleInt64); | 999 output.WriteInt64(SingleInt64); |
941 } | 1000 } |
942 if (SingleUint32 != 0) { | 1001 if (SingleUint32 != 0) { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1052 if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) { | 1111 if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) { |
1053 output.WriteRawTag(138, 7); | 1112 output.WriteRawTag(138, 7); |
1054 output.WriteString(OneofString); | 1113 output.WriteString(OneofString); |
1055 } | 1114 } |
1056 if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) { | 1115 if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) { |
1057 output.WriteRawTag(146, 7); | 1116 output.WriteRawTag(146, 7); |
1058 output.WriteBytes(OneofBytes); | 1117 output.WriteBytes(OneofBytes); |
1059 } | 1118 } |
1060 } | 1119 } |
1061 | 1120 |
| 1121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1062 public int CalculateSize() { | 1122 public int CalculateSize() { |
1063 int size = 0; | 1123 int size = 0; |
1064 if (SingleInt32 != 0) { | 1124 if (SingleInt32 != 0) { |
1065 size += 1 + pb::CodedOutputStream.ComputeInt32Size(SingleInt32); | 1125 size += 1 + pb::CodedOutputStream.ComputeInt32Size(SingleInt32); |
1066 } | 1126 } |
1067 if (SingleInt64 != 0L) { | 1127 if (SingleInt64 != 0L) { |
1068 size += 1 + pb::CodedOutputStream.ComputeInt64Size(SingleInt64); | 1128 size += 1 + pb::CodedOutputStream.ComputeInt64Size(SingleInt64); |
1069 } | 1129 } |
1070 if (SingleUint32 != 0) { | 1130 if (SingleUint32 != 0) { |
1071 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SingleUint32); | 1131 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SingleUint32); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 } | 1217 } |
1158 if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) { | 1218 if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) { |
1159 size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString); | 1219 size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString); |
1160 } | 1220 } |
1161 if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) { | 1221 if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) { |
1162 size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes); | 1222 size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes); |
1163 } | 1223 } |
1164 return size; | 1224 return size; |
1165 } | 1225 } |
1166 | 1226 |
| 1227 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1167 public void MergeFrom(TestAllTypes other) { | 1228 public void MergeFrom(TestAllTypes other) { |
1168 if (other == null) { | 1229 if (other == null) { |
1169 return; | 1230 return; |
1170 } | 1231 } |
1171 if (other.SingleInt32 != 0) { | 1232 if (other.SingleInt32 != 0) { |
1172 SingleInt32 = other.SingleInt32; | 1233 SingleInt32 = other.SingleInt32; |
1173 } | 1234 } |
1174 if (other.SingleInt64 != 0L) { | 1235 if (other.SingleInt64 != 0L) { |
1175 SingleInt64 = other.SingleInt64; | 1236 SingleInt64 = other.SingleInt64; |
1176 } | 1237 } |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 case OneofFieldOneofCase.OneofString: | 1339 case OneofFieldOneofCase.OneofString: |
1279 OneofString = other.OneofString; | 1340 OneofString = other.OneofString; |
1280 break; | 1341 break; |
1281 case OneofFieldOneofCase.OneofBytes: | 1342 case OneofFieldOneofCase.OneofBytes: |
1282 OneofBytes = other.OneofBytes; | 1343 OneofBytes = other.OneofBytes; |
1283 break; | 1344 break; |
1284 } | 1345 } |
1285 | 1346 |
1286 } | 1347 } |
1287 | 1348 |
| 1349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1288 public void MergeFrom(pb::CodedInputStream input) { | 1350 public void MergeFrom(pb::CodedInputStream input) { |
1289 uint tag; | 1351 uint tag; |
1290 while ((tag = input.ReadTag()) != 0) { | 1352 while ((tag = input.ReadTag()) != 0) { |
1291 switch(tag) { | 1353 switch(tag) { |
1292 default: | 1354 default: |
1293 input.SkipLastField(); | 1355 input.SkipLastField(); |
1294 break; | 1356 break; |
1295 case 8: { | 1357 case 8: { |
1296 SingleInt32 = input.ReadInt32(); | 1358 SingleInt32 = input.ReadInt32(); |
1297 break; | 1359 break; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1516 case 914: { | 1578 case 914: { |
1517 OneofBytes = input.ReadBytes(); | 1579 OneofBytes = input.ReadBytes(); |
1518 break; | 1580 break; |
1519 } | 1581 } |
1520 } | 1582 } |
1521 } | 1583 } |
1522 } | 1584 } |
1523 | 1585 |
1524 #region Nested types | 1586 #region Nested types |
1525 /// <summary>Container for nested types declared in the TestAllTypes message
type.</summary> | 1587 /// <summary>Container for nested types declared in the TestAllTypes message
type.</summary> |
1526 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | 1588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1527 public static partial class Types { | 1589 public static partial class Types { |
1528 public enum NestedEnum { | 1590 public enum NestedEnum { |
1529 [pbr::OriginalName("NESTED_ENUM_UNSPECIFIED")] Unspecified = 0, | 1591 [pbr::OriginalName("NESTED_ENUM_UNSPECIFIED")] Unspecified = 0, |
1530 [pbr::OriginalName("FOO")] Foo = 1, | 1592 [pbr::OriginalName("FOO")] Foo = 1, |
1531 [pbr::OriginalName("BAR")] Bar = 2, | 1593 [pbr::OriginalName("BAR")] Bar = 2, |
1532 [pbr::OriginalName("BAZ")] Baz = 3, | 1594 [pbr::OriginalName("BAZ")] Baz = 3, |
1533 /// <summary> | 1595 /// <summary> |
1534 /// Intentionally negative. | 1596 /// Intentionally negative. |
1535 /// </summary> | 1597 /// </summary> |
1536 [pbr::OriginalName("NEG")] Neg = -1, | 1598 [pbr::OriginalName("NEG")] Neg = -1, |
1537 } | 1599 } |
1538 | 1600 |
1539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
1540 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> { | 1601 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> { |
1541 private static readonly pb::MessageParser<NestedMessage> _parser = new p
b::MessageParser<NestedMessage>(() => new NestedMessage()); | 1602 private static readonly pb::MessageParser<NestedMessage> _parser = new p
b::MessageParser<NestedMessage>(() => new NestedMessage()); |
| 1603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1542 public static pb::MessageParser<NestedMessage> Parser { get { return _pa
rser; } } | 1604 public static pb::MessageParser<NestedMessage> Parser { get { return _pa
rser; } } |
1543 | 1605 |
| 1606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1544 public static pbr::MessageDescriptor Descriptor { | 1607 public static pbr::MessageDescriptor Descriptor { |
1545 get { return global::Google.Protobuf.TestProtos.TestAllTypes.Descripto
r.NestedTypes[0]; } | 1608 get { return global::Google.Protobuf.TestProtos.TestAllTypes.Descripto
r.NestedTypes[0]; } |
1546 } | 1609 } |
1547 | 1610 |
| 1611 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1548 pbr::MessageDescriptor pb::IMessage.Descriptor { | 1612 pbr::MessageDescriptor pb::IMessage.Descriptor { |
1549 get { return Descriptor; } | 1613 get { return Descriptor; } |
1550 } | 1614 } |
1551 | 1615 |
| 1616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1552 public NestedMessage() { | 1617 public NestedMessage() { |
1553 OnConstruction(); | 1618 OnConstruction(); |
1554 } | 1619 } |
1555 | 1620 |
1556 partial void OnConstruction(); | 1621 partial void OnConstruction(); |
1557 | 1622 |
| 1623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1558 public NestedMessage(NestedMessage other) : this() { | 1624 public NestedMessage(NestedMessage other) : this() { |
1559 bb_ = other.bb_; | 1625 bb_ = other.bb_; |
1560 } | 1626 } |
1561 | 1627 |
| 1628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1562 public NestedMessage Clone() { | 1629 public NestedMessage Clone() { |
1563 return new NestedMessage(this); | 1630 return new NestedMessage(this); |
1564 } | 1631 } |
1565 | 1632 |
1566 /// <summary>Field number for the "bb" field.</summary> | 1633 /// <summary>Field number for the "bb" field.</summary> |
1567 public const int BbFieldNumber = 1; | 1634 public const int BbFieldNumber = 1; |
1568 private int bb_; | 1635 private int bb_; |
1569 /// <summary> | 1636 /// <summary> |
1570 /// The field name "b" fails to compile in proto1 because it conflicts
with | 1637 /// The field name "b" fails to compile in proto1 because it conflicts w
ith |
1571 /// a local variable named "b" in one of the generated methods. Doh. | 1638 /// a local variable named "b" in one of the generated methods. Doh. |
1572 /// This file needs to compile in proto1 to test backwards-compatibilit
y. | 1639 /// This file needs to compile in proto1 to test backwards-compatibility
. |
1573 /// </summary> | 1640 /// </summary> |
| 1641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1574 public int Bb { | 1642 public int Bb { |
1575 get { return bb_; } | 1643 get { return bb_; } |
1576 set { | 1644 set { |
1577 bb_ = value; | 1645 bb_ = value; |
1578 } | 1646 } |
1579 } | 1647 } |
1580 | 1648 |
| 1649 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1581 public override bool Equals(object other) { | 1650 public override bool Equals(object other) { |
1582 return Equals(other as NestedMessage); | 1651 return Equals(other as NestedMessage); |
1583 } | 1652 } |
1584 | 1653 |
| 1654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1585 public bool Equals(NestedMessage other) { | 1655 public bool Equals(NestedMessage other) { |
1586 if (ReferenceEquals(other, null)) { | 1656 if (ReferenceEquals(other, null)) { |
1587 return false; | 1657 return false; |
1588 } | 1658 } |
1589 if (ReferenceEquals(other, this)) { | 1659 if (ReferenceEquals(other, this)) { |
1590 return true; | 1660 return true; |
1591 } | 1661 } |
1592 if (Bb != other.Bb) return false; | 1662 if (Bb != other.Bb) return false; |
1593 return true; | 1663 return true; |
1594 } | 1664 } |
1595 | 1665 |
| 1666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1596 public override int GetHashCode() { | 1667 public override int GetHashCode() { |
1597 int hash = 1; | 1668 int hash = 1; |
1598 if (Bb != 0) hash ^= Bb.GetHashCode(); | 1669 if (Bb != 0) hash ^= Bb.GetHashCode(); |
1599 return hash; | 1670 return hash; |
1600 } | 1671 } |
1601 | 1672 |
| 1673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1602 public override string ToString() { | 1674 public override string ToString() { |
1603 return pb::JsonFormatter.ToDiagnosticString(this); | 1675 return pb::JsonFormatter.ToDiagnosticString(this); |
1604 } | 1676 } |
1605 | 1677 |
| 1678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1606 public void WriteTo(pb::CodedOutputStream output) { | 1679 public void WriteTo(pb::CodedOutputStream output) { |
1607 if (Bb != 0) { | 1680 if (Bb != 0) { |
1608 output.WriteRawTag(8); | 1681 output.WriteRawTag(8); |
1609 output.WriteInt32(Bb); | 1682 output.WriteInt32(Bb); |
1610 } | 1683 } |
1611 } | 1684 } |
1612 | 1685 |
| 1686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1613 public int CalculateSize() { | 1687 public int CalculateSize() { |
1614 int size = 0; | 1688 int size = 0; |
1615 if (Bb != 0) { | 1689 if (Bb != 0) { |
1616 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb); | 1690 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb); |
1617 } | 1691 } |
1618 return size; | 1692 return size; |
1619 } | 1693 } |
1620 | 1694 |
| 1695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1621 public void MergeFrom(NestedMessage other) { | 1696 public void MergeFrom(NestedMessage other) { |
1622 if (other == null) { | 1697 if (other == null) { |
1623 return; | 1698 return; |
1624 } | 1699 } |
1625 if (other.Bb != 0) { | 1700 if (other.Bb != 0) { |
1626 Bb = other.Bb; | 1701 Bb = other.Bb; |
1627 } | 1702 } |
1628 } | 1703 } |
1629 | 1704 |
| 1705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1630 public void MergeFrom(pb::CodedInputStream input) { | 1706 public void MergeFrom(pb::CodedInputStream input) { |
1631 uint tag; | 1707 uint tag; |
1632 while ((tag = input.ReadTag()) != 0) { | 1708 while ((tag = input.ReadTag()) != 0) { |
1633 switch(tag) { | 1709 switch(tag) { |
1634 default: | 1710 default: |
1635 input.SkipLastField(); | 1711 input.SkipLastField(); |
1636 break; | 1712 break; |
1637 case 8: { | 1713 case 8: { |
1638 Bb = input.ReadInt32(); | 1714 Bb = input.ReadInt32(); |
1639 break; | 1715 break; |
1640 } | 1716 } |
1641 } | 1717 } |
1642 } | 1718 } |
1643 } | 1719 } |
1644 | 1720 |
1645 } | 1721 } |
1646 | 1722 |
1647 } | 1723 } |
1648 #endregion | 1724 #endregion |
1649 | 1725 |
1650 } | 1726 } |
1651 | 1727 |
1652 /// <summary> | 1728 /// <summary> |
1653 /// This proto includes a recusively nested message. | 1729 /// This proto includes a recusively nested message. |
1654 /// </summary> | 1730 /// </summary> |
1655 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
1656 public sealed partial class NestedTestAllTypes : pb::IMessage<NestedTestAllTyp
es> { | 1731 public sealed partial class NestedTestAllTypes : pb::IMessage<NestedTestAllTyp
es> { |
1657 private static readonly pb::MessageParser<NestedTestAllTypes> _parser = new
pb::MessageParser<NestedTestAllTypes>(() => new NestedTestAllTypes()); | 1732 private static readonly pb::MessageParser<NestedTestAllTypes> _parser = new
pb::MessageParser<NestedTestAllTypes>(() => new NestedTestAllTypes()); |
| 1733 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1658 public static pb::MessageParser<NestedTestAllTypes> Parser { get { return _p
arser; } } | 1734 public static pb::MessageParser<NestedTestAllTypes> Parser { get { return _p
arser; } } |
1659 | 1735 |
| 1736 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1660 public static pbr::MessageDescriptor Descriptor { | 1737 public static pbr::MessageDescriptor Descriptor { |
1661 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[1]; } | 1738 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[1]; } |
1662 } | 1739 } |
1663 | 1740 |
| 1741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1664 pbr::MessageDescriptor pb::IMessage.Descriptor { | 1742 pbr::MessageDescriptor pb::IMessage.Descriptor { |
1665 get { return Descriptor; } | 1743 get { return Descriptor; } |
1666 } | 1744 } |
1667 | 1745 |
| 1746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1668 public NestedTestAllTypes() { | 1747 public NestedTestAllTypes() { |
1669 OnConstruction(); | 1748 OnConstruction(); |
1670 } | 1749 } |
1671 | 1750 |
1672 partial void OnConstruction(); | 1751 partial void OnConstruction(); |
1673 | 1752 |
| 1753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1674 public NestedTestAllTypes(NestedTestAllTypes other) : this() { | 1754 public NestedTestAllTypes(NestedTestAllTypes other) : this() { |
1675 Child = other.child_ != null ? other.Child.Clone() : null; | 1755 Child = other.child_ != null ? other.Child.Clone() : null; |
1676 Payload = other.payload_ != null ? other.Payload.Clone() : null; | 1756 Payload = other.payload_ != null ? other.Payload.Clone() : null; |
1677 repeatedChild_ = other.repeatedChild_.Clone(); | 1757 repeatedChild_ = other.repeatedChild_.Clone(); |
1678 } | 1758 } |
1679 | 1759 |
| 1760 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1680 public NestedTestAllTypes Clone() { | 1761 public NestedTestAllTypes Clone() { |
1681 return new NestedTestAllTypes(this); | 1762 return new NestedTestAllTypes(this); |
1682 } | 1763 } |
1683 | 1764 |
1684 /// <summary>Field number for the "child" field.</summary> | 1765 /// <summary>Field number for the "child" field.</summary> |
1685 public const int ChildFieldNumber = 1; | 1766 public const int ChildFieldNumber = 1; |
1686 private global::Google.Protobuf.TestProtos.NestedTestAllTypes child_; | 1767 private global::Google.Protobuf.TestProtos.NestedTestAllTypes child_; |
| 1768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1687 public global::Google.Protobuf.TestProtos.NestedTestAllTypes Child { | 1769 public global::Google.Protobuf.TestProtos.NestedTestAllTypes Child { |
1688 get { return child_; } | 1770 get { return child_; } |
1689 set { | 1771 set { |
1690 child_ = value; | 1772 child_ = value; |
1691 } | 1773 } |
1692 } | 1774 } |
1693 | 1775 |
1694 /// <summary>Field number for the "payload" field.</summary> | 1776 /// <summary>Field number for the "payload" field.</summary> |
1695 public const int PayloadFieldNumber = 2; | 1777 public const int PayloadFieldNumber = 2; |
1696 private global::Google.Protobuf.TestProtos.TestAllTypes payload_; | 1778 private global::Google.Protobuf.TestProtos.TestAllTypes payload_; |
| 1779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1697 public global::Google.Protobuf.TestProtos.TestAllTypes Payload { | 1780 public global::Google.Protobuf.TestProtos.TestAllTypes Payload { |
1698 get { return payload_; } | 1781 get { return payload_; } |
1699 set { | 1782 set { |
1700 payload_ = value; | 1783 payload_ = value; |
1701 } | 1784 } |
1702 } | 1785 } |
1703 | 1786 |
1704 /// <summary>Field number for the "repeated_child" field.</summary> | 1787 /// <summary>Field number for the "repeated_child" field.</summary> |
1705 public const int RepeatedChildFieldNumber = 3; | 1788 public const int RepeatedChildFieldNumber = 3; |
1706 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Ne
stedTestAllTypes> _repeated_repeatedChild_codec | 1789 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Ne
stedTestAllTypes> _repeated_repeatedChild_codec |
1707 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Neste
dTestAllTypes.Parser); | 1790 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Neste
dTestAllTypes.Parser); |
1708 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Neste
dTestAllTypes> repeatedChild_ = new pbc::RepeatedField<global::Google.Protobuf.T
estProtos.NestedTestAllTypes>(); | 1791 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Neste
dTestAllTypes> repeatedChild_ = new pbc::RepeatedField<global::Google.Protobuf.T
estProtos.NestedTestAllTypes>(); |
| 1792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1709 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTy
pes> RepeatedChild { | 1793 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTy
pes> RepeatedChild { |
1710 get { return repeatedChild_; } | 1794 get { return repeatedChild_; } |
1711 } | 1795 } |
1712 | 1796 |
| 1797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1713 public override bool Equals(object other) { | 1798 public override bool Equals(object other) { |
1714 return Equals(other as NestedTestAllTypes); | 1799 return Equals(other as NestedTestAllTypes); |
1715 } | 1800 } |
1716 | 1801 |
| 1802 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1717 public bool Equals(NestedTestAllTypes other) { | 1803 public bool Equals(NestedTestAllTypes other) { |
1718 if (ReferenceEquals(other, null)) { | 1804 if (ReferenceEquals(other, null)) { |
1719 return false; | 1805 return false; |
1720 } | 1806 } |
1721 if (ReferenceEquals(other, this)) { | 1807 if (ReferenceEquals(other, this)) { |
1722 return true; | 1808 return true; |
1723 } | 1809 } |
1724 if (!object.Equals(Child, other.Child)) return false; | 1810 if (!object.Equals(Child, other.Child)) return false; |
1725 if (!object.Equals(Payload, other.Payload)) return false; | 1811 if (!object.Equals(Payload, other.Payload)) return false; |
1726 if(!repeatedChild_.Equals(other.repeatedChild_)) return false; | 1812 if(!repeatedChild_.Equals(other.repeatedChild_)) return false; |
1727 return true; | 1813 return true; |
1728 } | 1814 } |
1729 | 1815 |
| 1816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1730 public override int GetHashCode() { | 1817 public override int GetHashCode() { |
1731 int hash = 1; | 1818 int hash = 1; |
1732 if (child_ != null) hash ^= Child.GetHashCode(); | 1819 if (child_ != null) hash ^= Child.GetHashCode(); |
1733 if (payload_ != null) hash ^= Payload.GetHashCode(); | 1820 if (payload_ != null) hash ^= Payload.GetHashCode(); |
1734 hash ^= repeatedChild_.GetHashCode(); | 1821 hash ^= repeatedChild_.GetHashCode(); |
1735 return hash; | 1822 return hash; |
1736 } | 1823 } |
1737 | 1824 |
| 1825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1738 public override string ToString() { | 1826 public override string ToString() { |
1739 return pb::JsonFormatter.ToDiagnosticString(this); | 1827 return pb::JsonFormatter.ToDiagnosticString(this); |
1740 } | 1828 } |
1741 | 1829 |
| 1830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1742 public void WriteTo(pb::CodedOutputStream output) { | 1831 public void WriteTo(pb::CodedOutputStream output) { |
1743 if (child_ != null) { | 1832 if (child_ != null) { |
1744 output.WriteRawTag(10); | 1833 output.WriteRawTag(10); |
1745 output.WriteMessage(Child); | 1834 output.WriteMessage(Child); |
1746 } | 1835 } |
1747 if (payload_ != null) { | 1836 if (payload_ != null) { |
1748 output.WriteRawTag(18); | 1837 output.WriteRawTag(18); |
1749 output.WriteMessage(Payload); | 1838 output.WriteMessage(Payload); |
1750 } | 1839 } |
1751 repeatedChild_.WriteTo(output, _repeated_repeatedChild_codec); | 1840 repeatedChild_.WriteTo(output, _repeated_repeatedChild_codec); |
1752 } | 1841 } |
1753 | 1842 |
| 1843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1754 public int CalculateSize() { | 1844 public int CalculateSize() { |
1755 int size = 0; | 1845 int size = 0; |
1756 if (child_ != null) { | 1846 if (child_ != null) { |
1757 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Child); | 1847 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Child); |
1758 } | 1848 } |
1759 if (payload_ != null) { | 1849 if (payload_ != null) { |
1760 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); | 1850 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); |
1761 } | 1851 } |
1762 size += repeatedChild_.CalculateSize(_repeated_repeatedChild_codec); | 1852 size += repeatedChild_.CalculateSize(_repeated_repeatedChild_codec); |
1763 return size; | 1853 return size; |
1764 } | 1854 } |
1765 | 1855 |
| 1856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1766 public void MergeFrom(NestedTestAllTypes other) { | 1857 public void MergeFrom(NestedTestAllTypes other) { |
1767 if (other == null) { | 1858 if (other == null) { |
1768 return; | 1859 return; |
1769 } | 1860 } |
1770 if (other.child_ != null) { | 1861 if (other.child_ != null) { |
1771 if (child_ == null) { | 1862 if (child_ == null) { |
1772 child_ = new global::Google.Protobuf.TestProtos.NestedTestAllTypes(); | 1863 child_ = new global::Google.Protobuf.TestProtos.NestedTestAllTypes(); |
1773 } | 1864 } |
1774 Child.MergeFrom(other.Child); | 1865 Child.MergeFrom(other.Child); |
1775 } | 1866 } |
1776 if (other.payload_ != null) { | 1867 if (other.payload_ != null) { |
1777 if (payload_ == null) { | 1868 if (payload_ == null) { |
1778 payload_ = new global::Google.Protobuf.TestProtos.TestAllTypes(); | 1869 payload_ = new global::Google.Protobuf.TestProtos.TestAllTypes(); |
1779 } | 1870 } |
1780 Payload.MergeFrom(other.Payload); | 1871 Payload.MergeFrom(other.Payload); |
1781 } | 1872 } |
1782 repeatedChild_.Add(other.repeatedChild_); | 1873 repeatedChild_.Add(other.repeatedChild_); |
1783 } | 1874 } |
1784 | 1875 |
| 1876 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1785 public void MergeFrom(pb::CodedInputStream input) { | 1877 public void MergeFrom(pb::CodedInputStream input) { |
1786 uint tag; | 1878 uint tag; |
1787 while ((tag = input.ReadTag()) != 0) { | 1879 while ((tag = input.ReadTag()) != 0) { |
1788 switch(tag) { | 1880 switch(tag) { |
1789 default: | 1881 default: |
1790 input.SkipLastField(); | 1882 input.SkipLastField(); |
1791 break; | 1883 break; |
1792 case 10: { | 1884 case 10: { |
1793 if (child_ == null) { | 1885 if (child_ == null) { |
1794 child_ = new global::Google.Protobuf.TestProtos.NestedTestAllTypes
(); | 1886 child_ = new global::Google.Protobuf.TestProtos.NestedTestAllTypes
(); |
(...skipping 11 matching lines...) Expand all Loading... |
1806 case 26: { | 1898 case 26: { |
1807 repeatedChild_.AddEntriesFrom(input, _repeated_repeatedChild_codec); | 1899 repeatedChild_.AddEntriesFrom(input, _repeated_repeatedChild_codec); |
1808 break; | 1900 break; |
1809 } | 1901 } |
1810 } | 1902 } |
1811 } | 1903 } |
1812 } | 1904 } |
1813 | 1905 |
1814 } | 1906 } |
1815 | 1907 |
1816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
1817 public sealed partial class TestDeprecatedFields : pb::IMessage<TestDeprecated
Fields> { | 1908 public sealed partial class TestDeprecatedFields : pb::IMessage<TestDeprecated
Fields> { |
1818 private static readonly pb::MessageParser<TestDeprecatedFields> _parser = ne
w pb::MessageParser<TestDeprecatedFields>(() => new TestDeprecatedFields()); | 1909 private static readonly pb::MessageParser<TestDeprecatedFields> _parser = ne
w pb::MessageParser<TestDeprecatedFields>(() => new TestDeprecatedFields()); |
| 1910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1819 public static pb::MessageParser<TestDeprecatedFields> Parser { get { return
_parser; } } | 1911 public static pb::MessageParser<TestDeprecatedFields> Parser { get { return
_parser; } } |
1820 | 1912 |
| 1913 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1821 public static pbr::MessageDescriptor Descriptor { | 1914 public static pbr::MessageDescriptor Descriptor { |
1822 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[2]; } | 1915 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[2]; } |
1823 } | 1916 } |
1824 | 1917 |
| 1918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1825 pbr::MessageDescriptor pb::IMessage.Descriptor { | 1919 pbr::MessageDescriptor pb::IMessage.Descriptor { |
1826 get { return Descriptor; } | 1920 get { return Descriptor; } |
1827 } | 1921 } |
1828 | 1922 |
| 1923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1829 public TestDeprecatedFields() { | 1924 public TestDeprecatedFields() { |
1830 OnConstruction(); | 1925 OnConstruction(); |
1831 } | 1926 } |
1832 | 1927 |
1833 partial void OnConstruction(); | 1928 partial void OnConstruction(); |
1834 | 1929 |
| 1930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1835 public TestDeprecatedFields(TestDeprecatedFields other) : this() { | 1931 public TestDeprecatedFields(TestDeprecatedFields other) : this() { |
1836 deprecatedInt32_ = other.deprecatedInt32_; | 1932 deprecatedInt32_ = other.deprecatedInt32_; |
1837 } | 1933 } |
1838 | 1934 |
| 1935 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1839 public TestDeprecatedFields Clone() { | 1936 public TestDeprecatedFields Clone() { |
1840 return new TestDeprecatedFields(this); | 1937 return new TestDeprecatedFields(this); |
1841 } | 1938 } |
1842 | 1939 |
1843 /// <summary>Field number for the "deprecated_int32" field.</summary> | 1940 /// <summary>Field number for the "deprecated_int32" field.</summary> |
1844 public const int DeprecatedInt32FieldNumber = 1; | 1941 public const int DeprecatedInt32FieldNumber = 1; |
1845 private int deprecatedInt32_; | 1942 private int deprecatedInt32_; |
1846 [global::System.ObsoleteAttribute()] | 1943 [global::System.ObsoleteAttribute] |
| 1944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1847 public int DeprecatedInt32 { | 1945 public int DeprecatedInt32 { |
1848 get { return deprecatedInt32_; } | 1946 get { return deprecatedInt32_; } |
1849 set { | 1947 set { |
1850 deprecatedInt32_ = value; | 1948 deprecatedInt32_ = value; |
1851 } | 1949 } |
1852 } | 1950 } |
1853 | 1951 |
| 1952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1854 public override bool Equals(object other) { | 1953 public override bool Equals(object other) { |
1855 return Equals(other as TestDeprecatedFields); | 1954 return Equals(other as TestDeprecatedFields); |
1856 } | 1955 } |
1857 | 1956 |
| 1957 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1858 public bool Equals(TestDeprecatedFields other) { | 1958 public bool Equals(TestDeprecatedFields other) { |
1859 if (ReferenceEquals(other, null)) { | 1959 if (ReferenceEquals(other, null)) { |
1860 return false; | 1960 return false; |
1861 } | 1961 } |
1862 if (ReferenceEquals(other, this)) { | 1962 if (ReferenceEquals(other, this)) { |
1863 return true; | 1963 return true; |
1864 } | 1964 } |
1865 if (DeprecatedInt32 != other.DeprecatedInt32) return false; | 1965 if (DeprecatedInt32 != other.DeprecatedInt32) return false; |
1866 return true; | 1966 return true; |
1867 } | 1967 } |
1868 | 1968 |
| 1969 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1869 public override int GetHashCode() { | 1970 public override int GetHashCode() { |
1870 int hash = 1; | 1971 int hash = 1; |
1871 if (DeprecatedInt32 != 0) hash ^= DeprecatedInt32.GetHashCode(); | 1972 if (DeprecatedInt32 != 0) hash ^= DeprecatedInt32.GetHashCode(); |
1872 return hash; | 1973 return hash; |
1873 } | 1974 } |
1874 | 1975 |
| 1976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1875 public override string ToString() { | 1977 public override string ToString() { |
1876 return pb::JsonFormatter.ToDiagnosticString(this); | 1978 return pb::JsonFormatter.ToDiagnosticString(this); |
1877 } | 1979 } |
1878 | 1980 |
| 1981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1879 public void WriteTo(pb::CodedOutputStream output) { | 1982 public void WriteTo(pb::CodedOutputStream output) { |
1880 if (DeprecatedInt32 != 0) { | 1983 if (DeprecatedInt32 != 0) { |
1881 output.WriteRawTag(8); | 1984 output.WriteRawTag(8); |
1882 output.WriteInt32(DeprecatedInt32); | 1985 output.WriteInt32(DeprecatedInt32); |
1883 } | 1986 } |
1884 } | 1987 } |
1885 | 1988 |
| 1989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1886 public int CalculateSize() { | 1990 public int CalculateSize() { |
1887 int size = 0; | 1991 int size = 0; |
1888 if (DeprecatedInt32 != 0) { | 1992 if (DeprecatedInt32 != 0) { |
1889 size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32); | 1993 size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32); |
1890 } | 1994 } |
1891 return size; | 1995 return size; |
1892 } | 1996 } |
1893 | 1997 |
| 1998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1894 public void MergeFrom(TestDeprecatedFields other) { | 1999 public void MergeFrom(TestDeprecatedFields other) { |
1895 if (other == null) { | 2000 if (other == null) { |
1896 return; | 2001 return; |
1897 } | 2002 } |
1898 if (other.DeprecatedInt32 != 0) { | 2003 if (other.DeprecatedInt32 != 0) { |
1899 DeprecatedInt32 = other.DeprecatedInt32; | 2004 DeprecatedInt32 = other.DeprecatedInt32; |
1900 } | 2005 } |
1901 } | 2006 } |
1902 | 2007 |
| 2008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1903 public void MergeFrom(pb::CodedInputStream input) { | 2009 public void MergeFrom(pb::CodedInputStream input) { |
1904 uint tag; | 2010 uint tag; |
1905 while ((tag = input.ReadTag()) != 0) { | 2011 while ((tag = input.ReadTag()) != 0) { |
1906 switch(tag) { | 2012 switch(tag) { |
1907 default: | 2013 default: |
1908 input.SkipLastField(); | 2014 input.SkipLastField(); |
1909 break; | 2015 break; |
1910 case 8: { | 2016 case 8: { |
1911 DeprecatedInt32 = input.ReadInt32(); | 2017 DeprecatedInt32 = input.ReadInt32(); |
1912 break; | 2018 break; |
1913 } | 2019 } |
1914 } | 2020 } |
1915 } | 2021 } |
1916 } | 2022 } |
1917 | 2023 |
1918 } | 2024 } |
1919 | 2025 |
1920 /// <summary> | 2026 /// <summary> |
1921 /// Define these after TestAllTypes to make sure the compiler can handle | 2027 /// Define these after TestAllTypes to make sure the compiler can handle |
1922 /// that. | 2028 /// that. |
1923 /// </summary> | 2029 /// </summary> |
1924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
1925 public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> { | 2030 public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> { |
1926 private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::
MessageParser<ForeignMessage>(() => new ForeignMessage()); | 2031 private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::
MessageParser<ForeignMessage>(() => new ForeignMessage()); |
| 2032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1927 public static pb::MessageParser<ForeignMessage> Parser { get { return _parse
r; } } | 2033 public static pb::MessageParser<ForeignMessage> Parser { get { return _parse
r; } } |
1928 | 2034 |
| 2035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1929 public static pbr::MessageDescriptor Descriptor { | 2036 public static pbr::MessageDescriptor Descriptor { |
1930 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[3]; } | 2037 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[3]; } |
1931 } | 2038 } |
1932 | 2039 |
| 2040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1933 pbr::MessageDescriptor pb::IMessage.Descriptor { | 2041 pbr::MessageDescriptor pb::IMessage.Descriptor { |
1934 get { return Descriptor; } | 2042 get { return Descriptor; } |
1935 } | 2043 } |
1936 | 2044 |
| 2045 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1937 public ForeignMessage() { | 2046 public ForeignMessage() { |
1938 OnConstruction(); | 2047 OnConstruction(); |
1939 } | 2048 } |
1940 | 2049 |
1941 partial void OnConstruction(); | 2050 partial void OnConstruction(); |
1942 | 2051 |
| 2052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1943 public ForeignMessage(ForeignMessage other) : this() { | 2053 public ForeignMessage(ForeignMessage other) : this() { |
1944 c_ = other.c_; | 2054 c_ = other.c_; |
1945 } | 2055 } |
1946 | 2056 |
| 2057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1947 public ForeignMessage Clone() { | 2058 public ForeignMessage Clone() { |
1948 return new ForeignMessage(this); | 2059 return new ForeignMessage(this); |
1949 } | 2060 } |
1950 | 2061 |
1951 /// <summary>Field number for the "c" field.</summary> | 2062 /// <summary>Field number for the "c" field.</summary> |
1952 public const int CFieldNumber = 1; | 2063 public const int CFieldNumber = 1; |
1953 private int c_; | 2064 private int c_; |
| 2065 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1954 public int C { | 2066 public int C { |
1955 get { return c_; } | 2067 get { return c_; } |
1956 set { | 2068 set { |
1957 c_ = value; | 2069 c_ = value; |
1958 } | 2070 } |
1959 } | 2071 } |
1960 | 2072 |
| 2073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1961 public override bool Equals(object other) { | 2074 public override bool Equals(object other) { |
1962 return Equals(other as ForeignMessage); | 2075 return Equals(other as ForeignMessage); |
1963 } | 2076 } |
1964 | 2077 |
| 2078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1965 public bool Equals(ForeignMessage other) { | 2079 public bool Equals(ForeignMessage other) { |
1966 if (ReferenceEquals(other, null)) { | 2080 if (ReferenceEquals(other, null)) { |
1967 return false; | 2081 return false; |
1968 } | 2082 } |
1969 if (ReferenceEquals(other, this)) { | 2083 if (ReferenceEquals(other, this)) { |
1970 return true; | 2084 return true; |
1971 } | 2085 } |
1972 if (C != other.C) return false; | 2086 if (C != other.C) return false; |
1973 return true; | 2087 return true; |
1974 } | 2088 } |
1975 | 2089 |
| 2090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1976 public override int GetHashCode() { | 2091 public override int GetHashCode() { |
1977 int hash = 1; | 2092 int hash = 1; |
1978 if (C != 0) hash ^= C.GetHashCode(); | 2093 if (C != 0) hash ^= C.GetHashCode(); |
1979 return hash; | 2094 return hash; |
1980 } | 2095 } |
1981 | 2096 |
| 2097 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1982 public override string ToString() { | 2098 public override string ToString() { |
1983 return pb::JsonFormatter.ToDiagnosticString(this); | 2099 return pb::JsonFormatter.ToDiagnosticString(this); |
1984 } | 2100 } |
1985 | 2101 |
| 2102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1986 public void WriteTo(pb::CodedOutputStream output) { | 2103 public void WriteTo(pb::CodedOutputStream output) { |
1987 if (C != 0) { | 2104 if (C != 0) { |
1988 output.WriteRawTag(8); | 2105 output.WriteRawTag(8); |
1989 output.WriteInt32(C); | 2106 output.WriteInt32(C); |
1990 } | 2107 } |
1991 } | 2108 } |
1992 | 2109 |
| 2110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
1993 public int CalculateSize() { | 2111 public int CalculateSize() { |
1994 int size = 0; | 2112 int size = 0; |
1995 if (C != 0) { | 2113 if (C != 0) { |
1996 size += 1 + pb::CodedOutputStream.ComputeInt32Size(C); | 2114 size += 1 + pb::CodedOutputStream.ComputeInt32Size(C); |
1997 } | 2115 } |
1998 return size; | 2116 return size; |
1999 } | 2117 } |
2000 | 2118 |
| 2119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2001 public void MergeFrom(ForeignMessage other) { | 2120 public void MergeFrom(ForeignMessage other) { |
2002 if (other == null) { | 2121 if (other == null) { |
2003 return; | 2122 return; |
2004 } | 2123 } |
2005 if (other.C != 0) { | 2124 if (other.C != 0) { |
2006 C = other.C; | 2125 C = other.C; |
2007 } | 2126 } |
2008 } | 2127 } |
2009 | 2128 |
| 2129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2010 public void MergeFrom(pb::CodedInputStream input) { | 2130 public void MergeFrom(pb::CodedInputStream input) { |
2011 uint tag; | 2131 uint tag; |
2012 while ((tag = input.ReadTag()) != 0) { | 2132 while ((tag = input.ReadTag()) != 0) { |
2013 switch(tag) { | 2133 switch(tag) { |
2014 default: | 2134 default: |
2015 input.SkipLastField(); | 2135 input.SkipLastField(); |
2016 break; | 2136 break; |
2017 case 8: { | 2137 case 8: { |
2018 C = input.ReadInt32(); | 2138 C = input.ReadInt32(); |
2019 break; | 2139 break; |
2020 } | 2140 } |
2021 } | 2141 } |
2022 } | 2142 } |
2023 } | 2143 } |
2024 | 2144 |
2025 } | 2145 } |
2026 | 2146 |
2027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
2028 public sealed partial class TestReservedFields : pb::IMessage<TestReservedFiel
ds> { | 2147 public sealed partial class TestReservedFields : pb::IMessage<TestReservedFiel
ds> { |
2029 private static readonly pb::MessageParser<TestReservedFields> _parser = new
pb::MessageParser<TestReservedFields>(() => new TestReservedFields()); | 2148 private static readonly pb::MessageParser<TestReservedFields> _parser = new
pb::MessageParser<TestReservedFields>(() => new TestReservedFields()); |
| 2149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2030 public static pb::MessageParser<TestReservedFields> Parser { get { return _p
arser; } } | 2150 public static pb::MessageParser<TestReservedFields> Parser { get { return _p
arser; } } |
2031 | 2151 |
| 2152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2032 public static pbr::MessageDescriptor Descriptor { | 2153 public static pbr::MessageDescriptor Descriptor { |
2033 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[4]; } | 2154 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[4]; } |
2034 } | 2155 } |
2035 | 2156 |
| 2157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2036 pbr::MessageDescriptor pb::IMessage.Descriptor { | 2158 pbr::MessageDescriptor pb::IMessage.Descriptor { |
2037 get { return Descriptor; } | 2159 get { return Descriptor; } |
2038 } | 2160 } |
2039 | 2161 |
| 2162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2040 public TestReservedFields() { | 2163 public TestReservedFields() { |
2041 OnConstruction(); | 2164 OnConstruction(); |
2042 } | 2165 } |
2043 | 2166 |
2044 partial void OnConstruction(); | 2167 partial void OnConstruction(); |
2045 | 2168 |
| 2169 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2046 public TestReservedFields(TestReservedFields other) : this() { | 2170 public TestReservedFields(TestReservedFields other) : this() { |
2047 } | 2171 } |
2048 | 2172 |
| 2173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2049 public TestReservedFields Clone() { | 2174 public TestReservedFields Clone() { |
2050 return new TestReservedFields(this); | 2175 return new TestReservedFields(this); |
2051 } | 2176 } |
2052 | 2177 |
| 2178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2053 public override bool Equals(object other) { | 2179 public override bool Equals(object other) { |
2054 return Equals(other as TestReservedFields); | 2180 return Equals(other as TestReservedFields); |
2055 } | 2181 } |
2056 | 2182 |
| 2183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2057 public bool Equals(TestReservedFields other) { | 2184 public bool Equals(TestReservedFields other) { |
2058 if (ReferenceEquals(other, null)) { | 2185 if (ReferenceEquals(other, null)) { |
2059 return false; | 2186 return false; |
2060 } | 2187 } |
2061 if (ReferenceEquals(other, this)) { | 2188 if (ReferenceEquals(other, this)) { |
2062 return true; | 2189 return true; |
2063 } | 2190 } |
2064 return true; | 2191 return true; |
2065 } | 2192 } |
2066 | 2193 |
| 2194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2067 public override int GetHashCode() { | 2195 public override int GetHashCode() { |
2068 int hash = 1; | 2196 int hash = 1; |
2069 return hash; | 2197 return hash; |
2070 } | 2198 } |
2071 | 2199 |
| 2200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2072 public override string ToString() { | 2201 public override string ToString() { |
2073 return pb::JsonFormatter.ToDiagnosticString(this); | 2202 return pb::JsonFormatter.ToDiagnosticString(this); |
2074 } | 2203 } |
2075 | 2204 |
| 2205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2076 public void WriteTo(pb::CodedOutputStream output) { | 2206 public void WriteTo(pb::CodedOutputStream output) { |
2077 } | 2207 } |
2078 | 2208 |
| 2209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2079 public int CalculateSize() { | 2210 public int CalculateSize() { |
2080 int size = 0; | 2211 int size = 0; |
2081 return size; | 2212 return size; |
2082 } | 2213 } |
2083 | 2214 |
| 2215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2084 public void MergeFrom(TestReservedFields other) { | 2216 public void MergeFrom(TestReservedFields other) { |
2085 if (other == null) { | 2217 if (other == null) { |
2086 return; | 2218 return; |
2087 } | 2219 } |
2088 } | 2220 } |
2089 | 2221 |
| 2222 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2090 public void MergeFrom(pb::CodedInputStream input) { | 2223 public void MergeFrom(pb::CodedInputStream input) { |
2091 uint tag; | 2224 uint tag; |
2092 while ((tag = input.ReadTag()) != 0) { | 2225 while ((tag = input.ReadTag()) != 0) { |
2093 switch(tag) { | 2226 switch(tag) { |
2094 default: | 2227 default: |
2095 input.SkipLastField(); | 2228 input.SkipLastField(); |
2096 break; | 2229 break; |
2097 } | 2230 } |
2098 } | 2231 } |
2099 } | 2232 } |
2100 | 2233 |
2101 } | 2234 } |
2102 | 2235 |
2103 /// <summary> | 2236 /// <summary> |
2104 /// Test that we can use NestedMessage from outside TestAllTypes. | 2237 /// Test that we can use NestedMessage from outside TestAllTypes. |
2105 /// </summary> | 2238 /// </summary> |
2106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
2107 public sealed partial class TestForeignNested : pb::IMessage<TestForeignNested
> { | 2239 public sealed partial class TestForeignNested : pb::IMessage<TestForeignNested
> { |
2108 private static readonly pb::MessageParser<TestForeignNested> _parser = new p
b::MessageParser<TestForeignNested>(() => new TestForeignNested()); | 2240 private static readonly pb::MessageParser<TestForeignNested> _parser = new p
b::MessageParser<TestForeignNested>(() => new TestForeignNested()); |
| 2241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2109 public static pb::MessageParser<TestForeignNested> Parser { get { return _pa
rser; } } | 2242 public static pb::MessageParser<TestForeignNested> Parser { get { return _pa
rser; } } |
2110 | 2243 |
| 2244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2111 public static pbr::MessageDescriptor Descriptor { | 2245 public static pbr::MessageDescriptor Descriptor { |
2112 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[5]; } | 2246 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[5]; } |
2113 } | 2247 } |
2114 | 2248 |
| 2249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2115 pbr::MessageDescriptor pb::IMessage.Descriptor { | 2250 pbr::MessageDescriptor pb::IMessage.Descriptor { |
2116 get { return Descriptor; } | 2251 get { return Descriptor; } |
2117 } | 2252 } |
2118 | 2253 |
| 2254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2119 public TestForeignNested() { | 2255 public TestForeignNested() { |
2120 OnConstruction(); | 2256 OnConstruction(); |
2121 } | 2257 } |
2122 | 2258 |
2123 partial void OnConstruction(); | 2259 partial void OnConstruction(); |
2124 | 2260 |
| 2261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2125 public TestForeignNested(TestForeignNested other) : this() { | 2262 public TestForeignNested(TestForeignNested other) : this() { |
2126 ForeignNested = other.foreignNested_ != null ? other.ForeignNested.Clone()
: null; | 2263 ForeignNested = other.foreignNested_ != null ? other.ForeignNested.Clone()
: null; |
2127 } | 2264 } |
2128 | 2265 |
| 2266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2129 public TestForeignNested Clone() { | 2267 public TestForeignNested Clone() { |
2130 return new TestForeignNested(this); | 2268 return new TestForeignNested(this); |
2131 } | 2269 } |
2132 | 2270 |
2133 /// <summary>Field number for the "foreign_nested" field.</summary> | 2271 /// <summary>Field number for the "foreign_nested" field.</summary> |
2134 public const int ForeignNestedFieldNumber = 1; | 2272 public const int ForeignNestedFieldNumber = 1; |
2135 private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage
foreignNested_; | 2273 private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage
foreignNested_; |
| 2274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2136 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage F
oreignNested { | 2275 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage F
oreignNested { |
2137 get { return foreignNested_; } | 2276 get { return foreignNested_; } |
2138 set { | 2277 set { |
2139 foreignNested_ = value; | 2278 foreignNested_ = value; |
2140 } | 2279 } |
2141 } | 2280 } |
2142 | 2281 |
| 2282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2143 public override bool Equals(object other) { | 2283 public override bool Equals(object other) { |
2144 return Equals(other as TestForeignNested); | 2284 return Equals(other as TestForeignNested); |
2145 } | 2285 } |
2146 | 2286 |
| 2287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2147 public bool Equals(TestForeignNested other) { | 2288 public bool Equals(TestForeignNested other) { |
2148 if (ReferenceEquals(other, null)) { | 2289 if (ReferenceEquals(other, null)) { |
2149 return false; | 2290 return false; |
2150 } | 2291 } |
2151 if (ReferenceEquals(other, this)) { | 2292 if (ReferenceEquals(other, this)) { |
2152 return true; | 2293 return true; |
2153 } | 2294 } |
2154 if (!object.Equals(ForeignNested, other.ForeignNested)) return false; | 2295 if (!object.Equals(ForeignNested, other.ForeignNested)) return false; |
2155 return true; | 2296 return true; |
2156 } | 2297 } |
2157 | 2298 |
| 2299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2158 public override int GetHashCode() { | 2300 public override int GetHashCode() { |
2159 int hash = 1; | 2301 int hash = 1; |
2160 if (foreignNested_ != null) hash ^= ForeignNested.GetHashCode(); | 2302 if (foreignNested_ != null) hash ^= ForeignNested.GetHashCode(); |
2161 return hash; | 2303 return hash; |
2162 } | 2304 } |
2163 | 2305 |
| 2306 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2164 public override string ToString() { | 2307 public override string ToString() { |
2165 return pb::JsonFormatter.ToDiagnosticString(this); | 2308 return pb::JsonFormatter.ToDiagnosticString(this); |
2166 } | 2309 } |
2167 | 2310 |
| 2311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2168 public void WriteTo(pb::CodedOutputStream output) { | 2312 public void WriteTo(pb::CodedOutputStream output) { |
2169 if (foreignNested_ != null) { | 2313 if (foreignNested_ != null) { |
2170 output.WriteRawTag(10); | 2314 output.WriteRawTag(10); |
2171 output.WriteMessage(ForeignNested); | 2315 output.WriteMessage(ForeignNested); |
2172 } | 2316 } |
2173 } | 2317 } |
2174 | 2318 |
| 2319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2175 public int CalculateSize() { | 2320 public int CalculateSize() { |
2176 int size = 0; | 2321 int size = 0; |
2177 if (foreignNested_ != null) { | 2322 if (foreignNested_ != null) { |
2178 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForeignNested); | 2323 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForeignNested); |
2179 } | 2324 } |
2180 return size; | 2325 return size; |
2181 } | 2326 } |
2182 | 2327 |
| 2328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2183 public void MergeFrom(TestForeignNested other) { | 2329 public void MergeFrom(TestForeignNested other) { |
2184 if (other == null) { | 2330 if (other == null) { |
2185 return; | 2331 return; |
2186 } | 2332 } |
2187 if (other.foreignNested_ != null) { | 2333 if (other.foreignNested_ != null) { |
2188 if (foreignNested_ == null) { | 2334 if (foreignNested_ == null) { |
2189 foreignNested_ = new global::Google.Protobuf.TestProtos.TestAllTypes.T
ypes.NestedMessage(); | 2335 foreignNested_ = new global::Google.Protobuf.TestProtos.TestAllTypes.T
ypes.NestedMessage(); |
2190 } | 2336 } |
2191 ForeignNested.MergeFrom(other.ForeignNested); | 2337 ForeignNested.MergeFrom(other.ForeignNested); |
2192 } | 2338 } |
2193 } | 2339 } |
2194 | 2340 |
| 2341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2195 public void MergeFrom(pb::CodedInputStream input) { | 2342 public void MergeFrom(pb::CodedInputStream input) { |
2196 uint tag; | 2343 uint tag; |
2197 while ((tag = input.ReadTag()) != 0) { | 2344 while ((tag = input.ReadTag()) != 0) { |
2198 switch(tag) { | 2345 switch(tag) { |
2199 default: | 2346 default: |
2200 input.SkipLastField(); | 2347 input.SkipLastField(); |
2201 break; | 2348 break; |
2202 case 10: { | 2349 case 10: { |
2203 if (foreignNested_ == null) { | 2350 if (foreignNested_ == null) { |
2204 foreignNested_ = new global::Google.Protobuf.TestProtos.TestAllTyp
es.Types.NestedMessage(); | 2351 foreignNested_ = new global::Google.Protobuf.TestProtos.TestAllTyp
es.Types.NestedMessage(); |
2205 } | 2352 } |
2206 input.ReadMessage(foreignNested_); | 2353 input.ReadMessage(foreignNested_); |
2207 break; | 2354 break; |
2208 } | 2355 } |
2209 } | 2356 } |
2210 } | 2357 } |
2211 } | 2358 } |
2212 | 2359 |
2213 } | 2360 } |
2214 | 2361 |
2215 /// <summary> | 2362 /// <summary> |
2216 /// Test that really large tag numbers don't break anything. | 2363 /// Test that really large tag numbers don't break anything. |
2217 /// </summary> | 2364 /// </summary> |
2218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
2219 public sealed partial class TestReallyLargeTagNumber : pb::IMessage<TestReally
LargeTagNumber> { | 2365 public sealed partial class TestReallyLargeTagNumber : pb::IMessage<TestReally
LargeTagNumber> { |
2220 private static readonly pb::MessageParser<TestReallyLargeTagNumber> _parser
= new pb::MessageParser<TestReallyLargeTagNumber>(() => new TestReallyLargeTagNu
mber()); | 2366 private static readonly pb::MessageParser<TestReallyLargeTagNumber> _parser
= new pb::MessageParser<TestReallyLargeTagNumber>(() => new TestReallyLargeTagNu
mber()); |
| 2367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2221 public static pb::MessageParser<TestReallyLargeTagNumber> Parser { get { ret
urn _parser; } } | 2368 public static pb::MessageParser<TestReallyLargeTagNumber> Parser { get { ret
urn _parser; } } |
2222 | 2369 |
| 2370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2223 public static pbr::MessageDescriptor Descriptor { | 2371 public static pbr::MessageDescriptor Descriptor { |
2224 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[6]; } | 2372 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[6]; } |
2225 } | 2373 } |
2226 | 2374 |
| 2375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2227 pbr::MessageDescriptor pb::IMessage.Descriptor { | 2376 pbr::MessageDescriptor pb::IMessage.Descriptor { |
2228 get { return Descriptor; } | 2377 get { return Descriptor; } |
2229 } | 2378 } |
2230 | 2379 |
| 2380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2231 public TestReallyLargeTagNumber() { | 2381 public TestReallyLargeTagNumber() { |
2232 OnConstruction(); | 2382 OnConstruction(); |
2233 } | 2383 } |
2234 | 2384 |
2235 partial void OnConstruction(); | 2385 partial void OnConstruction(); |
2236 | 2386 |
| 2387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2237 public TestReallyLargeTagNumber(TestReallyLargeTagNumber other) : this() { | 2388 public TestReallyLargeTagNumber(TestReallyLargeTagNumber other) : this() { |
2238 a_ = other.a_; | 2389 a_ = other.a_; |
2239 bb_ = other.bb_; | 2390 bb_ = other.bb_; |
2240 } | 2391 } |
2241 | 2392 |
| 2393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2242 public TestReallyLargeTagNumber Clone() { | 2394 public TestReallyLargeTagNumber Clone() { |
2243 return new TestReallyLargeTagNumber(this); | 2395 return new TestReallyLargeTagNumber(this); |
2244 } | 2396 } |
2245 | 2397 |
2246 /// <summary>Field number for the "a" field.</summary> | 2398 /// <summary>Field number for the "a" field.</summary> |
2247 public const int AFieldNumber = 1; | 2399 public const int AFieldNumber = 1; |
2248 private int a_; | 2400 private int a_; |
2249 /// <summary> | 2401 /// <summary> |
2250 /// The largest possible tag number is 2^28 - 1, since the wire format uses | 2402 /// The largest possible tag number is 2^28 - 1, since the wire format uses |
2251 /// three bits to communicate wire type. | 2403 /// three bits to communicate wire type. |
2252 /// </summary> | 2404 /// </summary> |
| 2405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2253 public int A { | 2406 public int A { |
2254 get { return a_; } | 2407 get { return a_; } |
2255 set { | 2408 set { |
2256 a_ = value; | 2409 a_ = value; |
2257 } | 2410 } |
2258 } | 2411 } |
2259 | 2412 |
2260 /// <summary>Field number for the "bb" field.</summary> | 2413 /// <summary>Field number for the "bb" field.</summary> |
2261 public const int BbFieldNumber = 268435455; | 2414 public const int BbFieldNumber = 268435455; |
2262 private int bb_; | 2415 private int bb_; |
| 2416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2263 public int Bb { | 2417 public int Bb { |
2264 get { return bb_; } | 2418 get { return bb_; } |
2265 set { | 2419 set { |
2266 bb_ = value; | 2420 bb_ = value; |
2267 } | 2421 } |
2268 } | 2422 } |
2269 | 2423 |
| 2424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2270 public override bool Equals(object other) { | 2425 public override bool Equals(object other) { |
2271 return Equals(other as TestReallyLargeTagNumber); | 2426 return Equals(other as TestReallyLargeTagNumber); |
2272 } | 2427 } |
2273 | 2428 |
| 2429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2274 public bool Equals(TestReallyLargeTagNumber other) { | 2430 public bool Equals(TestReallyLargeTagNumber other) { |
2275 if (ReferenceEquals(other, null)) { | 2431 if (ReferenceEquals(other, null)) { |
2276 return false; | 2432 return false; |
2277 } | 2433 } |
2278 if (ReferenceEquals(other, this)) { | 2434 if (ReferenceEquals(other, this)) { |
2279 return true; | 2435 return true; |
2280 } | 2436 } |
2281 if (A != other.A) return false; | 2437 if (A != other.A) return false; |
2282 if (Bb != other.Bb) return false; | 2438 if (Bb != other.Bb) return false; |
2283 return true; | 2439 return true; |
2284 } | 2440 } |
2285 | 2441 |
| 2442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2286 public override int GetHashCode() { | 2443 public override int GetHashCode() { |
2287 int hash = 1; | 2444 int hash = 1; |
2288 if (A != 0) hash ^= A.GetHashCode(); | 2445 if (A != 0) hash ^= A.GetHashCode(); |
2289 if (Bb != 0) hash ^= Bb.GetHashCode(); | 2446 if (Bb != 0) hash ^= Bb.GetHashCode(); |
2290 return hash; | 2447 return hash; |
2291 } | 2448 } |
2292 | 2449 |
| 2450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2293 public override string ToString() { | 2451 public override string ToString() { |
2294 return pb::JsonFormatter.ToDiagnosticString(this); | 2452 return pb::JsonFormatter.ToDiagnosticString(this); |
2295 } | 2453 } |
2296 | 2454 |
| 2455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2297 public void WriteTo(pb::CodedOutputStream output) { | 2456 public void WriteTo(pb::CodedOutputStream output) { |
2298 if (A != 0) { | 2457 if (A != 0) { |
2299 output.WriteRawTag(8); | 2458 output.WriteRawTag(8); |
2300 output.WriteInt32(A); | 2459 output.WriteInt32(A); |
2301 } | 2460 } |
2302 if (Bb != 0) { | 2461 if (Bb != 0) { |
2303 output.WriteRawTag(248, 255, 255, 255, 7); | 2462 output.WriteRawTag(248, 255, 255, 255, 7); |
2304 output.WriteInt32(Bb); | 2463 output.WriteInt32(Bb); |
2305 } | 2464 } |
2306 } | 2465 } |
2307 | 2466 |
| 2467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2308 public int CalculateSize() { | 2468 public int CalculateSize() { |
2309 int size = 0; | 2469 int size = 0; |
2310 if (A != 0) { | 2470 if (A != 0) { |
2311 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); | 2471 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); |
2312 } | 2472 } |
2313 if (Bb != 0) { | 2473 if (Bb != 0) { |
2314 size += 5 + pb::CodedOutputStream.ComputeInt32Size(Bb); | 2474 size += 5 + pb::CodedOutputStream.ComputeInt32Size(Bb); |
2315 } | 2475 } |
2316 return size; | 2476 return size; |
2317 } | 2477 } |
2318 | 2478 |
| 2479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2319 public void MergeFrom(TestReallyLargeTagNumber other) { | 2480 public void MergeFrom(TestReallyLargeTagNumber other) { |
2320 if (other == null) { | 2481 if (other == null) { |
2321 return; | 2482 return; |
2322 } | 2483 } |
2323 if (other.A != 0) { | 2484 if (other.A != 0) { |
2324 A = other.A; | 2485 A = other.A; |
2325 } | 2486 } |
2326 if (other.Bb != 0) { | 2487 if (other.Bb != 0) { |
2327 Bb = other.Bb; | 2488 Bb = other.Bb; |
2328 } | 2489 } |
2329 } | 2490 } |
2330 | 2491 |
| 2492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2331 public void MergeFrom(pb::CodedInputStream input) { | 2493 public void MergeFrom(pb::CodedInputStream input) { |
2332 uint tag; | 2494 uint tag; |
2333 while ((tag = input.ReadTag()) != 0) { | 2495 while ((tag = input.ReadTag()) != 0) { |
2334 switch(tag) { | 2496 switch(tag) { |
2335 default: | 2497 default: |
2336 input.SkipLastField(); | 2498 input.SkipLastField(); |
2337 break; | 2499 break; |
2338 case 8: { | 2500 case 8: { |
2339 A = input.ReadInt32(); | 2501 A = input.ReadInt32(); |
2340 break; | 2502 break; |
2341 } | 2503 } |
2342 case 2147483640: { | 2504 case 2147483640: { |
2343 Bb = input.ReadInt32(); | 2505 Bb = input.ReadInt32(); |
2344 break; | 2506 break; |
2345 } | 2507 } |
2346 } | 2508 } |
2347 } | 2509 } |
2348 } | 2510 } |
2349 | 2511 |
2350 } | 2512 } |
2351 | 2513 |
2352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
2353 public sealed partial class TestRecursiveMessage : pb::IMessage<TestRecursiveM
essage> { | 2514 public sealed partial class TestRecursiveMessage : pb::IMessage<TestRecursiveM
essage> { |
2354 private static readonly pb::MessageParser<TestRecursiveMessage> _parser = ne
w pb::MessageParser<TestRecursiveMessage>(() => new TestRecursiveMessage()); | 2515 private static readonly pb::MessageParser<TestRecursiveMessage> _parser = ne
w pb::MessageParser<TestRecursiveMessage>(() => new TestRecursiveMessage()); |
| 2516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2355 public static pb::MessageParser<TestRecursiveMessage> Parser { get { return
_parser; } } | 2517 public static pb::MessageParser<TestRecursiveMessage> Parser { get { return
_parser; } } |
2356 | 2518 |
| 2519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2357 public static pbr::MessageDescriptor Descriptor { | 2520 public static pbr::MessageDescriptor Descriptor { |
2358 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[7]; } | 2521 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[7]; } |
2359 } | 2522 } |
2360 | 2523 |
| 2524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2361 pbr::MessageDescriptor pb::IMessage.Descriptor { | 2525 pbr::MessageDescriptor pb::IMessage.Descriptor { |
2362 get { return Descriptor; } | 2526 get { return Descriptor; } |
2363 } | 2527 } |
2364 | 2528 |
| 2529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2365 public TestRecursiveMessage() { | 2530 public TestRecursiveMessage() { |
2366 OnConstruction(); | 2531 OnConstruction(); |
2367 } | 2532 } |
2368 | 2533 |
2369 partial void OnConstruction(); | 2534 partial void OnConstruction(); |
2370 | 2535 |
| 2536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2371 public TestRecursiveMessage(TestRecursiveMessage other) : this() { | 2537 public TestRecursiveMessage(TestRecursiveMessage other) : this() { |
2372 A = other.a_ != null ? other.A.Clone() : null; | 2538 A = other.a_ != null ? other.A.Clone() : null; |
2373 i_ = other.i_; | 2539 i_ = other.i_; |
2374 } | 2540 } |
2375 | 2541 |
| 2542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2376 public TestRecursiveMessage Clone() { | 2543 public TestRecursiveMessage Clone() { |
2377 return new TestRecursiveMessage(this); | 2544 return new TestRecursiveMessage(this); |
2378 } | 2545 } |
2379 | 2546 |
2380 /// <summary>Field number for the "a" field.</summary> | 2547 /// <summary>Field number for the "a" field.</summary> |
2381 public const int AFieldNumber = 1; | 2548 public const int AFieldNumber = 1; |
2382 private global::Google.Protobuf.TestProtos.TestRecursiveMessage a_; | 2549 private global::Google.Protobuf.TestProtos.TestRecursiveMessage a_; |
| 2550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2383 public global::Google.Protobuf.TestProtos.TestRecursiveMessage A { | 2551 public global::Google.Protobuf.TestProtos.TestRecursiveMessage A { |
2384 get { return a_; } | 2552 get { return a_; } |
2385 set { | 2553 set { |
2386 a_ = value; | 2554 a_ = value; |
2387 } | 2555 } |
2388 } | 2556 } |
2389 | 2557 |
2390 /// <summary>Field number for the "i" field.</summary> | 2558 /// <summary>Field number for the "i" field.</summary> |
2391 public const int IFieldNumber = 2; | 2559 public const int IFieldNumber = 2; |
2392 private int i_; | 2560 private int i_; |
| 2561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2393 public int I { | 2562 public int I { |
2394 get { return i_; } | 2563 get { return i_; } |
2395 set { | 2564 set { |
2396 i_ = value; | 2565 i_ = value; |
2397 } | 2566 } |
2398 } | 2567 } |
2399 | 2568 |
| 2569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2400 public override bool Equals(object other) { | 2570 public override bool Equals(object other) { |
2401 return Equals(other as TestRecursiveMessage); | 2571 return Equals(other as TestRecursiveMessage); |
2402 } | 2572 } |
2403 | 2573 |
| 2574 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2404 public bool Equals(TestRecursiveMessage other) { | 2575 public bool Equals(TestRecursiveMessage other) { |
2405 if (ReferenceEquals(other, null)) { | 2576 if (ReferenceEquals(other, null)) { |
2406 return false; | 2577 return false; |
2407 } | 2578 } |
2408 if (ReferenceEquals(other, this)) { | 2579 if (ReferenceEquals(other, this)) { |
2409 return true; | 2580 return true; |
2410 } | 2581 } |
2411 if (!object.Equals(A, other.A)) return false; | 2582 if (!object.Equals(A, other.A)) return false; |
2412 if (I != other.I) return false; | 2583 if (I != other.I) return false; |
2413 return true; | 2584 return true; |
2414 } | 2585 } |
2415 | 2586 |
| 2587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2416 public override int GetHashCode() { | 2588 public override int GetHashCode() { |
2417 int hash = 1; | 2589 int hash = 1; |
2418 if (a_ != null) hash ^= A.GetHashCode(); | 2590 if (a_ != null) hash ^= A.GetHashCode(); |
2419 if (I != 0) hash ^= I.GetHashCode(); | 2591 if (I != 0) hash ^= I.GetHashCode(); |
2420 return hash; | 2592 return hash; |
2421 } | 2593 } |
2422 | 2594 |
| 2595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2423 public override string ToString() { | 2596 public override string ToString() { |
2424 return pb::JsonFormatter.ToDiagnosticString(this); | 2597 return pb::JsonFormatter.ToDiagnosticString(this); |
2425 } | 2598 } |
2426 | 2599 |
| 2600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2427 public void WriteTo(pb::CodedOutputStream output) { | 2601 public void WriteTo(pb::CodedOutputStream output) { |
2428 if (a_ != null) { | 2602 if (a_ != null) { |
2429 output.WriteRawTag(10); | 2603 output.WriteRawTag(10); |
2430 output.WriteMessage(A); | 2604 output.WriteMessage(A); |
2431 } | 2605 } |
2432 if (I != 0) { | 2606 if (I != 0) { |
2433 output.WriteRawTag(16); | 2607 output.WriteRawTag(16); |
2434 output.WriteInt32(I); | 2608 output.WriteInt32(I); |
2435 } | 2609 } |
2436 } | 2610 } |
2437 | 2611 |
| 2612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2438 public int CalculateSize() { | 2613 public int CalculateSize() { |
2439 int size = 0; | 2614 int size = 0; |
2440 if (a_ != null) { | 2615 if (a_ != null) { |
2441 size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); | 2616 size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); |
2442 } | 2617 } |
2443 if (I != 0) { | 2618 if (I != 0) { |
2444 size += 1 + pb::CodedOutputStream.ComputeInt32Size(I); | 2619 size += 1 + pb::CodedOutputStream.ComputeInt32Size(I); |
2445 } | 2620 } |
2446 return size; | 2621 return size; |
2447 } | 2622 } |
2448 | 2623 |
| 2624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2449 public void MergeFrom(TestRecursiveMessage other) { | 2625 public void MergeFrom(TestRecursiveMessage other) { |
2450 if (other == null) { | 2626 if (other == null) { |
2451 return; | 2627 return; |
2452 } | 2628 } |
2453 if (other.a_ != null) { | 2629 if (other.a_ != null) { |
2454 if (a_ == null) { | 2630 if (a_ == null) { |
2455 a_ = new global::Google.Protobuf.TestProtos.TestRecursiveMessage(); | 2631 a_ = new global::Google.Protobuf.TestProtos.TestRecursiveMessage(); |
2456 } | 2632 } |
2457 A.MergeFrom(other.A); | 2633 A.MergeFrom(other.A); |
2458 } | 2634 } |
2459 if (other.I != 0) { | 2635 if (other.I != 0) { |
2460 I = other.I; | 2636 I = other.I; |
2461 } | 2637 } |
2462 } | 2638 } |
2463 | 2639 |
| 2640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2464 public void MergeFrom(pb::CodedInputStream input) { | 2641 public void MergeFrom(pb::CodedInputStream input) { |
2465 uint tag; | 2642 uint tag; |
2466 while ((tag = input.ReadTag()) != 0) { | 2643 while ((tag = input.ReadTag()) != 0) { |
2467 switch(tag) { | 2644 switch(tag) { |
2468 default: | 2645 default: |
2469 input.SkipLastField(); | 2646 input.SkipLastField(); |
2470 break; | 2647 break; |
2471 case 10: { | 2648 case 10: { |
2472 if (a_ == null) { | 2649 if (a_ == null) { |
2473 a_ = new global::Google.Protobuf.TestProtos.TestRecursiveMessage()
; | 2650 a_ = new global::Google.Protobuf.TestProtos.TestRecursiveMessage()
; |
2474 } | 2651 } |
2475 input.ReadMessage(a_); | 2652 input.ReadMessage(a_); |
2476 break; | 2653 break; |
2477 } | 2654 } |
2478 case 16: { | 2655 case 16: { |
2479 I = input.ReadInt32(); | 2656 I = input.ReadInt32(); |
2480 break; | 2657 break; |
2481 } | 2658 } |
2482 } | 2659 } |
2483 } | 2660 } |
2484 } | 2661 } |
2485 | 2662 |
2486 } | 2663 } |
2487 | 2664 |
2488 /// <summary> | 2665 /// <summary> |
2489 /// Test that mutual recursion works. | 2666 /// Test that mutual recursion works. |
2490 /// </summary> | 2667 /// </summary> |
2491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
2492 public sealed partial class TestMutualRecursionA : pb::IMessage<TestMutualRecu
rsionA> { | 2668 public sealed partial class TestMutualRecursionA : pb::IMessage<TestMutualRecu
rsionA> { |
2493 private static readonly pb::MessageParser<TestMutualRecursionA> _parser = ne
w pb::MessageParser<TestMutualRecursionA>(() => new TestMutualRecursionA()); | 2669 private static readonly pb::MessageParser<TestMutualRecursionA> _parser = ne
w pb::MessageParser<TestMutualRecursionA>(() => new TestMutualRecursionA()); |
| 2670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2494 public static pb::MessageParser<TestMutualRecursionA> Parser { get { return
_parser; } } | 2671 public static pb::MessageParser<TestMutualRecursionA> Parser { get { return
_parser; } } |
2495 | 2672 |
| 2673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2496 public static pbr::MessageDescriptor Descriptor { | 2674 public static pbr::MessageDescriptor Descriptor { |
2497 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[8]; } | 2675 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[8]; } |
2498 } | 2676 } |
2499 | 2677 |
| 2678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2500 pbr::MessageDescriptor pb::IMessage.Descriptor { | 2679 pbr::MessageDescriptor pb::IMessage.Descriptor { |
2501 get { return Descriptor; } | 2680 get { return Descriptor; } |
2502 } | 2681 } |
2503 | 2682 |
| 2683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2504 public TestMutualRecursionA() { | 2684 public TestMutualRecursionA() { |
2505 OnConstruction(); | 2685 OnConstruction(); |
2506 } | 2686 } |
2507 | 2687 |
2508 partial void OnConstruction(); | 2688 partial void OnConstruction(); |
2509 | 2689 |
| 2690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2510 public TestMutualRecursionA(TestMutualRecursionA other) : this() { | 2691 public TestMutualRecursionA(TestMutualRecursionA other) : this() { |
2511 Bb = other.bb_ != null ? other.Bb.Clone() : null; | 2692 Bb = other.bb_ != null ? other.Bb.Clone() : null; |
2512 } | 2693 } |
2513 | 2694 |
| 2695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2514 public TestMutualRecursionA Clone() { | 2696 public TestMutualRecursionA Clone() { |
2515 return new TestMutualRecursionA(this); | 2697 return new TestMutualRecursionA(this); |
2516 } | 2698 } |
2517 | 2699 |
2518 /// <summary>Field number for the "bb" field.</summary> | 2700 /// <summary>Field number for the "bb" field.</summary> |
2519 public const int BbFieldNumber = 1; | 2701 public const int BbFieldNumber = 1; |
2520 private global::Google.Protobuf.TestProtos.TestMutualRecursionB bb_; | 2702 private global::Google.Protobuf.TestProtos.TestMutualRecursionB bb_; |
| 2703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2521 public global::Google.Protobuf.TestProtos.TestMutualRecursionB Bb { | 2704 public global::Google.Protobuf.TestProtos.TestMutualRecursionB Bb { |
2522 get { return bb_; } | 2705 get { return bb_; } |
2523 set { | 2706 set { |
2524 bb_ = value; | 2707 bb_ = value; |
2525 } | 2708 } |
2526 } | 2709 } |
2527 | 2710 |
| 2711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2528 public override bool Equals(object other) { | 2712 public override bool Equals(object other) { |
2529 return Equals(other as TestMutualRecursionA); | 2713 return Equals(other as TestMutualRecursionA); |
2530 } | 2714 } |
2531 | 2715 |
| 2716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2532 public bool Equals(TestMutualRecursionA other) { | 2717 public bool Equals(TestMutualRecursionA other) { |
2533 if (ReferenceEquals(other, null)) { | 2718 if (ReferenceEquals(other, null)) { |
2534 return false; | 2719 return false; |
2535 } | 2720 } |
2536 if (ReferenceEquals(other, this)) { | 2721 if (ReferenceEquals(other, this)) { |
2537 return true; | 2722 return true; |
2538 } | 2723 } |
2539 if (!object.Equals(Bb, other.Bb)) return false; | 2724 if (!object.Equals(Bb, other.Bb)) return false; |
2540 return true; | 2725 return true; |
2541 } | 2726 } |
2542 | 2727 |
| 2728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2543 public override int GetHashCode() { | 2729 public override int GetHashCode() { |
2544 int hash = 1; | 2730 int hash = 1; |
2545 if (bb_ != null) hash ^= Bb.GetHashCode(); | 2731 if (bb_ != null) hash ^= Bb.GetHashCode(); |
2546 return hash; | 2732 return hash; |
2547 } | 2733 } |
2548 | 2734 |
| 2735 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2549 public override string ToString() { | 2736 public override string ToString() { |
2550 return pb::JsonFormatter.ToDiagnosticString(this); | 2737 return pb::JsonFormatter.ToDiagnosticString(this); |
2551 } | 2738 } |
2552 | 2739 |
| 2740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2553 public void WriteTo(pb::CodedOutputStream output) { | 2741 public void WriteTo(pb::CodedOutputStream output) { |
2554 if (bb_ != null) { | 2742 if (bb_ != null) { |
2555 output.WriteRawTag(10); | 2743 output.WriteRawTag(10); |
2556 output.WriteMessage(Bb); | 2744 output.WriteMessage(Bb); |
2557 } | 2745 } |
2558 } | 2746 } |
2559 | 2747 |
| 2748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2560 public int CalculateSize() { | 2749 public int CalculateSize() { |
2561 int size = 0; | 2750 int size = 0; |
2562 if (bb_ != null) { | 2751 if (bb_ != null) { |
2563 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bb); | 2752 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bb); |
2564 } | 2753 } |
2565 return size; | 2754 return size; |
2566 } | 2755 } |
2567 | 2756 |
| 2757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2568 public void MergeFrom(TestMutualRecursionA other) { | 2758 public void MergeFrom(TestMutualRecursionA other) { |
2569 if (other == null) { | 2759 if (other == null) { |
2570 return; | 2760 return; |
2571 } | 2761 } |
2572 if (other.bb_ != null) { | 2762 if (other.bb_ != null) { |
2573 if (bb_ == null) { | 2763 if (bb_ == null) { |
2574 bb_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionB(); | 2764 bb_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionB(); |
2575 } | 2765 } |
2576 Bb.MergeFrom(other.Bb); | 2766 Bb.MergeFrom(other.Bb); |
2577 } | 2767 } |
2578 } | 2768 } |
2579 | 2769 |
| 2770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2580 public void MergeFrom(pb::CodedInputStream input) { | 2771 public void MergeFrom(pb::CodedInputStream input) { |
2581 uint tag; | 2772 uint tag; |
2582 while ((tag = input.ReadTag()) != 0) { | 2773 while ((tag = input.ReadTag()) != 0) { |
2583 switch(tag) { | 2774 switch(tag) { |
2584 default: | 2775 default: |
2585 input.SkipLastField(); | 2776 input.SkipLastField(); |
2586 break; | 2777 break; |
2587 case 10: { | 2778 case 10: { |
2588 if (bb_ == null) { | 2779 if (bb_ == null) { |
2589 bb_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionB(
); | 2780 bb_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionB(
); |
2590 } | 2781 } |
2591 input.ReadMessage(bb_); | 2782 input.ReadMessage(bb_); |
2592 break; | 2783 break; |
2593 } | 2784 } |
2594 } | 2785 } |
2595 } | 2786 } |
2596 } | 2787 } |
2597 | 2788 |
2598 } | 2789 } |
2599 | 2790 |
2600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
2601 public sealed partial class TestMutualRecursionB : pb::IMessage<TestMutualRecu
rsionB> { | 2791 public sealed partial class TestMutualRecursionB : pb::IMessage<TestMutualRecu
rsionB> { |
2602 private static readonly pb::MessageParser<TestMutualRecursionB> _parser = ne
w pb::MessageParser<TestMutualRecursionB>(() => new TestMutualRecursionB()); | 2792 private static readonly pb::MessageParser<TestMutualRecursionB> _parser = ne
w pb::MessageParser<TestMutualRecursionB>(() => new TestMutualRecursionB()); |
| 2793 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2603 public static pb::MessageParser<TestMutualRecursionB> Parser { get { return
_parser; } } | 2794 public static pb::MessageParser<TestMutualRecursionB> Parser { get { return
_parser; } } |
2604 | 2795 |
| 2796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2605 public static pbr::MessageDescriptor Descriptor { | 2797 public static pbr::MessageDescriptor Descriptor { |
2606 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[9]; } | 2798 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[9]; } |
2607 } | 2799 } |
2608 | 2800 |
| 2801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2609 pbr::MessageDescriptor pb::IMessage.Descriptor { | 2802 pbr::MessageDescriptor pb::IMessage.Descriptor { |
2610 get { return Descriptor; } | 2803 get { return Descriptor; } |
2611 } | 2804 } |
2612 | 2805 |
| 2806 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2613 public TestMutualRecursionB() { | 2807 public TestMutualRecursionB() { |
2614 OnConstruction(); | 2808 OnConstruction(); |
2615 } | 2809 } |
2616 | 2810 |
2617 partial void OnConstruction(); | 2811 partial void OnConstruction(); |
2618 | 2812 |
| 2813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2619 public TestMutualRecursionB(TestMutualRecursionB other) : this() { | 2814 public TestMutualRecursionB(TestMutualRecursionB other) : this() { |
2620 A = other.a_ != null ? other.A.Clone() : null; | 2815 A = other.a_ != null ? other.A.Clone() : null; |
2621 optionalInt32_ = other.optionalInt32_; | 2816 optionalInt32_ = other.optionalInt32_; |
2622 } | 2817 } |
2623 | 2818 |
| 2819 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2624 public TestMutualRecursionB Clone() { | 2820 public TestMutualRecursionB Clone() { |
2625 return new TestMutualRecursionB(this); | 2821 return new TestMutualRecursionB(this); |
2626 } | 2822 } |
2627 | 2823 |
2628 /// <summary>Field number for the "a" field.</summary> | 2824 /// <summary>Field number for the "a" field.</summary> |
2629 public const int AFieldNumber = 1; | 2825 public const int AFieldNumber = 1; |
2630 private global::Google.Protobuf.TestProtos.TestMutualRecursionA a_; | 2826 private global::Google.Protobuf.TestProtos.TestMutualRecursionA a_; |
| 2827 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2631 public global::Google.Protobuf.TestProtos.TestMutualRecursionA A { | 2828 public global::Google.Protobuf.TestProtos.TestMutualRecursionA A { |
2632 get { return a_; } | 2829 get { return a_; } |
2633 set { | 2830 set { |
2634 a_ = value; | 2831 a_ = value; |
2635 } | 2832 } |
2636 } | 2833 } |
2637 | 2834 |
2638 /// <summary>Field number for the "optional_int32" field.</summary> | 2835 /// <summary>Field number for the "optional_int32" field.</summary> |
2639 public const int OptionalInt32FieldNumber = 2; | 2836 public const int OptionalInt32FieldNumber = 2; |
2640 private int optionalInt32_; | 2837 private int optionalInt32_; |
| 2838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2641 public int OptionalInt32 { | 2839 public int OptionalInt32 { |
2642 get { return optionalInt32_; } | 2840 get { return optionalInt32_; } |
2643 set { | 2841 set { |
2644 optionalInt32_ = value; | 2842 optionalInt32_ = value; |
2645 } | 2843 } |
2646 } | 2844 } |
2647 | 2845 |
| 2846 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2648 public override bool Equals(object other) { | 2847 public override bool Equals(object other) { |
2649 return Equals(other as TestMutualRecursionB); | 2848 return Equals(other as TestMutualRecursionB); |
2650 } | 2849 } |
2651 | 2850 |
| 2851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2652 public bool Equals(TestMutualRecursionB other) { | 2852 public bool Equals(TestMutualRecursionB other) { |
2653 if (ReferenceEquals(other, null)) { | 2853 if (ReferenceEquals(other, null)) { |
2654 return false; | 2854 return false; |
2655 } | 2855 } |
2656 if (ReferenceEquals(other, this)) { | 2856 if (ReferenceEquals(other, this)) { |
2657 return true; | 2857 return true; |
2658 } | 2858 } |
2659 if (!object.Equals(A, other.A)) return false; | 2859 if (!object.Equals(A, other.A)) return false; |
2660 if (OptionalInt32 != other.OptionalInt32) return false; | 2860 if (OptionalInt32 != other.OptionalInt32) return false; |
2661 return true; | 2861 return true; |
2662 } | 2862 } |
2663 | 2863 |
| 2864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2664 public override int GetHashCode() { | 2865 public override int GetHashCode() { |
2665 int hash = 1; | 2866 int hash = 1; |
2666 if (a_ != null) hash ^= A.GetHashCode(); | 2867 if (a_ != null) hash ^= A.GetHashCode(); |
2667 if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode(); | 2868 if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode(); |
2668 return hash; | 2869 return hash; |
2669 } | 2870 } |
2670 | 2871 |
| 2872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2671 public override string ToString() { | 2873 public override string ToString() { |
2672 return pb::JsonFormatter.ToDiagnosticString(this); | 2874 return pb::JsonFormatter.ToDiagnosticString(this); |
2673 } | 2875 } |
2674 | 2876 |
| 2877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2675 public void WriteTo(pb::CodedOutputStream output) { | 2878 public void WriteTo(pb::CodedOutputStream output) { |
2676 if (a_ != null) { | 2879 if (a_ != null) { |
2677 output.WriteRawTag(10); | 2880 output.WriteRawTag(10); |
2678 output.WriteMessage(A); | 2881 output.WriteMessage(A); |
2679 } | 2882 } |
2680 if (OptionalInt32 != 0) { | 2883 if (OptionalInt32 != 0) { |
2681 output.WriteRawTag(16); | 2884 output.WriteRawTag(16); |
2682 output.WriteInt32(OptionalInt32); | 2885 output.WriteInt32(OptionalInt32); |
2683 } | 2886 } |
2684 } | 2887 } |
2685 | 2888 |
| 2889 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2686 public int CalculateSize() { | 2890 public int CalculateSize() { |
2687 int size = 0; | 2891 int size = 0; |
2688 if (a_ != null) { | 2892 if (a_ != null) { |
2689 size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); | 2893 size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); |
2690 } | 2894 } |
2691 if (OptionalInt32 != 0) { | 2895 if (OptionalInt32 != 0) { |
2692 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); | 2896 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); |
2693 } | 2897 } |
2694 return size; | 2898 return size; |
2695 } | 2899 } |
2696 | 2900 |
| 2901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2697 public void MergeFrom(TestMutualRecursionB other) { | 2902 public void MergeFrom(TestMutualRecursionB other) { |
2698 if (other == null) { | 2903 if (other == null) { |
2699 return; | 2904 return; |
2700 } | 2905 } |
2701 if (other.a_ != null) { | 2906 if (other.a_ != null) { |
2702 if (a_ == null) { | 2907 if (a_ == null) { |
2703 a_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionA(); | 2908 a_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionA(); |
2704 } | 2909 } |
2705 A.MergeFrom(other.A); | 2910 A.MergeFrom(other.A); |
2706 } | 2911 } |
2707 if (other.OptionalInt32 != 0) { | 2912 if (other.OptionalInt32 != 0) { |
2708 OptionalInt32 = other.OptionalInt32; | 2913 OptionalInt32 = other.OptionalInt32; |
2709 } | 2914 } |
2710 } | 2915 } |
2711 | 2916 |
| 2917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2712 public void MergeFrom(pb::CodedInputStream input) { | 2918 public void MergeFrom(pb::CodedInputStream input) { |
2713 uint tag; | 2919 uint tag; |
2714 while ((tag = input.ReadTag()) != 0) { | 2920 while ((tag = input.ReadTag()) != 0) { |
2715 switch(tag) { | 2921 switch(tag) { |
2716 default: | 2922 default: |
2717 input.SkipLastField(); | 2923 input.SkipLastField(); |
2718 break; | 2924 break; |
2719 case 10: { | 2925 case 10: { |
2720 if (a_ == null) { | 2926 if (a_ == null) { |
2721 a_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionA()
; | 2927 a_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionA()
; |
2722 } | 2928 } |
2723 input.ReadMessage(a_); | 2929 input.ReadMessage(a_); |
2724 break; | 2930 break; |
2725 } | 2931 } |
2726 case 16: { | 2932 case 16: { |
2727 OptionalInt32 = input.ReadInt32(); | 2933 OptionalInt32 = input.ReadInt32(); |
2728 break; | 2934 break; |
2729 } | 2935 } |
2730 } | 2936 } |
2731 } | 2937 } |
2732 } | 2938 } |
2733 | 2939 |
2734 } | 2940 } |
2735 | 2941 |
2736 /// <summary> | 2942 /// <summary> |
2737 /// Test message with CamelCase field names. This violates Protocol Buffer | 2943 /// Test message with CamelCase field names. This violates Protocol Buffer |
2738 /// standard style. | 2944 /// standard style. |
2739 /// </summary> | 2945 /// </summary> |
2740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
2741 public sealed partial class TestCamelCaseFieldNames : pb::IMessage<TestCamelCa
seFieldNames> { | 2946 public sealed partial class TestCamelCaseFieldNames : pb::IMessage<TestCamelCa
seFieldNames> { |
2742 private static readonly pb::MessageParser<TestCamelCaseFieldNames> _parser =
new pb::MessageParser<TestCamelCaseFieldNames>(() => new TestCamelCaseFieldName
s()); | 2947 private static readonly pb::MessageParser<TestCamelCaseFieldNames> _parser =
new pb::MessageParser<TestCamelCaseFieldNames>(() => new TestCamelCaseFieldName
s()); |
| 2948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2743 public static pb::MessageParser<TestCamelCaseFieldNames> Parser { get { retu
rn _parser; } } | 2949 public static pb::MessageParser<TestCamelCaseFieldNames> Parser { get { retu
rn _parser; } } |
2744 | 2950 |
| 2951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2745 public static pbr::MessageDescriptor Descriptor { | 2952 public static pbr::MessageDescriptor Descriptor { |
2746 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[10]; } | 2953 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[10]; } |
2747 } | 2954 } |
2748 | 2955 |
| 2956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2749 pbr::MessageDescriptor pb::IMessage.Descriptor { | 2957 pbr::MessageDescriptor pb::IMessage.Descriptor { |
2750 get { return Descriptor; } | 2958 get { return Descriptor; } |
2751 } | 2959 } |
2752 | 2960 |
| 2961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2753 public TestCamelCaseFieldNames() { | 2962 public TestCamelCaseFieldNames() { |
2754 OnConstruction(); | 2963 OnConstruction(); |
2755 } | 2964 } |
2756 | 2965 |
2757 partial void OnConstruction(); | 2966 partial void OnConstruction(); |
2758 | 2967 |
| 2968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2759 public TestCamelCaseFieldNames(TestCamelCaseFieldNames other) : this() { | 2969 public TestCamelCaseFieldNames(TestCamelCaseFieldNames other) : this() { |
2760 primitiveField_ = other.primitiveField_; | 2970 primitiveField_ = other.primitiveField_; |
2761 stringField_ = other.stringField_; | 2971 stringField_ = other.stringField_; |
2762 enumField_ = other.enumField_; | 2972 enumField_ = other.enumField_; |
2763 MessageField = other.messageField_ != null ? other.MessageField.Clone() :
null; | 2973 MessageField = other.messageField_ != null ? other.MessageField.Clone() :
null; |
2764 repeatedPrimitiveField_ = other.repeatedPrimitiveField_.Clone(); | 2974 repeatedPrimitiveField_ = other.repeatedPrimitiveField_.Clone(); |
2765 repeatedStringField_ = other.repeatedStringField_.Clone(); | 2975 repeatedStringField_ = other.repeatedStringField_.Clone(); |
2766 repeatedEnumField_ = other.repeatedEnumField_.Clone(); | 2976 repeatedEnumField_ = other.repeatedEnumField_.Clone(); |
2767 repeatedMessageField_ = other.repeatedMessageField_.Clone(); | 2977 repeatedMessageField_ = other.repeatedMessageField_.Clone(); |
2768 } | 2978 } |
2769 | 2979 |
| 2980 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2770 public TestCamelCaseFieldNames Clone() { | 2981 public TestCamelCaseFieldNames Clone() { |
2771 return new TestCamelCaseFieldNames(this); | 2982 return new TestCamelCaseFieldNames(this); |
2772 } | 2983 } |
2773 | 2984 |
2774 /// <summary>Field number for the "PrimitiveField" field.</summary> | 2985 /// <summary>Field number for the "PrimitiveField" field.</summary> |
2775 public const int PrimitiveFieldFieldNumber = 1; | 2986 public const int PrimitiveFieldFieldNumber = 1; |
2776 private int primitiveField_; | 2987 private int primitiveField_; |
| 2988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2777 public int PrimitiveField { | 2989 public int PrimitiveField { |
2778 get { return primitiveField_; } | 2990 get { return primitiveField_; } |
2779 set { | 2991 set { |
2780 primitiveField_ = value; | 2992 primitiveField_ = value; |
2781 } | 2993 } |
2782 } | 2994 } |
2783 | 2995 |
2784 /// <summary>Field number for the "StringField" field.</summary> | 2996 /// <summary>Field number for the "StringField" field.</summary> |
2785 public const int StringFieldFieldNumber = 2; | 2997 public const int StringFieldFieldNumber = 2; |
2786 private string stringField_ = ""; | 2998 private string stringField_ = ""; |
| 2999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2787 public string StringField { | 3000 public string StringField { |
2788 get { return stringField_; } | 3001 get { return stringField_; } |
2789 set { | 3002 set { |
2790 stringField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 3003 stringField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
2791 } | 3004 } |
2792 } | 3005 } |
2793 | 3006 |
2794 /// <summary>Field number for the "EnumField" field.</summary> | 3007 /// <summary>Field number for the "EnumField" field.</summary> |
2795 public const int EnumFieldFieldNumber = 3; | 3008 public const int EnumFieldFieldNumber = 3; |
2796 private global::Google.Protobuf.TestProtos.ForeignEnum enumField_ = 0; | 3009 private global::Google.Protobuf.TestProtos.ForeignEnum enumField_ = 0; |
| 3010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2797 public global::Google.Protobuf.TestProtos.ForeignEnum EnumField { | 3011 public global::Google.Protobuf.TestProtos.ForeignEnum EnumField { |
2798 get { return enumField_; } | 3012 get { return enumField_; } |
2799 set { | 3013 set { |
2800 enumField_ = value; | 3014 enumField_ = value; |
2801 } | 3015 } |
2802 } | 3016 } |
2803 | 3017 |
2804 /// <summary>Field number for the "MessageField" field.</summary> | 3018 /// <summary>Field number for the "MessageField" field.</summary> |
2805 public const int MessageFieldFieldNumber = 4; | 3019 public const int MessageFieldFieldNumber = 4; |
2806 private global::Google.Protobuf.TestProtos.ForeignMessage messageField_; | 3020 private global::Google.Protobuf.TestProtos.ForeignMessage messageField_; |
| 3021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2807 public global::Google.Protobuf.TestProtos.ForeignMessage MessageField { | 3022 public global::Google.Protobuf.TestProtos.ForeignMessage MessageField { |
2808 get { return messageField_; } | 3023 get { return messageField_; } |
2809 set { | 3024 set { |
2810 messageField_ = value; | 3025 messageField_ = value; |
2811 } | 3026 } |
2812 } | 3027 } |
2813 | 3028 |
2814 /// <summary>Field number for the "RepeatedPrimitiveField" field.</summary> | 3029 /// <summary>Field number for the "RepeatedPrimitiveField" field.</summary> |
2815 public const int RepeatedPrimitiveFieldFieldNumber = 7; | 3030 public const int RepeatedPrimitiveFieldFieldNumber = 7; |
2816 private static readonly pb::FieldCodec<int> _repeated_repeatedPrimitiveField
_codec | 3031 private static readonly pb::FieldCodec<int> _repeated_repeatedPrimitiveField
_codec |
2817 = pb::FieldCodec.ForInt32(58); | 3032 = pb::FieldCodec.ForInt32(58); |
2818 private readonly pbc::RepeatedField<int> repeatedPrimitiveField_ = new pbc::
RepeatedField<int>(); | 3033 private readonly pbc::RepeatedField<int> repeatedPrimitiveField_ = new pbc::
RepeatedField<int>(); |
| 3034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2819 public pbc::RepeatedField<int> RepeatedPrimitiveField { | 3035 public pbc::RepeatedField<int> RepeatedPrimitiveField { |
2820 get { return repeatedPrimitiveField_; } | 3036 get { return repeatedPrimitiveField_; } |
2821 } | 3037 } |
2822 | 3038 |
2823 /// <summary>Field number for the "RepeatedStringField" field.</summary> | 3039 /// <summary>Field number for the "RepeatedStringField" field.</summary> |
2824 public const int RepeatedStringFieldFieldNumber = 8; | 3040 public const int RepeatedStringFieldFieldNumber = 8; |
2825 private static readonly pb::FieldCodec<string> _repeated_repeatedStringField
_codec | 3041 private static readonly pb::FieldCodec<string> _repeated_repeatedStringField
_codec |
2826 = pb::FieldCodec.ForString(66); | 3042 = pb::FieldCodec.ForString(66); |
2827 private readonly pbc::RepeatedField<string> repeatedStringField_ = new pbc::
RepeatedField<string>(); | 3043 private readonly pbc::RepeatedField<string> repeatedStringField_ = new pbc::
RepeatedField<string>(); |
| 3044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2828 public pbc::RepeatedField<string> RepeatedStringField { | 3045 public pbc::RepeatedField<string> RepeatedStringField { |
2829 get { return repeatedStringField_; } | 3046 get { return repeatedStringField_; } |
2830 } | 3047 } |
2831 | 3048 |
2832 /// <summary>Field number for the "RepeatedEnumField" field.</summary> | 3049 /// <summary>Field number for the "RepeatedEnumField" field.</summary> |
2833 public const int RepeatedEnumFieldFieldNumber = 9; | 3050 public const int RepeatedEnumFieldFieldNumber = 9; |
2834 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Fo
reignEnum> _repeated_repeatedEnumField_codec | 3051 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Fo
reignEnum> _repeated_repeatedEnumField_codec |
2835 = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Protobuf
.TestProtos.ForeignEnum) x); | 3052 = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Protobuf
.TestProtos.ForeignEnum) x); |
2836 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Forei
gnEnum> repeatedEnumField_ = new pbc::RepeatedField<global::Google.Protobuf.Test
Protos.ForeignEnum>(); | 3053 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Forei
gnEnum> repeatedEnumField_ = new pbc::RepeatedField<global::Google.Protobuf.Test
Protos.ForeignEnum>(); |
| 3054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2837 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> Re
peatedEnumField { | 3055 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> Re
peatedEnumField { |
2838 get { return repeatedEnumField_; } | 3056 get { return repeatedEnumField_; } |
2839 } | 3057 } |
2840 | 3058 |
2841 /// <summary>Field number for the "RepeatedMessageField" field.</summary> | 3059 /// <summary>Field number for the "RepeatedMessageField" field.</summary> |
2842 public const int RepeatedMessageFieldFieldNumber = 10; | 3060 public const int RepeatedMessageFieldFieldNumber = 10; |
2843 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Fo
reignMessage> _repeated_repeatedMessageField_codec | 3061 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Fo
reignMessage> _repeated_repeatedMessageField_codec |
2844 = pb::FieldCodec.ForMessage(82, global::Google.Protobuf.TestProtos.Forei
gnMessage.Parser); | 3062 = pb::FieldCodec.ForMessage(82, global::Google.Protobuf.TestProtos.Forei
gnMessage.Parser); |
2845 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Forei
gnMessage> repeatedMessageField_ = new pbc::RepeatedField<global::Google.Protobu
f.TestProtos.ForeignMessage>(); | 3063 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Forei
gnMessage> repeatedMessageField_ = new pbc::RepeatedField<global::Google.Protobu
f.TestProtos.ForeignMessage>(); |
| 3064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2846 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage>
RepeatedMessageField { | 3065 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage>
RepeatedMessageField { |
2847 get { return repeatedMessageField_; } | 3066 get { return repeatedMessageField_; } |
2848 } | 3067 } |
2849 | 3068 |
| 3069 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2850 public override bool Equals(object other) { | 3070 public override bool Equals(object other) { |
2851 return Equals(other as TestCamelCaseFieldNames); | 3071 return Equals(other as TestCamelCaseFieldNames); |
2852 } | 3072 } |
2853 | 3073 |
| 3074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2854 public bool Equals(TestCamelCaseFieldNames other) { | 3075 public bool Equals(TestCamelCaseFieldNames other) { |
2855 if (ReferenceEquals(other, null)) { | 3076 if (ReferenceEquals(other, null)) { |
2856 return false; | 3077 return false; |
2857 } | 3078 } |
2858 if (ReferenceEquals(other, this)) { | 3079 if (ReferenceEquals(other, this)) { |
2859 return true; | 3080 return true; |
2860 } | 3081 } |
2861 if (PrimitiveField != other.PrimitiveField) return false; | 3082 if (PrimitiveField != other.PrimitiveField) return false; |
2862 if (StringField != other.StringField) return false; | 3083 if (StringField != other.StringField) return false; |
2863 if (EnumField != other.EnumField) return false; | 3084 if (EnumField != other.EnumField) return false; |
2864 if (!object.Equals(MessageField, other.MessageField)) return false; | 3085 if (!object.Equals(MessageField, other.MessageField)) return false; |
2865 if(!repeatedPrimitiveField_.Equals(other.repeatedPrimitiveField_)) return
false; | 3086 if(!repeatedPrimitiveField_.Equals(other.repeatedPrimitiveField_)) return
false; |
2866 if(!repeatedStringField_.Equals(other.repeatedStringField_)) return false; | 3087 if(!repeatedStringField_.Equals(other.repeatedStringField_)) return false; |
2867 if(!repeatedEnumField_.Equals(other.repeatedEnumField_)) return false; | 3088 if(!repeatedEnumField_.Equals(other.repeatedEnumField_)) return false; |
2868 if(!repeatedMessageField_.Equals(other.repeatedMessageField_)) return fals
e; | 3089 if(!repeatedMessageField_.Equals(other.repeatedMessageField_)) return fals
e; |
2869 return true; | 3090 return true; |
2870 } | 3091 } |
2871 | 3092 |
| 3093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2872 public override int GetHashCode() { | 3094 public override int GetHashCode() { |
2873 int hash = 1; | 3095 int hash = 1; |
2874 if (PrimitiveField != 0) hash ^= PrimitiveField.GetHashCode(); | 3096 if (PrimitiveField != 0) hash ^= PrimitiveField.GetHashCode(); |
2875 if (StringField.Length != 0) hash ^= StringField.GetHashCode(); | 3097 if (StringField.Length != 0) hash ^= StringField.GetHashCode(); |
2876 if (EnumField != 0) hash ^= EnumField.GetHashCode(); | 3098 if (EnumField != 0) hash ^= EnumField.GetHashCode(); |
2877 if (messageField_ != null) hash ^= MessageField.GetHashCode(); | 3099 if (messageField_ != null) hash ^= MessageField.GetHashCode(); |
2878 hash ^= repeatedPrimitiveField_.GetHashCode(); | 3100 hash ^= repeatedPrimitiveField_.GetHashCode(); |
2879 hash ^= repeatedStringField_.GetHashCode(); | 3101 hash ^= repeatedStringField_.GetHashCode(); |
2880 hash ^= repeatedEnumField_.GetHashCode(); | 3102 hash ^= repeatedEnumField_.GetHashCode(); |
2881 hash ^= repeatedMessageField_.GetHashCode(); | 3103 hash ^= repeatedMessageField_.GetHashCode(); |
2882 return hash; | 3104 return hash; |
2883 } | 3105 } |
2884 | 3106 |
| 3107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2885 public override string ToString() { | 3108 public override string ToString() { |
2886 return pb::JsonFormatter.ToDiagnosticString(this); | 3109 return pb::JsonFormatter.ToDiagnosticString(this); |
2887 } | 3110 } |
2888 | 3111 |
| 3112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2889 public void WriteTo(pb::CodedOutputStream output) { | 3113 public void WriteTo(pb::CodedOutputStream output) { |
2890 if (PrimitiveField != 0) { | 3114 if (PrimitiveField != 0) { |
2891 output.WriteRawTag(8); | 3115 output.WriteRawTag(8); |
2892 output.WriteInt32(PrimitiveField); | 3116 output.WriteInt32(PrimitiveField); |
2893 } | 3117 } |
2894 if (StringField.Length != 0) { | 3118 if (StringField.Length != 0) { |
2895 output.WriteRawTag(18); | 3119 output.WriteRawTag(18); |
2896 output.WriteString(StringField); | 3120 output.WriteString(StringField); |
2897 } | 3121 } |
2898 if (EnumField != 0) { | 3122 if (EnumField != 0) { |
2899 output.WriteRawTag(24); | 3123 output.WriteRawTag(24); |
2900 output.WriteEnum((int) EnumField); | 3124 output.WriteEnum((int) EnumField); |
2901 } | 3125 } |
2902 if (messageField_ != null) { | 3126 if (messageField_ != null) { |
2903 output.WriteRawTag(34); | 3127 output.WriteRawTag(34); |
2904 output.WriteMessage(MessageField); | 3128 output.WriteMessage(MessageField); |
2905 } | 3129 } |
2906 repeatedPrimitiveField_.WriteTo(output, _repeated_repeatedPrimitiveField_c
odec); | 3130 repeatedPrimitiveField_.WriteTo(output, _repeated_repeatedPrimitiveField_c
odec); |
2907 repeatedStringField_.WriteTo(output, _repeated_repeatedStringField_codec); | 3131 repeatedStringField_.WriteTo(output, _repeated_repeatedStringField_codec); |
2908 repeatedEnumField_.WriteTo(output, _repeated_repeatedEnumField_codec); | 3132 repeatedEnumField_.WriteTo(output, _repeated_repeatedEnumField_codec); |
2909 repeatedMessageField_.WriteTo(output, _repeated_repeatedMessageField_codec
); | 3133 repeatedMessageField_.WriteTo(output, _repeated_repeatedMessageField_codec
); |
2910 } | 3134 } |
2911 | 3135 |
| 3136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2912 public int CalculateSize() { | 3137 public int CalculateSize() { |
2913 int size = 0; | 3138 int size = 0; |
2914 if (PrimitiveField != 0) { | 3139 if (PrimitiveField != 0) { |
2915 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveField); | 3140 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveField); |
2916 } | 3141 } |
2917 if (StringField.Length != 0) { | 3142 if (StringField.Length != 0) { |
2918 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField); | 3143 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField); |
2919 } | 3144 } |
2920 if (EnumField != 0) { | 3145 if (EnumField != 0) { |
2921 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumField); | 3146 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumField); |
2922 } | 3147 } |
2923 if (messageField_ != null) { | 3148 if (messageField_ != null) { |
2924 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageField); | 3149 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageField); |
2925 } | 3150 } |
2926 size += repeatedPrimitiveField_.CalculateSize(_repeated_repeatedPrimitiveF
ield_codec); | 3151 size += repeatedPrimitiveField_.CalculateSize(_repeated_repeatedPrimitiveF
ield_codec); |
2927 size += repeatedStringField_.CalculateSize(_repeated_repeatedStringField_c
odec); | 3152 size += repeatedStringField_.CalculateSize(_repeated_repeatedStringField_c
odec); |
2928 size += repeatedEnumField_.CalculateSize(_repeated_repeatedEnumField_codec
); | 3153 size += repeatedEnumField_.CalculateSize(_repeated_repeatedEnumField_codec
); |
2929 size += repeatedMessageField_.CalculateSize(_repeated_repeatedMessageField
_codec); | 3154 size += repeatedMessageField_.CalculateSize(_repeated_repeatedMessageField
_codec); |
2930 return size; | 3155 return size; |
2931 } | 3156 } |
2932 | 3157 |
| 3158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2933 public void MergeFrom(TestCamelCaseFieldNames other) { | 3159 public void MergeFrom(TestCamelCaseFieldNames other) { |
2934 if (other == null) { | 3160 if (other == null) { |
2935 return; | 3161 return; |
2936 } | 3162 } |
2937 if (other.PrimitiveField != 0) { | 3163 if (other.PrimitiveField != 0) { |
2938 PrimitiveField = other.PrimitiveField; | 3164 PrimitiveField = other.PrimitiveField; |
2939 } | 3165 } |
2940 if (other.StringField.Length != 0) { | 3166 if (other.StringField.Length != 0) { |
2941 StringField = other.StringField; | 3167 StringField = other.StringField; |
2942 } | 3168 } |
2943 if (other.EnumField != 0) { | 3169 if (other.EnumField != 0) { |
2944 EnumField = other.EnumField; | 3170 EnumField = other.EnumField; |
2945 } | 3171 } |
2946 if (other.messageField_ != null) { | 3172 if (other.messageField_ != null) { |
2947 if (messageField_ == null) { | 3173 if (messageField_ == null) { |
2948 messageField_ = new global::Google.Protobuf.TestProtos.ForeignMessage(
); | 3174 messageField_ = new global::Google.Protobuf.TestProtos.ForeignMessage(
); |
2949 } | 3175 } |
2950 MessageField.MergeFrom(other.MessageField); | 3176 MessageField.MergeFrom(other.MessageField); |
2951 } | 3177 } |
2952 repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_); | 3178 repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_); |
2953 repeatedStringField_.Add(other.repeatedStringField_); | 3179 repeatedStringField_.Add(other.repeatedStringField_); |
2954 repeatedEnumField_.Add(other.repeatedEnumField_); | 3180 repeatedEnumField_.Add(other.repeatedEnumField_); |
2955 repeatedMessageField_.Add(other.repeatedMessageField_); | 3181 repeatedMessageField_.Add(other.repeatedMessageField_); |
2956 } | 3182 } |
2957 | 3183 |
| 3184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
2958 public void MergeFrom(pb::CodedInputStream input) { | 3185 public void MergeFrom(pb::CodedInputStream input) { |
2959 uint tag; | 3186 uint tag; |
2960 while ((tag = input.ReadTag()) != 0) { | 3187 while ((tag = input.ReadTag()) != 0) { |
2961 switch(tag) { | 3188 switch(tag) { |
2962 default: | 3189 default: |
2963 input.SkipLastField(); | 3190 input.SkipLastField(); |
2964 break; | 3191 break; |
2965 case 8: { | 3192 case 8: { |
2966 PrimitiveField = input.ReadInt32(); | 3193 PrimitiveField = input.ReadInt32(); |
2967 break; | 3194 break; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2999 repeatedMessageField_.AddEntriesFrom(input, _repeated_repeatedMessag
eField_codec); | 3226 repeatedMessageField_.AddEntriesFrom(input, _repeated_repeatedMessag
eField_codec); |
3000 break; | 3227 break; |
3001 } | 3228 } |
3002 } | 3229 } |
3003 } | 3230 } |
3004 } | 3231 } |
3005 | 3232 |
3006 } | 3233 } |
3007 | 3234 |
3008 /// <summary> | 3235 /// <summary> |
3009 /// We list fields out of order, to ensure that we're using field number and
not | 3236 /// We list fields out of order, to ensure that we're using field number and n
ot |
3010 /// field index to determine serialization order. | 3237 /// field index to determine serialization order. |
3011 /// </summary> | 3238 /// </summary> |
3012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
3013 public sealed partial class TestFieldOrderings : pb::IMessage<TestFieldOrderin
gs> { | 3239 public sealed partial class TestFieldOrderings : pb::IMessage<TestFieldOrderin
gs> { |
3014 private static readonly pb::MessageParser<TestFieldOrderings> _parser = new
pb::MessageParser<TestFieldOrderings>(() => new TestFieldOrderings()); | 3240 private static readonly pb::MessageParser<TestFieldOrderings> _parser = new
pb::MessageParser<TestFieldOrderings>(() => new TestFieldOrderings()); |
| 3241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3015 public static pb::MessageParser<TestFieldOrderings> Parser { get { return _p
arser; } } | 3242 public static pb::MessageParser<TestFieldOrderings> Parser { get { return _p
arser; } } |
3016 | 3243 |
| 3244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3017 public static pbr::MessageDescriptor Descriptor { | 3245 public static pbr::MessageDescriptor Descriptor { |
3018 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[11]; } | 3246 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[11]; } |
3019 } | 3247 } |
3020 | 3248 |
| 3249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3021 pbr::MessageDescriptor pb::IMessage.Descriptor { | 3250 pbr::MessageDescriptor pb::IMessage.Descriptor { |
3022 get { return Descriptor; } | 3251 get { return Descriptor; } |
3023 } | 3252 } |
3024 | 3253 |
| 3254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3025 public TestFieldOrderings() { | 3255 public TestFieldOrderings() { |
3026 OnConstruction(); | 3256 OnConstruction(); |
3027 } | 3257 } |
3028 | 3258 |
3029 partial void OnConstruction(); | 3259 partial void OnConstruction(); |
3030 | 3260 |
| 3261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3031 public TestFieldOrderings(TestFieldOrderings other) : this() { | 3262 public TestFieldOrderings(TestFieldOrderings other) : this() { |
3032 myString_ = other.myString_; | 3263 myString_ = other.myString_; |
3033 myInt_ = other.myInt_; | 3264 myInt_ = other.myInt_; |
3034 myFloat_ = other.myFloat_; | 3265 myFloat_ = other.myFloat_; |
3035 SingleNestedMessage = other.singleNestedMessage_ != null ? other.SingleNes
tedMessage.Clone() : null; | 3266 SingleNestedMessage = other.singleNestedMessage_ != null ? other.SingleNes
tedMessage.Clone() : null; |
3036 } | 3267 } |
3037 | 3268 |
| 3269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3038 public TestFieldOrderings Clone() { | 3270 public TestFieldOrderings Clone() { |
3039 return new TestFieldOrderings(this); | 3271 return new TestFieldOrderings(this); |
3040 } | 3272 } |
3041 | 3273 |
3042 /// <summary>Field number for the "my_string" field.</summary> | 3274 /// <summary>Field number for the "my_string" field.</summary> |
3043 public const int MyStringFieldNumber = 11; | 3275 public const int MyStringFieldNumber = 11; |
3044 private string myString_ = ""; | 3276 private string myString_ = ""; |
| 3277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3045 public string MyString { | 3278 public string MyString { |
3046 get { return myString_; } | 3279 get { return myString_; } |
3047 set { | 3280 set { |
3048 myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 3281 myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
3049 } | 3282 } |
3050 } | 3283 } |
3051 | 3284 |
3052 /// <summary>Field number for the "my_int" field.</summary> | 3285 /// <summary>Field number for the "my_int" field.</summary> |
3053 public const int MyIntFieldNumber = 1; | 3286 public const int MyIntFieldNumber = 1; |
3054 private long myInt_; | 3287 private long myInt_; |
| 3288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3055 public long MyInt { | 3289 public long MyInt { |
3056 get { return myInt_; } | 3290 get { return myInt_; } |
3057 set { | 3291 set { |
3058 myInt_ = value; | 3292 myInt_ = value; |
3059 } | 3293 } |
3060 } | 3294 } |
3061 | 3295 |
3062 /// <summary>Field number for the "my_float" field.</summary> | 3296 /// <summary>Field number for the "my_float" field.</summary> |
3063 public const int MyFloatFieldNumber = 101; | 3297 public const int MyFloatFieldNumber = 101; |
3064 private float myFloat_; | 3298 private float myFloat_; |
| 3299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3065 public float MyFloat { | 3300 public float MyFloat { |
3066 get { return myFloat_; } | 3301 get { return myFloat_; } |
3067 set { | 3302 set { |
3068 myFloat_ = value; | 3303 myFloat_ = value; |
3069 } | 3304 } |
3070 } | 3305 } |
3071 | 3306 |
3072 /// <summary>Field number for the "single_nested_message" field.</summary> | 3307 /// <summary>Field number for the "single_nested_message" field.</summary> |
3073 public const int SingleNestedMessageFieldNumber = 200; | 3308 public const int SingleNestedMessageFieldNumber = 200; |
3074 private global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMe
ssage singleNestedMessage_; | 3309 private global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMe
ssage singleNestedMessage_; |
| 3310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3075 public global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMes
sage SingleNestedMessage { | 3311 public global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMes
sage SingleNestedMessage { |
3076 get { return singleNestedMessage_; } | 3312 get { return singleNestedMessage_; } |
3077 set { | 3313 set { |
3078 singleNestedMessage_ = value; | 3314 singleNestedMessage_ = value; |
3079 } | 3315 } |
3080 } | 3316 } |
3081 | 3317 |
| 3318 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3082 public override bool Equals(object other) { | 3319 public override bool Equals(object other) { |
3083 return Equals(other as TestFieldOrderings); | 3320 return Equals(other as TestFieldOrderings); |
3084 } | 3321 } |
3085 | 3322 |
| 3323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3086 public bool Equals(TestFieldOrderings other) { | 3324 public bool Equals(TestFieldOrderings other) { |
3087 if (ReferenceEquals(other, null)) { | 3325 if (ReferenceEquals(other, null)) { |
3088 return false; | 3326 return false; |
3089 } | 3327 } |
3090 if (ReferenceEquals(other, this)) { | 3328 if (ReferenceEquals(other, this)) { |
3091 return true; | 3329 return true; |
3092 } | 3330 } |
3093 if (MyString != other.MyString) return false; | 3331 if (MyString != other.MyString) return false; |
3094 if (MyInt != other.MyInt) return false; | 3332 if (MyInt != other.MyInt) return false; |
3095 if (MyFloat != other.MyFloat) return false; | 3333 if (MyFloat != other.MyFloat) return false; |
3096 if (!object.Equals(SingleNestedMessage, other.SingleNestedMessage)) return
false; | 3334 if (!object.Equals(SingleNestedMessage, other.SingleNestedMessage)) return
false; |
3097 return true; | 3335 return true; |
3098 } | 3336 } |
3099 | 3337 |
| 3338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3100 public override int GetHashCode() { | 3339 public override int GetHashCode() { |
3101 int hash = 1; | 3340 int hash = 1; |
3102 if (MyString.Length != 0) hash ^= MyString.GetHashCode(); | 3341 if (MyString.Length != 0) hash ^= MyString.GetHashCode(); |
3103 if (MyInt != 0L) hash ^= MyInt.GetHashCode(); | 3342 if (MyInt != 0L) hash ^= MyInt.GetHashCode(); |
3104 if (MyFloat != 0F) hash ^= MyFloat.GetHashCode(); | 3343 if (MyFloat != 0F) hash ^= MyFloat.GetHashCode(); |
3105 if (singleNestedMessage_ != null) hash ^= SingleNestedMessage.GetHashCode(
); | 3344 if (singleNestedMessage_ != null) hash ^= SingleNestedMessage.GetHashCode(
); |
3106 return hash; | 3345 return hash; |
3107 } | 3346 } |
3108 | 3347 |
| 3348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3109 public override string ToString() { | 3349 public override string ToString() { |
3110 return pb::JsonFormatter.ToDiagnosticString(this); | 3350 return pb::JsonFormatter.ToDiagnosticString(this); |
3111 } | 3351 } |
3112 | 3352 |
| 3353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3113 public void WriteTo(pb::CodedOutputStream output) { | 3354 public void WriteTo(pb::CodedOutputStream output) { |
3114 if (MyInt != 0L) { | 3355 if (MyInt != 0L) { |
3115 output.WriteRawTag(8); | 3356 output.WriteRawTag(8); |
3116 output.WriteInt64(MyInt); | 3357 output.WriteInt64(MyInt); |
3117 } | 3358 } |
3118 if (MyString.Length != 0) { | 3359 if (MyString.Length != 0) { |
3119 output.WriteRawTag(90); | 3360 output.WriteRawTag(90); |
3120 output.WriteString(MyString); | 3361 output.WriteString(MyString); |
3121 } | 3362 } |
3122 if (MyFloat != 0F) { | 3363 if (MyFloat != 0F) { |
3123 output.WriteRawTag(173, 6); | 3364 output.WriteRawTag(173, 6); |
3124 output.WriteFloat(MyFloat); | 3365 output.WriteFloat(MyFloat); |
3125 } | 3366 } |
3126 if (singleNestedMessage_ != null) { | 3367 if (singleNestedMessage_ != null) { |
3127 output.WriteRawTag(194, 12); | 3368 output.WriteRawTag(194, 12); |
3128 output.WriteMessage(SingleNestedMessage); | 3369 output.WriteMessage(SingleNestedMessage); |
3129 } | 3370 } |
3130 } | 3371 } |
3131 | 3372 |
| 3373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3132 public int CalculateSize() { | 3374 public int CalculateSize() { |
3133 int size = 0; | 3375 int size = 0; |
3134 if (MyString.Length != 0) { | 3376 if (MyString.Length != 0) { |
3135 size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString); | 3377 size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString); |
3136 } | 3378 } |
3137 if (MyInt != 0L) { | 3379 if (MyInt != 0L) { |
3138 size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt); | 3380 size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt); |
3139 } | 3381 } |
3140 if (MyFloat != 0F) { | 3382 if (MyFloat != 0F) { |
3141 size += 2 + 4; | 3383 size += 2 + 4; |
3142 } | 3384 } |
3143 if (singleNestedMessage_ != null) { | 3385 if (singleNestedMessage_ != null) { |
3144 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleNestedMessage
); | 3386 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleNestedMessage
); |
3145 } | 3387 } |
3146 return size; | 3388 return size; |
3147 } | 3389 } |
3148 | 3390 |
| 3391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3149 public void MergeFrom(TestFieldOrderings other) { | 3392 public void MergeFrom(TestFieldOrderings other) { |
3150 if (other == null) { | 3393 if (other == null) { |
3151 return; | 3394 return; |
3152 } | 3395 } |
3153 if (other.MyString.Length != 0) { | 3396 if (other.MyString.Length != 0) { |
3154 MyString = other.MyString; | 3397 MyString = other.MyString; |
3155 } | 3398 } |
3156 if (other.MyInt != 0L) { | 3399 if (other.MyInt != 0L) { |
3157 MyInt = other.MyInt; | 3400 MyInt = other.MyInt; |
3158 } | 3401 } |
3159 if (other.MyFloat != 0F) { | 3402 if (other.MyFloat != 0F) { |
3160 MyFloat = other.MyFloat; | 3403 MyFloat = other.MyFloat; |
3161 } | 3404 } |
3162 if (other.singleNestedMessage_ != null) { | 3405 if (other.singleNestedMessage_ != null) { |
3163 if (singleNestedMessage_ == null) { | 3406 if (singleNestedMessage_ == null) { |
3164 singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestFiel
dOrderings.Types.NestedMessage(); | 3407 singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestFiel
dOrderings.Types.NestedMessage(); |
3165 } | 3408 } |
3166 SingleNestedMessage.MergeFrom(other.SingleNestedMessage); | 3409 SingleNestedMessage.MergeFrom(other.SingleNestedMessage); |
3167 } | 3410 } |
3168 } | 3411 } |
3169 | 3412 |
| 3413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3170 public void MergeFrom(pb::CodedInputStream input) { | 3414 public void MergeFrom(pb::CodedInputStream input) { |
3171 uint tag; | 3415 uint tag; |
3172 while ((tag = input.ReadTag()) != 0) { | 3416 while ((tag = input.ReadTag()) != 0) { |
3173 switch(tag) { | 3417 switch(tag) { |
3174 default: | 3418 default: |
3175 input.SkipLastField(); | 3419 input.SkipLastField(); |
3176 break; | 3420 break; |
3177 case 8: { | 3421 case 8: { |
3178 MyInt = input.ReadInt64(); | 3422 MyInt = input.ReadInt64(); |
3179 break; | 3423 break; |
(...skipping 12 matching lines...) Expand all Loading... |
3192 } | 3436 } |
3193 input.ReadMessage(singleNestedMessage_); | 3437 input.ReadMessage(singleNestedMessage_); |
3194 break; | 3438 break; |
3195 } | 3439 } |
3196 } | 3440 } |
3197 } | 3441 } |
3198 } | 3442 } |
3199 | 3443 |
3200 #region Nested types | 3444 #region Nested types |
3201 /// <summary>Container for nested types declared in the TestFieldOrderings m
essage type.</summary> | 3445 /// <summary>Container for nested types declared in the TestFieldOrderings m
essage type.</summary> |
3202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | 3446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3203 public static partial class Types { | 3447 public static partial class Types { |
3204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
3205 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> { | 3448 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> { |
3206 private static readonly pb::MessageParser<NestedMessage> _parser = new p
b::MessageParser<NestedMessage>(() => new NestedMessage()); | 3449 private static readonly pb::MessageParser<NestedMessage> _parser = new p
b::MessageParser<NestedMessage>(() => new NestedMessage()); |
| 3450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3207 public static pb::MessageParser<NestedMessage> Parser { get { return _pa
rser; } } | 3451 public static pb::MessageParser<NestedMessage> Parser { get { return _pa
rser; } } |
3208 | 3452 |
| 3453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3209 public static pbr::MessageDescriptor Descriptor { | 3454 public static pbr::MessageDescriptor Descriptor { |
3210 get { return global::Google.Protobuf.TestProtos.TestFieldOrderings.Des
criptor.NestedTypes[0]; } | 3455 get { return global::Google.Protobuf.TestProtos.TestFieldOrderings.Des
criptor.NestedTypes[0]; } |
3211 } | 3456 } |
3212 | 3457 |
| 3458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3213 pbr::MessageDescriptor pb::IMessage.Descriptor { | 3459 pbr::MessageDescriptor pb::IMessage.Descriptor { |
3214 get { return Descriptor; } | 3460 get { return Descriptor; } |
3215 } | 3461 } |
3216 | 3462 |
| 3463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3217 public NestedMessage() { | 3464 public NestedMessage() { |
3218 OnConstruction(); | 3465 OnConstruction(); |
3219 } | 3466 } |
3220 | 3467 |
3221 partial void OnConstruction(); | 3468 partial void OnConstruction(); |
3222 | 3469 |
| 3470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3223 public NestedMessage(NestedMessage other) : this() { | 3471 public NestedMessage(NestedMessage other) : this() { |
3224 oo_ = other.oo_; | 3472 oo_ = other.oo_; |
3225 bb_ = other.bb_; | 3473 bb_ = other.bb_; |
3226 } | 3474 } |
3227 | 3475 |
| 3476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3228 public NestedMessage Clone() { | 3477 public NestedMessage Clone() { |
3229 return new NestedMessage(this); | 3478 return new NestedMessage(this); |
3230 } | 3479 } |
3231 | 3480 |
3232 /// <summary>Field number for the "oo" field.</summary> | 3481 /// <summary>Field number for the "oo" field.</summary> |
3233 public const int OoFieldNumber = 2; | 3482 public const int OoFieldNumber = 2; |
3234 private long oo_; | 3483 private long oo_; |
| 3484 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3235 public long Oo { | 3485 public long Oo { |
3236 get { return oo_; } | 3486 get { return oo_; } |
3237 set { | 3487 set { |
3238 oo_ = value; | 3488 oo_ = value; |
3239 } | 3489 } |
3240 } | 3490 } |
3241 | 3491 |
3242 /// <summary>Field number for the "bb" field.</summary> | 3492 /// <summary>Field number for the "bb" field.</summary> |
3243 public const int BbFieldNumber = 1; | 3493 public const int BbFieldNumber = 1; |
3244 private int bb_; | 3494 private int bb_; |
3245 /// <summary> | 3495 /// <summary> |
3246 /// The field name "b" fails to compile in proto1 because it conflicts
with | 3496 /// The field name "b" fails to compile in proto1 because it conflicts w
ith |
3247 /// a local variable named "b" in one of the generated methods. Doh. | 3497 /// a local variable named "b" in one of the generated methods. Doh. |
3248 /// This file needs to compile in proto1 to test backwards-compatibilit
y. | 3498 /// This file needs to compile in proto1 to test backwards-compatibility
. |
3249 /// </summary> | 3499 /// </summary> |
| 3500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3250 public int Bb { | 3501 public int Bb { |
3251 get { return bb_; } | 3502 get { return bb_; } |
3252 set { | 3503 set { |
3253 bb_ = value; | 3504 bb_ = value; |
3254 } | 3505 } |
3255 } | 3506 } |
3256 | 3507 |
| 3508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3257 public override bool Equals(object other) { | 3509 public override bool Equals(object other) { |
3258 return Equals(other as NestedMessage); | 3510 return Equals(other as NestedMessage); |
3259 } | 3511 } |
3260 | 3512 |
| 3513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3261 public bool Equals(NestedMessage other) { | 3514 public bool Equals(NestedMessage other) { |
3262 if (ReferenceEquals(other, null)) { | 3515 if (ReferenceEquals(other, null)) { |
3263 return false; | 3516 return false; |
3264 } | 3517 } |
3265 if (ReferenceEquals(other, this)) { | 3518 if (ReferenceEquals(other, this)) { |
3266 return true; | 3519 return true; |
3267 } | 3520 } |
3268 if (Oo != other.Oo) return false; | 3521 if (Oo != other.Oo) return false; |
3269 if (Bb != other.Bb) return false; | 3522 if (Bb != other.Bb) return false; |
3270 return true; | 3523 return true; |
3271 } | 3524 } |
3272 | 3525 |
| 3526 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3273 public override int GetHashCode() { | 3527 public override int GetHashCode() { |
3274 int hash = 1; | 3528 int hash = 1; |
3275 if (Oo != 0L) hash ^= Oo.GetHashCode(); | 3529 if (Oo != 0L) hash ^= Oo.GetHashCode(); |
3276 if (Bb != 0) hash ^= Bb.GetHashCode(); | 3530 if (Bb != 0) hash ^= Bb.GetHashCode(); |
3277 return hash; | 3531 return hash; |
3278 } | 3532 } |
3279 | 3533 |
| 3534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3280 public override string ToString() { | 3535 public override string ToString() { |
3281 return pb::JsonFormatter.ToDiagnosticString(this); | 3536 return pb::JsonFormatter.ToDiagnosticString(this); |
3282 } | 3537 } |
3283 | 3538 |
| 3539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3284 public void WriteTo(pb::CodedOutputStream output) { | 3540 public void WriteTo(pb::CodedOutputStream output) { |
3285 if (Bb != 0) { | 3541 if (Bb != 0) { |
3286 output.WriteRawTag(8); | 3542 output.WriteRawTag(8); |
3287 output.WriteInt32(Bb); | 3543 output.WriteInt32(Bb); |
3288 } | 3544 } |
3289 if (Oo != 0L) { | 3545 if (Oo != 0L) { |
3290 output.WriteRawTag(16); | 3546 output.WriteRawTag(16); |
3291 output.WriteInt64(Oo); | 3547 output.WriteInt64(Oo); |
3292 } | 3548 } |
3293 } | 3549 } |
3294 | 3550 |
| 3551 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3295 public int CalculateSize() { | 3552 public int CalculateSize() { |
3296 int size = 0; | 3553 int size = 0; |
3297 if (Oo != 0L) { | 3554 if (Oo != 0L) { |
3298 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oo); | 3555 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oo); |
3299 } | 3556 } |
3300 if (Bb != 0) { | 3557 if (Bb != 0) { |
3301 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb); | 3558 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb); |
3302 } | 3559 } |
3303 return size; | 3560 return size; |
3304 } | 3561 } |
3305 | 3562 |
| 3563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3306 public void MergeFrom(NestedMessage other) { | 3564 public void MergeFrom(NestedMessage other) { |
3307 if (other == null) { | 3565 if (other == null) { |
3308 return; | 3566 return; |
3309 } | 3567 } |
3310 if (other.Oo != 0L) { | 3568 if (other.Oo != 0L) { |
3311 Oo = other.Oo; | 3569 Oo = other.Oo; |
3312 } | 3570 } |
3313 if (other.Bb != 0) { | 3571 if (other.Bb != 0) { |
3314 Bb = other.Bb; | 3572 Bb = other.Bb; |
3315 } | 3573 } |
3316 } | 3574 } |
3317 | 3575 |
| 3576 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3318 public void MergeFrom(pb::CodedInputStream input) { | 3577 public void MergeFrom(pb::CodedInputStream input) { |
3319 uint tag; | 3578 uint tag; |
3320 while ((tag = input.ReadTag()) != 0) { | 3579 while ((tag = input.ReadTag()) != 0) { |
3321 switch(tag) { | 3580 switch(tag) { |
3322 default: | 3581 default: |
3323 input.SkipLastField(); | 3582 input.SkipLastField(); |
3324 break; | 3583 break; |
3325 case 8: { | 3584 case 8: { |
3326 Bb = input.ReadInt32(); | 3585 Bb = input.ReadInt32(); |
3327 break; | 3586 break; |
3328 } | 3587 } |
3329 case 16: { | 3588 case 16: { |
3330 Oo = input.ReadInt64(); | 3589 Oo = input.ReadInt64(); |
3331 break; | 3590 break; |
3332 } | 3591 } |
3333 } | 3592 } |
3334 } | 3593 } |
3335 } | 3594 } |
3336 | 3595 |
3337 } | 3596 } |
3338 | 3597 |
3339 } | 3598 } |
3340 #endregion | 3599 #endregion |
3341 | 3600 |
3342 } | 3601 } |
3343 | 3602 |
3344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
3345 public sealed partial class SparseEnumMessage : pb::IMessage<SparseEnumMessage
> { | 3603 public sealed partial class SparseEnumMessage : pb::IMessage<SparseEnumMessage
> { |
3346 private static readonly pb::MessageParser<SparseEnumMessage> _parser = new p
b::MessageParser<SparseEnumMessage>(() => new SparseEnumMessage()); | 3604 private static readonly pb::MessageParser<SparseEnumMessage> _parser = new p
b::MessageParser<SparseEnumMessage>(() => new SparseEnumMessage()); |
| 3605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3347 public static pb::MessageParser<SparseEnumMessage> Parser { get { return _pa
rser; } } | 3606 public static pb::MessageParser<SparseEnumMessage> Parser { get { return _pa
rser; } } |
3348 | 3607 |
| 3608 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3349 public static pbr::MessageDescriptor Descriptor { | 3609 public static pbr::MessageDescriptor Descriptor { |
3350 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[12]; } | 3610 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[12]; } |
3351 } | 3611 } |
3352 | 3612 |
| 3613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3353 pbr::MessageDescriptor pb::IMessage.Descriptor { | 3614 pbr::MessageDescriptor pb::IMessage.Descriptor { |
3354 get { return Descriptor; } | 3615 get { return Descriptor; } |
3355 } | 3616 } |
3356 | 3617 |
| 3618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3357 public SparseEnumMessage() { | 3619 public SparseEnumMessage() { |
3358 OnConstruction(); | 3620 OnConstruction(); |
3359 } | 3621 } |
3360 | 3622 |
3361 partial void OnConstruction(); | 3623 partial void OnConstruction(); |
3362 | 3624 |
| 3625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3363 public SparseEnumMessage(SparseEnumMessage other) : this() { | 3626 public SparseEnumMessage(SparseEnumMessage other) : this() { |
3364 sparseEnum_ = other.sparseEnum_; | 3627 sparseEnum_ = other.sparseEnum_; |
3365 } | 3628 } |
3366 | 3629 |
| 3630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3367 public SparseEnumMessage Clone() { | 3631 public SparseEnumMessage Clone() { |
3368 return new SparseEnumMessage(this); | 3632 return new SparseEnumMessage(this); |
3369 } | 3633 } |
3370 | 3634 |
3371 /// <summary>Field number for the "sparse_enum" field.</summary> | 3635 /// <summary>Field number for the "sparse_enum" field.</summary> |
3372 public const int SparseEnumFieldNumber = 1; | 3636 public const int SparseEnumFieldNumber = 1; |
3373 private global::Google.Protobuf.TestProtos.TestSparseEnum sparseEnum_ = 0; | 3637 private global::Google.Protobuf.TestProtos.TestSparseEnum sparseEnum_ = 0; |
| 3638 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3374 public global::Google.Protobuf.TestProtos.TestSparseEnum SparseEnum { | 3639 public global::Google.Protobuf.TestProtos.TestSparseEnum SparseEnum { |
3375 get { return sparseEnum_; } | 3640 get { return sparseEnum_; } |
3376 set { | 3641 set { |
3377 sparseEnum_ = value; | 3642 sparseEnum_ = value; |
3378 } | 3643 } |
3379 } | 3644 } |
3380 | 3645 |
| 3646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3381 public override bool Equals(object other) { | 3647 public override bool Equals(object other) { |
3382 return Equals(other as SparseEnumMessage); | 3648 return Equals(other as SparseEnumMessage); |
3383 } | 3649 } |
3384 | 3650 |
| 3651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3385 public bool Equals(SparseEnumMessage other) { | 3652 public bool Equals(SparseEnumMessage other) { |
3386 if (ReferenceEquals(other, null)) { | 3653 if (ReferenceEquals(other, null)) { |
3387 return false; | 3654 return false; |
3388 } | 3655 } |
3389 if (ReferenceEquals(other, this)) { | 3656 if (ReferenceEquals(other, this)) { |
3390 return true; | 3657 return true; |
3391 } | 3658 } |
3392 if (SparseEnum != other.SparseEnum) return false; | 3659 if (SparseEnum != other.SparseEnum) return false; |
3393 return true; | 3660 return true; |
3394 } | 3661 } |
3395 | 3662 |
| 3663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3396 public override int GetHashCode() { | 3664 public override int GetHashCode() { |
3397 int hash = 1; | 3665 int hash = 1; |
3398 if (SparseEnum != 0) hash ^= SparseEnum.GetHashCode(); | 3666 if (SparseEnum != 0) hash ^= SparseEnum.GetHashCode(); |
3399 return hash; | 3667 return hash; |
3400 } | 3668 } |
3401 | 3669 |
| 3670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3402 public override string ToString() { | 3671 public override string ToString() { |
3403 return pb::JsonFormatter.ToDiagnosticString(this); | 3672 return pb::JsonFormatter.ToDiagnosticString(this); |
3404 } | 3673 } |
3405 | 3674 |
| 3675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3406 public void WriteTo(pb::CodedOutputStream output) { | 3676 public void WriteTo(pb::CodedOutputStream output) { |
3407 if (SparseEnum != 0) { | 3677 if (SparseEnum != 0) { |
3408 output.WriteRawTag(8); | 3678 output.WriteRawTag(8); |
3409 output.WriteEnum((int) SparseEnum); | 3679 output.WriteEnum((int) SparseEnum); |
3410 } | 3680 } |
3411 } | 3681 } |
3412 | 3682 |
| 3683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3413 public int CalculateSize() { | 3684 public int CalculateSize() { |
3414 int size = 0; | 3685 int size = 0; |
3415 if (SparseEnum != 0) { | 3686 if (SparseEnum != 0) { |
3416 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SparseEnum); | 3687 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SparseEnum); |
3417 } | 3688 } |
3418 return size; | 3689 return size; |
3419 } | 3690 } |
3420 | 3691 |
| 3692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3421 public void MergeFrom(SparseEnumMessage other) { | 3693 public void MergeFrom(SparseEnumMessage other) { |
3422 if (other == null) { | 3694 if (other == null) { |
3423 return; | 3695 return; |
3424 } | 3696 } |
3425 if (other.SparseEnum != 0) { | 3697 if (other.SparseEnum != 0) { |
3426 SparseEnum = other.SparseEnum; | 3698 SparseEnum = other.SparseEnum; |
3427 } | 3699 } |
3428 } | 3700 } |
3429 | 3701 |
| 3702 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3430 public void MergeFrom(pb::CodedInputStream input) { | 3703 public void MergeFrom(pb::CodedInputStream input) { |
3431 uint tag; | 3704 uint tag; |
3432 while ((tag = input.ReadTag()) != 0) { | 3705 while ((tag = input.ReadTag()) != 0) { |
3433 switch(tag) { | 3706 switch(tag) { |
3434 default: | 3707 default: |
3435 input.SkipLastField(); | 3708 input.SkipLastField(); |
3436 break; | 3709 break; |
3437 case 8: { | 3710 case 8: { |
3438 sparseEnum_ = (global::Google.Protobuf.TestProtos.TestSparseEnum) in
put.ReadEnum(); | 3711 sparseEnum_ = (global::Google.Protobuf.TestProtos.TestSparseEnum) in
put.ReadEnum(); |
3439 break; | 3712 break; |
3440 } | 3713 } |
3441 } | 3714 } |
3442 } | 3715 } |
3443 } | 3716 } |
3444 | 3717 |
3445 } | 3718 } |
3446 | 3719 |
3447 /// <summary> | 3720 /// <summary> |
3448 /// Test String and Bytes: string is for valid UTF-8 strings | 3721 /// Test String and Bytes: string is for valid UTF-8 strings |
3449 /// </summary> | 3722 /// </summary> |
3450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
3451 public sealed partial class OneString : pb::IMessage<OneString> { | 3723 public sealed partial class OneString : pb::IMessage<OneString> { |
3452 private static readonly pb::MessageParser<OneString> _parser = new pb::Messa
geParser<OneString>(() => new OneString()); | 3724 private static readonly pb::MessageParser<OneString> _parser = new pb::Messa
geParser<OneString>(() => new OneString()); |
| 3725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3453 public static pb::MessageParser<OneString> Parser { get { return _parser; }
} | 3726 public static pb::MessageParser<OneString> Parser { get { return _parser; }
} |
3454 | 3727 |
| 3728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3455 public static pbr::MessageDescriptor Descriptor { | 3729 public static pbr::MessageDescriptor Descriptor { |
3456 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[13]; } | 3730 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[13]; } |
3457 } | 3731 } |
3458 | 3732 |
| 3733 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3459 pbr::MessageDescriptor pb::IMessage.Descriptor { | 3734 pbr::MessageDescriptor pb::IMessage.Descriptor { |
3460 get { return Descriptor; } | 3735 get { return Descriptor; } |
3461 } | 3736 } |
3462 | 3737 |
| 3738 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3463 public OneString() { | 3739 public OneString() { |
3464 OnConstruction(); | 3740 OnConstruction(); |
3465 } | 3741 } |
3466 | 3742 |
3467 partial void OnConstruction(); | 3743 partial void OnConstruction(); |
3468 | 3744 |
| 3745 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3469 public OneString(OneString other) : this() { | 3746 public OneString(OneString other) : this() { |
3470 data_ = other.data_; | 3747 data_ = other.data_; |
3471 } | 3748 } |
3472 | 3749 |
| 3750 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3473 public OneString Clone() { | 3751 public OneString Clone() { |
3474 return new OneString(this); | 3752 return new OneString(this); |
3475 } | 3753 } |
3476 | 3754 |
3477 /// <summary>Field number for the "data" field.</summary> | 3755 /// <summary>Field number for the "data" field.</summary> |
3478 public const int DataFieldNumber = 1; | 3756 public const int DataFieldNumber = 1; |
3479 private string data_ = ""; | 3757 private string data_ = ""; |
| 3758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3480 public string Data { | 3759 public string Data { |
3481 get { return data_; } | 3760 get { return data_; } |
3482 set { | 3761 set { |
3483 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 3762 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
3484 } | 3763 } |
3485 } | 3764 } |
3486 | 3765 |
| 3766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3487 public override bool Equals(object other) { | 3767 public override bool Equals(object other) { |
3488 return Equals(other as OneString); | 3768 return Equals(other as OneString); |
3489 } | 3769 } |
3490 | 3770 |
| 3771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3491 public bool Equals(OneString other) { | 3772 public bool Equals(OneString other) { |
3492 if (ReferenceEquals(other, null)) { | 3773 if (ReferenceEquals(other, null)) { |
3493 return false; | 3774 return false; |
3494 } | 3775 } |
3495 if (ReferenceEquals(other, this)) { | 3776 if (ReferenceEquals(other, this)) { |
3496 return true; | 3777 return true; |
3497 } | 3778 } |
3498 if (Data != other.Data) return false; | 3779 if (Data != other.Data) return false; |
3499 return true; | 3780 return true; |
3500 } | 3781 } |
3501 | 3782 |
| 3783 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3502 public override int GetHashCode() { | 3784 public override int GetHashCode() { |
3503 int hash = 1; | 3785 int hash = 1; |
3504 if (Data.Length != 0) hash ^= Data.GetHashCode(); | 3786 if (Data.Length != 0) hash ^= Data.GetHashCode(); |
3505 return hash; | 3787 return hash; |
3506 } | 3788 } |
3507 | 3789 |
| 3790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3508 public override string ToString() { | 3791 public override string ToString() { |
3509 return pb::JsonFormatter.ToDiagnosticString(this); | 3792 return pb::JsonFormatter.ToDiagnosticString(this); |
3510 } | 3793 } |
3511 | 3794 |
| 3795 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3512 public void WriteTo(pb::CodedOutputStream output) { | 3796 public void WriteTo(pb::CodedOutputStream output) { |
3513 if (Data.Length != 0) { | 3797 if (Data.Length != 0) { |
3514 output.WriteRawTag(10); | 3798 output.WriteRawTag(10); |
3515 output.WriteString(Data); | 3799 output.WriteString(Data); |
3516 } | 3800 } |
3517 } | 3801 } |
3518 | 3802 |
| 3803 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3519 public int CalculateSize() { | 3804 public int CalculateSize() { |
3520 int size = 0; | 3805 int size = 0; |
3521 if (Data.Length != 0) { | 3806 if (Data.Length != 0) { |
3522 size += 1 + pb::CodedOutputStream.ComputeStringSize(Data); | 3807 size += 1 + pb::CodedOutputStream.ComputeStringSize(Data); |
3523 } | 3808 } |
3524 return size; | 3809 return size; |
3525 } | 3810 } |
3526 | 3811 |
| 3812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3527 public void MergeFrom(OneString other) { | 3813 public void MergeFrom(OneString other) { |
3528 if (other == null) { | 3814 if (other == null) { |
3529 return; | 3815 return; |
3530 } | 3816 } |
3531 if (other.Data.Length != 0) { | 3817 if (other.Data.Length != 0) { |
3532 Data = other.Data; | 3818 Data = other.Data; |
3533 } | 3819 } |
3534 } | 3820 } |
3535 | 3821 |
| 3822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3536 public void MergeFrom(pb::CodedInputStream input) { | 3823 public void MergeFrom(pb::CodedInputStream input) { |
3537 uint tag; | 3824 uint tag; |
3538 while ((tag = input.ReadTag()) != 0) { | 3825 while ((tag = input.ReadTag()) != 0) { |
3539 switch(tag) { | 3826 switch(tag) { |
3540 default: | 3827 default: |
3541 input.SkipLastField(); | 3828 input.SkipLastField(); |
3542 break; | 3829 break; |
3543 case 10: { | 3830 case 10: { |
3544 Data = input.ReadString(); | 3831 Data = input.ReadString(); |
3545 break; | 3832 break; |
3546 } | 3833 } |
3547 } | 3834 } |
3548 } | 3835 } |
3549 } | 3836 } |
3550 | 3837 |
3551 } | 3838 } |
3552 | 3839 |
3553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
3554 public sealed partial class MoreString : pb::IMessage<MoreString> { | 3840 public sealed partial class MoreString : pb::IMessage<MoreString> { |
3555 private static readonly pb::MessageParser<MoreString> _parser = new pb::Mess
ageParser<MoreString>(() => new MoreString()); | 3841 private static readonly pb::MessageParser<MoreString> _parser = new pb::Mess
ageParser<MoreString>(() => new MoreString()); |
| 3842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3556 public static pb::MessageParser<MoreString> Parser { get { return _parser; }
} | 3843 public static pb::MessageParser<MoreString> Parser { get { return _parser; }
} |
3557 | 3844 |
| 3845 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3558 public static pbr::MessageDescriptor Descriptor { | 3846 public static pbr::MessageDescriptor Descriptor { |
3559 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[14]; } | 3847 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[14]; } |
3560 } | 3848 } |
3561 | 3849 |
| 3850 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3562 pbr::MessageDescriptor pb::IMessage.Descriptor { | 3851 pbr::MessageDescriptor pb::IMessage.Descriptor { |
3563 get { return Descriptor; } | 3852 get { return Descriptor; } |
3564 } | 3853 } |
3565 | 3854 |
| 3855 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3566 public MoreString() { | 3856 public MoreString() { |
3567 OnConstruction(); | 3857 OnConstruction(); |
3568 } | 3858 } |
3569 | 3859 |
3570 partial void OnConstruction(); | 3860 partial void OnConstruction(); |
3571 | 3861 |
| 3862 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3572 public MoreString(MoreString other) : this() { | 3863 public MoreString(MoreString other) : this() { |
3573 data_ = other.data_.Clone(); | 3864 data_ = other.data_.Clone(); |
3574 } | 3865 } |
3575 | 3866 |
| 3867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3576 public MoreString Clone() { | 3868 public MoreString Clone() { |
3577 return new MoreString(this); | 3869 return new MoreString(this); |
3578 } | 3870 } |
3579 | 3871 |
3580 /// <summary>Field number for the "data" field.</summary> | 3872 /// <summary>Field number for the "data" field.</summary> |
3581 public const int DataFieldNumber = 1; | 3873 public const int DataFieldNumber = 1; |
3582 private static readonly pb::FieldCodec<string> _repeated_data_codec | 3874 private static readonly pb::FieldCodec<string> _repeated_data_codec |
3583 = pb::FieldCodec.ForString(10); | 3875 = pb::FieldCodec.ForString(10); |
3584 private readonly pbc::RepeatedField<string> data_ = new pbc::RepeatedField<s
tring>(); | 3876 private readonly pbc::RepeatedField<string> data_ = new pbc::RepeatedField<s
tring>(); |
| 3877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3585 public pbc::RepeatedField<string> Data { | 3878 public pbc::RepeatedField<string> Data { |
3586 get { return data_; } | 3879 get { return data_; } |
3587 } | 3880 } |
3588 | 3881 |
| 3882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3589 public override bool Equals(object other) { | 3883 public override bool Equals(object other) { |
3590 return Equals(other as MoreString); | 3884 return Equals(other as MoreString); |
3591 } | 3885 } |
3592 | 3886 |
| 3887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3593 public bool Equals(MoreString other) { | 3888 public bool Equals(MoreString other) { |
3594 if (ReferenceEquals(other, null)) { | 3889 if (ReferenceEquals(other, null)) { |
3595 return false; | 3890 return false; |
3596 } | 3891 } |
3597 if (ReferenceEquals(other, this)) { | 3892 if (ReferenceEquals(other, this)) { |
3598 return true; | 3893 return true; |
3599 } | 3894 } |
3600 if(!data_.Equals(other.data_)) return false; | 3895 if(!data_.Equals(other.data_)) return false; |
3601 return true; | 3896 return true; |
3602 } | 3897 } |
3603 | 3898 |
| 3899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3604 public override int GetHashCode() { | 3900 public override int GetHashCode() { |
3605 int hash = 1; | 3901 int hash = 1; |
3606 hash ^= data_.GetHashCode(); | 3902 hash ^= data_.GetHashCode(); |
3607 return hash; | 3903 return hash; |
3608 } | 3904 } |
3609 | 3905 |
| 3906 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3610 public override string ToString() { | 3907 public override string ToString() { |
3611 return pb::JsonFormatter.ToDiagnosticString(this); | 3908 return pb::JsonFormatter.ToDiagnosticString(this); |
3612 } | 3909 } |
3613 | 3910 |
| 3911 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3614 public void WriteTo(pb::CodedOutputStream output) { | 3912 public void WriteTo(pb::CodedOutputStream output) { |
3615 data_.WriteTo(output, _repeated_data_codec); | 3913 data_.WriteTo(output, _repeated_data_codec); |
3616 } | 3914 } |
3617 | 3915 |
| 3916 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3618 public int CalculateSize() { | 3917 public int CalculateSize() { |
3619 int size = 0; | 3918 int size = 0; |
3620 size += data_.CalculateSize(_repeated_data_codec); | 3919 size += data_.CalculateSize(_repeated_data_codec); |
3621 return size; | 3920 return size; |
3622 } | 3921 } |
3623 | 3922 |
| 3923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3624 public void MergeFrom(MoreString other) { | 3924 public void MergeFrom(MoreString other) { |
3625 if (other == null) { | 3925 if (other == null) { |
3626 return; | 3926 return; |
3627 } | 3927 } |
3628 data_.Add(other.data_); | 3928 data_.Add(other.data_); |
3629 } | 3929 } |
3630 | 3930 |
| 3931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3631 public void MergeFrom(pb::CodedInputStream input) { | 3932 public void MergeFrom(pb::CodedInputStream input) { |
3632 uint tag; | 3933 uint tag; |
3633 while ((tag = input.ReadTag()) != 0) { | 3934 while ((tag = input.ReadTag()) != 0) { |
3634 switch(tag) { | 3935 switch(tag) { |
3635 default: | 3936 default: |
3636 input.SkipLastField(); | 3937 input.SkipLastField(); |
3637 break; | 3938 break; |
3638 case 10: { | 3939 case 10: { |
3639 data_.AddEntriesFrom(input, _repeated_data_codec); | 3940 data_.AddEntriesFrom(input, _repeated_data_codec); |
3640 break; | 3941 break; |
3641 } | 3942 } |
3642 } | 3943 } |
3643 } | 3944 } |
3644 } | 3945 } |
3645 | 3946 |
3646 } | 3947 } |
3647 | 3948 |
3648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
3649 public sealed partial class OneBytes : pb::IMessage<OneBytes> { | 3949 public sealed partial class OneBytes : pb::IMessage<OneBytes> { |
3650 private static readonly pb::MessageParser<OneBytes> _parser = new pb::Messag
eParser<OneBytes>(() => new OneBytes()); | 3950 private static readonly pb::MessageParser<OneBytes> _parser = new pb::Messag
eParser<OneBytes>(() => new OneBytes()); |
| 3951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3651 public static pb::MessageParser<OneBytes> Parser { get { return _parser; } } | 3952 public static pb::MessageParser<OneBytes> Parser { get { return _parser; } } |
3652 | 3953 |
| 3954 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3653 public static pbr::MessageDescriptor Descriptor { | 3955 public static pbr::MessageDescriptor Descriptor { |
3654 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[15]; } | 3956 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[15]; } |
3655 } | 3957 } |
3656 | 3958 |
| 3959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3657 pbr::MessageDescriptor pb::IMessage.Descriptor { | 3960 pbr::MessageDescriptor pb::IMessage.Descriptor { |
3658 get { return Descriptor; } | 3961 get { return Descriptor; } |
3659 } | 3962 } |
3660 | 3963 |
| 3964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3661 public OneBytes() { | 3965 public OneBytes() { |
3662 OnConstruction(); | 3966 OnConstruction(); |
3663 } | 3967 } |
3664 | 3968 |
3665 partial void OnConstruction(); | 3969 partial void OnConstruction(); |
3666 | 3970 |
| 3971 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3667 public OneBytes(OneBytes other) : this() { | 3972 public OneBytes(OneBytes other) : this() { |
3668 data_ = other.data_; | 3973 data_ = other.data_; |
3669 } | 3974 } |
3670 | 3975 |
| 3976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3671 public OneBytes Clone() { | 3977 public OneBytes Clone() { |
3672 return new OneBytes(this); | 3978 return new OneBytes(this); |
3673 } | 3979 } |
3674 | 3980 |
3675 /// <summary>Field number for the "data" field.</summary> | 3981 /// <summary>Field number for the "data" field.</summary> |
3676 public const int DataFieldNumber = 1; | 3982 public const int DataFieldNumber = 1; |
3677 private pb::ByteString data_ = pb::ByteString.Empty; | 3983 private pb::ByteString data_ = pb::ByteString.Empty; |
| 3984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3678 public pb::ByteString Data { | 3985 public pb::ByteString Data { |
3679 get { return data_; } | 3986 get { return data_; } |
3680 set { | 3987 set { |
3681 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 3988 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
3682 } | 3989 } |
3683 } | 3990 } |
3684 | 3991 |
| 3992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3685 public override bool Equals(object other) { | 3993 public override bool Equals(object other) { |
3686 return Equals(other as OneBytes); | 3994 return Equals(other as OneBytes); |
3687 } | 3995 } |
3688 | 3996 |
| 3997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3689 public bool Equals(OneBytes other) { | 3998 public bool Equals(OneBytes other) { |
3690 if (ReferenceEquals(other, null)) { | 3999 if (ReferenceEquals(other, null)) { |
3691 return false; | 4000 return false; |
3692 } | 4001 } |
3693 if (ReferenceEquals(other, this)) { | 4002 if (ReferenceEquals(other, this)) { |
3694 return true; | 4003 return true; |
3695 } | 4004 } |
3696 if (Data != other.Data) return false; | 4005 if (Data != other.Data) return false; |
3697 return true; | 4006 return true; |
3698 } | 4007 } |
3699 | 4008 |
| 4009 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3700 public override int GetHashCode() { | 4010 public override int GetHashCode() { |
3701 int hash = 1; | 4011 int hash = 1; |
3702 if (Data.Length != 0) hash ^= Data.GetHashCode(); | 4012 if (Data.Length != 0) hash ^= Data.GetHashCode(); |
3703 return hash; | 4013 return hash; |
3704 } | 4014 } |
3705 | 4015 |
| 4016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3706 public override string ToString() { | 4017 public override string ToString() { |
3707 return pb::JsonFormatter.ToDiagnosticString(this); | 4018 return pb::JsonFormatter.ToDiagnosticString(this); |
3708 } | 4019 } |
3709 | 4020 |
| 4021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3710 public void WriteTo(pb::CodedOutputStream output) { | 4022 public void WriteTo(pb::CodedOutputStream output) { |
3711 if (Data.Length != 0) { | 4023 if (Data.Length != 0) { |
3712 output.WriteRawTag(10); | 4024 output.WriteRawTag(10); |
3713 output.WriteBytes(Data); | 4025 output.WriteBytes(Data); |
3714 } | 4026 } |
3715 } | 4027 } |
3716 | 4028 |
| 4029 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3717 public int CalculateSize() { | 4030 public int CalculateSize() { |
3718 int size = 0; | 4031 int size = 0; |
3719 if (Data.Length != 0) { | 4032 if (Data.Length != 0) { |
3720 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); | 4033 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); |
3721 } | 4034 } |
3722 return size; | 4035 return size; |
3723 } | 4036 } |
3724 | 4037 |
| 4038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3725 public void MergeFrom(OneBytes other) { | 4039 public void MergeFrom(OneBytes other) { |
3726 if (other == null) { | 4040 if (other == null) { |
3727 return; | 4041 return; |
3728 } | 4042 } |
3729 if (other.Data.Length != 0) { | 4043 if (other.Data.Length != 0) { |
3730 Data = other.Data; | 4044 Data = other.Data; |
3731 } | 4045 } |
3732 } | 4046 } |
3733 | 4047 |
| 4048 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3734 public void MergeFrom(pb::CodedInputStream input) { | 4049 public void MergeFrom(pb::CodedInputStream input) { |
3735 uint tag; | 4050 uint tag; |
3736 while ((tag = input.ReadTag()) != 0) { | 4051 while ((tag = input.ReadTag()) != 0) { |
3737 switch(tag) { | 4052 switch(tag) { |
3738 default: | 4053 default: |
3739 input.SkipLastField(); | 4054 input.SkipLastField(); |
3740 break; | 4055 break; |
3741 case 10: { | 4056 case 10: { |
3742 Data = input.ReadBytes(); | 4057 Data = input.ReadBytes(); |
3743 break; | 4058 break; |
3744 } | 4059 } |
3745 } | 4060 } |
3746 } | 4061 } |
3747 } | 4062 } |
3748 | 4063 |
3749 } | 4064 } |
3750 | 4065 |
3751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
3752 public sealed partial class MoreBytes : pb::IMessage<MoreBytes> { | 4066 public sealed partial class MoreBytes : pb::IMessage<MoreBytes> { |
3753 private static readonly pb::MessageParser<MoreBytes> _parser = new pb::Messa
geParser<MoreBytes>(() => new MoreBytes()); | 4067 private static readonly pb::MessageParser<MoreBytes> _parser = new pb::Messa
geParser<MoreBytes>(() => new MoreBytes()); |
| 4068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3754 public static pb::MessageParser<MoreBytes> Parser { get { return _parser; }
} | 4069 public static pb::MessageParser<MoreBytes> Parser { get { return _parser; }
} |
3755 | 4070 |
| 4071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3756 public static pbr::MessageDescriptor Descriptor { | 4072 public static pbr::MessageDescriptor Descriptor { |
3757 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[16]; } | 4073 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[16]; } |
3758 } | 4074 } |
3759 | 4075 |
| 4076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3760 pbr::MessageDescriptor pb::IMessage.Descriptor { | 4077 pbr::MessageDescriptor pb::IMessage.Descriptor { |
3761 get { return Descriptor; } | 4078 get { return Descriptor; } |
3762 } | 4079 } |
3763 | 4080 |
| 4081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3764 public MoreBytes() { | 4082 public MoreBytes() { |
3765 OnConstruction(); | 4083 OnConstruction(); |
3766 } | 4084 } |
3767 | 4085 |
3768 partial void OnConstruction(); | 4086 partial void OnConstruction(); |
3769 | 4087 |
| 4088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3770 public MoreBytes(MoreBytes other) : this() { | 4089 public MoreBytes(MoreBytes other) : this() { |
3771 data_ = other.data_; | 4090 data_ = other.data_; |
3772 } | 4091 } |
3773 | 4092 |
| 4093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3774 public MoreBytes Clone() { | 4094 public MoreBytes Clone() { |
3775 return new MoreBytes(this); | 4095 return new MoreBytes(this); |
3776 } | 4096 } |
3777 | 4097 |
3778 /// <summary>Field number for the "data" field.</summary> | 4098 /// <summary>Field number for the "data" field.</summary> |
3779 public const int DataFieldNumber = 1; | 4099 public const int DataFieldNumber = 1; |
3780 private pb::ByteString data_ = pb::ByteString.Empty; | 4100 private pb::ByteString data_ = pb::ByteString.Empty; |
| 4101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3781 public pb::ByteString Data { | 4102 public pb::ByteString Data { |
3782 get { return data_; } | 4103 get { return data_; } |
3783 set { | 4104 set { |
3784 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 4105 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
3785 } | 4106 } |
3786 } | 4107 } |
3787 | 4108 |
| 4109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3788 public override bool Equals(object other) { | 4110 public override bool Equals(object other) { |
3789 return Equals(other as MoreBytes); | 4111 return Equals(other as MoreBytes); |
3790 } | 4112 } |
3791 | 4113 |
| 4114 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3792 public bool Equals(MoreBytes other) { | 4115 public bool Equals(MoreBytes other) { |
3793 if (ReferenceEquals(other, null)) { | 4116 if (ReferenceEquals(other, null)) { |
3794 return false; | 4117 return false; |
3795 } | 4118 } |
3796 if (ReferenceEquals(other, this)) { | 4119 if (ReferenceEquals(other, this)) { |
3797 return true; | 4120 return true; |
3798 } | 4121 } |
3799 if (Data != other.Data) return false; | 4122 if (Data != other.Data) return false; |
3800 return true; | 4123 return true; |
3801 } | 4124 } |
3802 | 4125 |
| 4126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3803 public override int GetHashCode() { | 4127 public override int GetHashCode() { |
3804 int hash = 1; | 4128 int hash = 1; |
3805 if (Data.Length != 0) hash ^= Data.GetHashCode(); | 4129 if (Data.Length != 0) hash ^= Data.GetHashCode(); |
3806 return hash; | 4130 return hash; |
3807 } | 4131 } |
3808 | 4132 |
| 4133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3809 public override string ToString() { | 4134 public override string ToString() { |
3810 return pb::JsonFormatter.ToDiagnosticString(this); | 4135 return pb::JsonFormatter.ToDiagnosticString(this); |
3811 } | 4136 } |
3812 | 4137 |
| 4138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3813 public void WriteTo(pb::CodedOutputStream output) { | 4139 public void WriteTo(pb::CodedOutputStream output) { |
3814 if (Data.Length != 0) { | 4140 if (Data.Length != 0) { |
3815 output.WriteRawTag(10); | 4141 output.WriteRawTag(10); |
3816 output.WriteBytes(Data); | 4142 output.WriteBytes(Data); |
3817 } | 4143 } |
3818 } | 4144 } |
3819 | 4145 |
| 4146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3820 public int CalculateSize() { | 4147 public int CalculateSize() { |
3821 int size = 0; | 4148 int size = 0; |
3822 if (Data.Length != 0) { | 4149 if (Data.Length != 0) { |
3823 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); | 4150 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); |
3824 } | 4151 } |
3825 return size; | 4152 return size; |
3826 } | 4153 } |
3827 | 4154 |
| 4155 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3828 public void MergeFrom(MoreBytes other) { | 4156 public void MergeFrom(MoreBytes other) { |
3829 if (other == null) { | 4157 if (other == null) { |
3830 return; | 4158 return; |
3831 } | 4159 } |
3832 if (other.Data.Length != 0) { | 4160 if (other.Data.Length != 0) { |
3833 Data = other.Data; | 4161 Data = other.Data; |
3834 } | 4162 } |
3835 } | 4163 } |
3836 | 4164 |
| 4165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3837 public void MergeFrom(pb::CodedInputStream input) { | 4166 public void MergeFrom(pb::CodedInputStream input) { |
3838 uint tag; | 4167 uint tag; |
3839 while ((tag = input.ReadTag()) != 0) { | 4168 while ((tag = input.ReadTag()) != 0) { |
3840 switch(tag) { | 4169 switch(tag) { |
3841 default: | 4170 default: |
3842 input.SkipLastField(); | 4171 input.SkipLastField(); |
3843 break; | 4172 break; |
3844 case 10: { | 4173 case 10: { |
3845 Data = input.ReadBytes(); | 4174 Data = input.ReadBytes(); |
3846 break; | 4175 break; |
3847 } | 4176 } |
3848 } | 4177 } |
3849 } | 4178 } |
3850 } | 4179 } |
3851 | 4180 |
3852 } | 4181 } |
3853 | 4182 |
3854 /// <summary> | 4183 /// <summary> |
3855 /// Test int32, uint32, int64, uint64, and bool are all compatible | 4184 /// Test int32, uint32, int64, uint64, and bool are all compatible |
3856 /// </summary> | 4185 /// </summary> |
3857 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
3858 public sealed partial class Int32Message : pb::IMessage<Int32Message> { | 4186 public sealed partial class Int32Message : pb::IMessage<Int32Message> { |
3859 private static readonly pb::MessageParser<Int32Message> _parser = new pb::Me
ssageParser<Int32Message>(() => new Int32Message()); | 4187 private static readonly pb::MessageParser<Int32Message> _parser = new pb::Me
ssageParser<Int32Message>(() => new Int32Message()); |
| 4188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3860 public static pb::MessageParser<Int32Message> Parser { get { return _parser;
} } | 4189 public static pb::MessageParser<Int32Message> Parser { get { return _parser;
} } |
3861 | 4190 |
| 4191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3862 public static pbr::MessageDescriptor Descriptor { | 4192 public static pbr::MessageDescriptor Descriptor { |
3863 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[17]; } | 4193 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[17]; } |
3864 } | 4194 } |
3865 | 4195 |
| 4196 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3866 pbr::MessageDescriptor pb::IMessage.Descriptor { | 4197 pbr::MessageDescriptor pb::IMessage.Descriptor { |
3867 get { return Descriptor; } | 4198 get { return Descriptor; } |
3868 } | 4199 } |
3869 | 4200 |
| 4201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3870 public Int32Message() { | 4202 public Int32Message() { |
3871 OnConstruction(); | 4203 OnConstruction(); |
3872 } | 4204 } |
3873 | 4205 |
3874 partial void OnConstruction(); | 4206 partial void OnConstruction(); |
3875 | 4207 |
| 4208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3876 public Int32Message(Int32Message other) : this() { | 4209 public Int32Message(Int32Message other) : this() { |
3877 data_ = other.data_; | 4210 data_ = other.data_; |
3878 } | 4211 } |
3879 | 4212 |
| 4213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3880 public Int32Message Clone() { | 4214 public Int32Message Clone() { |
3881 return new Int32Message(this); | 4215 return new Int32Message(this); |
3882 } | 4216 } |
3883 | 4217 |
3884 /// <summary>Field number for the "data" field.</summary> | 4218 /// <summary>Field number for the "data" field.</summary> |
3885 public const int DataFieldNumber = 1; | 4219 public const int DataFieldNumber = 1; |
3886 private int data_; | 4220 private int data_; |
| 4221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3887 public int Data { | 4222 public int Data { |
3888 get { return data_; } | 4223 get { return data_; } |
3889 set { | 4224 set { |
3890 data_ = value; | 4225 data_ = value; |
3891 } | 4226 } |
3892 } | 4227 } |
3893 | 4228 |
| 4229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3894 public override bool Equals(object other) { | 4230 public override bool Equals(object other) { |
3895 return Equals(other as Int32Message); | 4231 return Equals(other as Int32Message); |
3896 } | 4232 } |
3897 | 4233 |
| 4234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3898 public bool Equals(Int32Message other) { | 4235 public bool Equals(Int32Message other) { |
3899 if (ReferenceEquals(other, null)) { | 4236 if (ReferenceEquals(other, null)) { |
3900 return false; | 4237 return false; |
3901 } | 4238 } |
3902 if (ReferenceEquals(other, this)) { | 4239 if (ReferenceEquals(other, this)) { |
3903 return true; | 4240 return true; |
3904 } | 4241 } |
3905 if (Data != other.Data) return false; | 4242 if (Data != other.Data) return false; |
3906 return true; | 4243 return true; |
3907 } | 4244 } |
3908 | 4245 |
| 4246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3909 public override int GetHashCode() { | 4247 public override int GetHashCode() { |
3910 int hash = 1; | 4248 int hash = 1; |
3911 if (Data != 0) hash ^= Data.GetHashCode(); | 4249 if (Data != 0) hash ^= Data.GetHashCode(); |
3912 return hash; | 4250 return hash; |
3913 } | 4251 } |
3914 | 4252 |
| 4253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3915 public override string ToString() { | 4254 public override string ToString() { |
3916 return pb::JsonFormatter.ToDiagnosticString(this); | 4255 return pb::JsonFormatter.ToDiagnosticString(this); |
3917 } | 4256 } |
3918 | 4257 |
| 4258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3919 public void WriteTo(pb::CodedOutputStream output) { | 4259 public void WriteTo(pb::CodedOutputStream output) { |
3920 if (Data != 0) { | 4260 if (Data != 0) { |
3921 output.WriteRawTag(8); | 4261 output.WriteRawTag(8); |
3922 output.WriteInt32(Data); | 4262 output.WriteInt32(Data); |
3923 } | 4263 } |
3924 } | 4264 } |
3925 | 4265 |
| 4266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3926 public int CalculateSize() { | 4267 public int CalculateSize() { |
3927 int size = 0; | 4268 int size = 0; |
3928 if (Data != 0) { | 4269 if (Data != 0) { |
3929 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data); | 4270 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data); |
3930 } | 4271 } |
3931 return size; | 4272 return size; |
3932 } | 4273 } |
3933 | 4274 |
| 4275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3934 public void MergeFrom(Int32Message other) { | 4276 public void MergeFrom(Int32Message other) { |
3935 if (other == null) { | 4277 if (other == null) { |
3936 return; | 4278 return; |
3937 } | 4279 } |
3938 if (other.Data != 0) { | 4280 if (other.Data != 0) { |
3939 Data = other.Data; | 4281 Data = other.Data; |
3940 } | 4282 } |
3941 } | 4283 } |
3942 | 4284 |
| 4285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3943 public void MergeFrom(pb::CodedInputStream input) { | 4286 public void MergeFrom(pb::CodedInputStream input) { |
3944 uint tag; | 4287 uint tag; |
3945 while ((tag = input.ReadTag()) != 0) { | 4288 while ((tag = input.ReadTag()) != 0) { |
3946 switch(tag) { | 4289 switch(tag) { |
3947 default: | 4290 default: |
3948 input.SkipLastField(); | 4291 input.SkipLastField(); |
3949 break; | 4292 break; |
3950 case 8: { | 4293 case 8: { |
3951 Data = input.ReadInt32(); | 4294 Data = input.ReadInt32(); |
3952 break; | 4295 break; |
3953 } | 4296 } |
3954 } | 4297 } |
3955 } | 4298 } |
3956 } | 4299 } |
3957 | 4300 |
3958 } | 4301 } |
3959 | 4302 |
3960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
3961 public sealed partial class Uint32Message : pb::IMessage<Uint32Message> { | 4303 public sealed partial class Uint32Message : pb::IMessage<Uint32Message> { |
3962 private static readonly pb::MessageParser<Uint32Message> _parser = new pb::M
essageParser<Uint32Message>(() => new Uint32Message()); | 4304 private static readonly pb::MessageParser<Uint32Message> _parser = new pb::M
essageParser<Uint32Message>(() => new Uint32Message()); |
| 4305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3963 public static pb::MessageParser<Uint32Message> Parser { get { return _parser
; } } | 4306 public static pb::MessageParser<Uint32Message> Parser { get { return _parser
; } } |
3964 | 4307 |
| 4308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3965 public static pbr::MessageDescriptor Descriptor { | 4309 public static pbr::MessageDescriptor Descriptor { |
3966 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[18]; } | 4310 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[18]; } |
3967 } | 4311 } |
3968 | 4312 |
| 4313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3969 pbr::MessageDescriptor pb::IMessage.Descriptor { | 4314 pbr::MessageDescriptor pb::IMessage.Descriptor { |
3970 get { return Descriptor; } | 4315 get { return Descriptor; } |
3971 } | 4316 } |
3972 | 4317 |
| 4318 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3973 public Uint32Message() { | 4319 public Uint32Message() { |
3974 OnConstruction(); | 4320 OnConstruction(); |
3975 } | 4321 } |
3976 | 4322 |
3977 partial void OnConstruction(); | 4323 partial void OnConstruction(); |
3978 | 4324 |
| 4325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3979 public Uint32Message(Uint32Message other) : this() { | 4326 public Uint32Message(Uint32Message other) : this() { |
3980 data_ = other.data_; | 4327 data_ = other.data_; |
3981 } | 4328 } |
3982 | 4329 |
| 4330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3983 public Uint32Message Clone() { | 4331 public Uint32Message Clone() { |
3984 return new Uint32Message(this); | 4332 return new Uint32Message(this); |
3985 } | 4333 } |
3986 | 4334 |
3987 /// <summary>Field number for the "data" field.</summary> | 4335 /// <summary>Field number for the "data" field.</summary> |
3988 public const int DataFieldNumber = 1; | 4336 public const int DataFieldNumber = 1; |
3989 private uint data_; | 4337 private uint data_; |
| 4338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3990 public uint Data { | 4339 public uint Data { |
3991 get { return data_; } | 4340 get { return data_; } |
3992 set { | 4341 set { |
3993 data_ = value; | 4342 data_ = value; |
3994 } | 4343 } |
3995 } | 4344 } |
3996 | 4345 |
| 4346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
3997 public override bool Equals(object other) { | 4347 public override bool Equals(object other) { |
3998 return Equals(other as Uint32Message); | 4348 return Equals(other as Uint32Message); |
3999 } | 4349 } |
4000 | 4350 |
| 4351 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4001 public bool Equals(Uint32Message other) { | 4352 public bool Equals(Uint32Message other) { |
4002 if (ReferenceEquals(other, null)) { | 4353 if (ReferenceEquals(other, null)) { |
4003 return false; | 4354 return false; |
4004 } | 4355 } |
4005 if (ReferenceEquals(other, this)) { | 4356 if (ReferenceEquals(other, this)) { |
4006 return true; | 4357 return true; |
4007 } | 4358 } |
4008 if (Data != other.Data) return false; | 4359 if (Data != other.Data) return false; |
4009 return true; | 4360 return true; |
4010 } | 4361 } |
4011 | 4362 |
| 4363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4012 public override int GetHashCode() { | 4364 public override int GetHashCode() { |
4013 int hash = 1; | 4365 int hash = 1; |
4014 if (Data != 0) hash ^= Data.GetHashCode(); | 4366 if (Data != 0) hash ^= Data.GetHashCode(); |
4015 return hash; | 4367 return hash; |
4016 } | 4368 } |
4017 | 4369 |
| 4370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4018 public override string ToString() { | 4371 public override string ToString() { |
4019 return pb::JsonFormatter.ToDiagnosticString(this); | 4372 return pb::JsonFormatter.ToDiagnosticString(this); |
4020 } | 4373 } |
4021 | 4374 |
| 4375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4022 public void WriteTo(pb::CodedOutputStream output) { | 4376 public void WriteTo(pb::CodedOutputStream output) { |
4023 if (Data != 0) { | 4377 if (Data != 0) { |
4024 output.WriteRawTag(8); | 4378 output.WriteRawTag(8); |
4025 output.WriteUInt32(Data); | 4379 output.WriteUInt32(Data); |
4026 } | 4380 } |
4027 } | 4381 } |
4028 | 4382 |
| 4383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4029 public int CalculateSize() { | 4384 public int CalculateSize() { |
4030 int size = 0; | 4385 int size = 0; |
4031 if (Data != 0) { | 4386 if (Data != 0) { |
4032 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Data); | 4387 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Data); |
4033 } | 4388 } |
4034 return size; | 4389 return size; |
4035 } | 4390 } |
4036 | 4391 |
| 4392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4037 public void MergeFrom(Uint32Message other) { | 4393 public void MergeFrom(Uint32Message other) { |
4038 if (other == null) { | 4394 if (other == null) { |
4039 return; | 4395 return; |
4040 } | 4396 } |
4041 if (other.Data != 0) { | 4397 if (other.Data != 0) { |
4042 Data = other.Data; | 4398 Data = other.Data; |
4043 } | 4399 } |
4044 } | 4400 } |
4045 | 4401 |
| 4402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4046 public void MergeFrom(pb::CodedInputStream input) { | 4403 public void MergeFrom(pb::CodedInputStream input) { |
4047 uint tag; | 4404 uint tag; |
4048 while ((tag = input.ReadTag()) != 0) { | 4405 while ((tag = input.ReadTag()) != 0) { |
4049 switch(tag) { | 4406 switch(tag) { |
4050 default: | 4407 default: |
4051 input.SkipLastField(); | 4408 input.SkipLastField(); |
4052 break; | 4409 break; |
4053 case 8: { | 4410 case 8: { |
4054 Data = input.ReadUInt32(); | 4411 Data = input.ReadUInt32(); |
4055 break; | 4412 break; |
4056 } | 4413 } |
4057 } | 4414 } |
4058 } | 4415 } |
4059 } | 4416 } |
4060 | 4417 |
4061 } | 4418 } |
4062 | 4419 |
4063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
4064 public sealed partial class Int64Message : pb::IMessage<Int64Message> { | 4420 public sealed partial class Int64Message : pb::IMessage<Int64Message> { |
4065 private static readonly pb::MessageParser<Int64Message> _parser = new pb::Me
ssageParser<Int64Message>(() => new Int64Message()); | 4421 private static readonly pb::MessageParser<Int64Message> _parser = new pb::Me
ssageParser<Int64Message>(() => new Int64Message()); |
| 4422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4066 public static pb::MessageParser<Int64Message> Parser { get { return _parser;
} } | 4423 public static pb::MessageParser<Int64Message> Parser { get { return _parser;
} } |
4067 | 4424 |
| 4425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4068 public static pbr::MessageDescriptor Descriptor { | 4426 public static pbr::MessageDescriptor Descriptor { |
4069 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[19]; } | 4427 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[19]; } |
4070 } | 4428 } |
4071 | 4429 |
| 4430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4072 pbr::MessageDescriptor pb::IMessage.Descriptor { | 4431 pbr::MessageDescriptor pb::IMessage.Descriptor { |
4073 get { return Descriptor; } | 4432 get { return Descriptor; } |
4074 } | 4433 } |
4075 | 4434 |
| 4435 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4076 public Int64Message() { | 4436 public Int64Message() { |
4077 OnConstruction(); | 4437 OnConstruction(); |
4078 } | 4438 } |
4079 | 4439 |
4080 partial void OnConstruction(); | 4440 partial void OnConstruction(); |
4081 | 4441 |
| 4442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4082 public Int64Message(Int64Message other) : this() { | 4443 public Int64Message(Int64Message other) : this() { |
4083 data_ = other.data_; | 4444 data_ = other.data_; |
4084 } | 4445 } |
4085 | 4446 |
| 4447 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4086 public Int64Message Clone() { | 4448 public Int64Message Clone() { |
4087 return new Int64Message(this); | 4449 return new Int64Message(this); |
4088 } | 4450 } |
4089 | 4451 |
4090 /// <summary>Field number for the "data" field.</summary> | 4452 /// <summary>Field number for the "data" field.</summary> |
4091 public const int DataFieldNumber = 1; | 4453 public const int DataFieldNumber = 1; |
4092 private long data_; | 4454 private long data_; |
| 4455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4093 public long Data { | 4456 public long Data { |
4094 get { return data_; } | 4457 get { return data_; } |
4095 set { | 4458 set { |
4096 data_ = value; | 4459 data_ = value; |
4097 } | 4460 } |
4098 } | 4461 } |
4099 | 4462 |
| 4463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4100 public override bool Equals(object other) { | 4464 public override bool Equals(object other) { |
4101 return Equals(other as Int64Message); | 4465 return Equals(other as Int64Message); |
4102 } | 4466 } |
4103 | 4467 |
| 4468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4104 public bool Equals(Int64Message other) { | 4469 public bool Equals(Int64Message other) { |
4105 if (ReferenceEquals(other, null)) { | 4470 if (ReferenceEquals(other, null)) { |
4106 return false; | 4471 return false; |
4107 } | 4472 } |
4108 if (ReferenceEquals(other, this)) { | 4473 if (ReferenceEquals(other, this)) { |
4109 return true; | 4474 return true; |
4110 } | 4475 } |
4111 if (Data != other.Data) return false; | 4476 if (Data != other.Data) return false; |
4112 return true; | 4477 return true; |
4113 } | 4478 } |
4114 | 4479 |
| 4480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4115 public override int GetHashCode() { | 4481 public override int GetHashCode() { |
4116 int hash = 1; | 4482 int hash = 1; |
4117 if (Data != 0L) hash ^= Data.GetHashCode(); | 4483 if (Data != 0L) hash ^= Data.GetHashCode(); |
4118 return hash; | 4484 return hash; |
4119 } | 4485 } |
4120 | 4486 |
| 4487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4121 public override string ToString() { | 4488 public override string ToString() { |
4122 return pb::JsonFormatter.ToDiagnosticString(this); | 4489 return pb::JsonFormatter.ToDiagnosticString(this); |
4123 } | 4490 } |
4124 | 4491 |
| 4492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4125 public void WriteTo(pb::CodedOutputStream output) { | 4493 public void WriteTo(pb::CodedOutputStream output) { |
4126 if (Data != 0L) { | 4494 if (Data != 0L) { |
4127 output.WriteRawTag(8); | 4495 output.WriteRawTag(8); |
4128 output.WriteInt64(Data); | 4496 output.WriteInt64(Data); |
4129 } | 4497 } |
4130 } | 4498 } |
4131 | 4499 |
| 4500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4132 public int CalculateSize() { | 4501 public int CalculateSize() { |
4133 int size = 0; | 4502 int size = 0; |
4134 if (Data != 0L) { | 4503 if (Data != 0L) { |
4135 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Data); | 4504 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Data); |
4136 } | 4505 } |
4137 return size; | 4506 return size; |
4138 } | 4507 } |
4139 | 4508 |
| 4509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4140 public void MergeFrom(Int64Message other) { | 4510 public void MergeFrom(Int64Message other) { |
4141 if (other == null) { | 4511 if (other == null) { |
4142 return; | 4512 return; |
4143 } | 4513 } |
4144 if (other.Data != 0L) { | 4514 if (other.Data != 0L) { |
4145 Data = other.Data; | 4515 Data = other.Data; |
4146 } | 4516 } |
4147 } | 4517 } |
4148 | 4518 |
| 4519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4149 public void MergeFrom(pb::CodedInputStream input) { | 4520 public void MergeFrom(pb::CodedInputStream input) { |
4150 uint tag; | 4521 uint tag; |
4151 while ((tag = input.ReadTag()) != 0) { | 4522 while ((tag = input.ReadTag()) != 0) { |
4152 switch(tag) { | 4523 switch(tag) { |
4153 default: | 4524 default: |
4154 input.SkipLastField(); | 4525 input.SkipLastField(); |
4155 break; | 4526 break; |
4156 case 8: { | 4527 case 8: { |
4157 Data = input.ReadInt64(); | 4528 Data = input.ReadInt64(); |
4158 break; | 4529 break; |
4159 } | 4530 } |
4160 } | 4531 } |
4161 } | 4532 } |
4162 } | 4533 } |
4163 | 4534 |
4164 } | 4535 } |
4165 | 4536 |
4166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
4167 public sealed partial class Uint64Message : pb::IMessage<Uint64Message> { | 4537 public sealed partial class Uint64Message : pb::IMessage<Uint64Message> { |
4168 private static readonly pb::MessageParser<Uint64Message> _parser = new pb::M
essageParser<Uint64Message>(() => new Uint64Message()); | 4538 private static readonly pb::MessageParser<Uint64Message> _parser = new pb::M
essageParser<Uint64Message>(() => new Uint64Message()); |
| 4539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4169 public static pb::MessageParser<Uint64Message> Parser { get { return _parser
; } } | 4540 public static pb::MessageParser<Uint64Message> Parser { get { return _parser
; } } |
4170 | 4541 |
| 4542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4171 public static pbr::MessageDescriptor Descriptor { | 4543 public static pbr::MessageDescriptor Descriptor { |
4172 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[20]; } | 4544 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[20]; } |
4173 } | 4545 } |
4174 | 4546 |
| 4547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4175 pbr::MessageDescriptor pb::IMessage.Descriptor { | 4548 pbr::MessageDescriptor pb::IMessage.Descriptor { |
4176 get { return Descriptor; } | 4549 get { return Descriptor; } |
4177 } | 4550 } |
4178 | 4551 |
| 4552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4179 public Uint64Message() { | 4553 public Uint64Message() { |
4180 OnConstruction(); | 4554 OnConstruction(); |
4181 } | 4555 } |
4182 | 4556 |
4183 partial void OnConstruction(); | 4557 partial void OnConstruction(); |
4184 | 4558 |
| 4559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4185 public Uint64Message(Uint64Message other) : this() { | 4560 public Uint64Message(Uint64Message other) : this() { |
4186 data_ = other.data_; | 4561 data_ = other.data_; |
4187 } | 4562 } |
4188 | 4563 |
| 4564 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4189 public Uint64Message Clone() { | 4565 public Uint64Message Clone() { |
4190 return new Uint64Message(this); | 4566 return new Uint64Message(this); |
4191 } | 4567 } |
4192 | 4568 |
4193 /// <summary>Field number for the "data" field.</summary> | 4569 /// <summary>Field number for the "data" field.</summary> |
4194 public const int DataFieldNumber = 1; | 4570 public const int DataFieldNumber = 1; |
4195 private ulong data_; | 4571 private ulong data_; |
| 4572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4196 public ulong Data { | 4573 public ulong Data { |
4197 get { return data_; } | 4574 get { return data_; } |
4198 set { | 4575 set { |
4199 data_ = value; | 4576 data_ = value; |
4200 } | 4577 } |
4201 } | 4578 } |
4202 | 4579 |
| 4580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4203 public override bool Equals(object other) { | 4581 public override bool Equals(object other) { |
4204 return Equals(other as Uint64Message); | 4582 return Equals(other as Uint64Message); |
4205 } | 4583 } |
4206 | 4584 |
| 4585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4207 public bool Equals(Uint64Message other) { | 4586 public bool Equals(Uint64Message other) { |
4208 if (ReferenceEquals(other, null)) { | 4587 if (ReferenceEquals(other, null)) { |
4209 return false; | 4588 return false; |
4210 } | 4589 } |
4211 if (ReferenceEquals(other, this)) { | 4590 if (ReferenceEquals(other, this)) { |
4212 return true; | 4591 return true; |
4213 } | 4592 } |
4214 if (Data != other.Data) return false; | 4593 if (Data != other.Data) return false; |
4215 return true; | 4594 return true; |
4216 } | 4595 } |
4217 | 4596 |
| 4597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4218 public override int GetHashCode() { | 4598 public override int GetHashCode() { |
4219 int hash = 1; | 4599 int hash = 1; |
4220 if (Data != 0UL) hash ^= Data.GetHashCode(); | 4600 if (Data != 0UL) hash ^= Data.GetHashCode(); |
4221 return hash; | 4601 return hash; |
4222 } | 4602 } |
4223 | 4603 |
| 4604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4224 public override string ToString() { | 4605 public override string ToString() { |
4225 return pb::JsonFormatter.ToDiagnosticString(this); | 4606 return pb::JsonFormatter.ToDiagnosticString(this); |
4226 } | 4607 } |
4227 | 4608 |
| 4609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4228 public void WriteTo(pb::CodedOutputStream output) { | 4610 public void WriteTo(pb::CodedOutputStream output) { |
4229 if (Data != 0UL) { | 4611 if (Data != 0UL) { |
4230 output.WriteRawTag(8); | 4612 output.WriteRawTag(8); |
4231 output.WriteUInt64(Data); | 4613 output.WriteUInt64(Data); |
4232 } | 4614 } |
4233 } | 4615 } |
4234 | 4616 |
| 4617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4235 public int CalculateSize() { | 4618 public int CalculateSize() { |
4236 int size = 0; | 4619 int size = 0; |
4237 if (Data != 0UL) { | 4620 if (Data != 0UL) { |
4238 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Data); | 4621 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Data); |
4239 } | 4622 } |
4240 return size; | 4623 return size; |
4241 } | 4624 } |
4242 | 4625 |
| 4626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4243 public void MergeFrom(Uint64Message other) { | 4627 public void MergeFrom(Uint64Message other) { |
4244 if (other == null) { | 4628 if (other == null) { |
4245 return; | 4629 return; |
4246 } | 4630 } |
4247 if (other.Data != 0UL) { | 4631 if (other.Data != 0UL) { |
4248 Data = other.Data; | 4632 Data = other.Data; |
4249 } | 4633 } |
4250 } | 4634 } |
4251 | 4635 |
| 4636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4252 public void MergeFrom(pb::CodedInputStream input) { | 4637 public void MergeFrom(pb::CodedInputStream input) { |
4253 uint tag; | 4638 uint tag; |
4254 while ((tag = input.ReadTag()) != 0) { | 4639 while ((tag = input.ReadTag()) != 0) { |
4255 switch(tag) { | 4640 switch(tag) { |
4256 default: | 4641 default: |
4257 input.SkipLastField(); | 4642 input.SkipLastField(); |
4258 break; | 4643 break; |
4259 case 8: { | 4644 case 8: { |
4260 Data = input.ReadUInt64(); | 4645 Data = input.ReadUInt64(); |
4261 break; | 4646 break; |
4262 } | 4647 } |
4263 } | 4648 } |
4264 } | 4649 } |
4265 } | 4650 } |
4266 | 4651 |
4267 } | 4652 } |
4268 | 4653 |
4269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
4270 public sealed partial class BoolMessage : pb::IMessage<BoolMessage> { | 4654 public sealed partial class BoolMessage : pb::IMessage<BoolMessage> { |
4271 private static readonly pb::MessageParser<BoolMessage> _parser = new pb::Mes
sageParser<BoolMessage>(() => new BoolMessage()); | 4655 private static readonly pb::MessageParser<BoolMessage> _parser = new pb::Mes
sageParser<BoolMessage>(() => new BoolMessage()); |
| 4656 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4272 public static pb::MessageParser<BoolMessage> Parser { get { return _parser;
} } | 4657 public static pb::MessageParser<BoolMessage> Parser { get { return _parser;
} } |
4273 | 4658 |
| 4659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4274 public static pbr::MessageDescriptor Descriptor { | 4660 public static pbr::MessageDescriptor Descriptor { |
4275 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[21]; } | 4661 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[21]; } |
4276 } | 4662 } |
4277 | 4663 |
| 4664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4278 pbr::MessageDescriptor pb::IMessage.Descriptor { | 4665 pbr::MessageDescriptor pb::IMessage.Descriptor { |
4279 get { return Descriptor; } | 4666 get { return Descriptor; } |
4280 } | 4667 } |
4281 | 4668 |
| 4669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4282 public BoolMessage() { | 4670 public BoolMessage() { |
4283 OnConstruction(); | 4671 OnConstruction(); |
4284 } | 4672 } |
4285 | 4673 |
4286 partial void OnConstruction(); | 4674 partial void OnConstruction(); |
4287 | 4675 |
| 4676 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4288 public BoolMessage(BoolMessage other) : this() { | 4677 public BoolMessage(BoolMessage other) : this() { |
4289 data_ = other.data_; | 4678 data_ = other.data_; |
4290 } | 4679 } |
4291 | 4680 |
| 4681 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4292 public BoolMessage Clone() { | 4682 public BoolMessage Clone() { |
4293 return new BoolMessage(this); | 4683 return new BoolMessage(this); |
4294 } | 4684 } |
4295 | 4685 |
4296 /// <summary>Field number for the "data" field.</summary> | 4686 /// <summary>Field number for the "data" field.</summary> |
4297 public const int DataFieldNumber = 1; | 4687 public const int DataFieldNumber = 1; |
4298 private bool data_; | 4688 private bool data_; |
| 4689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4299 public bool Data { | 4690 public bool Data { |
4300 get { return data_; } | 4691 get { return data_; } |
4301 set { | 4692 set { |
4302 data_ = value; | 4693 data_ = value; |
4303 } | 4694 } |
4304 } | 4695 } |
4305 | 4696 |
| 4697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4306 public override bool Equals(object other) { | 4698 public override bool Equals(object other) { |
4307 return Equals(other as BoolMessage); | 4699 return Equals(other as BoolMessage); |
4308 } | 4700 } |
4309 | 4701 |
| 4702 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4310 public bool Equals(BoolMessage other) { | 4703 public bool Equals(BoolMessage other) { |
4311 if (ReferenceEquals(other, null)) { | 4704 if (ReferenceEquals(other, null)) { |
4312 return false; | 4705 return false; |
4313 } | 4706 } |
4314 if (ReferenceEquals(other, this)) { | 4707 if (ReferenceEquals(other, this)) { |
4315 return true; | 4708 return true; |
4316 } | 4709 } |
4317 if (Data != other.Data) return false; | 4710 if (Data != other.Data) return false; |
4318 return true; | 4711 return true; |
4319 } | 4712 } |
4320 | 4713 |
| 4714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4321 public override int GetHashCode() { | 4715 public override int GetHashCode() { |
4322 int hash = 1; | 4716 int hash = 1; |
4323 if (Data != false) hash ^= Data.GetHashCode(); | 4717 if (Data != false) hash ^= Data.GetHashCode(); |
4324 return hash; | 4718 return hash; |
4325 } | 4719 } |
4326 | 4720 |
| 4721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4327 public override string ToString() { | 4722 public override string ToString() { |
4328 return pb::JsonFormatter.ToDiagnosticString(this); | 4723 return pb::JsonFormatter.ToDiagnosticString(this); |
4329 } | 4724 } |
4330 | 4725 |
| 4726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4331 public void WriteTo(pb::CodedOutputStream output) { | 4727 public void WriteTo(pb::CodedOutputStream output) { |
4332 if (Data != false) { | 4728 if (Data != false) { |
4333 output.WriteRawTag(8); | 4729 output.WriteRawTag(8); |
4334 output.WriteBool(Data); | 4730 output.WriteBool(Data); |
4335 } | 4731 } |
4336 } | 4732 } |
4337 | 4733 |
| 4734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4338 public int CalculateSize() { | 4735 public int CalculateSize() { |
4339 int size = 0; | 4736 int size = 0; |
4340 if (Data != false) { | 4737 if (Data != false) { |
4341 size += 1 + 1; | 4738 size += 1 + 1; |
4342 } | 4739 } |
4343 return size; | 4740 return size; |
4344 } | 4741 } |
4345 | 4742 |
| 4743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4346 public void MergeFrom(BoolMessage other) { | 4744 public void MergeFrom(BoolMessage other) { |
4347 if (other == null) { | 4745 if (other == null) { |
4348 return; | 4746 return; |
4349 } | 4747 } |
4350 if (other.Data != false) { | 4748 if (other.Data != false) { |
4351 Data = other.Data; | 4749 Data = other.Data; |
4352 } | 4750 } |
4353 } | 4751 } |
4354 | 4752 |
| 4753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4355 public void MergeFrom(pb::CodedInputStream input) { | 4754 public void MergeFrom(pb::CodedInputStream input) { |
4356 uint tag; | 4755 uint tag; |
4357 while ((tag = input.ReadTag()) != 0) { | 4756 while ((tag = input.ReadTag()) != 0) { |
4358 switch(tag) { | 4757 switch(tag) { |
4359 default: | 4758 default: |
4360 input.SkipLastField(); | 4759 input.SkipLastField(); |
4361 break; | 4760 break; |
4362 case 8: { | 4761 case 8: { |
4363 Data = input.ReadBool(); | 4762 Data = input.ReadBool(); |
4364 break; | 4763 break; |
4365 } | 4764 } |
4366 } | 4765 } |
4367 } | 4766 } |
4368 } | 4767 } |
4369 | 4768 |
4370 } | 4769 } |
4371 | 4770 |
4372 /// <summary> | 4771 /// <summary> |
4373 /// Test oneofs. | 4772 /// Test oneofs. |
4374 /// </summary> | 4773 /// </summary> |
4375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
4376 public sealed partial class TestOneof : pb::IMessage<TestOneof> { | 4774 public sealed partial class TestOneof : pb::IMessage<TestOneof> { |
4377 private static readonly pb::MessageParser<TestOneof> _parser = new pb::Messa
geParser<TestOneof>(() => new TestOneof()); | 4775 private static readonly pb::MessageParser<TestOneof> _parser = new pb::Messa
geParser<TestOneof>(() => new TestOneof()); |
| 4776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4378 public static pb::MessageParser<TestOneof> Parser { get { return _parser; }
} | 4777 public static pb::MessageParser<TestOneof> Parser { get { return _parser; }
} |
4379 | 4778 |
| 4779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4380 public static pbr::MessageDescriptor Descriptor { | 4780 public static pbr::MessageDescriptor Descriptor { |
4381 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[22]; } | 4781 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[22]; } |
4382 } | 4782 } |
4383 | 4783 |
| 4784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4384 pbr::MessageDescriptor pb::IMessage.Descriptor { | 4785 pbr::MessageDescriptor pb::IMessage.Descriptor { |
4385 get { return Descriptor; } | 4786 get { return Descriptor; } |
4386 } | 4787 } |
4387 | 4788 |
| 4789 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4388 public TestOneof() { | 4790 public TestOneof() { |
4389 OnConstruction(); | 4791 OnConstruction(); |
4390 } | 4792 } |
4391 | 4793 |
4392 partial void OnConstruction(); | 4794 partial void OnConstruction(); |
4393 | 4795 |
| 4796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4394 public TestOneof(TestOneof other) : this() { | 4797 public TestOneof(TestOneof other) : this() { |
4395 switch (other.FooCase) { | 4798 switch (other.FooCase) { |
4396 case FooOneofCase.FooInt: | 4799 case FooOneofCase.FooInt: |
4397 FooInt = other.FooInt; | 4800 FooInt = other.FooInt; |
4398 break; | 4801 break; |
4399 case FooOneofCase.FooString: | 4802 case FooOneofCase.FooString: |
4400 FooString = other.FooString; | 4803 FooString = other.FooString; |
4401 break; | 4804 break; |
4402 case FooOneofCase.FooMessage: | 4805 case FooOneofCase.FooMessage: |
4403 FooMessage = other.FooMessage.Clone(); | 4806 FooMessage = other.FooMessage.Clone(); |
4404 break; | 4807 break; |
4405 } | 4808 } |
4406 | 4809 |
4407 } | 4810 } |
4408 | 4811 |
| 4812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4409 public TestOneof Clone() { | 4813 public TestOneof Clone() { |
4410 return new TestOneof(this); | 4814 return new TestOneof(this); |
4411 } | 4815 } |
4412 | 4816 |
4413 /// <summary>Field number for the "foo_int" field.</summary> | 4817 /// <summary>Field number for the "foo_int" field.</summary> |
4414 public const int FooIntFieldNumber = 1; | 4818 public const int FooIntFieldNumber = 1; |
| 4819 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4415 public int FooInt { | 4820 public int FooInt { |
4416 get { return fooCase_ == FooOneofCase.FooInt ? (int) foo_ : 0; } | 4821 get { return fooCase_ == FooOneofCase.FooInt ? (int) foo_ : 0; } |
4417 set { | 4822 set { |
4418 foo_ = value; | 4823 foo_ = value; |
4419 fooCase_ = FooOneofCase.FooInt; | 4824 fooCase_ = FooOneofCase.FooInt; |
4420 } | 4825 } |
4421 } | 4826 } |
4422 | 4827 |
4423 /// <summary>Field number for the "foo_string" field.</summary> | 4828 /// <summary>Field number for the "foo_string" field.</summary> |
4424 public const int FooStringFieldNumber = 2; | 4829 public const int FooStringFieldNumber = 2; |
| 4830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4425 public string FooString { | 4831 public string FooString { |
4426 get { return fooCase_ == FooOneofCase.FooString ? (string) foo_ : ""; } | 4832 get { return fooCase_ == FooOneofCase.FooString ? (string) foo_ : ""; } |
4427 set { | 4833 set { |
4428 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 4834 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
4429 fooCase_ = FooOneofCase.FooString; | 4835 fooCase_ = FooOneofCase.FooString; |
4430 } | 4836 } |
4431 } | 4837 } |
4432 | 4838 |
4433 /// <summary>Field number for the "foo_message" field.</summary> | 4839 /// <summary>Field number for the "foo_message" field.</summary> |
4434 public const int FooMessageFieldNumber = 3; | 4840 public const int FooMessageFieldNumber = 3; |
| 4841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4435 public global::Google.Protobuf.TestProtos.TestAllTypes FooMessage { | 4842 public global::Google.Protobuf.TestProtos.TestAllTypes FooMessage { |
4436 get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobu
f.TestProtos.TestAllTypes) foo_ : null; } | 4843 get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobu
f.TestProtos.TestAllTypes) foo_ : null; } |
4437 set { | 4844 set { |
4438 foo_ = value; | 4845 foo_ = value; |
4439 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage; | 4846 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage; |
4440 } | 4847 } |
4441 } | 4848 } |
4442 | 4849 |
4443 private object foo_; | 4850 private object foo_; |
4444 /// <summary>Enum of possible cases for the "foo" oneof.</summary> | 4851 /// <summary>Enum of possible cases for the "foo" oneof.</summary> |
4445 public enum FooOneofCase { | 4852 public enum FooOneofCase { |
4446 None = 0, | 4853 None = 0, |
4447 FooInt = 1, | 4854 FooInt = 1, |
4448 FooString = 2, | 4855 FooString = 2, |
4449 FooMessage = 3, | 4856 FooMessage = 3, |
4450 } | 4857 } |
4451 private FooOneofCase fooCase_ = FooOneofCase.None; | 4858 private FooOneofCase fooCase_ = FooOneofCase.None; |
| 4859 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4452 public FooOneofCase FooCase { | 4860 public FooOneofCase FooCase { |
4453 get { return fooCase_; } | 4861 get { return fooCase_; } |
4454 } | 4862 } |
4455 | 4863 |
| 4864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4456 public void ClearFoo() { | 4865 public void ClearFoo() { |
4457 fooCase_ = FooOneofCase.None; | 4866 fooCase_ = FooOneofCase.None; |
4458 foo_ = null; | 4867 foo_ = null; |
4459 } | 4868 } |
4460 | 4869 |
| 4870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4461 public override bool Equals(object other) { | 4871 public override bool Equals(object other) { |
4462 return Equals(other as TestOneof); | 4872 return Equals(other as TestOneof); |
4463 } | 4873 } |
4464 | 4874 |
| 4875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4465 public bool Equals(TestOneof other) { | 4876 public bool Equals(TestOneof other) { |
4466 if (ReferenceEquals(other, null)) { | 4877 if (ReferenceEquals(other, null)) { |
4467 return false; | 4878 return false; |
4468 } | 4879 } |
4469 if (ReferenceEquals(other, this)) { | 4880 if (ReferenceEquals(other, this)) { |
4470 return true; | 4881 return true; |
4471 } | 4882 } |
4472 if (FooInt != other.FooInt) return false; | 4883 if (FooInt != other.FooInt) return false; |
4473 if (FooString != other.FooString) return false; | 4884 if (FooString != other.FooString) return false; |
4474 if (!object.Equals(FooMessage, other.FooMessage)) return false; | 4885 if (!object.Equals(FooMessage, other.FooMessage)) return false; |
4475 if (FooCase != other.FooCase) return false; | 4886 if (FooCase != other.FooCase) return false; |
4476 return true; | 4887 return true; |
4477 } | 4888 } |
4478 | 4889 |
| 4890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4479 public override int GetHashCode() { | 4891 public override int GetHashCode() { |
4480 int hash = 1; | 4892 int hash = 1; |
4481 if (fooCase_ == FooOneofCase.FooInt) hash ^= FooInt.GetHashCode(); | 4893 if (fooCase_ == FooOneofCase.FooInt) hash ^= FooInt.GetHashCode(); |
4482 if (fooCase_ == FooOneofCase.FooString) hash ^= FooString.GetHashCode(); | 4894 if (fooCase_ == FooOneofCase.FooString) hash ^= FooString.GetHashCode(); |
4483 if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode(); | 4895 if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode(); |
4484 hash ^= (int) fooCase_; | 4896 hash ^= (int) fooCase_; |
4485 return hash; | 4897 return hash; |
4486 } | 4898 } |
4487 | 4899 |
| 4900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4488 public override string ToString() { | 4901 public override string ToString() { |
4489 return pb::JsonFormatter.ToDiagnosticString(this); | 4902 return pb::JsonFormatter.ToDiagnosticString(this); |
4490 } | 4903 } |
4491 | 4904 |
| 4905 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4492 public void WriteTo(pb::CodedOutputStream output) { | 4906 public void WriteTo(pb::CodedOutputStream output) { |
4493 if (fooCase_ == FooOneofCase.FooInt) { | 4907 if (fooCase_ == FooOneofCase.FooInt) { |
4494 output.WriteRawTag(8); | 4908 output.WriteRawTag(8); |
4495 output.WriteInt32(FooInt); | 4909 output.WriteInt32(FooInt); |
4496 } | 4910 } |
4497 if (fooCase_ == FooOneofCase.FooString) { | 4911 if (fooCase_ == FooOneofCase.FooString) { |
4498 output.WriteRawTag(18); | 4912 output.WriteRawTag(18); |
4499 output.WriteString(FooString); | 4913 output.WriteString(FooString); |
4500 } | 4914 } |
4501 if (fooCase_ == FooOneofCase.FooMessage) { | 4915 if (fooCase_ == FooOneofCase.FooMessage) { |
4502 output.WriteRawTag(26); | 4916 output.WriteRawTag(26); |
4503 output.WriteMessage(FooMessage); | 4917 output.WriteMessage(FooMessage); |
4504 } | 4918 } |
4505 } | 4919 } |
4506 | 4920 |
| 4921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4507 public int CalculateSize() { | 4922 public int CalculateSize() { |
4508 int size = 0; | 4923 int size = 0; |
4509 if (fooCase_ == FooOneofCase.FooInt) { | 4924 if (fooCase_ == FooOneofCase.FooInt) { |
4510 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt); | 4925 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt); |
4511 } | 4926 } |
4512 if (fooCase_ == FooOneofCase.FooString) { | 4927 if (fooCase_ == FooOneofCase.FooString) { |
4513 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString); | 4928 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString); |
4514 } | 4929 } |
4515 if (fooCase_ == FooOneofCase.FooMessage) { | 4930 if (fooCase_ == FooOneofCase.FooMessage) { |
4516 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage); | 4931 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage); |
4517 } | 4932 } |
4518 return size; | 4933 return size; |
4519 } | 4934 } |
4520 | 4935 |
| 4936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4521 public void MergeFrom(TestOneof other) { | 4937 public void MergeFrom(TestOneof other) { |
4522 if (other == null) { | 4938 if (other == null) { |
4523 return; | 4939 return; |
4524 } | 4940 } |
4525 switch (other.FooCase) { | 4941 switch (other.FooCase) { |
4526 case FooOneofCase.FooInt: | 4942 case FooOneofCase.FooInt: |
4527 FooInt = other.FooInt; | 4943 FooInt = other.FooInt; |
4528 break; | 4944 break; |
4529 case FooOneofCase.FooString: | 4945 case FooOneofCase.FooString: |
4530 FooString = other.FooString; | 4946 FooString = other.FooString; |
4531 break; | 4947 break; |
4532 case FooOneofCase.FooMessage: | 4948 case FooOneofCase.FooMessage: |
4533 FooMessage = other.FooMessage; | 4949 FooMessage = other.FooMessage; |
4534 break; | 4950 break; |
4535 } | 4951 } |
4536 | 4952 |
4537 } | 4953 } |
4538 | 4954 |
| 4955 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4539 public void MergeFrom(pb::CodedInputStream input) { | 4956 public void MergeFrom(pb::CodedInputStream input) { |
4540 uint tag; | 4957 uint tag; |
4541 while ((tag = input.ReadTag()) != 0) { | 4958 while ((tag = input.ReadTag()) != 0) { |
4542 switch(tag) { | 4959 switch(tag) { |
4543 default: | 4960 default: |
4544 input.SkipLastField(); | 4961 input.SkipLastField(); |
4545 break; | 4962 break; |
4546 case 8: { | 4963 case 8: { |
4547 FooInt = input.ReadInt32(); | 4964 FooInt = input.ReadInt32(); |
4548 break; | 4965 break; |
(...skipping 10 matching lines...) Expand all Loading... |
4559 input.ReadMessage(subBuilder); | 4976 input.ReadMessage(subBuilder); |
4560 FooMessage = subBuilder; | 4977 FooMessage = subBuilder; |
4561 break; | 4978 break; |
4562 } | 4979 } |
4563 } | 4980 } |
4564 } | 4981 } |
4565 } | 4982 } |
4566 | 4983 |
4567 } | 4984 } |
4568 | 4985 |
4569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
4570 public sealed partial class TestPackedTypes : pb::IMessage<TestPackedTypes> { | 4986 public sealed partial class TestPackedTypes : pb::IMessage<TestPackedTypes> { |
4571 private static readonly pb::MessageParser<TestPackedTypes> _parser = new pb:
:MessageParser<TestPackedTypes>(() => new TestPackedTypes()); | 4987 private static readonly pb::MessageParser<TestPackedTypes> _parser = new pb:
:MessageParser<TestPackedTypes>(() => new TestPackedTypes()); |
| 4988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4572 public static pb::MessageParser<TestPackedTypes> Parser { get { return _pars
er; } } | 4989 public static pb::MessageParser<TestPackedTypes> Parser { get { return _pars
er; } } |
4573 | 4990 |
| 4991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4574 public static pbr::MessageDescriptor Descriptor { | 4992 public static pbr::MessageDescriptor Descriptor { |
4575 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[23]; } | 4993 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[23]; } |
4576 } | 4994 } |
4577 | 4995 |
| 4996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4578 pbr::MessageDescriptor pb::IMessage.Descriptor { | 4997 pbr::MessageDescriptor pb::IMessage.Descriptor { |
4579 get { return Descriptor; } | 4998 get { return Descriptor; } |
4580 } | 4999 } |
4581 | 5000 |
| 5001 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4582 public TestPackedTypes() { | 5002 public TestPackedTypes() { |
4583 OnConstruction(); | 5003 OnConstruction(); |
4584 } | 5004 } |
4585 | 5005 |
4586 partial void OnConstruction(); | 5006 partial void OnConstruction(); |
4587 | 5007 |
| 5008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4588 public TestPackedTypes(TestPackedTypes other) : this() { | 5009 public TestPackedTypes(TestPackedTypes other) : this() { |
4589 packedInt32_ = other.packedInt32_.Clone(); | 5010 packedInt32_ = other.packedInt32_.Clone(); |
4590 packedInt64_ = other.packedInt64_.Clone(); | 5011 packedInt64_ = other.packedInt64_.Clone(); |
4591 packedUint32_ = other.packedUint32_.Clone(); | 5012 packedUint32_ = other.packedUint32_.Clone(); |
4592 packedUint64_ = other.packedUint64_.Clone(); | 5013 packedUint64_ = other.packedUint64_.Clone(); |
4593 packedSint32_ = other.packedSint32_.Clone(); | 5014 packedSint32_ = other.packedSint32_.Clone(); |
4594 packedSint64_ = other.packedSint64_.Clone(); | 5015 packedSint64_ = other.packedSint64_.Clone(); |
4595 packedFixed32_ = other.packedFixed32_.Clone(); | 5016 packedFixed32_ = other.packedFixed32_.Clone(); |
4596 packedFixed64_ = other.packedFixed64_.Clone(); | 5017 packedFixed64_ = other.packedFixed64_.Clone(); |
4597 packedSfixed32_ = other.packedSfixed32_.Clone(); | 5018 packedSfixed32_ = other.packedSfixed32_.Clone(); |
4598 packedSfixed64_ = other.packedSfixed64_.Clone(); | 5019 packedSfixed64_ = other.packedSfixed64_.Clone(); |
4599 packedFloat_ = other.packedFloat_.Clone(); | 5020 packedFloat_ = other.packedFloat_.Clone(); |
4600 packedDouble_ = other.packedDouble_.Clone(); | 5021 packedDouble_ = other.packedDouble_.Clone(); |
4601 packedBool_ = other.packedBool_.Clone(); | 5022 packedBool_ = other.packedBool_.Clone(); |
4602 packedEnum_ = other.packedEnum_.Clone(); | 5023 packedEnum_ = other.packedEnum_.Clone(); |
4603 } | 5024 } |
4604 | 5025 |
| 5026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4605 public TestPackedTypes Clone() { | 5027 public TestPackedTypes Clone() { |
4606 return new TestPackedTypes(this); | 5028 return new TestPackedTypes(this); |
4607 } | 5029 } |
4608 | 5030 |
4609 /// <summary>Field number for the "packed_int32" field.</summary> | 5031 /// <summary>Field number for the "packed_int32" field.</summary> |
4610 public const int PackedInt32FieldNumber = 90; | 5032 public const int PackedInt32FieldNumber = 90; |
4611 private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec | 5033 private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec |
4612 = pb::FieldCodec.ForInt32(722); | 5034 = pb::FieldCodec.ForInt32(722); |
4613 private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedFie
ld<int>(); | 5035 private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedFie
ld<int>(); |
| 5036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4614 public pbc::RepeatedField<int> PackedInt32 { | 5037 public pbc::RepeatedField<int> PackedInt32 { |
4615 get { return packedInt32_; } | 5038 get { return packedInt32_; } |
4616 } | 5039 } |
4617 | 5040 |
4618 /// <summary>Field number for the "packed_int64" field.</summary> | 5041 /// <summary>Field number for the "packed_int64" field.</summary> |
4619 public const int PackedInt64FieldNumber = 91; | 5042 public const int PackedInt64FieldNumber = 91; |
4620 private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec | 5043 private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec |
4621 = pb::FieldCodec.ForInt64(730); | 5044 = pb::FieldCodec.ForInt64(730); |
4622 private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedFi
eld<long>(); | 5045 private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedFi
eld<long>(); |
| 5046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4623 public pbc::RepeatedField<long> PackedInt64 { | 5047 public pbc::RepeatedField<long> PackedInt64 { |
4624 get { return packedInt64_; } | 5048 get { return packedInt64_; } |
4625 } | 5049 } |
4626 | 5050 |
4627 /// <summary>Field number for the "packed_uint32" field.</summary> | 5051 /// <summary>Field number for the "packed_uint32" field.</summary> |
4628 public const int PackedUint32FieldNumber = 92; | 5052 public const int PackedUint32FieldNumber = 92; |
4629 private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec | 5053 private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec |
4630 = pb::FieldCodec.ForUInt32(738); | 5054 = pb::FieldCodec.ForUInt32(738); |
4631 private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedF
ield<uint>(); | 5055 private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedF
ield<uint>(); |
| 5056 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4632 public pbc::RepeatedField<uint> PackedUint32 { | 5057 public pbc::RepeatedField<uint> PackedUint32 { |
4633 get { return packedUint32_; } | 5058 get { return packedUint32_; } |
4634 } | 5059 } |
4635 | 5060 |
4636 /// <summary>Field number for the "packed_uint64" field.</summary> | 5061 /// <summary>Field number for the "packed_uint64" field.</summary> |
4637 public const int PackedUint64FieldNumber = 93; | 5062 public const int PackedUint64FieldNumber = 93; |
4638 private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec | 5063 private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec |
4639 = pb::FieldCodec.ForUInt64(746); | 5064 = pb::FieldCodec.ForUInt64(746); |
4640 private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::Repeated
Field<ulong>(); | 5065 private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::Repeated
Field<ulong>(); |
| 5066 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4641 public pbc::RepeatedField<ulong> PackedUint64 { | 5067 public pbc::RepeatedField<ulong> PackedUint64 { |
4642 get { return packedUint64_; } | 5068 get { return packedUint64_; } |
4643 } | 5069 } |
4644 | 5070 |
4645 /// <summary>Field number for the "packed_sint32" field.</summary> | 5071 /// <summary>Field number for the "packed_sint32" field.</summary> |
4646 public const int PackedSint32FieldNumber = 94; | 5072 public const int PackedSint32FieldNumber = 94; |
4647 private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec | 5073 private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec |
4648 = pb::FieldCodec.ForSInt32(754); | 5074 = pb::FieldCodec.ForSInt32(754); |
4649 private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedFi
eld<int>(); | 5075 private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedFi
eld<int>(); |
| 5076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4650 public pbc::RepeatedField<int> PackedSint32 { | 5077 public pbc::RepeatedField<int> PackedSint32 { |
4651 get { return packedSint32_; } | 5078 get { return packedSint32_; } |
4652 } | 5079 } |
4653 | 5080 |
4654 /// <summary>Field number for the "packed_sint64" field.</summary> | 5081 /// <summary>Field number for the "packed_sint64" field.</summary> |
4655 public const int PackedSint64FieldNumber = 95; | 5082 public const int PackedSint64FieldNumber = 95; |
4656 private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec | 5083 private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec |
4657 = pb::FieldCodec.ForSInt64(762); | 5084 = pb::FieldCodec.ForSInt64(762); |
4658 private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedF
ield<long>(); | 5085 private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedF
ield<long>(); |
| 5086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4659 public pbc::RepeatedField<long> PackedSint64 { | 5087 public pbc::RepeatedField<long> PackedSint64 { |
4660 get { return packedSint64_; } | 5088 get { return packedSint64_; } |
4661 } | 5089 } |
4662 | 5090 |
4663 /// <summary>Field number for the "packed_fixed32" field.</summary> | 5091 /// <summary>Field number for the "packed_fixed32" field.</summary> |
4664 public const int PackedFixed32FieldNumber = 96; | 5092 public const int PackedFixed32FieldNumber = 96; |
4665 private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec | 5093 private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec |
4666 = pb::FieldCodec.ForFixed32(770); | 5094 = pb::FieldCodec.ForFixed32(770); |
4667 private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::Repeated
Field<uint>(); | 5095 private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::Repeated
Field<uint>(); |
| 5096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4668 public pbc::RepeatedField<uint> PackedFixed32 { | 5097 public pbc::RepeatedField<uint> PackedFixed32 { |
4669 get { return packedFixed32_; } | 5098 get { return packedFixed32_; } |
4670 } | 5099 } |
4671 | 5100 |
4672 /// <summary>Field number for the "packed_fixed64" field.</summary> | 5101 /// <summary>Field number for the "packed_fixed64" field.</summary> |
4673 public const int PackedFixed64FieldNumber = 97; | 5102 public const int PackedFixed64FieldNumber = 97; |
4674 private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec | 5103 private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec |
4675 = pb::FieldCodec.ForFixed64(778); | 5104 = pb::FieldCodec.ForFixed64(778); |
4676 private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::Repeate
dField<ulong>(); | 5105 private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::Repeate
dField<ulong>(); |
| 5106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4677 public pbc::RepeatedField<ulong> PackedFixed64 { | 5107 public pbc::RepeatedField<ulong> PackedFixed64 { |
4678 get { return packedFixed64_; } | 5108 get { return packedFixed64_; } |
4679 } | 5109 } |
4680 | 5110 |
4681 /// <summary>Field number for the "packed_sfixed32" field.</summary> | 5111 /// <summary>Field number for the "packed_sfixed32" field.</summary> |
4682 public const int PackedSfixed32FieldNumber = 98; | 5112 public const int PackedSfixed32FieldNumber = 98; |
4683 private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec | 5113 private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec |
4684 = pb::FieldCodec.ForSFixed32(786); | 5114 = pb::FieldCodec.ForSFixed32(786); |
4685 private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::Repeated
Field<int>(); | 5115 private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::Repeated
Field<int>(); |
| 5116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4686 public pbc::RepeatedField<int> PackedSfixed32 { | 5117 public pbc::RepeatedField<int> PackedSfixed32 { |
4687 get { return packedSfixed32_; } | 5118 get { return packedSfixed32_; } |
4688 } | 5119 } |
4689 | 5120 |
4690 /// <summary>Field number for the "packed_sfixed64" field.</summary> | 5121 /// <summary>Field number for the "packed_sfixed64" field.</summary> |
4691 public const int PackedSfixed64FieldNumber = 99; | 5122 public const int PackedSfixed64FieldNumber = 99; |
4692 private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec | 5123 private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec |
4693 = pb::FieldCodec.ForSFixed64(794); | 5124 = pb::FieldCodec.ForSFixed64(794); |
4694 private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::Repeate
dField<long>(); | 5125 private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::Repeate
dField<long>(); |
| 5126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4695 public pbc::RepeatedField<long> PackedSfixed64 { | 5127 public pbc::RepeatedField<long> PackedSfixed64 { |
4696 get { return packedSfixed64_; } | 5128 get { return packedSfixed64_; } |
4697 } | 5129 } |
4698 | 5130 |
4699 /// <summary>Field number for the "packed_float" field.</summary> | 5131 /// <summary>Field number for the "packed_float" field.</summary> |
4700 public const int PackedFloatFieldNumber = 100; | 5132 public const int PackedFloatFieldNumber = 100; |
4701 private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec | 5133 private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec |
4702 = pb::FieldCodec.ForFloat(802); | 5134 = pb::FieldCodec.ForFloat(802); |
4703 private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedF
ield<float>(); | 5135 private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedF
ield<float>(); |
| 5136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4704 public pbc::RepeatedField<float> PackedFloat { | 5137 public pbc::RepeatedField<float> PackedFloat { |
4705 get { return packedFloat_; } | 5138 get { return packedFloat_; } |
4706 } | 5139 } |
4707 | 5140 |
4708 /// <summary>Field number for the "packed_double" field.</summary> | 5141 /// <summary>Field number for the "packed_double" field.</summary> |
4709 public const int PackedDoubleFieldNumber = 101; | 5142 public const int PackedDoubleFieldNumber = 101; |
4710 private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec | 5143 private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec |
4711 = pb::FieldCodec.ForDouble(810); | 5144 = pb::FieldCodec.ForDouble(810); |
4712 private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::Repeate
dField<double>(); | 5145 private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::Repeate
dField<double>(); |
| 5146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4713 public pbc::RepeatedField<double> PackedDouble { | 5147 public pbc::RepeatedField<double> PackedDouble { |
4714 get { return packedDouble_; } | 5148 get { return packedDouble_; } |
4715 } | 5149 } |
4716 | 5150 |
4717 /// <summary>Field number for the "packed_bool" field.</summary> | 5151 /// <summary>Field number for the "packed_bool" field.</summary> |
4718 public const int PackedBoolFieldNumber = 102; | 5152 public const int PackedBoolFieldNumber = 102; |
4719 private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec | 5153 private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec |
4720 = pb::FieldCodec.ForBool(818); | 5154 = pb::FieldCodec.ForBool(818); |
4721 private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedFie
ld<bool>(); | 5155 private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedFie
ld<bool>(); |
| 5156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4722 public pbc::RepeatedField<bool> PackedBool { | 5157 public pbc::RepeatedField<bool> PackedBool { |
4723 get { return packedBool_; } | 5158 get { return packedBool_; } |
4724 } | 5159 } |
4725 | 5160 |
4726 /// <summary>Field number for the "packed_enum" field.</summary> | 5161 /// <summary>Field number for the "packed_enum" field.</summary> |
4727 public const int PackedEnumFieldNumber = 103; | 5162 public const int PackedEnumFieldNumber = 103; |
4728 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Fo
reignEnum> _repeated_packedEnum_codec | 5163 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Fo
reignEnum> _repeated_packedEnum_codec |
4729 = pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobu
f.TestProtos.ForeignEnum) x); | 5164 = pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobu
f.TestProtos.ForeignEnum) x); |
4730 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Forei
gnEnum> packedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.
ForeignEnum>(); | 5165 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Forei
gnEnum> packedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.
ForeignEnum>(); |
| 5166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4731 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> Pa
ckedEnum { | 5167 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> Pa
ckedEnum { |
4732 get { return packedEnum_; } | 5168 get { return packedEnum_; } |
4733 } | 5169 } |
4734 | 5170 |
| 5171 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4735 public override bool Equals(object other) { | 5172 public override bool Equals(object other) { |
4736 return Equals(other as TestPackedTypes); | 5173 return Equals(other as TestPackedTypes); |
4737 } | 5174 } |
4738 | 5175 |
| 5176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4739 public bool Equals(TestPackedTypes other) { | 5177 public bool Equals(TestPackedTypes other) { |
4740 if (ReferenceEquals(other, null)) { | 5178 if (ReferenceEquals(other, null)) { |
4741 return false; | 5179 return false; |
4742 } | 5180 } |
4743 if (ReferenceEquals(other, this)) { | 5181 if (ReferenceEquals(other, this)) { |
4744 return true; | 5182 return true; |
4745 } | 5183 } |
4746 if(!packedInt32_.Equals(other.packedInt32_)) return false; | 5184 if(!packedInt32_.Equals(other.packedInt32_)) return false; |
4747 if(!packedInt64_.Equals(other.packedInt64_)) return false; | 5185 if(!packedInt64_.Equals(other.packedInt64_)) return false; |
4748 if(!packedUint32_.Equals(other.packedUint32_)) return false; | 5186 if(!packedUint32_.Equals(other.packedUint32_)) return false; |
4749 if(!packedUint64_.Equals(other.packedUint64_)) return false; | 5187 if(!packedUint64_.Equals(other.packedUint64_)) return false; |
4750 if(!packedSint32_.Equals(other.packedSint32_)) return false; | 5188 if(!packedSint32_.Equals(other.packedSint32_)) return false; |
4751 if(!packedSint64_.Equals(other.packedSint64_)) return false; | 5189 if(!packedSint64_.Equals(other.packedSint64_)) return false; |
4752 if(!packedFixed32_.Equals(other.packedFixed32_)) return false; | 5190 if(!packedFixed32_.Equals(other.packedFixed32_)) return false; |
4753 if(!packedFixed64_.Equals(other.packedFixed64_)) return false; | 5191 if(!packedFixed64_.Equals(other.packedFixed64_)) return false; |
4754 if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false; | 5192 if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false; |
4755 if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false; | 5193 if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false; |
4756 if(!packedFloat_.Equals(other.packedFloat_)) return false; | 5194 if(!packedFloat_.Equals(other.packedFloat_)) return false; |
4757 if(!packedDouble_.Equals(other.packedDouble_)) return false; | 5195 if(!packedDouble_.Equals(other.packedDouble_)) return false; |
4758 if(!packedBool_.Equals(other.packedBool_)) return false; | 5196 if(!packedBool_.Equals(other.packedBool_)) return false; |
4759 if(!packedEnum_.Equals(other.packedEnum_)) return false; | 5197 if(!packedEnum_.Equals(other.packedEnum_)) return false; |
4760 return true; | 5198 return true; |
4761 } | 5199 } |
4762 | 5200 |
| 5201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4763 public override int GetHashCode() { | 5202 public override int GetHashCode() { |
4764 int hash = 1; | 5203 int hash = 1; |
4765 hash ^= packedInt32_.GetHashCode(); | 5204 hash ^= packedInt32_.GetHashCode(); |
4766 hash ^= packedInt64_.GetHashCode(); | 5205 hash ^= packedInt64_.GetHashCode(); |
4767 hash ^= packedUint32_.GetHashCode(); | 5206 hash ^= packedUint32_.GetHashCode(); |
4768 hash ^= packedUint64_.GetHashCode(); | 5207 hash ^= packedUint64_.GetHashCode(); |
4769 hash ^= packedSint32_.GetHashCode(); | 5208 hash ^= packedSint32_.GetHashCode(); |
4770 hash ^= packedSint64_.GetHashCode(); | 5209 hash ^= packedSint64_.GetHashCode(); |
4771 hash ^= packedFixed32_.GetHashCode(); | 5210 hash ^= packedFixed32_.GetHashCode(); |
4772 hash ^= packedFixed64_.GetHashCode(); | 5211 hash ^= packedFixed64_.GetHashCode(); |
4773 hash ^= packedSfixed32_.GetHashCode(); | 5212 hash ^= packedSfixed32_.GetHashCode(); |
4774 hash ^= packedSfixed64_.GetHashCode(); | 5213 hash ^= packedSfixed64_.GetHashCode(); |
4775 hash ^= packedFloat_.GetHashCode(); | 5214 hash ^= packedFloat_.GetHashCode(); |
4776 hash ^= packedDouble_.GetHashCode(); | 5215 hash ^= packedDouble_.GetHashCode(); |
4777 hash ^= packedBool_.GetHashCode(); | 5216 hash ^= packedBool_.GetHashCode(); |
4778 hash ^= packedEnum_.GetHashCode(); | 5217 hash ^= packedEnum_.GetHashCode(); |
4779 return hash; | 5218 return hash; |
4780 } | 5219 } |
4781 | 5220 |
| 5221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4782 public override string ToString() { | 5222 public override string ToString() { |
4783 return pb::JsonFormatter.ToDiagnosticString(this); | 5223 return pb::JsonFormatter.ToDiagnosticString(this); |
4784 } | 5224 } |
4785 | 5225 |
| 5226 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4786 public void WriteTo(pb::CodedOutputStream output) { | 5227 public void WriteTo(pb::CodedOutputStream output) { |
4787 packedInt32_.WriteTo(output, _repeated_packedInt32_codec); | 5228 packedInt32_.WriteTo(output, _repeated_packedInt32_codec); |
4788 packedInt64_.WriteTo(output, _repeated_packedInt64_codec); | 5229 packedInt64_.WriteTo(output, _repeated_packedInt64_codec); |
4789 packedUint32_.WriteTo(output, _repeated_packedUint32_codec); | 5230 packedUint32_.WriteTo(output, _repeated_packedUint32_codec); |
4790 packedUint64_.WriteTo(output, _repeated_packedUint64_codec); | 5231 packedUint64_.WriteTo(output, _repeated_packedUint64_codec); |
4791 packedSint32_.WriteTo(output, _repeated_packedSint32_codec); | 5232 packedSint32_.WriteTo(output, _repeated_packedSint32_codec); |
4792 packedSint64_.WriteTo(output, _repeated_packedSint64_codec); | 5233 packedSint64_.WriteTo(output, _repeated_packedSint64_codec); |
4793 packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec); | 5234 packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec); |
4794 packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec); | 5235 packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec); |
4795 packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec); | 5236 packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec); |
4796 packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec); | 5237 packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec); |
4797 packedFloat_.WriteTo(output, _repeated_packedFloat_codec); | 5238 packedFloat_.WriteTo(output, _repeated_packedFloat_codec); |
4798 packedDouble_.WriteTo(output, _repeated_packedDouble_codec); | 5239 packedDouble_.WriteTo(output, _repeated_packedDouble_codec); |
4799 packedBool_.WriteTo(output, _repeated_packedBool_codec); | 5240 packedBool_.WriteTo(output, _repeated_packedBool_codec); |
4800 packedEnum_.WriteTo(output, _repeated_packedEnum_codec); | 5241 packedEnum_.WriteTo(output, _repeated_packedEnum_codec); |
4801 } | 5242 } |
4802 | 5243 |
| 5244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4803 public int CalculateSize() { | 5245 public int CalculateSize() { |
4804 int size = 0; | 5246 int size = 0; |
4805 size += packedInt32_.CalculateSize(_repeated_packedInt32_codec); | 5247 size += packedInt32_.CalculateSize(_repeated_packedInt32_codec); |
4806 size += packedInt64_.CalculateSize(_repeated_packedInt64_codec); | 5248 size += packedInt64_.CalculateSize(_repeated_packedInt64_codec); |
4807 size += packedUint32_.CalculateSize(_repeated_packedUint32_codec); | 5249 size += packedUint32_.CalculateSize(_repeated_packedUint32_codec); |
4808 size += packedUint64_.CalculateSize(_repeated_packedUint64_codec); | 5250 size += packedUint64_.CalculateSize(_repeated_packedUint64_codec); |
4809 size += packedSint32_.CalculateSize(_repeated_packedSint32_codec); | 5251 size += packedSint32_.CalculateSize(_repeated_packedSint32_codec); |
4810 size += packedSint64_.CalculateSize(_repeated_packedSint64_codec); | 5252 size += packedSint64_.CalculateSize(_repeated_packedSint64_codec); |
4811 size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec); | 5253 size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec); |
4812 size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec); | 5254 size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec); |
4813 size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec); | 5255 size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec); |
4814 size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec); | 5256 size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec); |
4815 size += packedFloat_.CalculateSize(_repeated_packedFloat_codec); | 5257 size += packedFloat_.CalculateSize(_repeated_packedFloat_codec); |
4816 size += packedDouble_.CalculateSize(_repeated_packedDouble_codec); | 5258 size += packedDouble_.CalculateSize(_repeated_packedDouble_codec); |
4817 size += packedBool_.CalculateSize(_repeated_packedBool_codec); | 5259 size += packedBool_.CalculateSize(_repeated_packedBool_codec); |
4818 size += packedEnum_.CalculateSize(_repeated_packedEnum_codec); | 5260 size += packedEnum_.CalculateSize(_repeated_packedEnum_codec); |
4819 return size; | 5261 return size; |
4820 } | 5262 } |
4821 | 5263 |
| 5264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4822 public void MergeFrom(TestPackedTypes other) { | 5265 public void MergeFrom(TestPackedTypes other) { |
4823 if (other == null) { | 5266 if (other == null) { |
4824 return; | 5267 return; |
4825 } | 5268 } |
4826 packedInt32_.Add(other.packedInt32_); | 5269 packedInt32_.Add(other.packedInt32_); |
4827 packedInt64_.Add(other.packedInt64_); | 5270 packedInt64_.Add(other.packedInt64_); |
4828 packedUint32_.Add(other.packedUint32_); | 5271 packedUint32_.Add(other.packedUint32_); |
4829 packedUint64_.Add(other.packedUint64_); | 5272 packedUint64_.Add(other.packedUint64_); |
4830 packedSint32_.Add(other.packedSint32_); | 5273 packedSint32_.Add(other.packedSint32_); |
4831 packedSint64_.Add(other.packedSint64_); | 5274 packedSint64_.Add(other.packedSint64_); |
4832 packedFixed32_.Add(other.packedFixed32_); | 5275 packedFixed32_.Add(other.packedFixed32_); |
4833 packedFixed64_.Add(other.packedFixed64_); | 5276 packedFixed64_.Add(other.packedFixed64_); |
4834 packedSfixed32_.Add(other.packedSfixed32_); | 5277 packedSfixed32_.Add(other.packedSfixed32_); |
4835 packedSfixed64_.Add(other.packedSfixed64_); | 5278 packedSfixed64_.Add(other.packedSfixed64_); |
4836 packedFloat_.Add(other.packedFloat_); | 5279 packedFloat_.Add(other.packedFloat_); |
4837 packedDouble_.Add(other.packedDouble_); | 5280 packedDouble_.Add(other.packedDouble_); |
4838 packedBool_.Add(other.packedBool_); | 5281 packedBool_.Add(other.packedBool_); |
4839 packedEnum_.Add(other.packedEnum_); | 5282 packedEnum_.Add(other.packedEnum_); |
4840 } | 5283 } |
4841 | 5284 |
| 5285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4842 public void MergeFrom(pb::CodedInputStream input) { | 5286 public void MergeFrom(pb::CodedInputStream input) { |
4843 uint tag; | 5287 uint tag; |
4844 while ((tag = input.ReadTag()) != 0) { | 5288 while ((tag = input.ReadTag()) != 0) { |
4845 switch(tag) { | 5289 switch(tag) { |
4846 default: | 5290 default: |
4847 input.SkipLastField(); | 5291 input.SkipLastField(); |
4848 break; | 5292 break; |
4849 case 722: | 5293 case 722: |
4850 case 720: { | 5294 case 720: { |
4851 packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec); | 5295 packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4916 packedEnum_.AddEntriesFrom(input, _repeated_packedEnum_codec); | 5360 packedEnum_.AddEntriesFrom(input, _repeated_packedEnum_codec); |
4917 break; | 5361 break; |
4918 } | 5362 } |
4919 } | 5363 } |
4920 } | 5364 } |
4921 } | 5365 } |
4922 | 5366 |
4923 } | 5367 } |
4924 | 5368 |
4925 /// <summary> | 5369 /// <summary> |
4926 /// A message with the same fields as TestPackedTypes, but without packing. U
sed | 5370 /// A message with the same fields as TestPackedTypes, but without packing. Us
ed |
4927 /// to test packed <-> unpacked wire compatibility. | 5371 /// to test packed <-> unpacked wire compatibility. |
4928 /// </summary> | 5372 /// </summary> |
4929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
4930 public sealed partial class TestUnpackedTypes : pb::IMessage<TestUnpackedTypes
> { | 5373 public sealed partial class TestUnpackedTypes : pb::IMessage<TestUnpackedTypes
> { |
4931 private static readonly pb::MessageParser<TestUnpackedTypes> _parser = new p
b::MessageParser<TestUnpackedTypes>(() => new TestUnpackedTypes()); | 5374 private static readonly pb::MessageParser<TestUnpackedTypes> _parser = new p
b::MessageParser<TestUnpackedTypes>(() => new TestUnpackedTypes()); |
| 5375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4932 public static pb::MessageParser<TestUnpackedTypes> Parser { get { return _pa
rser; } } | 5376 public static pb::MessageParser<TestUnpackedTypes> Parser { get { return _pa
rser; } } |
4933 | 5377 |
| 5378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4934 public static pbr::MessageDescriptor Descriptor { | 5379 public static pbr::MessageDescriptor Descriptor { |
4935 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[24]; } | 5380 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[24]; } |
4936 } | 5381 } |
4937 | 5382 |
| 5383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4938 pbr::MessageDescriptor pb::IMessage.Descriptor { | 5384 pbr::MessageDescriptor pb::IMessage.Descriptor { |
4939 get { return Descriptor; } | 5385 get { return Descriptor; } |
4940 } | 5386 } |
4941 | 5387 |
| 5388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4942 public TestUnpackedTypes() { | 5389 public TestUnpackedTypes() { |
4943 OnConstruction(); | 5390 OnConstruction(); |
4944 } | 5391 } |
4945 | 5392 |
4946 partial void OnConstruction(); | 5393 partial void OnConstruction(); |
4947 | 5394 |
| 5395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4948 public TestUnpackedTypes(TestUnpackedTypes other) : this() { | 5396 public TestUnpackedTypes(TestUnpackedTypes other) : this() { |
4949 unpackedInt32_ = other.unpackedInt32_.Clone(); | 5397 unpackedInt32_ = other.unpackedInt32_.Clone(); |
4950 unpackedInt64_ = other.unpackedInt64_.Clone(); | 5398 unpackedInt64_ = other.unpackedInt64_.Clone(); |
4951 unpackedUint32_ = other.unpackedUint32_.Clone(); | 5399 unpackedUint32_ = other.unpackedUint32_.Clone(); |
4952 unpackedUint64_ = other.unpackedUint64_.Clone(); | 5400 unpackedUint64_ = other.unpackedUint64_.Clone(); |
4953 unpackedSint32_ = other.unpackedSint32_.Clone(); | 5401 unpackedSint32_ = other.unpackedSint32_.Clone(); |
4954 unpackedSint64_ = other.unpackedSint64_.Clone(); | 5402 unpackedSint64_ = other.unpackedSint64_.Clone(); |
4955 unpackedFixed32_ = other.unpackedFixed32_.Clone(); | 5403 unpackedFixed32_ = other.unpackedFixed32_.Clone(); |
4956 unpackedFixed64_ = other.unpackedFixed64_.Clone(); | 5404 unpackedFixed64_ = other.unpackedFixed64_.Clone(); |
4957 unpackedSfixed32_ = other.unpackedSfixed32_.Clone(); | 5405 unpackedSfixed32_ = other.unpackedSfixed32_.Clone(); |
4958 unpackedSfixed64_ = other.unpackedSfixed64_.Clone(); | 5406 unpackedSfixed64_ = other.unpackedSfixed64_.Clone(); |
4959 unpackedFloat_ = other.unpackedFloat_.Clone(); | 5407 unpackedFloat_ = other.unpackedFloat_.Clone(); |
4960 unpackedDouble_ = other.unpackedDouble_.Clone(); | 5408 unpackedDouble_ = other.unpackedDouble_.Clone(); |
4961 unpackedBool_ = other.unpackedBool_.Clone(); | 5409 unpackedBool_ = other.unpackedBool_.Clone(); |
4962 unpackedEnum_ = other.unpackedEnum_.Clone(); | 5410 unpackedEnum_ = other.unpackedEnum_.Clone(); |
4963 } | 5411 } |
4964 | 5412 |
| 5413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4965 public TestUnpackedTypes Clone() { | 5414 public TestUnpackedTypes Clone() { |
4966 return new TestUnpackedTypes(this); | 5415 return new TestUnpackedTypes(this); |
4967 } | 5416 } |
4968 | 5417 |
4969 /// <summary>Field number for the "unpacked_int32" field.</summary> | 5418 /// <summary>Field number for the "unpacked_int32" field.</summary> |
4970 public const int UnpackedInt32FieldNumber = 90; | 5419 public const int UnpackedInt32FieldNumber = 90; |
4971 private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec | 5420 private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec |
4972 = pb::FieldCodec.ForInt32(720); | 5421 = pb::FieldCodec.ForInt32(720); |
4973 private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedF
ield<int>(); | 5422 private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedF
ield<int>(); |
| 5423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4974 public pbc::RepeatedField<int> UnpackedInt32 { | 5424 public pbc::RepeatedField<int> UnpackedInt32 { |
4975 get { return unpackedInt32_; } | 5425 get { return unpackedInt32_; } |
4976 } | 5426 } |
4977 | 5427 |
4978 /// <summary>Field number for the "unpacked_int64" field.</summary> | 5428 /// <summary>Field number for the "unpacked_int64" field.</summary> |
4979 public const int UnpackedInt64FieldNumber = 91; | 5429 public const int UnpackedInt64FieldNumber = 91; |
4980 private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec | 5430 private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec |
4981 = pb::FieldCodec.ForInt64(728); | 5431 = pb::FieldCodec.ForInt64(728); |
4982 private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::Repeated
Field<long>(); | 5432 private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::Repeated
Field<long>(); |
| 5433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4983 public pbc::RepeatedField<long> UnpackedInt64 { | 5434 public pbc::RepeatedField<long> UnpackedInt64 { |
4984 get { return unpackedInt64_; } | 5435 get { return unpackedInt64_; } |
4985 } | 5436 } |
4986 | 5437 |
4987 /// <summary>Field number for the "unpacked_uint32" field.</summary> | 5438 /// <summary>Field number for the "unpacked_uint32" field.</summary> |
4988 public const int UnpackedUint32FieldNumber = 92; | 5439 public const int UnpackedUint32FieldNumber = 92; |
4989 private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec | 5440 private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec |
4990 = pb::FieldCodec.ForUInt32(736); | 5441 = pb::FieldCodec.ForUInt32(736); |
4991 private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::Repeate
dField<uint>(); | 5442 private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::Repeate
dField<uint>(); |
| 5443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
4992 public pbc::RepeatedField<uint> UnpackedUint32 { | 5444 public pbc::RepeatedField<uint> UnpackedUint32 { |
4993 get { return unpackedUint32_; } | 5445 get { return unpackedUint32_; } |
4994 } | 5446 } |
4995 | 5447 |
4996 /// <summary>Field number for the "unpacked_uint64" field.</summary> | 5448 /// <summary>Field number for the "unpacked_uint64" field.</summary> |
4997 public const int UnpackedUint64FieldNumber = 93; | 5449 public const int UnpackedUint64FieldNumber = 93; |
4998 private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec | 5450 private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec |
4999 = pb::FieldCodec.ForUInt64(744); | 5451 = pb::FieldCodec.ForUInt64(744); |
5000 private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::Repeat
edField<ulong>(); | 5452 private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::Repeat
edField<ulong>(); |
| 5453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5001 public pbc::RepeatedField<ulong> UnpackedUint64 { | 5454 public pbc::RepeatedField<ulong> UnpackedUint64 { |
5002 get { return unpackedUint64_; } | 5455 get { return unpackedUint64_; } |
5003 } | 5456 } |
5004 | 5457 |
5005 /// <summary>Field number for the "unpacked_sint32" field.</summary> | 5458 /// <summary>Field number for the "unpacked_sint32" field.</summary> |
5006 public const int UnpackedSint32FieldNumber = 94; | 5459 public const int UnpackedSint32FieldNumber = 94; |
5007 private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec | 5460 private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec |
5008 = pb::FieldCodec.ForSInt32(752); | 5461 = pb::FieldCodec.ForSInt32(752); |
5009 private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::Repeated
Field<int>(); | 5462 private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::Repeated
Field<int>(); |
| 5463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5010 public pbc::RepeatedField<int> UnpackedSint32 { | 5464 public pbc::RepeatedField<int> UnpackedSint32 { |
5011 get { return unpackedSint32_; } | 5465 get { return unpackedSint32_; } |
5012 } | 5466 } |
5013 | 5467 |
5014 /// <summary>Field number for the "unpacked_sint64" field.</summary> | 5468 /// <summary>Field number for the "unpacked_sint64" field.</summary> |
5015 public const int UnpackedSint64FieldNumber = 95; | 5469 public const int UnpackedSint64FieldNumber = 95; |
5016 private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec | 5470 private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec |
5017 = pb::FieldCodec.ForSInt64(760); | 5471 = pb::FieldCodec.ForSInt64(760); |
5018 private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::Repeate
dField<long>(); | 5472 private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::Repeate
dField<long>(); |
| 5473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5019 public pbc::RepeatedField<long> UnpackedSint64 { | 5474 public pbc::RepeatedField<long> UnpackedSint64 { |
5020 get { return unpackedSint64_; } | 5475 get { return unpackedSint64_; } |
5021 } | 5476 } |
5022 | 5477 |
5023 /// <summary>Field number for the "unpacked_fixed32" field.</summary> | 5478 /// <summary>Field number for the "unpacked_fixed32" field.</summary> |
5024 public const int UnpackedFixed32FieldNumber = 96; | 5479 public const int UnpackedFixed32FieldNumber = 96; |
5025 private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec | 5480 private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec |
5026 = pb::FieldCodec.ForFixed32(773); | 5481 = pb::FieldCodec.ForFixed32(773); |
5027 private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::Repeat
edField<uint>(); | 5482 private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::Repeat
edField<uint>(); |
| 5483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5028 public pbc::RepeatedField<uint> UnpackedFixed32 { | 5484 public pbc::RepeatedField<uint> UnpackedFixed32 { |
5029 get { return unpackedFixed32_; } | 5485 get { return unpackedFixed32_; } |
5030 } | 5486 } |
5031 | 5487 |
5032 /// <summary>Field number for the "unpacked_fixed64" field.</summary> | 5488 /// <summary>Field number for the "unpacked_fixed64" field.</summary> |
5033 public const int UnpackedFixed64FieldNumber = 97; | 5489 public const int UnpackedFixed64FieldNumber = 97; |
5034 private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_code
c | 5490 private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_code
c |
5035 = pb::FieldCodec.ForFixed64(777); | 5491 = pb::FieldCodec.ForFixed64(777); |
5036 private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::Repea
tedField<ulong>(); | 5492 private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::Repea
tedField<ulong>(); |
| 5493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5037 public pbc::RepeatedField<ulong> UnpackedFixed64 { | 5494 public pbc::RepeatedField<ulong> UnpackedFixed64 { |
5038 get { return unpackedFixed64_; } | 5495 get { return unpackedFixed64_; } |
5039 } | 5496 } |
5040 | 5497 |
5041 /// <summary>Field number for the "unpacked_sfixed32" field.</summary> | 5498 /// <summary>Field number for the "unpacked_sfixed32" field.</summary> |
5042 public const int UnpackedSfixed32FieldNumber = 98; | 5499 public const int UnpackedSfixed32FieldNumber = 98; |
5043 private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec | 5500 private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec |
5044 = pb::FieldCodec.ForSFixed32(789); | 5501 = pb::FieldCodec.ForSFixed32(789); |
5045 private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::Repeat
edField<int>(); | 5502 private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::Repeat
edField<int>(); |
| 5503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5046 public pbc::RepeatedField<int> UnpackedSfixed32 { | 5504 public pbc::RepeatedField<int> UnpackedSfixed32 { |
5047 get { return unpackedSfixed32_; } | 5505 get { return unpackedSfixed32_; } |
5048 } | 5506 } |
5049 | 5507 |
5050 /// <summary>Field number for the "unpacked_sfixed64" field.</summary> | 5508 /// <summary>Field number for the "unpacked_sfixed64" field.</summary> |
5051 public const int UnpackedSfixed64FieldNumber = 99; | 5509 public const int UnpackedSfixed64FieldNumber = 99; |
5052 private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_code
c | 5510 private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_code
c |
5053 = pb::FieldCodec.ForSFixed64(793); | 5511 = pb::FieldCodec.ForSFixed64(793); |
5054 private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::Repea
tedField<long>(); | 5512 private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::Repea
tedField<long>(); |
| 5513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5055 public pbc::RepeatedField<long> UnpackedSfixed64 { | 5514 public pbc::RepeatedField<long> UnpackedSfixed64 { |
5056 get { return unpackedSfixed64_; } | 5515 get { return unpackedSfixed64_; } |
5057 } | 5516 } |
5058 | 5517 |
5059 /// <summary>Field number for the "unpacked_float" field.</summary> | 5518 /// <summary>Field number for the "unpacked_float" field.</summary> |
5060 public const int UnpackedFloatFieldNumber = 100; | 5519 public const int UnpackedFloatFieldNumber = 100; |
5061 private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec | 5520 private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec |
5062 = pb::FieldCodec.ForFloat(805); | 5521 = pb::FieldCodec.ForFloat(805); |
5063 private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::Repeate
dField<float>(); | 5522 private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::Repeate
dField<float>(); |
| 5523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5064 public pbc::RepeatedField<float> UnpackedFloat { | 5524 public pbc::RepeatedField<float> UnpackedFloat { |
5065 get { return unpackedFloat_; } | 5525 get { return unpackedFloat_; } |
5066 } | 5526 } |
5067 | 5527 |
5068 /// <summary>Field number for the "unpacked_double" field.</summary> | 5528 /// <summary>Field number for the "unpacked_double" field.</summary> |
5069 public const int UnpackedDoubleFieldNumber = 101; | 5529 public const int UnpackedDoubleFieldNumber = 101; |
5070 private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_code
c | 5530 private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_code
c |
5071 = pb::FieldCodec.ForDouble(809); | 5531 = pb::FieldCodec.ForDouble(809); |
5072 private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::Repea
tedField<double>(); | 5532 private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::Repea
tedField<double>(); |
| 5533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5073 public pbc::RepeatedField<double> UnpackedDouble { | 5534 public pbc::RepeatedField<double> UnpackedDouble { |
5074 get { return unpackedDouble_; } | 5535 get { return unpackedDouble_; } |
5075 } | 5536 } |
5076 | 5537 |
5077 /// <summary>Field number for the "unpacked_bool" field.</summary> | 5538 /// <summary>Field number for the "unpacked_bool" field.</summary> |
5078 public const int UnpackedBoolFieldNumber = 102; | 5539 public const int UnpackedBoolFieldNumber = 102; |
5079 private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec | 5540 private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec |
5080 = pb::FieldCodec.ForBool(816); | 5541 = pb::FieldCodec.ForBool(816); |
5081 private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedF
ield<bool>(); | 5542 private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedF
ield<bool>(); |
| 5543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5082 public pbc::RepeatedField<bool> UnpackedBool { | 5544 public pbc::RepeatedField<bool> UnpackedBool { |
5083 get { return unpackedBool_; } | 5545 get { return unpackedBool_; } |
5084 } | 5546 } |
5085 | 5547 |
5086 /// <summary>Field number for the "unpacked_enum" field.</summary> | 5548 /// <summary>Field number for the "unpacked_enum" field.</summary> |
5087 public const int UnpackedEnumFieldNumber = 103; | 5549 public const int UnpackedEnumFieldNumber = 103; |
5088 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Fo
reignEnum> _repeated_unpackedEnum_codec | 5550 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Fo
reignEnum> _repeated_unpackedEnum_codec |
5089 = pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobu
f.TestProtos.ForeignEnum) x); | 5551 = pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobu
f.TestProtos.ForeignEnum) x); |
5090 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Forei
gnEnum> unpackedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProto
s.ForeignEnum>(); | 5552 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Forei
gnEnum> unpackedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProto
s.ForeignEnum>(); |
| 5553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5091 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> Un
packedEnum { | 5554 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> Un
packedEnum { |
5092 get { return unpackedEnum_; } | 5555 get { return unpackedEnum_; } |
5093 } | 5556 } |
5094 | 5557 |
| 5558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5095 public override bool Equals(object other) { | 5559 public override bool Equals(object other) { |
5096 return Equals(other as TestUnpackedTypes); | 5560 return Equals(other as TestUnpackedTypes); |
5097 } | 5561 } |
5098 | 5562 |
| 5563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5099 public bool Equals(TestUnpackedTypes other) { | 5564 public bool Equals(TestUnpackedTypes other) { |
5100 if (ReferenceEquals(other, null)) { | 5565 if (ReferenceEquals(other, null)) { |
5101 return false; | 5566 return false; |
5102 } | 5567 } |
5103 if (ReferenceEquals(other, this)) { | 5568 if (ReferenceEquals(other, this)) { |
5104 return true; | 5569 return true; |
5105 } | 5570 } |
5106 if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false; | 5571 if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false; |
5107 if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false; | 5572 if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false; |
5108 if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false; | 5573 if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false; |
5109 if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false; | 5574 if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false; |
5110 if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false; | 5575 if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false; |
5111 if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false; | 5576 if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false; |
5112 if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false; | 5577 if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false; |
5113 if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false; | 5578 if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false; |
5114 if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false; | 5579 if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false; |
5115 if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false; | 5580 if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false; |
5116 if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false; | 5581 if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false; |
5117 if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false; | 5582 if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false; |
5118 if(!unpackedBool_.Equals(other.unpackedBool_)) return false; | 5583 if(!unpackedBool_.Equals(other.unpackedBool_)) return false; |
5119 if(!unpackedEnum_.Equals(other.unpackedEnum_)) return false; | 5584 if(!unpackedEnum_.Equals(other.unpackedEnum_)) return false; |
5120 return true; | 5585 return true; |
5121 } | 5586 } |
5122 | 5587 |
| 5588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5123 public override int GetHashCode() { | 5589 public override int GetHashCode() { |
5124 int hash = 1; | 5590 int hash = 1; |
5125 hash ^= unpackedInt32_.GetHashCode(); | 5591 hash ^= unpackedInt32_.GetHashCode(); |
5126 hash ^= unpackedInt64_.GetHashCode(); | 5592 hash ^= unpackedInt64_.GetHashCode(); |
5127 hash ^= unpackedUint32_.GetHashCode(); | 5593 hash ^= unpackedUint32_.GetHashCode(); |
5128 hash ^= unpackedUint64_.GetHashCode(); | 5594 hash ^= unpackedUint64_.GetHashCode(); |
5129 hash ^= unpackedSint32_.GetHashCode(); | 5595 hash ^= unpackedSint32_.GetHashCode(); |
5130 hash ^= unpackedSint64_.GetHashCode(); | 5596 hash ^= unpackedSint64_.GetHashCode(); |
5131 hash ^= unpackedFixed32_.GetHashCode(); | 5597 hash ^= unpackedFixed32_.GetHashCode(); |
5132 hash ^= unpackedFixed64_.GetHashCode(); | 5598 hash ^= unpackedFixed64_.GetHashCode(); |
5133 hash ^= unpackedSfixed32_.GetHashCode(); | 5599 hash ^= unpackedSfixed32_.GetHashCode(); |
5134 hash ^= unpackedSfixed64_.GetHashCode(); | 5600 hash ^= unpackedSfixed64_.GetHashCode(); |
5135 hash ^= unpackedFloat_.GetHashCode(); | 5601 hash ^= unpackedFloat_.GetHashCode(); |
5136 hash ^= unpackedDouble_.GetHashCode(); | 5602 hash ^= unpackedDouble_.GetHashCode(); |
5137 hash ^= unpackedBool_.GetHashCode(); | 5603 hash ^= unpackedBool_.GetHashCode(); |
5138 hash ^= unpackedEnum_.GetHashCode(); | 5604 hash ^= unpackedEnum_.GetHashCode(); |
5139 return hash; | 5605 return hash; |
5140 } | 5606 } |
5141 | 5607 |
| 5608 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5142 public override string ToString() { | 5609 public override string ToString() { |
5143 return pb::JsonFormatter.ToDiagnosticString(this); | 5610 return pb::JsonFormatter.ToDiagnosticString(this); |
5144 } | 5611 } |
5145 | 5612 |
| 5613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5146 public void WriteTo(pb::CodedOutputStream output) { | 5614 public void WriteTo(pb::CodedOutputStream output) { |
5147 unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec); | 5615 unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec); |
5148 unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec); | 5616 unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec); |
5149 unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec); | 5617 unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec); |
5150 unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec); | 5618 unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec); |
5151 unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec); | 5619 unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec); |
5152 unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec); | 5620 unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec); |
5153 unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec); | 5621 unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec); |
5154 unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec); | 5622 unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec); |
5155 unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec); | 5623 unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec); |
5156 unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec); | 5624 unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec); |
5157 unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec); | 5625 unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec); |
5158 unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec); | 5626 unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec); |
5159 unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec); | 5627 unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec); |
5160 unpackedEnum_.WriteTo(output, _repeated_unpackedEnum_codec); | 5628 unpackedEnum_.WriteTo(output, _repeated_unpackedEnum_codec); |
5161 } | 5629 } |
5162 | 5630 |
| 5631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5163 public int CalculateSize() { | 5632 public int CalculateSize() { |
5164 int size = 0; | 5633 int size = 0; |
5165 size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec); | 5634 size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec); |
5166 size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec); | 5635 size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec); |
5167 size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec); | 5636 size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec); |
5168 size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec); | 5637 size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec); |
5169 size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec); | 5638 size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec); |
5170 size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec); | 5639 size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec); |
5171 size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec); | 5640 size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec); |
5172 size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec); | 5641 size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec); |
5173 size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec); | 5642 size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec); |
5174 size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec); | 5643 size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec); |
5175 size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec); | 5644 size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec); |
5176 size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec); | 5645 size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec); |
5177 size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec); | 5646 size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec); |
5178 size += unpackedEnum_.CalculateSize(_repeated_unpackedEnum_codec); | 5647 size += unpackedEnum_.CalculateSize(_repeated_unpackedEnum_codec); |
5179 return size; | 5648 return size; |
5180 } | 5649 } |
5181 | 5650 |
| 5651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5182 public void MergeFrom(TestUnpackedTypes other) { | 5652 public void MergeFrom(TestUnpackedTypes other) { |
5183 if (other == null) { | 5653 if (other == null) { |
5184 return; | 5654 return; |
5185 } | 5655 } |
5186 unpackedInt32_.Add(other.unpackedInt32_); | 5656 unpackedInt32_.Add(other.unpackedInt32_); |
5187 unpackedInt64_.Add(other.unpackedInt64_); | 5657 unpackedInt64_.Add(other.unpackedInt64_); |
5188 unpackedUint32_.Add(other.unpackedUint32_); | 5658 unpackedUint32_.Add(other.unpackedUint32_); |
5189 unpackedUint64_.Add(other.unpackedUint64_); | 5659 unpackedUint64_.Add(other.unpackedUint64_); |
5190 unpackedSint32_.Add(other.unpackedSint32_); | 5660 unpackedSint32_.Add(other.unpackedSint32_); |
5191 unpackedSint64_.Add(other.unpackedSint64_); | 5661 unpackedSint64_.Add(other.unpackedSint64_); |
5192 unpackedFixed32_.Add(other.unpackedFixed32_); | 5662 unpackedFixed32_.Add(other.unpackedFixed32_); |
5193 unpackedFixed64_.Add(other.unpackedFixed64_); | 5663 unpackedFixed64_.Add(other.unpackedFixed64_); |
5194 unpackedSfixed32_.Add(other.unpackedSfixed32_); | 5664 unpackedSfixed32_.Add(other.unpackedSfixed32_); |
5195 unpackedSfixed64_.Add(other.unpackedSfixed64_); | 5665 unpackedSfixed64_.Add(other.unpackedSfixed64_); |
5196 unpackedFloat_.Add(other.unpackedFloat_); | 5666 unpackedFloat_.Add(other.unpackedFloat_); |
5197 unpackedDouble_.Add(other.unpackedDouble_); | 5667 unpackedDouble_.Add(other.unpackedDouble_); |
5198 unpackedBool_.Add(other.unpackedBool_); | 5668 unpackedBool_.Add(other.unpackedBool_); |
5199 unpackedEnum_.Add(other.unpackedEnum_); | 5669 unpackedEnum_.Add(other.unpackedEnum_); |
5200 } | 5670 } |
5201 | 5671 |
| 5672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5202 public void MergeFrom(pb::CodedInputStream input) { | 5673 public void MergeFrom(pb::CodedInputStream input) { |
5203 uint tag; | 5674 uint tag; |
5204 while ((tag = input.ReadTag()) != 0) { | 5675 while ((tag = input.ReadTag()) != 0) { |
5205 switch(tag) { | 5676 switch(tag) { |
5206 default: | 5677 default: |
5207 input.SkipLastField(); | 5678 input.SkipLastField(); |
5208 break; | 5679 break; |
5209 case 722: | 5680 case 722: |
5210 case 720: { | 5681 case 720: { |
5211 unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec); | 5682 unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5275 case 824: { | 5746 case 824: { |
5276 unpackedEnum_.AddEntriesFrom(input, _repeated_unpackedEnum_codec); | 5747 unpackedEnum_.AddEntriesFrom(input, _repeated_unpackedEnum_codec); |
5277 break; | 5748 break; |
5278 } | 5749 } |
5279 } | 5750 } |
5280 } | 5751 } |
5281 } | 5752 } |
5282 | 5753 |
5283 } | 5754 } |
5284 | 5755 |
5285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
5286 public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::IMessage
<TestRepeatedScalarDifferentTagSizes> { | 5756 public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::IMessage
<TestRepeatedScalarDifferentTagSizes> { |
5287 private static readonly pb::MessageParser<TestRepeatedScalarDifferentTagSize
s> _parser = new pb::MessageParser<TestRepeatedScalarDifferentTagSizes>(() => ne
w TestRepeatedScalarDifferentTagSizes()); | 5757 private static readonly pb::MessageParser<TestRepeatedScalarDifferentTagSize
s> _parser = new pb::MessageParser<TestRepeatedScalarDifferentTagSizes>(() => ne
w TestRepeatedScalarDifferentTagSizes()); |
| 5758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5288 public static pb::MessageParser<TestRepeatedScalarDifferentTagSizes> Parser
{ get { return _parser; } } | 5759 public static pb::MessageParser<TestRepeatedScalarDifferentTagSizes> Parser
{ get { return _parser; } } |
5289 | 5760 |
| 5761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5290 public static pbr::MessageDescriptor Descriptor { | 5762 public static pbr::MessageDescriptor Descriptor { |
5291 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[25]; } | 5763 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[25]; } |
5292 } | 5764 } |
5293 | 5765 |
| 5766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5294 pbr::MessageDescriptor pb::IMessage.Descriptor { | 5767 pbr::MessageDescriptor pb::IMessage.Descriptor { |
5295 get { return Descriptor; } | 5768 get { return Descriptor; } |
5296 } | 5769 } |
5297 | 5770 |
| 5771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5298 public TestRepeatedScalarDifferentTagSizes() { | 5772 public TestRepeatedScalarDifferentTagSizes() { |
5299 OnConstruction(); | 5773 OnConstruction(); |
5300 } | 5774 } |
5301 | 5775 |
5302 partial void OnConstruction(); | 5776 partial void OnConstruction(); |
5303 | 5777 |
| 5778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5304 public TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSiz
es other) : this() { | 5779 public TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSiz
es other) : this() { |
5305 repeatedFixed32_ = other.repeatedFixed32_.Clone(); | 5780 repeatedFixed32_ = other.repeatedFixed32_.Clone(); |
5306 repeatedInt32_ = other.repeatedInt32_.Clone(); | 5781 repeatedInt32_ = other.repeatedInt32_.Clone(); |
5307 repeatedFixed64_ = other.repeatedFixed64_.Clone(); | 5782 repeatedFixed64_ = other.repeatedFixed64_.Clone(); |
5308 repeatedInt64_ = other.repeatedInt64_.Clone(); | 5783 repeatedInt64_ = other.repeatedInt64_.Clone(); |
5309 repeatedFloat_ = other.repeatedFloat_.Clone(); | 5784 repeatedFloat_ = other.repeatedFloat_.Clone(); |
5310 repeatedUint64_ = other.repeatedUint64_.Clone(); | 5785 repeatedUint64_ = other.repeatedUint64_.Clone(); |
5311 } | 5786 } |
5312 | 5787 |
| 5788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5313 public TestRepeatedScalarDifferentTagSizes Clone() { | 5789 public TestRepeatedScalarDifferentTagSizes Clone() { |
5314 return new TestRepeatedScalarDifferentTagSizes(this); | 5790 return new TestRepeatedScalarDifferentTagSizes(this); |
5315 } | 5791 } |
5316 | 5792 |
5317 /// <summary>Field number for the "repeated_fixed32" field.</summary> | 5793 /// <summary>Field number for the "repeated_fixed32" field.</summary> |
5318 public const int RepeatedFixed32FieldNumber = 12; | 5794 public const int RepeatedFixed32FieldNumber = 12; |
5319 private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec | 5795 private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec |
5320 = pb::FieldCodec.ForFixed32(98); | 5796 = pb::FieldCodec.ForFixed32(98); |
5321 private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::Repeat
edField<uint>(); | 5797 private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::Repeat
edField<uint>(); |
5322 /// <summary> | 5798 /// <summary> |
5323 /// Parsing repeated fixed size values used to fail. This message needs to
be | 5799 /// Parsing repeated fixed size values used to fail. This message needs to b
e |
5324 /// used in order to get a tag of the right size; all of the repeated field
s | 5800 /// used in order to get a tag of the right size; all of the repeated fields |
5325 /// in TestAllTypes didn't trigger the check. | 5801 /// in TestAllTypes didn't trigger the check. |
5326 /// </summary> | 5802 /// </summary> |
| 5803 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5327 public pbc::RepeatedField<uint> RepeatedFixed32 { | 5804 public pbc::RepeatedField<uint> RepeatedFixed32 { |
5328 get { return repeatedFixed32_; } | 5805 get { return repeatedFixed32_; } |
5329 } | 5806 } |
5330 | 5807 |
5331 /// <summary>Field number for the "repeated_int32" field.</summary> | 5808 /// <summary>Field number for the "repeated_int32" field.</summary> |
5332 public const int RepeatedInt32FieldNumber = 13; | 5809 public const int RepeatedInt32FieldNumber = 13; |
5333 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec | 5810 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec |
5334 = pb::FieldCodec.ForInt32(106); | 5811 = pb::FieldCodec.ForInt32(106); |
5335 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedF
ield<int>(); | 5812 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedF
ield<int>(); |
5336 /// <summary> | 5813 /// <summary> |
5337 /// Check for a varint type, just for good measure. | 5814 /// Check for a varint type, just for good measure. |
5338 /// </summary> | 5815 /// </summary> |
| 5816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5339 public pbc::RepeatedField<int> RepeatedInt32 { | 5817 public pbc::RepeatedField<int> RepeatedInt32 { |
5340 get { return repeatedInt32_; } | 5818 get { return repeatedInt32_; } |
5341 } | 5819 } |
5342 | 5820 |
5343 /// <summary>Field number for the "repeated_fixed64" field.</summary> | 5821 /// <summary>Field number for the "repeated_fixed64" field.</summary> |
5344 public const int RepeatedFixed64FieldNumber = 2046; | 5822 public const int RepeatedFixed64FieldNumber = 2046; |
5345 private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_code
c | 5823 private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_code
c |
5346 = pb::FieldCodec.ForFixed64(16370); | 5824 = pb::FieldCodec.ForFixed64(16370); |
5347 private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::Repea
tedField<ulong>(); | 5825 private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::Repea
tedField<ulong>(); |
5348 /// <summary> | 5826 /// <summary> |
5349 /// These have two-byte tags. | 5827 /// These have two-byte tags. |
5350 /// </summary> | 5828 /// </summary> |
| 5829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5351 public pbc::RepeatedField<ulong> RepeatedFixed64 { | 5830 public pbc::RepeatedField<ulong> RepeatedFixed64 { |
5352 get { return repeatedFixed64_; } | 5831 get { return repeatedFixed64_; } |
5353 } | 5832 } |
5354 | 5833 |
5355 /// <summary>Field number for the "repeated_int64" field.</summary> | 5834 /// <summary>Field number for the "repeated_int64" field.</summary> |
5356 public const int RepeatedInt64FieldNumber = 2047; | 5835 public const int RepeatedInt64FieldNumber = 2047; |
5357 private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec | 5836 private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec |
5358 = pb::FieldCodec.ForInt64(16378); | 5837 = pb::FieldCodec.ForInt64(16378); |
5359 private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::Repeated
Field<long>(); | 5838 private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::Repeated
Field<long>(); |
| 5839 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5360 public pbc::RepeatedField<long> RepeatedInt64 { | 5840 public pbc::RepeatedField<long> RepeatedInt64 { |
5361 get { return repeatedInt64_; } | 5841 get { return repeatedInt64_; } |
5362 } | 5842 } |
5363 | 5843 |
5364 /// <summary>Field number for the "repeated_float" field.</summary> | 5844 /// <summary>Field number for the "repeated_float" field.</summary> |
5365 public const int RepeatedFloatFieldNumber = 262142; | 5845 public const int RepeatedFloatFieldNumber = 262142; |
5366 private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec | 5846 private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec |
5367 = pb::FieldCodec.ForFloat(2097138); | 5847 = pb::FieldCodec.ForFloat(2097138); |
5368 private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::Repeate
dField<float>(); | 5848 private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::Repeate
dField<float>(); |
5369 /// <summary> | 5849 /// <summary> |
5370 /// Three byte tags. | 5850 /// Three byte tags. |
5371 /// </summary> | 5851 /// </summary> |
| 5852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5372 public pbc::RepeatedField<float> RepeatedFloat { | 5853 public pbc::RepeatedField<float> RepeatedFloat { |
5373 get { return repeatedFloat_; } | 5854 get { return repeatedFloat_; } |
5374 } | 5855 } |
5375 | 5856 |
5376 /// <summary>Field number for the "repeated_uint64" field.</summary> | 5857 /// <summary>Field number for the "repeated_uint64" field.</summary> |
5377 public const int RepeatedUint64FieldNumber = 262143; | 5858 public const int RepeatedUint64FieldNumber = 262143; |
5378 private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec | 5859 private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec |
5379 = pb::FieldCodec.ForUInt64(2097146); | 5860 = pb::FieldCodec.ForUInt64(2097146); |
5380 private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::Repeat
edField<ulong>(); | 5861 private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::Repeat
edField<ulong>(); |
| 5862 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5381 public pbc::RepeatedField<ulong> RepeatedUint64 { | 5863 public pbc::RepeatedField<ulong> RepeatedUint64 { |
5382 get { return repeatedUint64_; } | 5864 get { return repeatedUint64_; } |
5383 } | 5865 } |
5384 | 5866 |
| 5867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5385 public override bool Equals(object other) { | 5868 public override bool Equals(object other) { |
5386 return Equals(other as TestRepeatedScalarDifferentTagSizes); | 5869 return Equals(other as TestRepeatedScalarDifferentTagSizes); |
5387 } | 5870 } |
5388 | 5871 |
| 5872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5389 public bool Equals(TestRepeatedScalarDifferentTagSizes other) { | 5873 public bool Equals(TestRepeatedScalarDifferentTagSizes other) { |
5390 if (ReferenceEquals(other, null)) { | 5874 if (ReferenceEquals(other, null)) { |
5391 return false; | 5875 return false; |
5392 } | 5876 } |
5393 if (ReferenceEquals(other, this)) { | 5877 if (ReferenceEquals(other, this)) { |
5394 return true; | 5878 return true; |
5395 } | 5879 } |
5396 if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false; | 5880 if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false; |
5397 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false; | 5881 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false; |
5398 if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false; | 5882 if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false; |
5399 if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false; | 5883 if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false; |
5400 if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false; | 5884 if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false; |
5401 if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false; | 5885 if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false; |
5402 return true; | 5886 return true; |
5403 } | 5887 } |
5404 | 5888 |
| 5889 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5405 public override int GetHashCode() { | 5890 public override int GetHashCode() { |
5406 int hash = 1; | 5891 int hash = 1; |
5407 hash ^= repeatedFixed32_.GetHashCode(); | 5892 hash ^= repeatedFixed32_.GetHashCode(); |
5408 hash ^= repeatedInt32_.GetHashCode(); | 5893 hash ^= repeatedInt32_.GetHashCode(); |
5409 hash ^= repeatedFixed64_.GetHashCode(); | 5894 hash ^= repeatedFixed64_.GetHashCode(); |
5410 hash ^= repeatedInt64_.GetHashCode(); | 5895 hash ^= repeatedInt64_.GetHashCode(); |
5411 hash ^= repeatedFloat_.GetHashCode(); | 5896 hash ^= repeatedFloat_.GetHashCode(); |
5412 hash ^= repeatedUint64_.GetHashCode(); | 5897 hash ^= repeatedUint64_.GetHashCode(); |
5413 return hash; | 5898 return hash; |
5414 } | 5899 } |
5415 | 5900 |
| 5901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5416 public override string ToString() { | 5902 public override string ToString() { |
5417 return pb::JsonFormatter.ToDiagnosticString(this); | 5903 return pb::JsonFormatter.ToDiagnosticString(this); |
5418 } | 5904 } |
5419 | 5905 |
| 5906 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5420 public void WriteTo(pb::CodedOutputStream output) { | 5907 public void WriteTo(pb::CodedOutputStream output) { |
5421 repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec); | 5908 repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec); |
5422 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec); | 5909 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec); |
5423 repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec); | 5910 repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec); |
5424 repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec); | 5911 repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec); |
5425 repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec); | 5912 repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec); |
5426 repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec); | 5913 repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec); |
5427 } | 5914 } |
5428 | 5915 |
| 5916 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5429 public int CalculateSize() { | 5917 public int CalculateSize() { |
5430 int size = 0; | 5918 int size = 0; |
5431 size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec); | 5919 size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec); |
5432 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec); | 5920 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec); |
5433 size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec); | 5921 size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec); |
5434 size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec); | 5922 size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec); |
5435 size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec); | 5923 size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec); |
5436 size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec); | 5924 size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec); |
5437 return size; | 5925 return size; |
5438 } | 5926 } |
5439 | 5927 |
| 5928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5440 public void MergeFrom(TestRepeatedScalarDifferentTagSizes other) { | 5929 public void MergeFrom(TestRepeatedScalarDifferentTagSizes other) { |
5441 if (other == null) { | 5930 if (other == null) { |
5442 return; | 5931 return; |
5443 } | 5932 } |
5444 repeatedFixed32_.Add(other.repeatedFixed32_); | 5933 repeatedFixed32_.Add(other.repeatedFixed32_); |
5445 repeatedInt32_.Add(other.repeatedInt32_); | 5934 repeatedInt32_.Add(other.repeatedInt32_); |
5446 repeatedFixed64_.Add(other.repeatedFixed64_); | 5935 repeatedFixed64_.Add(other.repeatedFixed64_); |
5447 repeatedInt64_.Add(other.repeatedInt64_); | 5936 repeatedInt64_.Add(other.repeatedInt64_); |
5448 repeatedFloat_.Add(other.repeatedFloat_); | 5937 repeatedFloat_.Add(other.repeatedFloat_); |
5449 repeatedUint64_.Add(other.repeatedUint64_); | 5938 repeatedUint64_.Add(other.repeatedUint64_); |
5450 } | 5939 } |
5451 | 5940 |
| 5941 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5452 public void MergeFrom(pb::CodedInputStream input) { | 5942 public void MergeFrom(pb::CodedInputStream input) { |
5453 uint tag; | 5943 uint tag; |
5454 while ((tag = input.ReadTag()) != 0) { | 5944 while ((tag = input.ReadTag()) != 0) { |
5455 switch(tag) { | 5945 switch(tag) { |
5456 default: | 5946 default: |
5457 input.SkipLastField(); | 5947 input.SkipLastField(); |
5458 break; | 5948 break; |
5459 case 98: | 5949 case 98: |
5460 case 101: { | 5950 case 101: { |
5461 repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_cod
ec); | 5951 repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_cod
ec); |
(...skipping 23 matching lines...) Expand all Loading... |
5485 case 2097144: { | 5975 case 2097144: { |
5486 repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec
); | 5976 repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec
); |
5487 break; | 5977 break; |
5488 } | 5978 } |
5489 } | 5979 } |
5490 } | 5980 } |
5491 } | 5981 } |
5492 | 5982 |
5493 } | 5983 } |
5494 | 5984 |
5495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
5496 public sealed partial class TestCommentInjectionMessage : pb::IMessage<TestCom
mentInjectionMessage> { | 5985 public sealed partial class TestCommentInjectionMessage : pb::IMessage<TestCom
mentInjectionMessage> { |
5497 private static readonly pb::MessageParser<TestCommentInjectionMessage> _pars
er = new pb::MessageParser<TestCommentInjectionMessage>(() => new TestCommentInj
ectionMessage()); | 5986 private static readonly pb::MessageParser<TestCommentInjectionMessage> _pars
er = new pb::MessageParser<TestCommentInjectionMessage>(() => new TestCommentInj
ectionMessage()); |
| 5987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5498 public static pb::MessageParser<TestCommentInjectionMessage> Parser { get {
return _parser; } } | 5988 public static pb::MessageParser<TestCommentInjectionMessage> Parser { get {
return _parser; } } |
5499 | 5989 |
| 5990 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5500 public static pbr::MessageDescriptor Descriptor { | 5991 public static pbr::MessageDescriptor Descriptor { |
5501 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[26]; } | 5992 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[26]; } |
5502 } | 5993 } |
5503 | 5994 |
| 5995 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5504 pbr::MessageDescriptor pb::IMessage.Descriptor { | 5996 pbr::MessageDescriptor pb::IMessage.Descriptor { |
5505 get { return Descriptor; } | 5997 get { return Descriptor; } |
5506 } | 5998 } |
5507 | 5999 |
| 6000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5508 public TestCommentInjectionMessage() { | 6001 public TestCommentInjectionMessage() { |
5509 OnConstruction(); | 6002 OnConstruction(); |
5510 } | 6003 } |
5511 | 6004 |
5512 partial void OnConstruction(); | 6005 partial void OnConstruction(); |
5513 | 6006 |
| 6007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5514 public TestCommentInjectionMessage(TestCommentInjectionMessage other) : this
() { | 6008 public TestCommentInjectionMessage(TestCommentInjectionMessage other) : this
() { |
5515 a_ = other.a_; | 6009 a_ = other.a_; |
5516 } | 6010 } |
5517 | 6011 |
| 6012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5518 public TestCommentInjectionMessage Clone() { | 6013 public TestCommentInjectionMessage Clone() { |
5519 return new TestCommentInjectionMessage(this); | 6014 return new TestCommentInjectionMessage(this); |
5520 } | 6015 } |
5521 | 6016 |
5522 /// <summary>Field number for the "a" field.</summary> | 6017 /// <summary>Field number for the "a" field.</summary> |
5523 public const int AFieldNumber = 1; | 6018 public const int AFieldNumber = 1; |
5524 private string a_ = ""; | 6019 private string a_ = ""; |
5525 /// <summary> | 6020 /// <summary> |
5526 /// */ <- This should not close the generated doc comment | 6021 /// */ <- This should not close the generated doc comment |
5527 /// </summary> | 6022 /// </summary> |
| 6023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5528 public string A { | 6024 public string A { |
5529 get { return a_; } | 6025 get { return a_; } |
5530 set { | 6026 set { |
5531 a_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 6027 a_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
5532 } | 6028 } |
5533 } | 6029 } |
5534 | 6030 |
| 6031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5535 public override bool Equals(object other) { | 6032 public override bool Equals(object other) { |
5536 return Equals(other as TestCommentInjectionMessage); | 6033 return Equals(other as TestCommentInjectionMessage); |
5537 } | 6034 } |
5538 | 6035 |
| 6036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5539 public bool Equals(TestCommentInjectionMessage other) { | 6037 public bool Equals(TestCommentInjectionMessage other) { |
5540 if (ReferenceEquals(other, null)) { | 6038 if (ReferenceEquals(other, null)) { |
5541 return false; | 6039 return false; |
5542 } | 6040 } |
5543 if (ReferenceEquals(other, this)) { | 6041 if (ReferenceEquals(other, this)) { |
5544 return true; | 6042 return true; |
5545 } | 6043 } |
5546 if (A != other.A) return false; | 6044 if (A != other.A) return false; |
5547 return true; | 6045 return true; |
5548 } | 6046 } |
5549 | 6047 |
| 6048 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5550 public override int GetHashCode() { | 6049 public override int GetHashCode() { |
5551 int hash = 1; | 6050 int hash = 1; |
5552 if (A.Length != 0) hash ^= A.GetHashCode(); | 6051 if (A.Length != 0) hash ^= A.GetHashCode(); |
5553 return hash; | 6052 return hash; |
5554 } | 6053 } |
5555 | 6054 |
| 6055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5556 public override string ToString() { | 6056 public override string ToString() { |
5557 return pb::JsonFormatter.ToDiagnosticString(this); | 6057 return pb::JsonFormatter.ToDiagnosticString(this); |
5558 } | 6058 } |
5559 | 6059 |
| 6060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5560 public void WriteTo(pb::CodedOutputStream output) { | 6061 public void WriteTo(pb::CodedOutputStream output) { |
5561 if (A.Length != 0) { | 6062 if (A.Length != 0) { |
5562 output.WriteRawTag(10); | 6063 output.WriteRawTag(10); |
5563 output.WriteString(A); | 6064 output.WriteString(A); |
5564 } | 6065 } |
5565 } | 6066 } |
5566 | 6067 |
| 6068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5567 public int CalculateSize() { | 6069 public int CalculateSize() { |
5568 int size = 0; | 6070 int size = 0; |
5569 if (A.Length != 0) { | 6071 if (A.Length != 0) { |
5570 size += 1 + pb::CodedOutputStream.ComputeStringSize(A); | 6072 size += 1 + pb::CodedOutputStream.ComputeStringSize(A); |
5571 } | 6073 } |
5572 return size; | 6074 return size; |
5573 } | 6075 } |
5574 | 6076 |
| 6077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5575 public void MergeFrom(TestCommentInjectionMessage other) { | 6078 public void MergeFrom(TestCommentInjectionMessage other) { |
5576 if (other == null) { | 6079 if (other == null) { |
5577 return; | 6080 return; |
5578 } | 6081 } |
5579 if (other.A.Length != 0) { | 6082 if (other.A.Length != 0) { |
5580 A = other.A; | 6083 A = other.A; |
5581 } | 6084 } |
5582 } | 6085 } |
5583 | 6086 |
| 6087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5584 public void MergeFrom(pb::CodedInputStream input) { | 6088 public void MergeFrom(pb::CodedInputStream input) { |
5585 uint tag; | 6089 uint tag; |
5586 while ((tag = input.ReadTag()) != 0) { | 6090 while ((tag = input.ReadTag()) != 0) { |
5587 switch(tag) { | 6091 switch(tag) { |
5588 default: | 6092 default: |
5589 input.SkipLastField(); | 6093 input.SkipLastField(); |
5590 break; | 6094 break; |
5591 case 10: { | 6095 case 10: { |
5592 A = input.ReadString(); | 6096 A = input.ReadString(); |
5593 break; | 6097 break; |
5594 } | 6098 } |
5595 } | 6099 } |
5596 } | 6100 } |
5597 } | 6101 } |
5598 | 6102 |
5599 } | 6103 } |
5600 | 6104 |
5601 /// <summary> | 6105 /// <summary> |
5602 /// Test that RPC services work. | 6106 /// Test that RPC services work. |
5603 /// </summary> | 6107 /// </summary> |
5604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
5605 public sealed partial class FooRequest : pb::IMessage<FooRequest> { | 6108 public sealed partial class FooRequest : pb::IMessage<FooRequest> { |
5606 private static readonly pb::MessageParser<FooRequest> _parser = new pb::Mess
ageParser<FooRequest>(() => new FooRequest()); | 6109 private static readonly pb::MessageParser<FooRequest> _parser = new pb::Mess
ageParser<FooRequest>(() => new FooRequest()); |
| 6110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5607 public static pb::MessageParser<FooRequest> Parser { get { return _parser; }
} | 6111 public static pb::MessageParser<FooRequest> Parser { get { return _parser; }
} |
5608 | 6112 |
| 6113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5609 public static pbr::MessageDescriptor Descriptor { | 6114 public static pbr::MessageDescriptor Descriptor { |
5610 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[27]; } | 6115 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[27]; } |
5611 } | 6116 } |
5612 | 6117 |
| 6118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5613 pbr::MessageDescriptor pb::IMessage.Descriptor { | 6119 pbr::MessageDescriptor pb::IMessage.Descriptor { |
5614 get { return Descriptor; } | 6120 get { return Descriptor; } |
5615 } | 6121 } |
5616 | 6122 |
| 6123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5617 public FooRequest() { | 6124 public FooRequest() { |
5618 OnConstruction(); | 6125 OnConstruction(); |
5619 } | 6126 } |
5620 | 6127 |
5621 partial void OnConstruction(); | 6128 partial void OnConstruction(); |
5622 | 6129 |
| 6130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5623 public FooRequest(FooRequest other) : this() { | 6131 public FooRequest(FooRequest other) : this() { |
5624 } | 6132 } |
5625 | 6133 |
| 6134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5626 public FooRequest Clone() { | 6135 public FooRequest Clone() { |
5627 return new FooRequest(this); | 6136 return new FooRequest(this); |
5628 } | 6137 } |
5629 | 6138 |
| 6139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5630 public override bool Equals(object other) { | 6140 public override bool Equals(object other) { |
5631 return Equals(other as FooRequest); | 6141 return Equals(other as FooRequest); |
5632 } | 6142 } |
5633 | 6143 |
| 6144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5634 public bool Equals(FooRequest other) { | 6145 public bool Equals(FooRequest other) { |
5635 if (ReferenceEquals(other, null)) { | 6146 if (ReferenceEquals(other, null)) { |
5636 return false; | 6147 return false; |
5637 } | 6148 } |
5638 if (ReferenceEquals(other, this)) { | 6149 if (ReferenceEquals(other, this)) { |
5639 return true; | 6150 return true; |
5640 } | 6151 } |
5641 return true; | 6152 return true; |
5642 } | 6153 } |
5643 | 6154 |
| 6155 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5644 public override int GetHashCode() { | 6156 public override int GetHashCode() { |
5645 int hash = 1; | 6157 int hash = 1; |
5646 return hash; | 6158 return hash; |
5647 } | 6159 } |
5648 | 6160 |
| 6161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5649 public override string ToString() { | 6162 public override string ToString() { |
5650 return pb::JsonFormatter.ToDiagnosticString(this); | 6163 return pb::JsonFormatter.ToDiagnosticString(this); |
5651 } | 6164 } |
5652 | 6165 |
| 6166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5653 public void WriteTo(pb::CodedOutputStream output) { | 6167 public void WriteTo(pb::CodedOutputStream output) { |
5654 } | 6168 } |
5655 | 6169 |
| 6170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5656 public int CalculateSize() { | 6171 public int CalculateSize() { |
5657 int size = 0; | 6172 int size = 0; |
5658 return size; | 6173 return size; |
5659 } | 6174 } |
5660 | 6175 |
| 6176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5661 public void MergeFrom(FooRequest other) { | 6177 public void MergeFrom(FooRequest other) { |
5662 if (other == null) { | 6178 if (other == null) { |
5663 return; | 6179 return; |
5664 } | 6180 } |
5665 } | 6181 } |
5666 | 6182 |
| 6183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5667 public void MergeFrom(pb::CodedInputStream input) { | 6184 public void MergeFrom(pb::CodedInputStream input) { |
5668 uint tag; | 6185 uint tag; |
5669 while ((tag = input.ReadTag()) != 0) { | 6186 while ((tag = input.ReadTag()) != 0) { |
5670 switch(tag) { | 6187 switch(tag) { |
5671 default: | 6188 default: |
5672 input.SkipLastField(); | 6189 input.SkipLastField(); |
5673 break; | 6190 break; |
5674 } | 6191 } |
5675 } | 6192 } |
5676 } | 6193 } |
5677 | 6194 |
5678 } | 6195 } |
5679 | 6196 |
5680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
5681 public sealed partial class FooResponse : pb::IMessage<FooResponse> { | 6197 public sealed partial class FooResponse : pb::IMessage<FooResponse> { |
5682 private static readonly pb::MessageParser<FooResponse> _parser = new pb::Mes
sageParser<FooResponse>(() => new FooResponse()); | 6198 private static readonly pb::MessageParser<FooResponse> _parser = new pb::Mes
sageParser<FooResponse>(() => new FooResponse()); |
| 6199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5683 public static pb::MessageParser<FooResponse> Parser { get { return _parser;
} } | 6200 public static pb::MessageParser<FooResponse> Parser { get { return _parser;
} } |
5684 | 6201 |
| 6202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5685 public static pbr::MessageDescriptor Descriptor { | 6203 public static pbr::MessageDescriptor Descriptor { |
5686 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[28]; } | 6204 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[28]; } |
5687 } | 6205 } |
5688 | 6206 |
| 6207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5689 pbr::MessageDescriptor pb::IMessage.Descriptor { | 6208 pbr::MessageDescriptor pb::IMessage.Descriptor { |
5690 get { return Descriptor; } | 6209 get { return Descriptor; } |
5691 } | 6210 } |
5692 | 6211 |
| 6212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5693 public FooResponse() { | 6213 public FooResponse() { |
5694 OnConstruction(); | 6214 OnConstruction(); |
5695 } | 6215 } |
5696 | 6216 |
5697 partial void OnConstruction(); | 6217 partial void OnConstruction(); |
5698 | 6218 |
| 6219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5699 public FooResponse(FooResponse other) : this() { | 6220 public FooResponse(FooResponse other) : this() { |
5700 } | 6221 } |
5701 | 6222 |
| 6223 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5702 public FooResponse Clone() { | 6224 public FooResponse Clone() { |
5703 return new FooResponse(this); | 6225 return new FooResponse(this); |
5704 } | 6226 } |
5705 | 6227 |
| 6228 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5706 public override bool Equals(object other) { | 6229 public override bool Equals(object other) { |
5707 return Equals(other as FooResponse); | 6230 return Equals(other as FooResponse); |
5708 } | 6231 } |
5709 | 6232 |
| 6233 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5710 public bool Equals(FooResponse other) { | 6234 public bool Equals(FooResponse other) { |
5711 if (ReferenceEquals(other, null)) { | 6235 if (ReferenceEquals(other, null)) { |
5712 return false; | 6236 return false; |
5713 } | 6237 } |
5714 if (ReferenceEquals(other, this)) { | 6238 if (ReferenceEquals(other, this)) { |
5715 return true; | 6239 return true; |
5716 } | 6240 } |
5717 return true; | 6241 return true; |
5718 } | 6242 } |
5719 | 6243 |
| 6244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5720 public override int GetHashCode() { | 6245 public override int GetHashCode() { |
5721 int hash = 1; | 6246 int hash = 1; |
5722 return hash; | 6247 return hash; |
5723 } | 6248 } |
5724 | 6249 |
| 6250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5725 public override string ToString() { | 6251 public override string ToString() { |
5726 return pb::JsonFormatter.ToDiagnosticString(this); | 6252 return pb::JsonFormatter.ToDiagnosticString(this); |
5727 } | 6253 } |
5728 | 6254 |
| 6255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5729 public void WriteTo(pb::CodedOutputStream output) { | 6256 public void WriteTo(pb::CodedOutputStream output) { |
5730 } | 6257 } |
5731 | 6258 |
| 6259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5732 public int CalculateSize() { | 6260 public int CalculateSize() { |
5733 int size = 0; | 6261 int size = 0; |
5734 return size; | 6262 return size; |
5735 } | 6263 } |
5736 | 6264 |
| 6265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5737 public void MergeFrom(FooResponse other) { | 6266 public void MergeFrom(FooResponse other) { |
5738 if (other == null) { | 6267 if (other == null) { |
5739 return; | 6268 return; |
5740 } | 6269 } |
5741 } | 6270 } |
5742 | 6271 |
| 6272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5743 public void MergeFrom(pb::CodedInputStream input) { | 6273 public void MergeFrom(pb::CodedInputStream input) { |
5744 uint tag; | 6274 uint tag; |
5745 while ((tag = input.ReadTag()) != 0) { | 6275 while ((tag = input.ReadTag()) != 0) { |
5746 switch(tag) { | 6276 switch(tag) { |
5747 default: | 6277 default: |
5748 input.SkipLastField(); | 6278 input.SkipLastField(); |
5749 break; | 6279 break; |
5750 } | 6280 } |
5751 } | 6281 } |
5752 } | 6282 } |
5753 | 6283 |
5754 } | 6284 } |
5755 | 6285 |
5756 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
5757 public sealed partial class FooClientMessage : pb::IMessage<FooClientMessage>
{ | 6286 public sealed partial class FooClientMessage : pb::IMessage<FooClientMessage>
{ |
5758 private static readonly pb::MessageParser<FooClientMessage> _parser = new pb
::MessageParser<FooClientMessage>(() => new FooClientMessage()); | 6287 private static readonly pb::MessageParser<FooClientMessage> _parser = new pb
::MessageParser<FooClientMessage>(() => new FooClientMessage()); |
| 6288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5759 public static pb::MessageParser<FooClientMessage> Parser { get { return _par
ser; } } | 6289 public static pb::MessageParser<FooClientMessage> Parser { get { return _par
ser; } } |
5760 | 6290 |
| 6291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5761 public static pbr::MessageDescriptor Descriptor { | 6292 public static pbr::MessageDescriptor Descriptor { |
5762 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[29]; } | 6293 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[29]; } |
5763 } | 6294 } |
5764 | 6295 |
| 6296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5765 pbr::MessageDescriptor pb::IMessage.Descriptor { | 6297 pbr::MessageDescriptor pb::IMessage.Descriptor { |
5766 get { return Descriptor; } | 6298 get { return Descriptor; } |
5767 } | 6299 } |
5768 | 6300 |
| 6301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5769 public FooClientMessage() { | 6302 public FooClientMessage() { |
5770 OnConstruction(); | 6303 OnConstruction(); |
5771 } | 6304 } |
5772 | 6305 |
5773 partial void OnConstruction(); | 6306 partial void OnConstruction(); |
5774 | 6307 |
| 6308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5775 public FooClientMessage(FooClientMessage other) : this() { | 6309 public FooClientMessage(FooClientMessage other) : this() { |
5776 } | 6310 } |
5777 | 6311 |
| 6312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5778 public FooClientMessage Clone() { | 6313 public FooClientMessage Clone() { |
5779 return new FooClientMessage(this); | 6314 return new FooClientMessage(this); |
5780 } | 6315 } |
5781 | 6316 |
| 6317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5782 public override bool Equals(object other) { | 6318 public override bool Equals(object other) { |
5783 return Equals(other as FooClientMessage); | 6319 return Equals(other as FooClientMessage); |
5784 } | 6320 } |
5785 | 6321 |
| 6322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5786 public bool Equals(FooClientMessage other) { | 6323 public bool Equals(FooClientMessage other) { |
5787 if (ReferenceEquals(other, null)) { | 6324 if (ReferenceEquals(other, null)) { |
5788 return false; | 6325 return false; |
5789 } | 6326 } |
5790 if (ReferenceEquals(other, this)) { | 6327 if (ReferenceEquals(other, this)) { |
5791 return true; | 6328 return true; |
5792 } | 6329 } |
5793 return true; | 6330 return true; |
5794 } | 6331 } |
5795 | 6332 |
| 6333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5796 public override int GetHashCode() { | 6334 public override int GetHashCode() { |
5797 int hash = 1; | 6335 int hash = 1; |
5798 return hash; | 6336 return hash; |
5799 } | 6337 } |
5800 | 6338 |
| 6339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5801 public override string ToString() { | 6340 public override string ToString() { |
5802 return pb::JsonFormatter.ToDiagnosticString(this); | 6341 return pb::JsonFormatter.ToDiagnosticString(this); |
5803 } | 6342 } |
5804 | 6343 |
| 6344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5805 public void WriteTo(pb::CodedOutputStream output) { | 6345 public void WriteTo(pb::CodedOutputStream output) { |
5806 } | 6346 } |
5807 | 6347 |
| 6348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5808 public int CalculateSize() { | 6349 public int CalculateSize() { |
5809 int size = 0; | 6350 int size = 0; |
5810 return size; | 6351 return size; |
5811 } | 6352 } |
5812 | 6353 |
| 6354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5813 public void MergeFrom(FooClientMessage other) { | 6355 public void MergeFrom(FooClientMessage other) { |
5814 if (other == null) { | 6356 if (other == null) { |
5815 return; | 6357 return; |
5816 } | 6358 } |
5817 } | 6359 } |
5818 | 6360 |
| 6361 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5819 public void MergeFrom(pb::CodedInputStream input) { | 6362 public void MergeFrom(pb::CodedInputStream input) { |
5820 uint tag; | 6363 uint tag; |
5821 while ((tag = input.ReadTag()) != 0) { | 6364 while ((tag = input.ReadTag()) != 0) { |
5822 switch(tag) { | 6365 switch(tag) { |
5823 default: | 6366 default: |
5824 input.SkipLastField(); | 6367 input.SkipLastField(); |
5825 break; | 6368 break; |
5826 } | 6369 } |
5827 } | 6370 } |
5828 } | 6371 } |
5829 | 6372 |
5830 } | 6373 } |
5831 | 6374 |
5832 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
5833 public sealed partial class FooServerMessage : pb::IMessage<FooServerMessage>
{ | 6375 public sealed partial class FooServerMessage : pb::IMessage<FooServerMessage>
{ |
5834 private static readonly pb::MessageParser<FooServerMessage> _parser = new pb
::MessageParser<FooServerMessage>(() => new FooServerMessage()); | 6376 private static readonly pb::MessageParser<FooServerMessage> _parser = new pb
::MessageParser<FooServerMessage>(() => new FooServerMessage()); |
| 6377 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5835 public static pb::MessageParser<FooServerMessage> Parser { get { return _par
ser; } } | 6378 public static pb::MessageParser<FooServerMessage> Parser { get { return _par
ser; } } |
5836 | 6379 |
| 6380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5837 public static pbr::MessageDescriptor Descriptor { | 6381 public static pbr::MessageDescriptor Descriptor { |
5838 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[30]; } | 6382 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[30]; } |
5839 } | 6383 } |
5840 | 6384 |
| 6385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5841 pbr::MessageDescriptor pb::IMessage.Descriptor { | 6386 pbr::MessageDescriptor pb::IMessage.Descriptor { |
5842 get { return Descriptor; } | 6387 get { return Descriptor; } |
5843 } | 6388 } |
5844 | 6389 |
| 6390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5845 public FooServerMessage() { | 6391 public FooServerMessage() { |
5846 OnConstruction(); | 6392 OnConstruction(); |
5847 } | 6393 } |
5848 | 6394 |
5849 partial void OnConstruction(); | 6395 partial void OnConstruction(); |
5850 | 6396 |
| 6397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5851 public FooServerMessage(FooServerMessage other) : this() { | 6398 public FooServerMessage(FooServerMessage other) : this() { |
5852 } | 6399 } |
5853 | 6400 |
| 6401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5854 public FooServerMessage Clone() { | 6402 public FooServerMessage Clone() { |
5855 return new FooServerMessage(this); | 6403 return new FooServerMessage(this); |
5856 } | 6404 } |
5857 | 6405 |
| 6406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5858 public override bool Equals(object other) { | 6407 public override bool Equals(object other) { |
5859 return Equals(other as FooServerMessage); | 6408 return Equals(other as FooServerMessage); |
5860 } | 6409 } |
5861 | 6410 |
| 6411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5862 public bool Equals(FooServerMessage other) { | 6412 public bool Equals(FooServerMessage other) { |
5863 if (ReferenceEquals(other, null)) { | 6413 if (ReferenceEquals(other, null)) { |
5864 return false; | 6414 return false; |
5865 } | 6415 } |
5866 if (ReferenceEquals(other, this)) { | 6416 if (ReferenceEquals(other, this)) { |
5867 return true; | 6417 return true; |
5868 } | 6418 } |
5869 return true; | 6419 return true; |
5870 } | 6420 } |
5871 | 6421 |
| 6422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5872 public override int GetHashCode() { | 6423 public override int GetHashCode() { |
5873 int hash = 1; | 6424 int hash = 1; |
5874 return hash; | 6425 return hash; |
5875 } | 6426 } |
5876 | 6427 |
| 6428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5877 public override string ToString() { | 6429 public override string ToString() { |
5878 return pb::JsonFormatter.ToDiagnosticString(this); | 6430 return pb::JsonFormatter.ToDiagnosticString(this); |
5879 } | 6431 } |
5880 | 6432 |
| 6433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5881 public void WriteTo(pb::CodedOutputStream output) { | 6434 public void WriteTo(pb::CodedOutputStream output) { |
5882 } | 6435 } |
5883 | 6436 |
| 6437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5884 public int CalculateSize() { | 6438 public int CalculateSize() { |
5885 int size = 0; | 6439 int size = 0; |
5886 return size; | 6440 return size; |
5887 } | 6441 } |
5888 | 6442 |
| 6443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5889 public void MergeFrom(FooServerMessage other) { | 6444 public void MergeFrom(FooServerMessage other) { |
5890 if (other == null) { | 6445 if (other == null) { |
5891 return; | 6446 return; |
5892 } | 6447 } |
5893 } | 6448 } |
5894 | 6449 |
| 6450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5895 public void MergeFrom(pb::CodedInputStream input) { | 6451 public void MergeFrom(pb::CodedInputStream input) { |
5896 uint tag; | 6452 uint tag; |
5897 while ((tag = input.ReadTag()) != 0) { | 6453 while ((tag = input.ReadTag()) != 0) { |
5898 switch(tag) { | 6454 switch(tag) { |
5899 default: | 6455 default: |
5900 input.SkipLastField(); | 6456 input.SkipLastField(); |
5901 break; | 6457 break; |
5902 } | 6458 } |
5903 } | 6459 } |
5904 } | 6460 } |
5905 | 6461 |
5906 } | 6462 } |
5907 | 6463 |
5908 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
5909 public sealed partial class BarRequest : pb::IMessage<BarRequest> { | 6464 public sealed partial class BarRequest : pb::IMessage<BarRequest> { |
5910 private static readonly pb::MessageParser<BarRequest> _parser = new pb::Mess
ageParser<BarRequest>(() => new BarRequest()); | 6465 private static readonly pb::MessageParser<BarRequest> _parser = new pb::Mess
ageParser<BarRequest>(() => new BarRequest()); |
| 6466 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5911 public static pb::MessageParser<BarRequest> Parser { get { return _parser; }
} | 6467 public static pb::MessageParser<BarRequest> Parser { get { return _parser; }
} |
5912 | 6468 |
| 6469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5913 public static pbr::MessageDescriptor Descriptor { | 6470 public static pbr::MessageDescriptor Descriptor { |
5914 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[31]; } | 6471 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[31]; } |
5915 } | 6472 } |
5916 | 6473 |
| 6474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5917 pbr::MessageDescriptor pb::IMessage.Descriptor { | 6475 pbr::MessageDescriptor pb::IMessage.Descriptor { |
5918 get { return Descriptor; } | 6476 get { return Descriptor; } |
5919 } | 6477 } |
5920 | 6478 |
| 6479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5921 public BarRequest() { | 6480 public BarRequest() { |
5922 OnConstruction(); | 6481 OnConstruction(); |
5923 } | 6482 } |
5924 | 6483 |
5925 partial void OnConstruction(); | 6484 partial void OnConstruction(); |
5926 | 6485 |
| 6486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5927 public BarRequest(BarRequest other) : this() { | 6487 public BarRequest(BarRequest other) : this() { |
5928 } | 6488 } |
5929 | 6489 |
| 6490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5930 public BarRequest Clone() { | 6491 public BarRequest Clone() { |
5931 return new BarRequest(this); | 6492 return new BarRequest(this); |
5932 } | 6493 } |
5933 | 6494 |
| 6495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5934 public override bool Equals(object other) { | 6496 public override bool Equals(object other) { |
5935 return Equals(other as BarRequest); | 6497 return Equals(other as BarRequest); |
5936 } | 6498 } |
5937 | 6499 |
| 6500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5938 public bool Equals(BarRequest other) { | 6501 public bool Equals(BarRequest other) { |
5939 if (ReferenceEquals(other, null)) { | 6502 if (ReferenceEquals(other, null)) { |
5940 return false; | 6503 return false; |
5941 } | 6504 } |
5942 if (ReferenceEquals(other, this)) { | 6505 if (ReferenceEquals(other, this)) { |
5943 return true; | 6506 return true; |
5944 } | 6507 } |
5945 return true; | 6508 return true; |
5946 } | 6509 } |
5947 | 6510 |
| 6511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5948 public override int GetHashCode() { | 6512 public override int GetHashCode() { |
5949 int hash = 1; | 6513 int hash = 1; |
5950 return hash; | 6514 return hash; |
5951 } | 6515 } |
5952 | 6516 |
| 6517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5953 public override string ToString() { | 6518 public override string ToString() { |
5954 return pb::JsonFormatter.ToDiagnosticString(this); | 6519 return pb::JsonFormatter.ToDiagnosticString(this); |
5955 } | 6520 } |
5956 | 6521 |
| 6522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5957 public void WriteTo(pb::CodedOutputStream output) { | 6523 public void WriteTo(pb::CodedOutputStream output) { |
5958 } | 6524 } |
5959 | 6525 |
| 6526 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5960 public int CalculateSize() { | 6527 public int CalculateSize() { |
5961 int size = 0; | 6528 int size = 0; |
5962 return size; | 6529 return size; |
5963 } | 6530 } |
5964 | 6531 |
| 6532 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5965 public void MergeFrom(BarRequest other) { | 6533 public void MergeFrom(BarRequest other) { |
5966 if (other == null) { | 6534 if (other == null) { |
5967 return; | 6535 return; |
5968 } | 6536 } |
5969 } | 6537 } |
5970 | 6538 |
| 6539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5971 public void MergeFrom(pb::CodedInputStream input) { | 6540 public void MergeFrom(pb::CodedInputStream input) { |
5972 uint tag; | 6541 uint tag; |
5973 while ((tag = input.ReadTag()) != 0) { | 6542 while ((tag = input.ReadTag()) != 0) { |
5974 switch(tag) { | 6543 switch(tag) { |
5975 default: | 6544 default: |
5976 input.SkipLastField(); | 6545 input.SkipLastField(); |
5977 break; | 6546 break; |
5978 } | 6547 } |
5979 } | 6548 } |
5980 } | 6549 } |
5981 | 6550 |
5982 } | 6551 } |
5983 | 6552 |
5984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
5985 public sealed partial class BarResponse : pb::IMessage<BarResponse> { | 6553 public sealed partial class BarResponse : pb::IMessage<BarResponse> { |
5986 private static readonly pb::MessageParser<BarResponse> _parser = new pb::Mes
sageParser<BarResponse>(() => new BarResponse()); | 6554 private static readonly pb::MessageParser<BarResponse> _parser = new pb::Mes
sageParser<BarResponse>(() => new BarResponse()); |
| 6555 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5987 public static pb::MessageParser<BarResponse> Parser { get { return _parser;
} } | 6556 public static pb::MessageParser<BarResponse> Parser { get { return _parser;
} } |
5988 | 6557 |
| 6558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5989 public static pbr::MessageDescriptor Descriptor { | 6559 public static pbr::MessageDescriptor Descriptor { |
5990 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[32]; } | 6560 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.D
escriptor.MessageTypes[32]; } |
5991 } | 6561 } |
5992 | 6562 |
| 6563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5993 pbr::MessageDescriptor pb::IMessage.Descriptor { | 6564 pbr::MessageDescriptor pb::IMessage.Descriptor { |
5994 get { return Descriptor; } | 6565 get { return Descriptor; } |
5995 } | 6566 } |
5996 | 6567 |
| 6568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
5997 public BarResponse() { | 6569 public BarResponse() { |
5998 OnConstruction(); | 6570 OnConstruction(); |
5999 } | 6571 } |
6000 | 6572 |
6001 partial void OnConstruction(); | 6573 partial void OnConstruction(); |
6002 | 6574 |
| 6575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
6003 public BarResponse(BarResponse other) : this() { | 6576 public BarResponse(BarResponse other) : this() { |
6004 } | 6577 } |
6005 | 6578 |
| 6579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
6006 public BarResponse Clone() { | 6580 public BarResponse Clone() { |
6007 return new BarResponse(this); | 6581 return new BarResponse(this); |
6008 } | 6582 } |
6009 | 6583 |
| 6584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
6010 public override bool Equals(object other) { | 6585 public override bool Equals(object other) { |
6011 return Equals(other as BarResponse); | 6586 return Equals(other as BarResponse); |
6012 } | 6587 } |
6013 | 6588 |
| 6589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
6014 public bool Equals(BarResponse other) { | 6590 public bool Equals(BarResponse other) { |
6015 if (ReferenceEquals(other, null)) { | 6591 if (ReferenceEquals(other, null)) { |
6016 return false; | 6592 return false; |
6017 } | 6593 } |
6018 if (ReferenceEquals(other, this)) { | 6594 if (ReferenceEquals(other, this)) { |
6019 return true; | 6595 return true; |
6020 } | 6596 } |
6021 return true; | 6597 return true; |
6022 } | 6598 } |
6023 | 6599 |
| 6600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
6024 public override int GetHashCode() { | 6601 public override int GetHashCode() { |
6025 int hash = 1; | 6602 int hash = 1; |
6026 return hash; | 6603 return hash; |
6027 } | 6604 } |
6028 | 6605 |
| 6606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
6029 public override string ToString() { | 6607 public override string ToString() { |
6030 return pb::JsonFormatter.ToDiagnosticString(this); | 6608 return pb::JsonFormatter.ToDiagnosticString(this); |
6031 } | 6609 } |
6032 | 6610 |
| 6611 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
6033 public void WriteTo(pb::CodedOutputStream output) { | 6612 public void WriteTo(pb::CodedOutputStream output) { |
6034 } | 6613 } |
6035 | 6614 |
| 6615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
6036 public int CalculateSize() { | 6616 public int CalculateSize() { |
6037 int size = 0; | 6617 int size = 0; |
6038 return size; | 6618 return size; |
6039 } | 6619 } |
6040 | 6620 |
| 6621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
6041 public void MergeFrom(BarResponse other) { | 6622 public void MergeFrom(BarResponse other) { |
6042 if (other == null) { | 6623 if (other == null) { |
6043 return; | 6624 return; |
6044 } | 6625 } |
6045 } | 6626 } |
6046 | 6627 |
| 6628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
6047 public void MergeFrom(pb::CodedInputStream input) { | 6629 public void MergeFrom(pb::CodedInputStream input) { |
6048 uint tag; | 6630 uint tag; |
6049 while ((tag = input.ReadTag()) != 0) { | 6631 while ((tag = input.ReadTag()) != 0) { |
6050 switch(tag) { | 6632 switch(tag) { |
6051 default: | 6633 default: |
6052 input.SkipLastField(); | 6634 input.SkipLastField(); |
6053 break; | 6635 break; |
6054 } | 6636 } |
6055 } | 6637 } |
6056 } | 6638 } |
6057 | 6639 |
6058 } | 6640 } |
6059 | 6641 |
6060 #endregion | 6642 #endregion |
6061 | 6643 |
6062 } | 6644 } |
6063 | 6645 |
6064 #endregion Designer generated code | 6646 #endregion Designer generated code |
OLD | NEW |