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 override int GetHashCode() { int hash = 1; if (motivatedPokemon_ != null) { hash ^= MotivatedPokemon.GetHashCode(); } if (deploymentTotals_ != null) { hash ^= DeploymentTotals.GetHashCode(); } if (trainerPublicProfile_ != null) { hash ^= TrainerPublicProfile.GetHashCode(); } return(hash); }