A Red Chinese missile-firing sub in San Francisco Bay is no more a threat than the same sub patrolling 200 miles off the coast of San Francisco.
But, to your point of Red Chinese military bases in California: the U.S. should enforce the Monroe Doctrine.
Of course, the U.S. would have to have the political will to do so.
Hmmm, I didn't say anything about subs. I was thinking warships bringing in zillions of Chinese troops over a period of time.