Ë
    V¼SfšX  ã                   óJ  — U d Z ddlZddlZddlmZ ddlZddlZddlm	Z
 ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZmZ ddlmZmZmZmZmZm Z m!Z!m"Z" ddl#m$Z$ ddlm%Z% ddl&m'Z' ddl(m)Z) ddl*m+Z+ dZ,	 dZ-dZ.dZ/e0e1d<   dZ2e0e1d<   dZ3e0e1d<    ejh                  e¬«      Z5ee1d<   dZ6e0e1d<    G d „ d!e«      Z7d"e8d#e!e8e9f   fd$„Z:d%e0d&e9d#e%fd'„Z;d(ejx                  d&e9d)e7d#efd*„Z=d+ee0   d#e ej|                  j~                     fd,„Z@d-eAd#e!e0   fd.„ZBy)/a¡  Client for interacting with the Google Cloud Firestore API.

This is the base from which all interactions with the API occur.

In the hierarchy of API concepts

* a :class:`~google.cloud.firestore_v1.client.Client` owns a
  :class:`~google.cloud.firestore_v1.collection.CollectionReference`
* a :class:`~google.cloud.firestore_v1.client.Client` owns a
  :class:`~google.cloud.firestore_v1.document.DocumentReference`
é    N)ÚAnonymousCredentials)Úretry)Úclient_info)ÚClientWithProject)Ú_helpers)Ú__version__)Útypes)ÚDocumentSnapshot©Úrender_field_path)Ú
BulkWriterÚBulkWriterOptions)ÚAnyÚAsyncGeneratorÚ	GeneratorÚIterableÚListÚOptionalÚTupleÚUnion)ÚBaseCollectionReference)ÚBaseDocumentReference)ÚBaseTransaction)ÚBaseWriteBatch)Ú	BaseQueryz	(default)zgoogle-cloud-firestore-emulatorzCExactly one of ``last_update_time`` or ``exists`` must be provided.zGDocument {!r} appeared in response but was not present among referencesÚ_BAD_DOC_TEMPLATEz'There is already an active transaction.Ú_ACTIVE_TXNzThere is no active transaction.Ú_INACTIVE_TXN)Úclient_library_versionÚ_CLIENT_INFOÚFIRESTORE_EMULATOR_HOSTÚ_FIRESTORE_EMULATOR_HOSTc                   óÞ  ‡ — e Zd ZdZdZ	 dZdZdZdddedf	 d%ˆ fd„Z	de
fd„Zd„ Zdefd„Zed	„ «       Zed
„ «       Zdee   fd„Zdedefd„Zdedee   fd„Zdefd„Zd&dee   defd„Zdee   fd„Z	 d&deee   ef   ded   de fd„Z!e"dedefd„«       Z#e"dee$jJ                  e$jL                  f   fd„«       Z'	 	 	 	 d'de(de)e   de*de+jX                  de-de.e/e/e/f   fd„Z0	 	 	 	 d'de(de)e   de*de+jX                  de-dee1e2e
f   e3e2e
e
f   f   fd „Z4	 	 d(de+jX                  de-de.e/e/f   fd!„Z5	 	 d(de+jX                  de-dee1ee   e
f   e3ee   e
e
f   f   fd"„Z6de7fd#„Z8de*fd$„Z9ˆ xZ:S ))Ú
BaseClienta:  Client for interacting with Google Cloud Firestore API.

    .. note::

        Since the Cloud Firestore API requires the gRPC transport, no
        ``_http`` argument is accepted by this class.

    Args:
        project (Optional[str]): The project which the client acts on behalf
            of. If not passed, falls back to the default inferred
            from the environment.
        credentials (Optional[~google.auth.credentials.Credentials]): The
            OAuth2 Credentials to use for this client. If not passed, falls
            back to the default inferred from the environment.
        database (Optional[str]): The database name that the client targets.
            For now, :attr:`DEFAULT_DATABASE` (the default value) is the
            only valid database.
        client_info (Optional[google.api_core.gapic_v1.client_info.ClientInfo]):
            The client info used to send a user-agent string along with API
            requests. If ``None``, then default info will be used. Generally,
            you only need to set this if you're developing your own library
            or partner tool.
        client_options (Union[dict, google.api_core.client_options.ClientOptions]):
            Client options used to set user options on the client. API Endpoint
            should be set through client_options.
    )z.https://www.googleapis.com/auth/cloud-platformz)https://www.googleapis.com/auth/datastoreNÚreturnc                 óÀ  •— |xs t         }t        j                  t        «      | _        | j                  �B|€
t        «       }|€4t        j                  d«      xs t        j                  d«      xs t        }t        t        | �'  |||d ¬«       || _
        |r9t        |t        «      r)t        j                  j                  j!                  |«      }|| _        || _        y )NÚGOOGLE_CLOUD_PROJECTÚGCLOUD_PROJECT)ÚprojectÚcredentialsÚclient_optionsÚ_http)ÚDEFAULT_DATABASEÚosÚgetenvr"   Ú_emulator_hostr   Ú_DEFAULT_EMULATOR_PROJECTÚsuperr$   Ú__init__Ú_client_infoÚ
isinstanceÚdictÚgoogleÚapi_corer+   Ú	from_dictÚ_client_optionsÚ	_database)Úselfr)   r*   Údatabaser   r+   Ú	__class__s         €údC:\Users\user\Documents\project_loop\venv\Lib\site-packages\google/cloud/firestore_v1/base_client.pyr3   zBaseClient.__init__t   sØ   ø€ ð Ò/Ô/ˆô !Ÿi™iÔ(@ÓAˆÔà×ÑÐ*ØÐ"Ü2Ó4�Øˆô —I‘IÐ4Ó5ò 1Ü—y‘yÐ!1Ó2ò1ä0ð ô 	Œj˜$Ñ(ØØ#Ø)Øð	 	)ô 	
ð (ˆÔÙÜ˜.¬$Ô/Ü!'§¡×!?Ñ!?×!IÑ!IØ"ó"�ð  .ˆÔà!ˆ�ó    c                 óx  — | j                   €£| j                  �| j                  |«      }n8|j                  | j                  | j
                  ddij                  «       ¬«      } || j                  |¬«      | _         || j                  | j                  ¬«      | _         | j                  |_	        | j                   S )z‹Lazy-loading getter GAPIC Firestore API.
        Returns:
            The GAPIC client with the credentials of the current client.
        zgrpc.keepalive_time_msi0u  )r*   Úoptions)ÚhostÚchannel)Ú	transportr+   )
