
    (phe                     v   % S r SSKJr  SSKJrJr  SSKJr   SSKJ	r	  \
" 5       R                  5       r\	R                  R                  5        H0  u  rr\R#                  S5      (       a  M  \\;  d  M&  \\
" 5       \'   M2     Sr\\S	'   SS\S\	R,                  4S jjr " S S5      rg
! \ a	    \" S5      ef = f)zCloud Firestore Async module.

This module contains utilities for asynchronusly accessing the Google Cloud Firestore databases
associated with Firebase apps. This requires the ``google-cloud-firestore`` Python module.
    )Type)App_utils)Base)	firestore_zrFailed to import the Cloud Firestore library for Python. Make sure to install the "google-cloud-firestore" module._firestore_async_FIRESTORE_ASYNC_ATTRIBUTENappreturnc                 v    [         R                  " U [        [        R                  5      nUR                  5       $ )a  Returns an async client that can be used to interact with Google Cloud Firestore.

Args:
  app: An App instance (optional).

Returns:
  google.cloud.firestore.Firestore_Async: A `Firestore Async Client`_.

Raises:
  ValueError: If a project ID is not specified either via options, credentials or
      environment variables, or if the specified project ID is not a valid string.

.. _Firestore Async Client: https://googleapis.dev/python/firestore/latest/client.html
)r   get_app_servicer
   _FirestoreAsyncClientfrom_appget)r   	fs_clients     Q/var/www/html/venv/lib/python3.13/site-packages/firebase_admin/firestore_async.pyclientr   *   s0     &&')>)G)GII==?    c                   r    \ rS rSrSrS\\   S\SS4S jrS\	R                  4S jr\S	\SS 4S
 j5       rSrg)r   >   z5Holds a Google Cloud Firestore Async Client instance.credentialsprojectr   Nc                 6    [         R                  " XS9U l        g )N)r   r   )r   AsyncClient_client)selfr   r   s      r   __init___FirestoreAsyncClient.__init__A   s     ,,Vr   c                     U R                   $ Nr   )r   s    r   r   _FirestoreAsyncClient.getD   s    ||r   r   c                     UR                   R                  5       nUR                  nU(       d  [        S5      e[	        X#5      $ )z:Creates a new _FirestoreAsyncClient for the specified app.zProject ID is required to access Firestore. Either set the projectId option, or use service account credentials. Alternatively, set the GOOGLE_CLOUD_PROJECT environment variable.)
credentialget_credential
project_id
ValueErrorr   )clsr   r   r   s       r   r   _FirestoreAsyncClient.from_appG   sA     nn335..() ) %[::r   r"   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   r   classmethodr   r   __static_attributes__ r   r   r   r   >   s\    ?WDJ W W WY**  
;3 
;#: 
; 
;r   r   r!   )r/   typingr   firebase_adminr   r   firebase_admin.credentialsr   google.cloudr   globalskeysexisting__dict__itemskeyvalue
startswithImportErrorr
   r0   __annotations__r   r   r   r3   r   r   <module>rB      s     ,I&y~~H((..0
U~~c""s(':"GIcN 1 #5 C 4 y44 (; ;7  I
 H I IIs   AB) ,B) 4B) )B8