aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Protos/protos/firestore/local/maybe_document.proto
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/Protos/protos/firestore/local/maybe_document.proto')
-rw-r--r--Firestore/Protos/protos/firestore/local/maybe_document.proto33
1 files changed, 33 insertions, 0 deletions
diff --git a/Firestore/Protos/protos/firestore/local/maybe_document.proto b/Firestore/Protos/protos/firestore/local/maybe_document.proto
new file mode 100644
index 0000000..67d2f68
--- /dev/null
+++ b/Firestore/Protos/protos/firestore/local/maybe_document.proto
@@ -0,0 +1,33 @@
+syntax = "proto3";
+
+package firestore.client;
+
+option java_multiple_files = true;
+option java_package = "com.google.firebase.firestore.proto";
+
+option objc_class_prefix = "FSTPB";
+
+import "google/firestore/v1beta1/document.proto";
+import "google/protobuf/timestamp.proto";
+
+// A message indicating that the document is known to not exist.
+message NoDocument {
+ // The name of the document that does not exist, in the standard format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`
+ string name = 1;
+
+ // The time at which we observed that it does not exist.
+ google.protobuf.Timestamp read_time = 2;
+}
+
+// Represents either an existing document or the explicitly known absence of a
+// document.
+message MaybeDocument {
+ oneof document_type {
+ // Used if the document is known to not exist.
+ NoDocument no_document = 1;
+
+ // The document (if it exists).
+ google.firestore.v1beta1.Document document = 2;
+ }
+}