public void MergeFrom(OptIntoMarketingEmailsMessage other) { if (other == null) { return; } if (other.emailOpts_ != null) { if (emailOpts_ == null) { EmailOpts = new global::WUProtos.Data.EmailOpts(); } EmailOpts.MergeFrom(other.EmailOpts); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (emailOpts_ == null) { EmailOpts = new global::WUProtos.Data.EmailOpts(); } input.ReadMessage(EmailOpts); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Nickname = input.ReadString(); break; } case 16: { Level = input.ReadInt32(); break; } case 29: { DistanceWalkedKm = input.ReadFloat(); break; } case 32: { MaxHp = input.ReadInt64(); break; } case 40: { AttackPower = input.ReadInt64(); break; } case 50: { PlayerTeamId = input.ReadString(); break; } case 58: { ProfessionId = input.ReadString(); break; } case 66: { TitleId = input.ReadString(); break; } case 74: { unlockedTitleIds_.AddEntriesFrom(input, _repeated_unlockedTitleIds_codec); break; } case 82: { ThemeId = input.ReadString(); break; } case 90: { unlockedThemeIds_.AddEntriesFrom(input, _repeated_unlockedThemeIds_codec); break; } case 98: { HouseId = input.ReadString(); break; } case 106: { if (wand_ == null) { Wand = new global::WUProtos.Data.Player.PlayerProfile.Types.WandOptions(); } input.ReadMessage(Wand); break; } case 114: { favoriteBadgeIds_.AddEntriesFrom(input, _repeated_favoriteBadgeIds_codec); break; } case 122: { unlockedBadgeIds_.AddEntriesFrom(input, _repeated_unlockedBadgeIds_codec); break; } case 130: { favoriteTitleIds_.AddEntriesFrom(input, _repeated_favoriteTitleIds_codec); break; } case 138: { FirstName = input.ReadString(); break; } case 146: { LastName = input.ReadString(); break; } case 154: { ProfileCreationLocation = input.ReadString(); break; } case 162: { unlockedSelfieAssetIds_.AddEntriesFrom(input, _repeated_unlockedSelfieAssetIds_codec); break; } case 168: { TotalSwishSuccessSpell = input.ReadInt64(); break; } case 178: { discoveredPotionsMasterNoteIds_.AddEntriesFrom(input, _repeated_discoveredPotionsMasterNoteIds_codec); break; } case 210: { if (emailOpts_ == null) { EmailOpts = new global::WUProtos.Data.EmailOpts(); } input.ReadMessage(EmailOpts); break; } } } }
public void MergeFrom(PlayerProfile other) { if (other == null) { return; } if (other.Nickname.Length != 0) { Nickname = other.Nickname; } if (other.Level != 0) { Level = other.Level; } if (other.DistanceWalkedKm != 0F) { DistanceWalkedKm = other.DistanceWalkedKm; } if (other.MaxHp != 0L) { MaxHp = other.MaxHp; } if (other.AttackPower != 0L) { AttackPower = other.AttackPower; } if (other.PlayerTeamId.Length != 0) { PlayerTeamId = other.PlayerTeamId; } if (other.ProfessionId.Length != 0) { ProfessionId = other.ProfessionId; } if (other.TitleId.Length != 0) { TitleId = other.TitleId; } unlockedTitleIds_.Add(other.unlockedTitleIds_); if (other.ThemeId.Length != 0) { ThemeId = other.ThemeId; } unlockedThemeIds_.Add(other.unlockedThemeIds_); if (other.HouseId.Length != 0) { HouseId = other.HouseId; } if (other.wand_ != null) { if (wand_ == null) { Wand = new global::WUProtos.Data.Player.PlayerProfile.Types.WandOptions(); } Wand.MergeFrom(other.Wand); } favoriteBadgeIds_.Add(other.favoriteBadgeIds_); unlockedBadgeIds_.Add(other.unlockedBadgeIds_); favoriteTitleIds_.Add(other.favoriteTitleIds_); if (other.FirstName.Length != 0) { FirstName = other.FirstName; } if (other.LastName.Length != 0) { LastName = other.LastName; } if (other.ProfileCreationLocation.Length != 0) { ProfileCreationLocation = other.ProfileCreationLocation; } unlockedSelfieAssetIds_.Add(other.unlockedSelfieAssetIds_); if (other.TotalSwishSuccessSpell != 0L) { TotalSwishSuccessSpell = other.TotalSwishSuccessSpell; } discoveredPotionsMasterNoteIds_.Add(other.discoveredPotionsMasterNoteIds_); if (other.emailOpts_ != null) { if (emailOpts_ == null) { EmailOpts = new global::WUProtos.Data.EmailOpts(); } EmailOpts.MergeFrom(other.EmailOpts); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }