public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (pokemonData_ == null) { pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData(); } input.ReadMessage(pokemonData_); break; } case 18: { if (trainerPublicProfile_ == null) { trainerPublicProfile_ = new global::PokemonGoDesktop.API.Proto.PlayerPublicProfile(); } input.ReadMessage(trainerPublicProfile_); break; } } } }
public void MergeFrom(BattleParticipant other) { if (other == null) { return; } if (other.activePokemon_ != null) { if (activePokemon_ == null) { activePokemon_ = new global::PokemonGoDesktop.API.Proto.BattlePokemonInfo(); } ActivePokemon.MergeFrom(other.ActivePokemon); } if (other.trainerPublicProfile_ != null) { if (trainerPublicProfile_ == null) { trainerPublicProfile_ = new global::PokemonGoDesktop.API.Proto.PlayerPublicProfile(); } TrainerPublicProfile.MergeFrom(other.TrainerPublicProfile); } reversePokemon_.Add(other.reversePokemon_); defeatedPokemon_.Add(other.defeatedPokemon_); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (activePokemon_ == null) { activePokemon_ = new global::PokemonGoDesktop.API.Proto.BattlePokemonInfo(); } input.ReadMessage(activePokemon_); break; } case 18: { if (trainerPublicProfile_ == null) { trainerPublicProfile_ = new global::PokemonGoDesktop.API.Proto.PlayerPublicProfile(); } input.ReadMessage(trainerPublicProfile_); break; } case 26: { reversePokemon_.AddEntriesFrom(input, _repeated_reversePokemon_codec); break; } case 34: { defeatedPokemon_.AddEntriesFrom(input, _repeated_defeatedPokemon_codec); break; } } } }
public void MergeFrom(GymMembership other) { if (other == null) { return; } if (other.pokemonData_ != null) { if (pokemonData_ == null) { pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData(); } PokemonData.MergeFrom(other.PokemonData); } if (other.trainerPublicProfile_ != null) { if (trainerPublicProfile_ == null) { trainerPublicProfile_ = new global::PokemonGoDesktop.API.Proto.PlayerPublicProfile(); } TrainerPublicProfile.MergeFrom(other.TrainerPublicProfile); } }