I have a VPN style snap (lantern) which manipulates the system proxy setting via gsettings keys for http and https.
org.gnome.system.proxy.http, org.gnome.system.proxy.https, org.gnome.system.proxy.autoconfig-url and org.gnome.system.proxy.mode are (AIUI) the keys being set at runtime.