class_docstr: Hook for the Google Firestore APIs.
  
  All the methods in the hook where project_id is used must be called with
  keyword arguments rather than positional.
  
  :param api_version: API version used (for example v1 or v1beta1).
  :param gcp_conn_id: The connection ID to use when fetching connection info.
  :param impersonation_chain: Optional service account to impersonate using short-term
      credentials, or chained list of accounts required to get the access_token
      of the last account in the list, which will be impersonated in the request.
      If set as a string, the account must grant the originating account
      the Service Account Token Creator IAM role.
      If set as a sequence, the identities from the list must grant
      Service Account Token Creator IAM role to the directly preceding identity, with first
      account from the list granting this role to the originating account.
class_docstr_tok: ["Hook","for","the","Google","Firestore","APIs",".","All","the","methods","in","the","hook","where","project_id","is","used","must","be","called","with","keyword","arguments","rather","than","positional",".",":","param","api_version",":","API","version","used","(","for","example","v1","or","v1beta1",")",".",":","param","gcp_conn_id",":","The","connection","ID","to","use","when","fetching","connection","info",".",":","param","impersonation_chain",":","Optional","service","account","to","impersonate","using","short-term","credentials",",","or","chained","list","of","accounts","required","to","get","the","access_token","of","the","last","account","in","the","list",",","which","will","be","impersonated","in","the","request",".","If","set","as","a","string",",","the","account","must","grant","the","originating","account","the","Service","Account","Token","Creator","IAM","role",".","If","set","as","a","sequence",",","the","identities","from","the","list","must","grant","Service","Account","Token","Creator","IAM","role","to","the","directly","preceding","identity",",","with","first","account","from","the","list","granting","this","role","to","the","originating","account","."]
docstr: Retrieves the connection to Cloud Firestore.
  
  :return: Google Cloud Firestore services object.
docstr_tok: ["Retrieves","the","connection","to","Cloud","Firestore",".",":","return",":","Google","Cloud","Firestore","services","object","."]
code: def get_conn(self):
      """
      Retrieves the connection to Cloud Firestore.
  
      :return: Google Cloud Firestore services object.
      """
      if not self._conn:
          http_authorized = self._authorize()
          # We cannot use an Authorized Client to retrieve discovery document due to an error in the API.
          # When the authorized customer will send a request to the address below
          # https://www.googleapis.com/discovery/v1/apis/firestore/v1/rest
          # then it will get the message below:
          # > Request contains an invalid argument.
          # At the same time, the Non-Authorized Client has no problems.
          non_authorized_conn = build(
              "firestore", self.api_version, cache_discovery=False
          )
          self._conn = build_from_document(
              non_authorized_conn._rootDesc, http=http_authorized
          )
      return self._conn
  
file_path: airflow/airflow/providers/google/firebase/hooks/firestore.py
imports: from __future__ import annotations
  import time
  from typing import Sequence
  from googleapiclient.discovery import build, build_from_document
  from airflow.exceptions import AirflowException
  from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
label_desc: Use image node_id 2 for calling the CloudFirestoreHook obj's underlying member method code with example usage: obj.get_conn() and returns: self