It is not a generous assumption to say that China achieved its objectives in the 1979 Sino-Vietnamese war.Considering how the objectives were never truly defined that is a generous assumption.
I've already listed multiple objectives and outcomes that were favourable to China.
What did Vietnam get out of occupying Cambodia and turning to the USSR?
Nothing but a Prussian-style militarised state, an 11 year insurgency in Cambodia and continued backbreaking poverty.
Plus you accept that China and the USSR came to a deal over a limited war in Vietnam.
Given that is the case, it means China deemed a limited war as sufficient to achieve its core objectives.