General-relativistic deflection of light by mass, dipole, and quadrupole moments of the gravitational field of a moving massive planet in the solar system is derived in the approximation of the linearized Einstein equations. All terms of order 1 as are taken into account, parametrized, and classified in accordance with their physical origin. The monopolar light-ray deflection, modulated by the radial Doppler effect, is associated with the total mass and radial velocity of the gravitating body. It displaces the apparent positions of stars in the sky plane radially away from the origin of the celestial coordinates associated with the planet. The dipolar deflection of light is due to a translational mismatch of the center of mass of the planet and the origin of the planetary coordinates caused by the inaccuracy of planetary ephemeris. It can also originate from the difference between the null cone for light and that for gravity that is not allowed in general relativity but can exist in some of the alternative theories of gravity. The dipolar gravity field pulls the apparent position of a star in the plane of the sky in both radial and orthoradial directions with respect to the origin of the coordinates. The quadrupolar deflection of light is caused by the physical oblateness, J 2 , of the planet, but in any practical experiment it will have an admixture of the translation-dependent quadrupole due to inaccuracy of planetary ephemeris. This leads to a bias in the estimated value of J 2 that should be minimized by applying an iterative data reduction method designed to disentangle the different multipole moments and to fit out the translation-dependent dipolar and quadrupolar components of light deflection. The method of microarcsecond interferometric astrometry has the potential of greatly improving the planetary ephemerides, getting unbiased measurements of planetary quadrupoles, and of thoroughly testing the null-cone structure of the gravitational field and the speed of its propagation in the near-zone of the solar system. We calculate the instantaneous patterns of the light-ray deflections caused by the monopole, the dipole, and the quadrupole moments, and derive equations describing apparent motion of the deflected position of the star in the sky plane as the impact parameter of the light ray with respect to the planet changes due to its orbital motion. We discuss the observational capabilities of the near-future optical (SIM) and radio (SKA) interferometers for detecting the Doppler modulation of the radial deflection, and the dipolar and quadrupolar light-ray bendings by Jupiter and Saturn.