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.SetBuddyPokemonResponse.Types.Result)input.ReadEnum(); break; } case 18: { if (updatedBuddy_ == null) { updatedBuddy_ = new global::POGOProtos.Data.BuddyPokemon(); } input.ReadMessage(updatedBuddy_); break; } } } }
public void MergeFrom(SetBuddyPokemonResponse other) { if (other == null) { return; } if (other.Result != 0) { Result = other.Result; } if (other.updatedBuddy_ != null) { if (updatedBuddy_ == null) { updatedBuddy_ = new global::POGOProtos.Data.BuddyPokemon(); } UpdatedBuddy.MergeFrom(other.UpdatedBuddy); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { CreationTimestampMs = input.ReadInt64(); break; } case 18: { Username = input.ReadString(); break; } case 40: { team_ = (global::POGOProtos.Enums.TeamColor)input.ReadEnum(); break; } case 58: case 56: { tutorialState_.AddEntriesFrom(input, _repeated_tutorialState_codec); break; } case 66: { if (avatar_ == null) { avatar_ = new global::POGOProtos.Data.Player.PlayerAvatar(); } input.ReadMessage(avatar_); break; } case 72: { MaxPokemonStorage = input.ReadInt32(); break; } case 80: { MaxItemStorage = input.ReadInt32(); break; } case 90: { if (dailyBonus_ == null) { dailyBonus_ = new global::POGOProtos.Data.Player.DailyBonus(); } input.ReadMessage(dailyBonus_); break; } case 98: { if (equippedBadge_ == null) { equippedBadge_ = new global::POGOProtos.Data.Player.EquippedBadge(); } input.ReadMessage(equippedBadge_); break; } case 106: { if (contactSettings_ == null) { contactSettings_ = new global::POGOProtos.Data.Player.ContactSettings(); } input.ReadMessage(contactSettings_); break; } case 114: { currencies_.AddEntriesFrom(input, _repeated_currencies_codec); break; } case 120: { RemainingCodenameClaims = input.ReadInt32(); break; } case 130: { if (buddyPokemon_ == null) { buddyPokemon_ = new global::POGOProtos.Data.BuddyPokemon(); } input.ReadMessage(buddyPokemon_); break; } case 136: { BattleLockoutEndMs = input.ReadInt64(); break; } } } }
public void MergeFrom(PlayerData other) { if (other == null) { return; } if (other.CreationTimestampMs != 0L) { CreationTimestampMs = other.CreationTimestampMs; } if (other.Username.Length != 0) { Username = other.Username; } if (other.Team != 0) { Team = other.Team; } tutorialState_.Add(other.tutorialState_); if (other.avatar_ != null) { if (avatar_ == null) { avatar_ = new global::POGOProtos.Data.Player.PlayerAvatar(); } Avatar.MergeFrom(other.Avatar); } if (other.MaxPokemonStorage != 0) { MaxPokemonStorage = other.MaxPokemonStorage; } if (other.MaxItemStorage != 0) { MaxItemStorage = other.MaxItemStorage; } if (other.dailyBonus_ != null) { if (dailyBonus_ == null) { dailyBonus_ = new global::POGOProtos.Data.Player.DailyBonus(); } DailyBonus.MergeFrom(other.DailyBonus); } if (other.equippedBadge_ != null) { if (equippedBadge_ == null) { equippedBadge_ = new global::POGOProtos.Data.Player.EquippedBadge(); } EquippedBadge.MergeFrom(other.EquippedBadge); } if (other.contactSettings_ != null) { if (contactSettings_ == null) { contactSettings_ = new global::POGOProtos.Data.Player.ContactSettings(); } ContactSettings.MergeFrom(other.ContactSettings); } currencies_.Add(other.currencies_); if (other.RemainingCodenameClaims != 0) { RemainingCodenameClaims = other.RemainingCodenameClaims; } if (other.buddyPokemon_ != null) { if (buddyPokemon_ == null) { buddyPokemon_ = new global::POGOProtos.Data.BuddyPokemon(); } BuddyPokemon.MergeFrom(other.BuddyPokemon); } if (other.BattleLockoutEndMs != 0L) { BattleLockoutEndMs = other.BattleLockoutEndMs; } }