Skip navigation links

Package com.google.cloud.firestore.v1beta1

A client to Google Cloud Firestore API.

See: Description

Package com.google.cloud.firestore.v1beta1 Description

A client to Google Cloud Firestore API.

The interfaces provided are listed below, along with usage samples.

=============== FirestoreClient ===============

Service Description: The Cloud Firestore service.

This service exposes several types of comparable timestamps:

* `create_time` - The time at which a document was created. Changes only when a document is deleted, then re-created. Increases in a strict monotonic fashion. * `update_time` - The time at which a document was last updated. Changes every time a document is modified. Does not change when a write results in no modifications. Increases in a strict monotonic fashion. * `read_time` - The time at which a particular state was observed. Used to denote a consistent snapshot of the database or the time at which a Document was observed to not exist. * `commit_time` - The time at which the writes in a transaction were committed. Any read with an equal or greater `read_time` is guaranteed to see the effects of the transaction.

Sample for FirestoreClient:

 
 try (FirestoreClient firestoreClient = FirestoreClient.create()) {
   Document document = Document.newBuilder().build();
   DocumentMask updateMask = DocumentMask.newBuilder().build();
   Document response = firestoreClient.updateDocument(document, updateMask);
 }
 
 
Skip navigation links

Copyright © 2019 Google LLC. All rights reserved.