blob: 67d2f68648c436c6c8f4830816f91a9fe42d3087 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
}
}
|