def get_conn(self):
if not self.connection:<EOL><INDENT>http_authorized = self._authorize()<EOL>self.connection = build('<STR_LIT>', self.api_version, http=http_authorized,<EOL>cache_discovery=False)<EOL><DEDENT>return self.connection<EOL>
Establishes a connection to the Google API.

:return: a Google Cloud Datastore service object.
:rtype: Resource