
    (ph
                     J   S 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SKJr  SrSS\R                  4S	 jjr " S
 S5      rg! \ a	    \" S5      ef = f)zCloud Firestore module.

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

Args:
  app: An App instance (optional).

Returns:
  google.cloud.firestore.Firestore: A `Firestore 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 Client: https://googlecloudplatform.github.io/google-cloud-python/latest          /firestore/client.html
)r   get_app_service_FIRESTORE_ATTRIBUTE_FirestoreClientfrom_appget)app	fs_clients     K/var/www/html/venv/lib/python3.13/site-packages/firebase_admin/firestore.pyclientr   %   s,      &&s,@BRB[B[\I==?    c                   4    \ rS rSrSrS rS r\S 5       rSr	g)r   9   z/Holds a Google Cloud Firestore client instance.c                 6    [         R                  " XS9U l        g )N)credentialsproject)r   Client_client)selfr   r   s      r   __init___FirestoreClient.__init__<   s     ''KQr   c                     U R                   $ Nr   )r   s    r   r   _FirestoreClient.get?   s    ||r   c                     UR                   R                  5       nUR                  nU(       d  [        S5      e[	        X#5      $ )z5Creates a new _FirestoreClient 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   _FirestoreClient.from_appB   sA     nn335..() )  55r   r   N)
__name__
__module____qualname____firstlineno____doc__r   r   classmethodr   __static_attributes__ r   r   r   r   9   s$    9R 	6 	6r   r   r   )r,   google.cloudr   globalskeysexisting__dict__itemskeyvalue
startswithImportErrorfirebase_adminr   r
   r   r   r   r/   r   r   <module>r;      s   I&y~~H((..0
U~~c""s(':"GIcN 1 " $ 	(( (6 6=  I
 H I IIs   AB B B B"