public void MergeFrom(EncounterResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.wildPokemon_ != null)
     {
         if (wildPokemon_ == null)
         {
             wildPokemon_ = new global::PokemonGoDesktop.API.Proto.WildPokemon();
         }
         WildPokemon.MergeFrom(other.WildPokemon);
     }
     if (other.Background != 0)
     {
         Background = other.Background;
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.captureProbability_ != null)
     {
         if (captureProbability_ == null)
         {
             captureProbability_ = new global::PokemonGoDesktop.API.Proto.CaptureProbability();
         }
         CaptureProbability.MergeFrom(other.CaptureProbability);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (wildPokemon_ != null)
            {
                hash ^= WildPokemon.GetHashCode();
            }
            if (Background != 0)
            {
                hash ^= Background.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (captureProbability_ != null)
            {
                hash ^= CaptureProbability.GetHashCode();
            }
            return(hash);
        }