public void MergeFrom(GymDefender other) { if (other == null) { return; } if (other.motivatedPokemon_ != null) { if (motivatedPokemon_ == null) { motivatedPokemon_ = new global::POGOProtos.Map.Pokemon.MotivatedPokemon(); } MotivatedPokemon.MergeFrom(other.MotivatedPokemon); } if (other.deploymentTotals_ != null) { if (deploymentTotals_ == null) { deploymentTotals_ = new global::POGOProtos.Data.Gym.GymDefender.Types.DeploymentTotals(); } DeploymentTotals.MergeFrom(other.DeploymentTotals); } if (other.trainerPublicProfile_ != null) { if (trainerPublicProfile_ == null) { trainerPublicProfile_ = new global::POGOProtos.Data.Player.PlayerPublicProfile(); } TrainerPublicProfile.MergeFrom(other.TrainerPublicProfile); } _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 (motivatedPokemon_ == null) { motivatedPokemon_ = new global::POGOProtos.Map.Pokemon.MotivatedPokemon(); } input.ReadMessage(motivatedPokemon_); break; } case 18: { if (deploymentTotals_ == null) { deploymentTotals_ = new global::POGOProtos.Data.Gym.GymDefender.Types.DeploymentTotals(); } input.ReadMessage(deploymentTotals_); break; } case 26: { if (trainerPublicProfile_ == null) { trainerPublicProfile_ = new global::POGOProtos.Data.Player.PlayerPublicProfile(); } input.ReadMessage(trainerPublicProfile_); break; } } } }