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