Skip to content

Commit bdea286

Browse files
Google APIscopybara-github
authored andcommitted
feat: expose read_time fields in Firestore PartitionQuery and ListCollectionIds, currently only available in private preview
PiperOrigin-RevId: 453719952
1 parent ac9c393 commit bdea286

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

google/firestore/v1/firestore.proto

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,14 @@ message PartitionQueryRequest {
584584
// if more results exist. A second call to PartitionQuery will return up to
585585
// 2 partitions, to complete the total of 10 specified in `partition_count`.
586586
int32 page_size = 5;
587+
588+
// The consistency mode for this request.
589+
// If not set, defaults to strong consistency.
590+
oneof consistency_selector {
591+
// Reads documents as they were at the given time.
592+
// This may not be older than 270 seconds.
593+
google.protobuf.Timestamp read_time = 6;
594+
}
587595
}
588596

589597
// The response for [Firestore.PartitionQuery][google.firestore.v1.Firestore.PartitionQuery].
@@ -868,6 +876,14 @@ message ListCollectionIdsRequest {
868876
// A page token. Must be a value from
869877
// [ListCollectionIdsResponse][google.firestore.v1.ListCollectionIdsResponse].
870878
string page_token = 3;
879+
880+
// The consistency mode for this request.
881+
// If not set, defaults to strong consistency.
882+
oneof consistency_selector {
883+
// Reads documents as they were at the given time.
884+
// This may not be older than 270 seconds.
885+
google.protobuf.Timestamp read_time = 4;
886+
}
871887
}
872888

873889
// The response from [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds].

google/firestore/v1/firestore_v1.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ name: firestore.googleapis.com
44
title: Cloud Firestore API
55

66
apis:
7+
- name: google.cloud.location.Locations
78
- name: google.firestore.v1.Firestore
9+
- name: google.longrunning.Operations
810

911
documentation:
1012
summary: |-

0 commit comments

Comments
 (0)