Lines Matching defs:other
279 public TestAllTypesProto2(TestAllTypesProto2 other) : this() {
280 _hasBits0 = other._hasBits0;
281 _hasBits1 = other._hasBits1;
282 optionalInt32_ = other.optionalInt32_;
283 optionalInt64_ = other.optionalInt64_;
284 optionalUint32_ = other.optionalUint32_;
285 optionalUint64_ = other.optionalUint64_;
286 optionalSint32_ = other.optionalSint32_;
287 optionalSint64_ = other.optionalSint64_;
288 optionalFixed32_ = other.optionalFixed32_;
289 optionalFixed64_ = other.optionalFixed64_;
290 optionalSfixed32_ = other.optionalSfixed32_;
291 optionalSfixed64_ = other.optionalSfixed64_;
292 optionalFloat_ = other.optionalFloat_;
293 optionalDouble_ = other.optionalDouble_;
294 optionalBool_ = other.optionalBool_;
295 optionalString_ = other.optionalString_;
296 optionalBytes_ = other.optionalBytes_;
297 optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
298 optionalForeignMessage_ = other.optionalForeignMessage_ != null ? other.optionalForeignMessage_.Clone() : null;
299 optionalNestedEnum_ = other.optionalNestedEnum_;
300 optionalForeignEnum_ = other.optionalForeignEnum_;
301 optionalStringPiece_ = other.optionalStringPiece_;
302 optionalCord_ = other.optionalCord_;
303 recursiveMessage_ = other.recursiveMessage_ != null ? other.recursiveMessage_.Clone() : null;
304 repeatedInt32_ = other.repeatedInt32_.Clone();
305 repeatedInt64_ = other.repeatedInt64_.Clone();
306 repeatedUint32_ = other.repeatedUint32_.Clone();
307 repeatedUint64_ = other.repeatedUint64_.Clone();
308 repeatedSint32_ = other.repeatedSint32_.Clone();
309 repeatedSint64_ = other.repeatedSint64_.Clone();
310 repeatedFixed32_ = other.repeatedFixed32_.Clone();
311 repeatedFixed64_ = other.repeatedFixed64_.Clone();
312 repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
313 repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
314 repeatedFloat_ = other.repeatedFloat_.Clone();
315 repeatedDouble_ = other.repeatedDouble_.Clone();
316 repeatedBool_ = other.repeatedBool_.Clone();
317 repeatedString_ = other.repeatedString_.Clone();
318 repeatedBytes_ = other.repeatedBytes_.Clone();
319 repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
320 repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
321 repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
322 repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
323 repeatedStringPiece_ = other.repeatedStringPiece_.Clone();
324 repeatedCord_ = other.repeatedCord_.Clone();
325 packedInt32_ = other.packedInt32_.Clone();
326 packedInt64_ = other.packedInt64_.Clone();
327 packedUint32_ = other.packedUint32_.Clone();
328 packedUint64_ = other.packedUint64_.Clone();
329 packedSint32_ = other.packedSint32_.Clone();
330 packedSint64_ = other.packedSint64_.Clone();
331 packedFixed32_ = other.packedFixed32_.Clone();
332 packedFixed64_ = other.packedFixed64_.Clone();
333 packedSfixed32_ = other.packedSfixed32_.Clone();
334 packedSfixed64_ = other.packedSfixed64_.Clone();
335 packedFloat_ = other.packedFloat_.Clone();
336 packedDouble_ = other.packedDouble_.Clone();
337 packedBool_ = other.packedBool_.Clone();
338 packedNestedEnum_ = other.packedNestedEnum_.Clone();
339 unpackedInt32_ = other.unpackedInt32_.Clone();
340 unpackedInt64_ = other.unpackedInt64_.Clone();
341 unpackedUint32_ = other.unpackedUint32_.Clone();
342 unpackedUint64_ = other.unpackedUint64_.Clone();
343 unpackedSint32_ = other.unpackedSint32_.Clone();
344 unpackedSint64_ = other.unpackedSint64_.Clone();
345 unpackedFixed32_ = other.unpackedFixed32_.Clone();
346 unpackedFixed64_ = other.unpackedFixed64_.Clone();
347 unpackedSfixed32_ = other.unpackedSfixed32_.Clone();
348 unpackedSfixed64_ = other.unpackedSfixed64_.Clone();
349 unpackedFloat_ = other.unpackedFloat_.Clone();
350 unpackedDouble_ = other.unpackedDouble_.Clone();
351 unpackedBool_ = other.unpackedBool_.Clone();
352 unpackedNestedEnum_ = other.unpackedNestedEnum_.Clone();
353 mapInt32Int32_ = other.mapInt32Int32_.Clone();
354 mapInt64Int64_ = other.mapInt64Int64_.Clone();
355 mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
356 mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
357 mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
358 mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
359 mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
360 mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
361 mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
362 mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
363 mapInt32Float_ = other.mapInt32Float_.Clone();
364 mapInt32Double_ = other.mapInt32Double_.Clone();
365 mapBoolBool_ = other.mapBoolBool_.Clone();
366 mapStringString_ = other.mapStringString_.Clone();
367 mapStringBytes_ = other.mapStringBytes_.Clone();
368 mapStringNestedMessage_ = other.mapStringNestedMessage_.Clone();
369 mapStringForeignMessage_ = other.mapStringForeignMessage_.Clone();
370 mapStringNestedEnum_ = other.mapStringNestedEnum_.Clone();
371 mapStringForeignEnum_ = other.mapStringForeignEnum_.Clone();
372 data_ = other.HasData ? other.data_.Clone() : null;
373 fieldname1_ = other.fieldname1_;
374 fieldName2_ = other.fieldName2_;
375 FieldName3_ = other.FieldName3_;
376 fieldName4_ = other.fieldName4_;
377 field0Name5_ = other.field0Name5_;
378 field0Name6_ = other.field0Name6_;
379 fieldName7_ = other.fieldName7_;
380 fieldName8_ = other.fieldName8_;
381 fieldName9_ = other.fieldName9_;
382 fieldName10_ = other.fieldName10_;
383 fIELDNAME11_ = other.fIELDNAME11_;
384 fIELDName12_ = other.fIELDName12_;
385 FieldName13_ = other.FieldName13_;
386 FieldName14_ = other.FieldName14_;
387 fieldName15_ = other.fieldName15_;
388 fieldName16_ = other.fieldName16_;
389 fieldName17_ = other.fieldName17_;
390 fieldName18_ = other.fieldName18_;
391 switch (other.OneofFieldCase) {
393 OneofUint32 = other.OneofUint32;
396 OneofNestedMessage = other.OneofNestedMessage.Clone();
399 OneofString = other.OneofString;
402 OneofBytes = other.OneofBytes;
405 OneofBool = other.OneofBool;
408 OneofUint64 = other.OneofUint64;
411 OneofFloat = other.OneofFloat;
414 OneofDouble = other.OneofDouble;
417 OneofEnum = other.OneofEnum;
421 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
422 _extensions = pb::ExtensionSet.Clone(other._extensions);
2289 public override bool Equals(object other) {
2290 return Equals(other as TestAllTypesProto2);
2294 public bool Equals(TestAllTypesProto2 other) {
2295 if (ReferenceEquals(other, null)) {
2298 if (ReferenceEquals(other, this)) {
2301 if (OptionalInt32 != other.OptionalInt32) return false;
2302 if (OptionalInt64 != other.OptionalInt64) return false;
2303 if (OptionalUint32 != other.OptionalUint32) return false;
2304 if (OptionalUint64 != other.OptionalUint64) return false;
2305 if (OptionalSint32 != other.OptionalSint32) return false;
2306 if (OptionalSint64 != other.OptionalSint64) return false;
2307 if (OptionalFixed32 != other.OptionalFixed32) return false;
2308 if (OptionalFixed64 != other.OptionalFixed64) return false;
2309 if (OptionalSfixed32 != other.OptionalSfixed32) return false;
2310 if (OptionalSfixed64 != other.OptionalSfixed64) return false;
2311 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OptionalFloat, other.OptionalFloat)) return false;
2312 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) return false;
2313 if (OptionalBool != other.OptionalBool) return false;
2314 if (OptionalString != other.OptionalString) return false;
2315 if (OptionalBytes != other.OptionalBytes) return false;
2316 if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
2317 if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false;
2318 if (OptionalNestedEnum != other.OptionalNestedEnum) return false;
2319 if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
2320 if (OptionalStringPiece != other.OptionalStringPiece) return false;
2321 if (OptionalCord != other.OptionalCord) return false;
2322 if (!object.Equals(RecursiveMessage, other.RecursiveMessage)) return false;
2323 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
2324 if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
2325 if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
2326 if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
2327 if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
2328 if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
2329 if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
2330 if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
2331 if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
2332 if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
2333 if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
2334 if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
2335 if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
2336 if(!repeatedString_.Equals(other.repeatedString_)) return false;
2337 if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
2338 if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
2339 if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
2340 if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
2341 if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
2342 if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false;
2343 if(!repeatedCord_.Equals(other.repeatedCord_)) return false;
2344 if(!packedInt32_.Equals(other.packedInt32_)) return false;
2345 if(!packedInt64_.Equals(other.packedInt64_)) return false;
2346 if(!packedUint32_.Equals(other.packedUint32_)) return false;
2347 if(!packedUint64_.Equals(other.packedUint64_)) return false;
2348 if(!packedSint32_.Equals(other.packedSint32_)) return false;
2349 if(!packedSint64_.Equals(other.packedSint64_)) return false;
2350 if(!packedFixed32_.Equals(other.packedFixed32_)) return false;
2351 if(!packedFixed64_.Equals(other.packedFixed64_)) return false;
2352 if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false;
2353 if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false;
2354 if(!packedFloat_.Equals(other.packedFloat_)) return false;
2355 if(!packedDouble_.Equals(other.packedDouble_)) return false;
2356 if(!packedBool_.Equals(other.packedBool_)) return false;
2357 if(!packedNestedEnum_.Equals(other.packedNestedEnum_)) return false;
2358 if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false;
2359 if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false;
2360 if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false;
2361 if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false;
2362 if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false;
2363 if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false;
2364 if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false;
2365 if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false;
2366 if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false;
2367 if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false;
2368 if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false;
2369 if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false;
2370 if(!unpackedBool_.Equals(other.unpackedBool_)) return false;
2371 if(!unpackedNestedEnum_.Equals(other.unpackedNestedEnum_)) return false;
2372 if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
2373 if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
2374 if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
2375 if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
2376 if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
2377 if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
2378 if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
2379 if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
2380 if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
2381 if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
2382 if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
2383 if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
2384 if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
2385 if (!MapStringString.Equals(other.MapStringString)) return false;
2386 if (!MapStringBytes.Equals(other.MapStringBytes)) return false;
2387 if (!MapStringNestedMessage.Equals(other.MapStringNestedMessage)) return false;
2388 if (!MapStringForeignMessage.Equals(other.MapStringForeignMessage)) return false;
2389 if (!MapStringNestedEnum.Equals(other.MapStringNestedEnum)) return false;
2390 if (!MapStringForeignEnum.Equals(other.MapStringForeignEnum)) return false;
2391 if (OneofUint32 != other.OneofUint32) return false;
2392 if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
2393 if (OneofString != other.OneofString) return false;
2394 if (OneofBytes != other.OneofBytes) return false;
2395 if (OneofBool != other.OneofBool) return false;
2396 if (OneofUint64 != other.OneofUint64) return false;
2397 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OneofFloat, other.OneofFloat)) return false;
2398 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OneofDouble, other.OneofDouble)) return false;
2399 if (OneofEnum != other.OneofEnum) return false;
2400 if (!object.Equals(Data, other.Data)) return false;
2401 if (Fieldname1 != other.Fieldname1) return false;
2402 if (FieldName2 != other.FieldName2) return false;
2403 if (FieldName3 != other.FieldName3) return false;
2404 if (FieldName4 != other.FieldName4) return false;
2405 if (Field0Name5 != other.Field0Name5) return false;
2406 if (Field0Name6 != other.Field0Name6) return false;
2407 if (FieldName7 != other.FieldName7) return false;
2408 if (FieldName8 != other.FieldName8) return false;
2409 if (FieldName9 != other.FieldName9) return false;
2410 if (FieldName10 != other.FieldName10) return false;
2411 if (FIELDNAME11 != other.FIELDNAME11) return false;
2412 if (FIELDName12 != other.FIELDName12) return false;
2413 if (FieldName13 != other.FieldName13) return false;
2414 if (FieldName14 != other.FieldName14) return false;
2415 if (FieldName15 != other.FieldName15) return false;
2416 if (FieldName16 != other.FieldName16) return false;
2417 if (FieldName17 != other.FieldName17) return false;
2418 if (FieldName18 != other.FieldName18) return false;
2419 if (OneofFieldCase != other.OneofFieldCase) return false;
2420 if (!Equals(_extensions, other._extensions)) {
2423 return Equals(_unknownFields, other._unknownFields);
3357 public void MergeFrom(TestAllTypesProto2 other) {
3358 if (other == null) {
3361 if (other.HasOptionalInt32) {
3362 OptionalInt32 = other.OptionalInt32;
3364 if (other.HasOptionalInt64) {
3365 OptionalInt64 = other.OptionalInt64;
3367 if (other.HasOptionalUint32) {
3368 OptionalUint32 = other.OptionalUint32;
3370 if (other.HasOptionalUint64) {
3371 OptionalUint64 = other.OptionalUint64;
3373 if (other.HasOptionalSint32) {
3374 OptionalSint32 = other.OptionalSint32;
3376 if (other.HasOptionalSint64) {
3377 OptionalSint64 = other.OptionalSint64;
3379 if (other.HasOptionalFixed32) {
3380 OptionalFixed32 = other.OptionalFixed32;
3382 if (other.HasOptionalFixed64) {
3383 OptionalFixed64 = other.OptionalFixed64;
3385 if (other.HasOptionalSfixed32) {
3386 OptionalSfixed32 = other.OptionalSfixed32;
3388 if (other.HasOptionalSfixed64) {
3389 OptionalSfixed64 = other.OptionalSfixed64;
3391 if (other.HasOptionalFloat) {
3392 OptionalFloat = other.OptionalFloat;
3394 if (other.HasOptionalDouble) {
3395 OptionalDouble = other.OptionalDouble;
3397 if (other.HasOptionalBool) {
3398 OptionalBool = other.OptionalBool;
3400 if (other.HasOptionalString) {
3401 OptionalString = other.OptionalString;
3403 if (other.HasOptionalBytes) {
3404 OptionalBytes = other.OptionalBytes;
3406 if (other.optionalNestedMessage_ != null) {
3410 OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
3412 if (other.optionalForeignMessage_ != null) {
3416 OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage);
3418 if (other.HasOptionalNestedEnum) {
3419 OptionalNestedEnum = other.OptionalNestedEnum;
3421 if (other.HasOptionalForeignEnum) {
3422 OptionalForeignEnum = other.OptionalForeignEnum;
3424 if (other.HasOptionalStringPiece) {
3425 OptionalStringPiece = other.OptionalStringPiece;
3427 if (other.HasOptionalCord) {
3428 OptionalCord = other.OptionalCord;
3430 if (other.recursiveMessage_ != null) {
3434 RecursiveMessage.MergeFrom(other.RecursiveMessage);
3436 repeatedInt32_.Add(other.repeatedInt32_);
3437 repeatedInt64_.Add(other.repeatedInt64_);
3438 repeatedUint32_.Add(other.repeatedUint32_);
3439 repeatedUint64_.Add(other.repeatedUint64_);
3440 repeatedSint32_.Add(other.repeatedSint32_);
3441 repeatedSint64_.Add(other.repeatedSint64_);
3442 repeatedFixed32_.Add(other.repeatedFixed32_);
3443 repeatedFixed64_.Add(other.repeatedFixed64_);
3444 repeatedSfixed32_.Add(other.repeatedSfixed32_);
3445 repeatedSfixed64_.Add(other.repeatedSfixed64_);
3446 repeatedFloat_.Add(other.repeatedFloat_);
3447 repeatedDouble_.Add(other.repeatedDouble_);
3448 repeatedBool_.Add(other.repeatedBool_);
3449 repeatedString_.Add(other.repeatedString_);
3450 repeatedBytes_.Add(other.repeatedBytes_);
3451 repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
3452 repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
3453 repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
3454 repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
3455 repeatedStringPiece_.Add(other.repeatedStringPiece_);
3456 repeatedCord_.Add(other.repeatedCord_);
3457 packedInt32_.Add(other.packedInt32_);
3458 packedInt64_.Add(other.packedInt64_);
3459 packedUint32_.Add(other.packedUint32_);
3460 packedUint64_.Add(other.packedUint64_);
3461 packedSint32_.Add(other.packedSint32_);
3462 packedSint64_.Add(other.packedSint64_);
3463 packedFixed32_.Add(other.packedFixed32_);
3464 packedFixed64_.Add(other.packedFixed64_);
3465 packedSfixed32_.Add(other.packedSfixed32_);
3466 packedSfixed64_.Add(other.packedSfixed64_);
3467 packedFloat_.Add(other.packedFloat_);
3468 packedDouble_.Add(other.packedDouble_);
3469 packedBool_.Add(other.packedBool_);
3470 packedNestedEnum_.Add(other.packedNestedEnum_);
3471 unpackedInt32_.Add(other.unpackedInt32_);
3472 unpackedInt64_.Add(other.unpackedInt64_);
3473 unpackedUint32_.Add(other.unpackedUint32_);
3474 unpackedUint64_.Add(other.unpackedUint64_);
3475 unpackedSint32_.Add(other.unpackedSint32_);
3476 unpackedSint64_.Add(other.unpackedSint64_);
3477 unpackedFixed32_.Add(other.unpackedFixed32_);
3478 unpackedFixed64_.Add(other.unpackedFixed64_);
3479 unpackedSfixed32_.Add(other.unpackedSfixed32_);
3480 unpackedSfixed64_.Add(other.unpackedSfixed64_);
3481 unpackedFloat_.Add(other.unpackedFloat_);
3482 unpackedDouble_.Add(other.unpackedDouble_);
3483 unpackedBool_.Add(other.unpackedBool_);
3484 unpackedNestedEnum_.Add(other.unpackedNestedEnum_);
3485 mapInt32Int32_.Add(other.mapInt32Int32_);
3486 mapInt64Int64_.Add(other.mapInt64Int64_);
3487 mapUint32Uint32_.Add(other.mapUint32Uint32_);
3488 mapUint64Uint64_.Add(other.mapUint64Uint64_);
3489 mapSint32Sint32_.Add(other.mapSint32Sint32_);
3490 mapSint64Sint64_.Add(other.mapSint64Sint64_);
3491 mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
3492 mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
3493 mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
3494 mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
3495 mapInt32Float_.Add(other.mapInt32Float_);
3496 mapInt32Double_.Add(other.mapInt32Double_);
3497 mapBoolBool_.Add(other.mapBoolBool_);
3498 mapStringString_.Add(other.mapStringString_);
3499 mapStringBytes_.Add(other.mapStringBytes_);
3500 mapStringNestedMessage_.Add(other.mapStringNestedMessage_);
3501 mapStringForeignMessage_.Add(other.mapStringForeignMessage_);
3502 mapStringNestedEnum_.Add(other.mapStringNestedEnum_);
3503 mapStringForeignEnum_.Add(other.mapStringForeignEnum_);
3504 if (other.HasData) {
3508 Data.MergeFrom(other.Data);
3510 if (other.HasFieldname1) {
3511 Fieldname1 = other.Fieldname1;
3513 if (other.HasFieldName2) {
3514 FieldName2 = other.FieldName2;
3516 if (other.HasFieldName3) {
3517 FieldName3 = other.FieldName3;
3519 if (other.HasFieldName4) {
3520 FieldName4 = other.FieldName4;
3522 if (other.HasField0Name5) {
3523 Field0Name5 = other.Field0Name5;
3525 if (other.HasField0Name6) {
3526 Field0Name6 = other.Field0Name6;
3528 if (other.HasFieldName7) {
3529 FieldName7 = other.FieldName7;
3531 if (other.HasFieldName8) {
3532 FieldName8 = other.FieldName8;
3534 if (other.HasFieldName9) {
3535 FieldName9 = other.FieldName9;
3537 if (other.HasFieldName10) {
3538 FieldName10 = other.FieldName10;
3540 if (other.HasFIELDNAME11) {
3541 FIELDNAME11 = other.FIELDNAME11;
3543 if (other.HasFIELDName12) {
3544 FIELDName12 = other.FIELDName12;
3546 if (other.HasFieldName13) {
3547 FieldName13 = other.FieldName13;
3549 if (other.HasFieldName14) {
3550 FieldName14 = other.FieldName14;
3552 if (other.HasFieldName15) {
3553 FieldName15 = other.FieldName15;
3555 if (other.HasFieldName16) {
3556 FieldName16 = other.FieldName16;
3558 if (other.HasFieldName17) {
3559 FieldName17 = other.FieldName17;
3561 if (other.HasFieldName18) {
3562 FieldName18 = other.FieldName18;
3564 switch (other.OneofFieldCase) {
3566 OneofUint32 = other.OneofUint32;
3572 OneofNestedMessage.MergeFrom(other.OneofNestedMessage);
3575 OneofString = other.OneofString;
3578 OneofBytes = other.OneofBytes;
3581 OneofBool = other.OneofBool;
3584 OneofUint64 = other.OneofUint64;
3587 OneofFloat = other.OneofFloat;
3590 OneofDouble = other.OneofDouble;
3593 OneofEnum = other.OneofEnum;
3597 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
3598 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4766 public NestedMessage(NestedMessage other) : this() {
4767 _hasBits0 = other._hasBits0;
4768 a_ = other.a_;
4769 corecursive_ = other.corecursive_ != null ? other.corecursive_.Clone() : null;
4770 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4814 public override bool Equals(object other) {
4815 return Equals(other as NestedMessage);
4819 public bool Equals(NestedMessage other) {
4820 if (ReferenceEquals(other, null)) {
4823 if (ReferenceEquals(other, this)) {
4826 if (A != other.A) return false;
4827 if (!object.Equals(Corecursive, other.Corecursive)) return false;
4828 return Equals(_unknownFields, other._unknownFields);
4899 public void MergeFrom(NestedMessage other) {
4900 if (other == null) {
4903 if (other.HasA) {
4904 A = other.A;
4906 if (other.corecursive_ != null) {
4910 Corecursive.MergeFrom(other.Corecursive);
4912 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5001 public Data(Data other) : this() {
5002 _hasBits0 = other._hasBits0;
5003 groupInt32_ = other.groupInt32_;
5004 groupUint32_ = other.groupUint32_;
5005 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5062 public override bool Equals(object other) {
5063 return Equals(other as Data);
5067 public bool Equals(Data other) {
5068 if (ReferenceEquals(other, null)) {
5071 if (ReferenceEquals(other, this)) {
5074 if (GroupInt32 != other.GroupInt32) return false;
5075 if (GroupUint32 != other.GroupUint32) return false;
5076 return Equals(_unknownFields, other._unknownFields);
5147 public void MergeFrom(Data other) {
5148 if (other == null) {
5151 if (other.HasGroupInt32) {
5152 GroupInt32 = other.GroupInt32;
5154 if (other.HasGroupUint32) {
5155 GroupUint32 = other.GroupUint32;
5157 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5245 public MessageSetCorrect(MessageSetCorrect other) : this() {
5246 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5247 _extensions = pb::ExtensionSet.Clone(other._extensions);
5256 public override bool Equals(object other) {
5257 return Equals(other as MessageSetCorrect);
5261 public bool Equals(MessageSetCorrect other) {
5262 if (ReferenceEquals(other, null)) {
5265 if (ReferenceEquals(other, this)) {
5268 if (!Equals(_extensions, other._extensions)) {
5271 return Equals(_unknownFields, other._unknownFields);
5330 public void MergeFrom(MessageSetCorrect other) {
5331 if (other == null) {
5334 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
5335 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5424 public MessageSetCorrectExtension1(MessageSetCorrectExtension1 other) : this() {
5425 str_ = other.str_;
5426 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5458 public override bool Equals(object other) {
5459 return Equals(other as MessageSetCorrectExtension1);
5463 public bool Equals(MessageSetCorrectExtension1 other) {
5464 if (ReferenceEquals(other, null)) {
5467 if (ReferenceEquals(other, this)) {
5470 if (Str != other.Str) return false;
5471 return Equals(_unknownFields, other._unknownFields);
5530 public void MergeFrom(MessageSetCorrectExtension1 other) {
5531 if (other == null) {
5534 if (other.HasStr) {
5535 Str = other.Str;
5537 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5579 /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension1 message type.</summary>
5618 public MessageSetCorrectExtension2(MessageSetCorrectExtension2 other) : this() {
5619 _hasBits0 = other._hasBits0;
5620 i_ = other.i_;
5621 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5654 public override bool Equals(object other) {
5655 return Equals(other as MessageSetCorrectExtension2);
5659 public bool Equals(MessageSetCorrectExtension2 other) {
5660 if (ReferenceEquals(other, null)) {
5663 if (ReferenceEquals(other, this)) {
5666 if (I != other.I) return false;
5667 return Equals(_unknownFields, other._unknownFields);
5726 public void MergeFrom(MessageSetCorrectExtension2 other) {
5727 if (other == null) {
5730 if (other.HasI) {
5731 I = other.I;
5733 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5775 /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension2 message type.</summary>
5819 public ForeignMessageProto2(ForeignMessageProto2 other) : this() {
5820 _hasBits0 = other._hasBits0;
5821 c_ = other.c_;
5822 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5855 public override bool Equals(object other) {
5856 return Equals(other as ForeignMessageProto2);
5860 public bool Equals(ForeignMessageProto2 other) {
5861 if (ReferenceEquals(other, null)) {
5864 if (ReferenceEquals(other, this)) {
5867 if (C != other.C) return false;
5868 return Equals(_unknownFields, other._unknownFields);
5927 public void MergeFrom(ForeignMessageProto2 other) {
5928 if (other == null) {
5931 if (other.HasC) {
5932 C = other.C;
5934 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6006 public UnknownToTestAllTypes(UnknownToTestAllTypes other) : this() {
6007 _hasBits0 = other._hasBits0;
6008 optionalInt32_ = other.optionalInt32_;
6009 optionalString_ = other.optionalString_;
6010 nestedMessage_ = other.nestedMessage_ != null ? other.nestedMessage_.Clone() : null;
6011 optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
6012 optionalBool_ = other.optionalBool_;
6013 repeatedInt32_ = other.repeatedInt32_.Clone();
6014 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6136 public override bool Equals(object other) {
6137 return Equals(other as UnknownToTestAllTypes);
6141 public bool Equals(UnknownToTestAllTypes other) {
6142 if (ReferenceEquals(other, null)) {
6145 if (ReferenceEquals(other, this)) {
6148 if (OptionalInt32 != other.OptionalInt32) return false;
6149 if (OptionalString != other.OptionalString) return false;
6150 if (!object.Equals(NestedMessage, other.NestedMessage)) return false;
6151 if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
6152 if (OptionalBool != other.OptionalBool) return false;
6153 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
6154 return Equals(_unknownFields, other._unknownFields);
6267 public void MergeFrom(UnknownToTestAllTypes other) {
6268 if (other == null) {
6271 if (other.HasOptionalInt32) {
6272 OptionalInt32 = other.OptionalInt32;
6274 if (other.HasOptionalString) {
6275 OptionalString = other.OptionalString;
6277 if (other.nestedMessage_ != null) {
6281 NestedMessage.MergeFrom(other.NestedMessage);
6283 if (other.HasOptionalGroup) {
6287 OptionalGroup.MergeFrom(other.OptionalGroup);
6289 if (other.HasOptionalBool) {
6290 OptionalBool = other.OptionalBool;
6292 repeatedInt32_.Add(other.repeatedInt32_);
6293 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6421 public OptionalGroup(OptionalGroup other) : this() {
6422 _hasBits0 = other._hasBits0;
6423 a_ = other.a_;
6424 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6457 public override bool Equals(object other) {
6458 return Equals(other as OptionalGroup);
6462 public bool Equals(OptionalGroup other) {
6463 if (ReferenceEquals(other, null)) {
6466 if (ReferenceEquals(other, this)) {
6469 if (A != other.A) return false;
6470 return Equals(_unknownFields, other._unknownFields);
6529 public void MergeFrom(OptionalGroup other) {
6530 if (other == null) {
6533 if (other.HasA) {
6534 A = other.A;
6536 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);