public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { result_ = (global::POGOProtos.Networking.Responses.FortSearchResponse.Types.Result)input.ReadEnum(); break; } case 18: { itemsAwarded_.AddEntriesFrom(input, _repeated_itemsAwarded_codec); break; } case 24: { GemsAwarded = input.ReadInt32(); break; } case 34: { if (pokemonDataEgg_ == null) { pokemonDataEgg_ = new global::POGOProtos.Data.PokemonData(); } input.ReadMessage(pokemonDataEgg_); break; } case 40: { ExperienceAwarded = input.ReadInt32(); break; } case 48: { CooldownCompleteTimestampMs = input.ReadInt64(); break; } case 56: { ChainHackSequenceNumber = input.ReadInt32(); break; } case 66: { if (awardedGymBadge_ == null) { awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge(); } input.ReadMessage(awardedGymBadge_); break; } case 74: { if (loot_ == null) { loot_ = new global::POGOProtos.Inventory.Loot(); } input.ReadMessage(loot_); break; } case 82: { if (bonusLoot_ == null) { bonusLoot_ = new global::POGOProtos.Inventory.Loot(); } input.ReadMessage(bonusLoot_); break; } case 88: { RaidTickets = input.ReadInt32(); break; } case 98: { if (teamBonusLoot_ == null) { teamBonusLoot_ = new global::POGOProtos.Inventory.Loot(); } input.ReadMessage(teamBonusLoot_); break; } case 106: { FortId = input.ReadString(); break; } case 114: { if (challengeQuest_ == null) { challengeQuest_ = new global::POGOProtos.Data.Quests.ClientQuest(); } input.ReadMessage(challengeQuest_); break; } case 122: { if (giftBox_ == null) { giftBox_ = new global::POGOProtos.Data.Gift.GiftBox(); } input.ReadMessage(giftBox_); break; } } } }
public void MergeFrom(FortSearchResponse other) { if (other == null) { return; } if (other.Result != 0) { Result = other.Result; } itemsAwarded_.Add(other.itemsAwarded_); if (other.GemsAwarded != 0) { GemsAwarded = other.GemsAwarded; } if (other.pokemonDataEgg_ != null) { if (pokemonDataEgg_ == null) { pokemonDataEgg_ = new global::POGOProtos.Data.PokemonData(); } PokemonDataEgg.MergeFrom(other.PokemonDataEgg); } if (other.ExperienceAwarded != 0) { ExperienceAwarded = other.ExperienceAwarded; } if (other.CooldownCompleteTimestampMs != 0L) { CooldownCompleteTimestampMs = other.CooldownCompleteTimestampMs; } if (other.ChainHackSequenceNumber != 0) { ChainHackSequenceNumber = other.ChainHackSequenceNumber; } if (other.awardedGymBadge_ != null) { if (awardedGymBadge_ == null) { awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge(); } AwardedGymBadge.MergeFrom(other.AwardedGymBadge); } if (other.loot_ != null) { if (loot_ == null) { loot_ = new global::POGOProtos.Inventory.Loot(); } Loot.MergeFrom(other.Loot); } if (other.bonusLoot_ != null) { if (bonusLoot_ == null) { bonusLoot_ = new global::POGOProtos.Inventory.Loot(); } BonusLoot.MergeFrom(other.BonusLoot); } if (other.RaidTickets != 0) { RaidTickets = other.RaidTickets; } if (other.teamBonusLoot_ != null) { if (teamBonusLoot_ == null) { teamBonusLoot_ = new global::POGOProtos.Inventory.Loot(); } TeamBonusLoot.MergeFrom(other.TeamBonusLoot); } if (other.FortId.Length != 0) { FortId = other.FortId; } if (other.challengeQuest_ != null) { if (challengeQuest_ == null) { challengeQuest_ = new global::POGOProtos.Data.Quests.ClientQuest(); } ChallengeQuest.MergeFrom(other.ChallengeQuest); } if (other.giftBox_ != null) { if (giftBox_ == null) { giftBox_ = new global::POGOProtos.Data.Gift.GiftBox(); } GiftBox.MergeFrom(other.GiftBox); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }