public void MergeFrom(PlayerFriendDisplay other)
 {
     if (other == null)
     {
         return;
     }
     if (other.buddy_ != null)
     {
         if (buddy_ == null)
         {
             buddy_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         Buddy.MergeFrom(other.Buddy);
     }
     if (other.BuddyDisplayPokemonId != 0)
     {
         BuddyDisplayPokemonId = other.BuddyDisplayPokemonId;
     }
     if (other.BuddyPokemonNickname.Length != 0)
     {
         BuddyPokemonNickname = other.BuddyPokemonNickname;
     }
     if (other.lastPokemonCaught_ != null)
     {
         if (lastPokemonCaught_ == null)
         {
             lastPokemonCaught_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         LastPokemonCaught.MergeFrom(other.LastPokemonCaught);
     }
     if (other.LastPokemonCaughtDisplayId != 0)
     {
         LastPokemonCaughtDisplayId = other.LastPokemonCaughtDisplayId;
     }
     if (other.LastPokemonCaughtTimestamp != 0L)
     {
         LastPokemonCaughtTimestamp = other.LastPokemonCaughtTimestamp;
     }
     if (other.BuddyCandyAwarded != 0)
     {
         BuddyCandyAwarded = other.BuddyCandyAwarded;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (buddy_ != null)
            {
                hash ^= Buddy.GetHashCode();
            }
            if (BuddyDisplayPokemonId != 0)
            {
                hash ^= BuddyDisplayPokemonId.GetHashCode();
            }
            if (BuddyPokemonNickname.Length != 0)
            {
                hash ^= BuddyPokemonNickname.GetHashCode();
            }
            if (lastPokemonCaught_ != null)
            {
                hash ^= LastPokemonCaught.GetHashCode();
            }
            if (LastPokemonCaughtDisplayId != 0)
            {
                hash ^= LastPokemonCaughtDisplayId.GetHashCode();
            }
            if (LastPokemonCaughtTimestamp != 0L)
            {
                hash ^= LastPokemonCaughtTimestamp.GetHashCode();
            }
            if (BuddyCandyAwarded != 0)
            {
                hash ^= BuddyCandyAwarded.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }