public override int GetHashCode() { int hash = 1; if (Nickname.Length != 0) { hash ^= Nickname.GetHashCode(); } if (Level != 0) { hash ^= Level.GetHashCode(); } if (DistanceWalkedKm != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DistanceWalkedKm); } if (MaxHp != 0L) { hash ^= MaxHp.GetHashCode(); } if (AttackPower != 0L) { hash ^= AttackPower.GetHashCode(); } if (PlayerTeamId.Length != 0) { hash ^= PlayerTeamId.GetHashCode(); } if (ProfessionId.Length != 0) { hash ^= ProfessionId.GetHashCode(); } if (TitleId.Length != 0) { hash ^= TitleId.GetHashCode(); } hash ^= unlockedTitleIds_.GetHashCode(); if (ThemeId.Length != 0) { hash ^= ThemeId.GetHashCode(); } hash ^= unlockedThemeIds_.GetHashCode(); if (HouseId.Length != 0) { hash ^= HouseId.GetHashCode(); } if (wand_ != null) { hash ^= Wand.GetHashCode(); } hash ^= favoriteBadgeIds_.GetHashCode(); hash ^= unlockedBadgeIds_.GetHashCode(); hash ^= favoriteTitleIds_.GetHashCode(); if (FirstName.Length != 0) { hash ^= FirstName.GetHashCode(); } if (LastName.Length != 0) { hash ^= LastName.GetHashCode(); } if (ProfileCreationLocation.Length != 0) { hash ^= ProfileCreationLocation.GetHashCode(); } hash ^= unlockedSelfieAssetIds_.GetHashCode(); if (TotalSwishSuccessSpell != 0L) { hash ^= TotalSwishSuccessSpell.GetHashCode(); } hash ^= discoveredPotionsMasterNoteIds_.GetHashCode(); if (emailOpts_ != null) { hash ^= EmailOpts.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }