1818
1919In the hierarchy of API concepts
2020
21- * a :class:`~.firestore_v1.client.Client` owns a
22- :class:`~.firestore_v1.collection.CollectionReference`
23- * a :class:`~.firestore_v1.client.Client` owns a
24- :class:`~.firestore_v1.document.DocumentReference`
21+ * a :class:`~google.cloud .firestore_v1.client.Client` owns a
22+ :class:`~google.cloud .firestore_v1.collection.CollectionReference`
23+ * a :class:`~google.cloud .firestore_v1.client.Client` owns a
24+ :class:`~google.cloud .firestore_v1.document.DocumentReference`
2525"""
2626from google .api_core .gapic_v1 import client_info
2727from google .cloud .client import ClientWithProject
4040
4141
4242DEFAULT_DATABASE = "(default)"
43- """str: The default database used in a :class:`~.firestore.client.Client`."""
43+ """str: The default database used in a :class:`~google.cloud .firestore.client.Client`."""
4444_BAD_OPTION_ERR = (
4545 "Exactly one of ``last_update_time`` or ``exists`` " "must be provided."
4646)
@@ -108,7 +108,7 @@ def _firestore_api(self):
108108 """Lazy-loading getter GAPIC Firestore API.
109109
110110 Returns:
111- ~.gapic.firestore.v1.firestore_client.FirestoreClient: The
111+ ~google.cloud .gapic.firestore.v1.firestore_client.FirestoreClient: The
112112 GAPIC client with the credentials of the current client.
113113 """
114114 if self ._firestore_api_internal is None :
@@ -185,7 +185,7 @@ def collection(self, *collection_path):
185185 * A tuple of collection path segments
186186
187187 Returns:
188- ~.firestore_v1.collection.CollectionReference: A reference
188+ ~google.cloud .firestore_v1.collection.CollectionReference: A reference
189189 to a collection in the Firestore database.
190190 """
191191 if len (collection_path ) == 1 :
@@ -248,7 +248,7 @@ def document(self, *document_path):
248248 * A tuple of document path segments
249249
250250 Returns:
251- ~.firestore_v1.document.DocumentReference: A reference
251+ ~google.cloud .firestore_v1.document.DocumentReference: A reference
252252 to a document in a collection.
253253 """
254254 if len (document_path ) == 1 :
@@ -298,9 +298,9 @@ def field_path(*field_names):
298298 def write_option (** kwargs ):
299299 """Create a write option for write operations.
300300
301- Write operations include :meth:`~.DocumentReference.set`,
302- :meth:`~.DocumentReference.update` and
303- :meth:`~.DocumentReference.delete`.
301+ Write operations include :meth:`~google.cloud .DocumentReference.set`,
302+ :meth:`~google.cloud .DocumentReference.update` and
303+ :meth:`~google.cloud .DocumentReference.delete`.
304304
305305 One of the following keyword arguments must be provided:
306306
@@ -352,7 +352,7 @@ def get_all(self, references, field_paths=None, transaction=None):
352352 If multiple ``references`` refer to the same document, the server
353353 will only return one result.
354354
355- See :meth:`~.firestore_v1.client.Client.field_path` for
355+ See :meth:`~google.cloud .firestore_v1.client.Client.field_path` for
356356 more information on **field paths**.
357357
358358 If a ``transaction`` is used and it already has write operations
@@ -366,7 +366,7 @@ def get_all(self, references, field_paths=None, transaction=None):
366366 paths (``.``-delimited list of field names) to use as a
367367 projection of document fields in the returned results. If
368368 no value is provided, all fields will be returned.
369- transaction (Optional[~.firestore_v1.transaction.\
369+ transaction (Optional[~google.cloud .firestore_v1.transaction.\
370370 Transaction]): An existing transaction that these
371371 ``references`` will be retrieved in.
372372
@@ -391,7 +391,7 @@ def collections(self):
391391 """List top-level collections of the client's database.
392392
393393 Returns:
394- Sequence[~.firestore_v1.collection.CollectionReference]:
394+ Sequence[~google.cloud .firestore_v1.collection.CollectionReference]:
395395 iterator of subcollections of the current document.
396396 """
397397 iterator = self ._firestore_api .list_collection_ids (
@@ -405,7 +405,7 @@ def batch(self):
405405 """Get a batch instance from this client.
406406
407407 Returns:
408- ~.firestore_v1.batch.WriteBatch: A "write" batch to be
408+ ~google.cloud .firestore_v1.batch.WriteBatch: A "write" batch to be
409409 used for accumulating document changes and sending the changes
410410 all at once.
411411 """
@@ -414,17 +414,17 @@ def batch(self):
414414 def transaction (self , ** kwargs ):
415415 """Get a transaction that uses this client.
416416
417- See :class:`~.firestore_v1.transaction.Transaction` for
417+ See :class:`~google.cloud .firestore_v1.transaction.Transaction` for
418418 more information on transactions and the constructor arguments.
419419
420420 Args:
421421 kwargs (Dict[str, Any]): The keyword arguments (other than
422422 ``client``) to pass along to the
423- :class:`~.firestore_v1.transaction.Transaction`
423+ :class:`~google.cloud .firestore_v1.transaction.Transaction`
424424 constructor.
425425
426426 Returns:
427- ~.firestore_v1.transaction.Transaction: A transaction
427+ ~google.cloud .firestore_v1.transaction.Transaction: A transaction
428428 attached to this client.
429429 """
430430 return Transaction (self , ** kwargs )
@@ -433,7 +433,7 @@ def transaction(self, **kwargs):
433433def _reference_info (references ):
434434 """Get information about document references.
435435
436- Helper for :meth:`~.firestore_v1.client.Client.get_all`.
436+ Helper for :meth:`~google.cloud .firestore_v1.client.Client.get_all`.
437437
438438 Args:
439439 references (List[.DocumentReference, ...]): Iterable of document
@@ -461,7 +461,7 @@ def _get_reference(document_path, reference_map):
461461 """Get a document reference from a dictionary.
462462
463463 This just wraps a simple dictionary look-up with a helpful error that is
464- specific to :meth:`~.firestore.client.Client.get_all`, the
464+ specific to :meth:`~google.cloud .firestore.client.Client.get_all`, the
465465 **public** caller of this function.
466466
467467 Args:
@@ -493,7 +493,7 @@ def _parse_batch_get(get_doc_response, reference_map, client):
493493 reference_map (Dict[str, .DocumentReference]): A mapping (produced
494494 by :func:`_reference_info`) of fully-qualified document paths to
495495 document references.
496- client (~.firestore_v1.client.Client): A client that has
496+ client (~google.cloud .firestore_v1.client.Client): A client that has
497497 a document factory.
498498
499499 Returns:
0 commit comments