1- // Copyright 2022 Google LLC
1+ // Copyright 2023 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@ syntax = "proto3";
1616
1717package google.firestore.admin.v1 ;
1818
19+ import "google/api/resource.proto" ;
1920import "google/firestore/admin/v1/index.proto" ;
2021import "google/protobuf/timestamp.proto" ;
2122
@@ -28,7 +29,8 @@ option objc_class_prefix = "GCFS";
2829option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1" ;
2930option ruby_package = "Google::Cloud::Firestore::Admin::V1" ;
3031
31- // Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
32+ // Metadata for [google.longrunning.Operation][google.longrunning.Operation]
33+ // results from
3234// [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
3335message IndexOperationMetadata {
3436 // The time this operation started.
@@ -52,7 +54,8 @@ message IndexOperationMetadata {
5254 Progress progress_bytes = 6 ;
5355}
5456
55- // Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
57+ // Metadata for [google.longrunning.Operation][google.longrunning.Operation]
58+ // results from
5659// [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
5760message FieldOperationMetadata {
5861 // Information about an index configuration change.
@@ -76,7 +79,7 @@ message FieldOperationMetadata {
7679 Index index = 2 ;
7780 }
7881
79- // Information about an TTL configuration change.
82+ // Information about a TTL configuration change.
8083 message TtlConfigDelta {
8184 // Specifies how the TTL config is changing.
8285 enum ChangeType {
@@ -105,8 +108,9 @@ message FieldOperationMetadata {
105108 // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
106109 string field = 3 ;
107110
108- // A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
109- // operation.
111+ // A list of
112+ // [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
113+ // which describe the intent of this operation.
110114 repeated IndexConfigDelta index_config_deltas = 4 ;
111115
112116 // The state of the operation.
@@ -122,7 +126,8 @@ message FieldOperationMetadata {
122126 TtlConfigDelta ttl_config_delta = 8 ;
123127}
124128
125- // Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
129+ // Metadata for [google.longrunning.Operation][google.longrunning.Operation]
130+ // results from
126131// [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
127132message ExportDocumentsMetadata {
128133 // The time this operation started.
@@ -144,11 +149,20 @@ message ExportDocumentsMetadata {
144149 // Which collection ids are being exported.
145150 repeated string collection_ids = 6 ;
146151
147- // Where the entities are being exported to.
152+ // Where the documents are being exported to.
148153 string output_uri_prefix = 7 ;
154+
155+ // Which namespace ids are being exported.
156+ repeated string namespace_ids = 8 ;
157+
158+ // The timestamp that corresponds to the version of the database that is being
159+ // exported. If unspecified, there are no guarantees about the consistency of
160+ // the documents being exported.
161+ google.protobuf.Timestamp snapshot_time = 9 ;
149162}
150163
151- // Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
164+ // Metadata for [google.longrunning.Operation][google.longrunning.Operation]
165+ // results from
152166// [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
153167message ImportDocumentsMetadata {
154168 // The time this operation started.
@@ -172,9 +186,13 @@ message ImportDocumentsMetadata {
172186
173187 // The location of the documents being imported.
174188 string input_uri_prefix = 7 ;
189+
190+ // Which namespace ids are being imported.
191+ repeated string namespace_ids = 8 ;
175192}
176193
177- // Returned in the [google.longrunning.Operation][google.longrunning.Operation] response field.
194+ // Returned in the [google.longrunning.Operation][google.longrunning.Operation]
195+ // response field.
178196message ExportDocumentsResponse {
179197 // Location of the output files. This can be used to begin an import
180198 // into Cloud Firestore (this project or another project) after the operation
@@ -212,8 +230,8 @@ enum OperationState {
212230}
213231
214232// Describes the progress of the operation.
215- // Unit of work is generic and must be interpreted based on where [Progress][google.firestore.admin.v1.Progress]
216- // is used.
233+ // Unit of work is generic and must be interpreted based on where
234+ // [Progress][google.firestore.admin.v1.Progress] is used.
217235message Progress {
218236 // The amount of work estimated.
219237 int64 estimated_work = 1 ;
0 commit comments