def auto_detect(self, value):
        """
        Sets autodetect setting.

        :Args:
         - value: The autodetect value.
        """
        if isinstance(value, bool):
            if self.autodetect is not value:
                self._verify_proxy_type_compatibility(ProxyType.AUTODETECT)
                self.proxyType = ProxyType.AUTODETECT
                self.autodetect = value
        else:
            raise ValueError("Autodetect proxy value needs to be a boolean")
def auto_detect ( self , value ) : if isinstance ( value , bool ) : if self . autodetect is not value : self . _verify_proxy_type_compatibility ( ProxyType . AUTODETECT ) self . proxyType = ProxyType . AUTODETECT self . autodetect = value else : raise ValueError ( "Autodetect proxy value needs to be a boolean" )
Sets autodetect setting.

        :Args:
         - value: The autodetect value.