File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
firebase-firestore/src/proto/google Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,9 @@ message Target {
77
77
78
78
// A target specified by a set of document names.
79
79
google.firestore.v1.Target.DocumentsTarget documents = 6 ;
80
+
81
+ // A target specified by a pipeline query.
82
+ google.firestore.v1.Target.PipelineQueryTarget pipeline_query = 13 ;
80
83
}
81
84
82
85
// Denotes the maximum snapshot version at which the associated query view
Original file line number Diff line number Diff line change @@ -866,13 +866,25 @@ message Target {
866
866
}
867
867
}
868
868
869
+ // A target specified by a pipeline query.
870
+ message PipelineQueryTarget {
871
+ // The pipeline to run.
872
+ oneof pipeline_type {
873
+ // A pipelined operation in structured format.
874
+ StructuredPipeline structured_pipeline = 1 ;
875
+ }
876
+ }
877
+
869
878
// The type of target to listen to.
870
879
oneof target_type {
871
880
// A target specified by a query.
872
881
QueryTarget query = 2 ;
873
882
874
883
// A target specified by a set of document names.
875
884
DocumentsTarget documents = 3 ;
885
+
886
+ // A target specified by a pipeline query.
887
+ PipelineQueryTarget pipeline_query = 13 ;
876
888
}
877
889
878
890
// When to start listening.
Original file line number Diff line number Diff line change @@ -200,6 +200,12 @@ message WriteResult {
200
200
//
201
201
// Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be
202
202
// returned for the same logical change, if multiple targets are affected.
203
+ //
204
+ // For PipelineQueryTargets, `document` will be in the new pipeline format,
205
+ // (-- TODO(b/330735468): Insert link to spec. --)
206
+ // For a Listen stream with both QueryTargets and PipelineQueryTargets present,
207
+ // if a document matches both types of queries, then a separate DocumentChange
208
+ // messages will be sent out one for each set.
203
209
message DocumentChange {
204
210
// The new state of the [Document][google.firestore.v1.Document].
205
211
//
You can’t perform that action at this time.
0 commit comments