airflow/contrib/hooks/gcp_translate_hook.py
def get_conn(self):
        """
        Retrieves connection to Cloud Translate

        :return: Google Cloud Translate client object.
        :rtype: Client
        """
        if not self._client:
            self._client = Client(credentials=self._get_credentials())
        return self._client
def get_conn(self):
        """
        Retrieves connection to Cloud Translate

        :return: Google Cloud Translate client object.
        :rtype: Client
        """
        if not self._client:
            self._client = Client(credentials=self._get_credentials())
        return self._client
Retrieves connection to Cloud Translate

        :return: Google Cloud Translate client object.
        :rtype: Client