Ú_firestore_api_internalr0   Ú_emulator_channelÚcreate_channelÚ_targetÚ_credentialsÚitemsÚ
_transportr:   r4   )r<   rE   Úclient_classÚclient_modulerD   s        r?   Ú_firestore_api_helperz BaseClient._firestore_api_helper�   s°   € ð
 ×'Ñ'Ð/ð ×"Ñ"Ð.Ø×0Ñ0°Ó;‘à#×2Ñ2Ø—L‘LØ $× 1Ñ 1Ø5°uÐ=×CÑCÓEð 3ó �ñ (¨T¯\©\À7ÔKˆDŒOá+7ØŸ/™/¸$×:NÑ:Nô,ˆDÔ(ð *.×):Ñ):ˆMÔ&à×+Ñ+Ð+r@   c                 óN  — d}| j                   �-t        | j                   dd«      �| j                   j                  }dd|› �fg}dt        |j                  «      v r+t
        j                  j                  | j                  |¬«      S t        j                  | j                  |¬«      S )a]  
        Creates an insecure channel to communicate with the local emulator.
        If credentials are provided the token is extracted and added to the
        headers. This supports local testing of firestore rules if the credentials
        have been created from a signed custom token.

        :return: grpc.Channel or grpc.aio.Channel
        ÚownerNÚid_tokenÚAuthorizationzBearer ÚGrpcAsyncIOTransport)rB   )	rJ   ÚgetattrrR   ÚstrÚ__name__ÚgrpcÚaioÚinsecure_channelr0   )r<   rE   ÚtokenrB   s       r?   rG   zBaseClient._emulator_channel¸   s›   € ð ˆà×ÑÐ)Ü˜×)Ñ)¨:°tÓ<ÐHà×%Ñ%×.Ñ.ˆEØ# w¨u¨gÐ%6Ð7Ð8ˆà!¤S¨×);Ñ);Ó%<Ñ<Ü—8‘8×,Ñ,¨T×-@Ñ-@È'Ð,ÓRÐRä×(Ñ(¨×)<Ñ)<ÀgÔNÐNr@   c                 óº   — | j                   �| j                   S | j                  r,| j                  j                  r| j                  j                  S |j                  S )z‘Return the target (where the API is).
        Eg. "firestore.googleapis.com"

        Returns:
            str: The location of the API.
        )r0   r:   Úapi_endpointÚDEFAULT_ENDPOINT)r<   rM   s     r?   Ú_target_helperzBaseClient._target_helperÒ   sQ   € ð ×ÑÐ*Ø×&Ñ&Ð&Ø×!Ò! d×&:Ñ&:×&GÒ&GØ×'Ñ'×4Ñ4Ð4à×0Ñ0Ð0r@   c                 óÀ   — | j                   €Gt        j                  j                  j	                  d| j
                  | j                  ¬«      }|| _         | j                   S )aª  The database string corresponding to this client's project.

        This value is lazy-loaded and cached.

        Will be of the form

            ``projects/{project_id}/databases/{database_id}``

        but ``database_id == '(default)'`` for the time being.

        Returns:
            str: The fully-qualified database string for the current
            project. (The default database is also in this string.)
        z'projects/{project}/databases/{database})r)   r=   )Ú_database_string_internalr7   r8   Úpath_templateÚexpandr)   r;   )r<   Údb_strs     r?   Ú_database_stringzBaseClient._database_stringà   sV   € ð  ×)Ñ)Ð1Ü—_‘_×2Ñ2×9Ñ9Ø9ØŸ™ØŸ™ð :ó ˆFð .4ˆDÔ*à×-Ñ-Ð-r@   c                 óÈ   — | j                   €Kt        j                  | j                  «      | _         | j                  �| j                   j                  d«       | j                   S )zÕThe RPC metadata for this client's associated database.

        Returns:
            Sequence[Tuple(str, str)]: RPC metadata with resource prefix
            for the database associated with this client.
        )ÚauthorizationzBearer owner)Ú_rpc_metadata_internalr   Úmetadata_with_prefixre   r0   Úappend©r<   s    r?   Ú_rpc_metadatazBaseClient._rpc_metadataû   s[   € ð ×&Ñ&Ð.Ü*2×*GÑ*GØ×%Ñ%ó+ˆDÔ'ð ×"Ñ"Ð.à×+Ñ+×2Ñ2Ð3TÔUà×*Ñ*Ð*r@   c                 ó   — t         ‚©N©ÚNotImplementedError)r<   Úcollection_paths     r?   Ú
collectionzBaseClient.collection  ó   € Ü!Ð!r@   Úcollection_idc                 ó   — t         ‚rn   ro   ©r<   rt   s     r?   Úcollection_groupzBaseClient.collection_group  rs   r@   c                 óN   — d|v rt        d|z   dz   «      ‚| j                  |«      S )a†  Checks validity of collection_id and then uses subclasses collection implementation.

        Args:
            collection_id (str) Identifies the collections to query over.

                Every collection or subcollection with this ID as the last segment of its
                path will be included. Cannot contain a slash.

        Returns:
            The created collection.
        ú/zInvalid collection_id z&. Collection IDs must not contain '/'.)Ú
ValueErrorrr   rv   s     r?   Ú_get_collection_referencez$BaseClient._get_collection_reference  s=   € ð �-ÑÜØ(Øñ à:ñ;óð ð �‰˜}Ó-Ð-r@   c                 ó   — t         ‚rn   ro   )r<   Údocument_paths     r?   ÚdocumentzBaseClient.document+  rs   r@   rB   c                 ó   — t        | |¬«      S )aÙ  Get a BulkWriter instance from this client.

        Args:
            :class:`@google.cloud.firestore_v1.bulk_writer.BulkWriterOptions`:
            Optional control parameters for the
            :class:`@google.cloud.firestore_v1.bulk_writer.BulkWriter` returned.

        Returns:
            :class:`@google.cloud.firestore_v1.bulk_writer.BulkWriter`:
            A utility to efficiently create and save many `WriteBatch` instances
            to the server.
        )ÚclientrB   )r   )r<   rB   s     r?   Úbulk_writerzBaseClient.bulk_writer.  s   € ô  ¨wÔ7Ð7r@   c                 óð   — t        |«      }| j                  dz   }t        j                  j	                  |«      }|j                  |«      r|t        |«      d }|j                  t        j                  «      S )a2  Standardize the format of path to tuple of path segments and strip the database string from path if present.

        Args:
            document_path (Tuple[str, ...]): Can either be

                * A single ``/``-delimited path to a document
                * A tuple of document path segments
        z/documents/N)Ú_path_helperre   r   ÚDOCUMENT_PATH_DELIMITERÚjoinÚ
startswithÚlenÚsplit)r<   r}   ÚpathÚ	base_pathÚjoined_paths        r?   Ú_document_path_helperz BaseClient._document_path_helper=  sj   € ô ˜MÓ*ˆØ×)Ñ)¨MÑ9ˆ	Ü×6Ñ6×;Ñ;¸DÓAˆØ×!Ñ! )Ô,Ø%¤c¨)£nÐ&6Ð7ˆKØ× Ñ ¤×!AÑ!AÓBÐBr@   Ú	referencer�   r   c                 ó   — t         ‚rn   ro   )r<   r�   r�   s      r?   Úrecursive_deletezBaseClient.recursive_deleteM  s
   € ô
 "Ð!r@   Úfield_namesc                  ó   — t        | «      S )aŠ  Create a **field path** from a list of nested field names.

        A **field path** is a ``.``-delimited concatenation of the field
        names. It is used to represent a nested field. For example,
        in the data

        .. code-block:: python

           data = {
              'aa': {
                  'bb': {
                      'cc': 10,
                  },
              },
           }

        the field path ``'aa.bb.cc'`` represents the data stored in
        ``data['aa']['bb']['cc']``.

        Args:
            field_names: The list of field names.

        Returns:
            str: The ``.``-delimited field path.
        r   )r�   s    r?   Ú
field_pathzBaseClient.field_pathT  s   € ô6 ! Ó-Ð-r@   c                  ó  — t        | «      dk7  rt        t        «      ‚| j                  «       \  }}|dk(  rt	        j
                  |«      S |dk(  rt	        j                  |«      S dj                  |«      }t        t        |«      ‚)a,  Create a write option for write operations.

        Write operations include :meth:`~google.cloud.DocumentReference.set`,
        :meth:`~google.cloud.DocumentReference.update` and
        :meth:`~google.cloud.DocumentReference.delete`.

        One of the following keyword arguments must be provided:

        * ``last_update_time`` (:class:`google.protobuf.timestamp_pb2.               Timestamp`): A timestamp. When set, the target document must
               exist and have been last updated at that time. Protobuf
               ``update_time`` timestamps are typically returned from methods
               that perform write operations as part of a "write result"
               protobuf or directly.
        * ``exists`` (:class:`bool`): Indicates if the document being modified
              should already exist.

        Providing no argument would make the option have no effect (so
        it is not allowed). Providing multiple would be an apparent
        contradiction, since ``last_update_time`` assumes that the
        document **was** updated (it can't have been updated if it
        doesn't exist) and ``exists`` indicate that it is unknown if the
        document exists or not.

        Args:
            kwargs (Dict[str, Any]): The keyword arguments described above.

        Raises:
            TypeError: If anything other than exactly one argument is
                provided by the caller.

        Returns:
            :class:`~google.cloud.firestore_v1.client.WriteOption`:
            The option to be used to configure a write message.
        é   Úlast_update_timeÚexistsz{!r} was provided)r‡   Ú	TypeErrorÚ_BAD_OPTION_ERRÚpopitemr   ÚLastUpdateOptionÚExistsOptionÚformat)ÚkwargsÚnameÚvalueÚextras       r?   Úwrite_optionzBaseClient.write_optionq  s|   € ôN ˆv‹;˜!ÒÜœOÓ,Ð,à—n‘nÓ&‰ˆˆeØÐ%Ò%Ü×,Ñ,¨UÓ3Ð3Ø�XÒÜ×(Ñ(¨Ó/Ð/à'×.Ñ.¨tÓ4ˆEÜœO¨UÓ3Ð3r@   Ú
referencesÚfield_pathsÚtransactionr   Útimeoutc                 ó²   — t        |«      \  }}t        |«      }| j                  ||t        j                  |«      dœ}	t        j
                  ||«      }
