def _vision_api(self): """Proxy method that handles which transport call Vision Annotate. :rtype: :class:`~google.cloud.vision._rest._HTTPVisionAPI` :returns: Instance of ``_HTTPVisionAPI`` used to make requests. """ if self._vision_api_internal is None: self._vision_api_internal = _HTTPVisionAPI(self) return self._vision_api_internal
def _vision_api(self): """Proxy method that handles which transport call Vision Annotate. :rtype: :class:`~google.cloud.vision._http._HTTPVisionAPI` or :class:`~google.cloud.vision._gax._GAPICVisionAPI` :returns: Instance of ``_HTTPVisionAPI`` or ``_GAPICVisionAPI`` used to make requests. """ if self._vision_api_internal is None: if self._use_gax: self._vision_api_internal = _GAPICVisionAPI(self) else: self._vision_api_internal = _HTTPVisionAPI(self) return self._vision_api_internal