Hi!
Google exposes their public IPs in https://www.gstatic.com/ipranges/goog.txt. Keep in mind that this list also includes customer-usable IPs. If you want only the IPs used by Google systems (like pubsub), you need to subtract the IPs in this range: https://www.gstatic.com/ipranges/cloud.json. In this documentation you can find an example python script on how to do so.