|	||
fS )z,Shared setup for async/sync :meth:`get_all`.)r=   Ú	documentsÚmaskr¤   )Ú_reference_infoÚ_get_doc_maskre   r   Úget_transaction_idÚmake_retry_timeout_kwargs)r<   r¢   r£   r¤   r   r¥   Údocument_pathsÚreference_mapr¨   Úrequestr�   s              r?   Ú_prep_get_allzBaseClient._prep_get_all¤  sb   € ô )8¸
Ó(CÑ%ˆ˜Ü˜[Ó)ˆà×-Ñ-Ø'ØÜ#×6Ñ6°{ÓCñ	
ˆô ×3Ñ3°E¸7ÓCˆà˜ vÐ-Ð-r@   c                 ó   — t         ‚rn   ro   )r<   r¢   r£   r¤   r   r¥   s         r?   Úget_allzBaseClient.get_all¹  s
   € ô "Ð!r@   c                 óp   — ddj                  | j                  «      i}t        j                  ||«      }||fS )z0Shared setup for async/sync :meth:`collections`.Úparentz{}/documents)rœ   re   r   r¬   )r<   r   r¥   r¯   r�   s        r?   Ú_prep_collectionszBaseClient._prep_collectionsÅ  s;   € ð ˜^×2Ñ2°4×3HÑ3HÓIÐJˆÜ×3Ñ3°E¸7ÓCˆà˜ˆÐr@   c                 ó   — t         ‚rn   ro   )r<   r   r¥   s      r?   ÚcollectionszBaseClient.collectionsÐ  s
   € ô "Ð!r@   c                 ó   — t         ‚rn   ro   rk   s    r?   ÚbatchzBaseClient.batchÚ  rs   r@   c                 ó   — t         ‚rn   ro   )r<   r�   s     r?   r¤   zBaseClient.transactionÝ  rs   r@   )r%   Nrn   )NNNN)NN);rW   Ú
__module__Ú__qualname__Ú__doc__ÚSCOPErF   ra   rh   r    r3   r   rO   rG   rV   r_   Úpropertyre   rl   r   r   rr   rw   r{   r   r~   r   r   r   r�   r   rŒ   r   Úintr�   Ústaticmethodr’   r   r›   rš   r¡   Úlistr   r   ÚretriesÚRetryÚfloatr   r6   r°   r   r
   r   r²   rµ   r·   r   r¹   r¤   Ú__classcell__)r>   s   @r?   r$   r$   N   s   ø„ ñð6€Eð Mà"ÐØ $ÐØ!Ðð ØØØ Øð'"ð 
õ'"ðR,Èsó ,ò6Oð41¨có 1ð ñ.ó ð.ð4 ñ+ó ð+ð$"Ð.EÀiÑ.Pó "ð"¨cð "°ió "ð.Ø ð.à	  Ñ	+ó.ð."Ð*?ó "ñ8 8Ð,=Ñ#>ð 8È*ó 8ðC°t¸C±yó Cð& /3ñ"àÐ0°Ñ;Ð=RÐRÑSð"ð ˜lÑ+ð"ð 
ó	"ð ð. ð .¨ò .ó ð.ð8 ð04à	ˆx×$Ñ$ h×&?Ñ&?Ð?Ñ	@ò04ó ð04ðj &*Ø'+Ø#Øñ.àð.ð ˜c‘]ð.ð %ð	.ð
 �}‰}ð.ð ð.ð 
ˆt�T˜4ÐÑ	 ó.ð0 &*Ø'+Ø#Øñ
"àð
"ð ˜c‘]ð
"ð %ð	
"ð
 �}‰}ð
"ð ð
"ð 
ØÐ'¨Ð,Ñ-¨yÐ9IÈ3ÐPSÐ9SÑ/TÐTñ
ó
"ð  $Øñ	à�}‰}ð	ð ð	ð 
ˆt�TˆzÑ	ó		ð  $Øñ"à�}‰}ð"ð ð"ð 
ØÐ.¨yÑ9¸3Ð>Ñ?ØÐ)¨)Ñ4°c¸3Ð>Ñ?ð	Añ
ó	"ð"�~ó "ð" ÷ "r@   r$   r¢   r%   c                 ód   — g }i }| D ]$  }|j                   }|j                  |«       |||<   Œ& ||fS )a^  Get information about document references.

    Helper for :meth:`~google.cloud.firestore_v1.client.Client.get_all`.

    Args:
        references (List[.DocumentReference, ...]): Iterable of document
            references.

    Returns:
        Tuple[List[str, ...], Dict[str, .DocumentReference]]: A two-tuple of

        * fully-qualified documents paths for each reference in ``references``
        * a mapping from the paths to the original reference. (If multiple
          ``references`` contains multiple references to the same document,
          that key will be overwritten in the result.)
    )Ú_document_pathrj   )r¢   r­   r®   r�   Údoc_paths        r?   r©   r©   á  sM   € ð" €NØ€MØò ,ˆ	Ø×+Ñ+ˆØ×Ñ˜hÔ'Ø"+ˆ�hÒð,ð
 ˜=Ð(Ð(r@   r}   r®   c                 óh   — 	 ||    S # t         $ r! t        j                  | «      }t        |«      ‚w xY w)a…  Get a document reference from a dictionary.

    This just wraps a simple dictionary look-up with a helpful error that is
    specific to :meth:`~google.cloud.firestore.client.Client.get_all`, the
    **public** caller of this function.

    Args:
        document_path (str): A fully-qualified document path.
        reference_map (Dict[str, .DocumentReference]): A mapping (produced
            by :func:`_reference_info`) of fully-qualified document paths to
            document references.

    Returns:
        .DocumentReference: The matching reference.

    Raises:
        ValueError: If ``document_path`` has not been encountered.
    )ÚKeyErrorr   rœ   rz   )r}   r®   Úmsgs      r?   Ú_get_referencerÍ   ü  s;   € ð&Ø˜]Ñ+Ð+øÜò Ü×&Ñ& }Ó5ˆÜ˜‹oÐðús   ‚ ‡*1Úget_doc_responser€   c                 óæ  — | j                   j                  d«      }|dk(  r�t        | j                  j                  |«      }t        j                  | j                  j                  |«      }t        ||d| j                  | j                  j                  | j                  j                  ¬«      }|S |dk(  r3t        | j                  |«      }t        |dd| j                  dd¬«      }|S t        d«      ‚)	aú  Parse a `BatchGetDocumentsResponse` protobuf.

    Args:
        get_doc_response (~google.cloud.proto.firestore.v1.            firestore.BatchGetDocumentsResponse): A single response (from
            a stream) containing the "get" response for a document.
        reference_map (Dict[str, .DocumentReference]): A mapping (produced
            by :func:`_reference_info`) of fully-qualified document paths to
            document references.
        client (:class:`~google.cloud.firestore_v1.client.Client`):
            A client that has a document factory.

    Returns:
       [.DocumentSnapshot]: The retrieved snapshot.

    Raises:
        ValueError: If the response has a ``result`` field (a oneof) other
            than ``found`` or ``missing``.
    ÚresultÚfoundT)r–   Ú	read_timeÚcreate_timeÚupdate_timeÚmissingNFzj`BatchGetDocumentsResponse.result` (a oneof) had a field other than `found` or `missing` set, or was unset)Ú_pbÚ
WhichOneofrÍ   rÑ   rž   r   Údecode_dictÚfieldsr
   rÒ   rÓ   rÔ   rÕ   rz   )rÎ   r®   r€   Úresult_typer�   ÚdataÚsnapshots          r?   Ú_parse_batch_getrÝ     sõ   € ð0 #×&Ñ&×1Ñ1°(Ó;€KØ�gÒÜ"Ð#3×#9Ñ#9×#>Ñ#>ÀÓNˆ	Ü×#Ñ#Ð$4×$:Ñ$:×$AÑ$AÀ6ÓJˆÜ#ØØØØ&×0Ñ0Ø(×.Ñ.×:Ñ:Ø(×.Ñ.×:Ñ:ô
ˆð. €Oð 
˜	Ò	!Ü"Ð#3×#;Ñ#;¸]ÓKˆ	Ü#ØØØØ&×0Ñ0ØØô
ˆð €Oô	 ð:ó
ð 	
r@   r£   c                 ó4   — | €yt        j                  | ¬«      S )a±  Get a document mask if field paths are provided.

    Args:
        field_paths (Optional[Iterable[str, ...]]): An iterable of field
            paths (``.``-delimited list of field names) to use as a
            projection of document fields in the returned results.

    Returns:
        Optional[google.cloud.firestore_v1.types.common.DocumentMask]: A mask
            to project documents to a restricted set of field paths.
    N©r£   )r	   ÚDocumentMaskrß   s    r?   rª   rª   L  s   € ð ÐØä×!Ñ!¨kÔ:Ð:r@   r‰   c                 óf   — t        | «      dk(  r"| d   j                  t        j                  «      S | S )zÁStandardize path into a tuple of path segments.

    Args:
        path (Tuple[str, ...]): Can either be

            * A single ``/``-delimited path
            * A tuple of path segments
    r”   r   )r‡   rˆ   r   r„   )r‰   s    r?   rƒ   rƒ   ^  s-   € ô ˆ4ƒy�A‚~Ø�A‰w�}‰}œX×=Ñ=Ó>Ð>àˆr@   )Cr½   r.   rX   Úgoogle.auth.credentialsr   Úgoogle.api_core.client_optionsr7   Úgoogle.api_core.path_templateÚgoogle.api_corer   rÃ   Úgoogle.api_core.gapic_v1r   Úgoogle.cloud.clientr   Úgoogle.cloud.firestore_v1r   r   r	   Ú'google.cloud.firestore_v1.base_documentr
   Ú$google.cloud.firestore_v1.field_pathr   Ú%google.cloud.firestore_v1.bulk_writerr   r   Útypingr   r   r   r   r   r   r   r   Ú)google.cloud.firestore_v1.base_collectionr   r   Ú*google.cloud.firestore_v1.base_transactionr   Ú$google.cloud.firestore_v1.base_batchr   Ú$google.cloud.firestore_v1.base_queryr   r-   r1   r˜   r   rV   Ú__annotations__r   r   Ú
ClientInfor    r"   r$   rÂ   r6   r©   rÍ   ÚBatchGetDocumentsResponserÝ   Úcommonrà   rª   Útuplerƒ   © r@   r?   ú<module>r÷      sn  ðò
ó 
Û å 8Û %Û $Ý ,Ý 0Ý 1å .Ý 1Ý +Ý Då Bß O÷	÷ 	ó 	õ NÝ IÝ FÝ ?Ý :ð Ð Ø \Ø=Ð àLð ð Nð �3ó ð =€ˆSÓ <Ø6€ˆsÓ 6Ø*�K×*Ñ*À+ÔN€ˆcÓ NØ 9Ð ˜#Ó 9ôP"Ð"ô P"ðf) ð )¨¨t°T¨zÑ):ó )ð6 #ð °dð Ð?Tó ð43Ø×5Ñ5ð3àð3ð ð3ð ó	3ðl;˜x¨™}ð ;°¸%¿,¹,×:SÑ:SÑ1Tó ;ð$�uð   s¡ô r@   