From c4b98bf382bf34458dc3a8d96d0bf91dbe75fa22 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 27 Apr 2022 09:17:50 -0700 Subject: [PATCH] feat:Enable RunQueryResponse.done PiperOrigin-RevId: 444879243 --- google/firestore/v1/firestore.proto | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/google/firestore/v1/firestore.proto b/google/firestore/v1/firestore.proto index 6dc6638280..17c94ecb4e 100644 --- a/google/firestore/v1/firestore.proto +++ b/google/firestore/v1/firestore.proto @@ -523,6 +523,15 @@ message RunQueryResponse { // The number of results that have been skipped due to an offset between // the last response and the current response. int32 skipped_results = 4; + + // The continuation mode for the query. If present, it indicates the current + // query response stream has finished. This can be set with or without a + // `document` present, but when set, no more results are returned. + oneof continuation_selector { + // If present, Firestore has completely finished the request and no more + // documents will be returned. + bool done = 6; + } } // The request for [Firestore.PartitionQuery][google.firestore.v1.Firestore.PartitionQuery].