Although technically all current large calibre guns have dual roles capability in anti-surface and anti-air purpose, the slow rates of firing for 127mm/130mm and 155mm make them less effective against fast anti-ship missile vs the short range air defense missiles that cover the targets that are beyond the effective range of 57mm/76mm rounds.
The HQ-10 / RIM SAMs have a range of 9km
What about the gap from 9km to 20km (radar horizon) or 35km (sea skimmer detection range)
Cost of the air defense missiles vs gun rounds are not important compared to the cost of loosing a ship's operational capability if it is hit by an antiship missile. Rather, the effectiveness of protecting the ship at what affordable cost should be prioritized.
1. You could buy ten? guided 155mm rounds for the cost of a single RIM missile.
2. Plus the 155mm rounds have a much longer range, so can be used first and deal with the incoming missiles quicker and before they reach HQ-10 SAM range.
3. An Arleigh Burke has 680 artillery rounds for example. It isn't going to run out of rounds when being attacked. There are only 24 HQ-10 SAMs available for Chinese Destroyers.
4. You're going to have a main gun anyway. So why not go with a larger, more effective calibre that shouldn't take up much more space/weight
Therefore, the 155mm gun sighted in Dalian would be mainly used for hitting surface targets, though not losing anti-air capability (which is far less effective vs air defense missiles).
PLAN have their own thinking on how and when they are going to use this 155mm calibre gun, otherwise they would not have develop it.
Hitting enemy's non-missile armed ships is very obvious choice for using guns, example commercial ships and navy auxiliary ships. Targeting shore targets on Taiwan, Penghu, Jinmen and other small islands in South China Sea is feasible with long range guided rounds, especially after eliminating all known shore based anti-ship missile, and also after gaining air superiority over the sky above the shore.
Targeting moving land targets like trucks, SP guns, mobile radars, mobile missile carriers etc. can be very precise with aid of drones, which bring type 076 into the scenario. A 30km range normal round or an extended 50-100km+ range round can be fired from a ship sailing close by the shores of Mainland China, where the ship is protected by its own as well as land base air defense weapons. So, yes, hitting Taiwan island shore defense by 155mm gun is not only feasible but also very effective.
I'm not convinced, given that glide bombs and low-cost cruise missiles have much larger warheads and should be a lot cheaper than a long-range guided 155mm round.