@google-cloud/firestore-api 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +111 -0
- package/build/protos/google/firestore/admin/v1/backup.proto +112 -0
- package/build/protos/google/firestore/admin/v1/database.proto +403 -0
- package/build/protos/google/firestore/admin/v1/field.proto +154 -0
- package/build/protos/google/firestore/admin/v1/firestore_admin.proto +1229 -0
- package/build/protos/google/firestore/admin/v1/index.proto +378 -0
- package/build/protos/google/firestore/admin/v1/location.proto +30 -0
- package/build/protos/google/firestore/admin/v1/operation.proto +330 -0
- package/build/protos/google/firestore/admin/v1/realtime_updates.proto +40 -0
- package/build/protos/google/firestore/admin/v1/schedule.proto +95 -0
- package/build/protos/google/firestore/admin/v1/snapshot.proto +53 -0
- package/build/protos/google/firestore/admin/v1/user_creds.proto +86 -0
- package/build/protos/google/firestore/v1/aggregation_result.proto +43 -0
- package/build/protos/google/firestore/v1/bloom_filter.proto +73 -0
- package/build/protos/google/firestore/v1/common.proto +111 -0
- package/build/protos/google/firestore/v1/document.proto +247 -0
- package/build/protos/google/firestore/v1/explain_stats.proto +41 -0
- package/build/protos/google/firestore/v1/firestore.proto +1237 -0
- package/build/protos/google/firestore/v1/pipeline.proto +43 -0
- package/build/protos/google/firestore/v1/query.proto +600 -0
- package/build/protos/google/firestore/v1/query_profile.proto +92 -0
- package/build/protos/google/firestore/v1/write.proto +286 -0
- package/build/protos/google/firestore/v1beta1/common.proto +82 -0
- package/build/protos/google/firestore/v1beta1/document.proto +149 -0
- package/build/protos/google/firestore/v1beta1/firestore.proto +900 -0
- package/build/protos/google/firestore/v1beta1/query.proto +300 -0
- package/build/protos/google/firestore/v1beta1/undeliverable_first_gen_event.proto +75 -0
- package/build/protos/google/firestore/v1beta1/write.proto +258 -0
- package/build/protos/protos.d.ts +35648 -0
- package/build/protos/protos.js +1 -0
- package/build/protos/protos.json +1 -0
- package/build/src/index.d.ts +13 -0
- package/build/src/index.js +30 -0
- package/build/src/index.js.map +1 -0
- package/build/src/v1/firestore_admin_client.d.ts +1925 -0
- package/build/src/v1/firestore_admin_client.js +2734 -0
- package/build/src/v1/firestore_admin_client.js.map +1 -0
- package/build/src/v1/firestore_admin_client_config.json +172 -0
- package/build/src/v1/firestore_admin_proto_list.json +13 -0
- package/build/src/v1/firestore_client.d.ts +1204 -0
- package/build/src/v1/firestore_client.js +1605 -0
- package/build/src/v1/firestore_client.js.map +1 -0
- package/build/src/v1/firestore_client_config.json +135 -0
- package/build/src/v1/firestore_proto_list.json +12 -0
- package/build/src/v1/gapic_metadata.json +351 -0
- package/build/src/v1/index.d.ts +2 -0
- package/build/src/v1/index.js +25 -0
- package/build/src/v1/index.js.map +1 -0
- package/build/src/v1beta1/firestore_client.d.ts +930 -0
- package/build/src/v1beta1/firestore_client.js +1310 -0
- package/build/src/v1beta1/firestore_client.js.map +1 -0
- package/build/src/v1beta1/firestore_client_config.json +99 -0
- package/build/src/v1beta1/firestore_proto_list.json +8 -0
- package/build/src/v1beta1/gapic_metadata.json +165 -0
- package/build/src/v1beta1/index.d.ts +1 -0
- package/build/src/v1beta1/index.js +23 -0
- package/build/src/v1beta1/index.js.map +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.firestore.admin.v1;
|
|
18
|
+
|
|
19
|
+
import "google/api/resource.proto";
|
|
20
|
+
import "google/firestore/admin/v1/index.proto";
|
|
21
|
+
import "google/firestore/admin/v1/snapshot.proto";
|
|
22
|
+
import "google/protobuf/duration.proto";
|
|
23
|
+
import "google/protobuf/timestamp.proto";
|
|
24
|
+
|
|
25
|
+
option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
|
|
26
|
+
option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
|
|
27
|
+
option java_multiple_files = true;
|
|
28
|
+
option java_outer_classname = "OperationProto";
|
|
29
|
+
option java_package = "com.google.firestore.admin.v1";
|
|
30
|
+
option objc_class_prefix = "GCFS";
|
|
31
|
+
option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
|
|
32
|
+
option ruby_package = "Google::Cloud::Firestore::Admin::V1";
|
|
33
|
+
|
|
34
|
+
// Metadata for [google.longrunning.Operation][google.longrunning.Operation]
|
|
35
|
+
// results from
|
|
36
|
+
// [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
|
|
37
|
+
message IndexOperationMetadata {
|
|
38
|
+
// The time this operation started.
|
|
39
|
+
google.protobuf.Timestamp start_time = 1;
|
|
40
|
+
|
|
41
|
+
// The time this operation completed. Will be unset if operation still in
|
|
42
|
+
// progress.
|
|
43
|
+
google.protobuf.Timestamp end_time = 2;
|
|
44
|
+
|
|
45
|
+
// The index resource that this operation is acting on. For example:
|
|
46
|
+
// `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
|
|
47
|
+
string index = 3;
|
|
48
|
+
|
|
49
|
+
// The state of the operation.
|
|
50
|
+
OperationState state = 4;
|
|
51
|
+
|
|
52
|
+
// The progress, in documents, of this operation.
|
|
53
|
+
Progress progress_documents = 5;
|
|
54
|
+
|
|
55
|
+
// The progress, in bytes, of this operation.
|
|
56
|
+
Progress progress_bytes = 6;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Metadata for [google.longrunning.Operation][google.longrunning.Operation]
|
|
60
|
+
// results from
|
|
61
|
+
// [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
|
|
62
|
+
message FieldOperationMetadata {
|
|
63
|
+
// Information about an index configuration change.
|
|
64
|
+
message IndexConfigDelta {
|
|
65
|
+
// Specifies how the index is changing.
|
|
66
|
+
enum ChangeType {
|
|
67
|
+
// The type of change is not specified or known.
|
|
68
|
+
CHANGE_TYPE_UNSPECIFIED = 0;
|
|
69
|
+
|
|
70
|
+
// The single field index is being added.
|
|
71
|
+
ADD = 1;
|
|
72
|
+
|
|
73
|
+
// The single field index is being removed.
|
|
74
|
+
REMOVE = 2;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Specifies how the index is changing.
|
|
78
|
+
ChangeType change_type = 1;
|
|
79
|
+
|
|
80
|
+
// The index being changed.
|
|
81
|
+
Index index = 2;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Information about a TTL configuration change.
|
|
85
|
+
message TtlConfigDelta {
|
|
86
|
+
// Specifies how the TTL config is changing.
|
|
87
|
+
enum ChangeType {
|
|
88
|
+
// The type of change is not specified or known.
|
|
89
|
+
CHANGE_TYPE_UNSPECIFIED = 0;
|
|
90
|
+
|
|
91
|
+
// The TTL config is being added.
|
|
92
|
+
ADD = 1;
|
|
93
|
+
|
|
94
|
+
// The TTL config is being removed.
|
|
95
|
+
REMOVE = 2;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Specifies how the TTL configuration is changing.
|
|
99
|
+
ChangeType change_type = 1;
|
|
100
|
+
|
|
101
|
+
// The offset, relative to the timestamp value in the TTL-enabled field,
|
|
102
|
+
// used determine the document's expiration time.
|
|
103
|
+
google.protobuf.Duration expiration_offset = 3;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// The time this operation started.
|
|
107
|
+
google.protobuf.Timestamp start_time = 1;
|
|
108
|
+
|
|
109
|
+
// The time this operation completed. Will be unset if operation still in
|
|
110
|
+
// progress.
|
|
111
|
+
google.protobuf.Timestamp end_time = 2;
|
|
112
|
+
|
|
113
|
+
// The field resource that this operation is acting on. For example:
|
|
114
|
+
// `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
|
|
115
|
+
string field = 3;
|
|
116
|
+
|
|
117
|
+
// A list of
|
|
118
|
+
// [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
|
|
119
|
+
// which describe the intent of this operation.
|
|
120
|
+
repeated IndexConfigDelta index_config_deltas = 4;
|
|
121
|
+
|
|
122
|
+
// The state of the operation.
|
|
123
|
+
OperationState state = 5;
|
|
124
|
+
|
|
125
|
+
// The progress, in documents, of this operation.
|
|
126
|
+
Progress progress_documents = 6;
|
|
127
|
+
|
|
128
|
+
// The progress, in bytes, of this operation.
|
|
129
|
+
Progress progress_bytes = 7;
|
|
130
|
+
|
|
131
|
+
// Describes the deltas of TTL configuration.
|
|
132
|
+
TtlConfigDelta ttl_config_delta = 8;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Metadata for [google.longrunning.Operation][google.longrunning.Operation]
|
|
136
|
+
// results from
|
|
137
|
+
// [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
|
|
138
|
+
message ExportDocumentsMetadata {
|
|
139
|
+
// The time this operation started.
|
|
140
|
+
google.protobuf.Timestamp start_time = 1;
|
|
141
|
+
|
|
142
|
+
// The time this operation completed. Will be unset if operation still in
|
|
143
|
+
// progress.
|
|
144
|
+
google.protobuf.Timestamp end_time = 2;
|
|
145
|
+
|
|
146
|
+
// The state of the export operation.
|
|
147
|
+
OperationState operation_state = 3;
|
|
148
|
+
|
|
149
|
+
// The progress, in documents, of this operation.
|
|
150
|
+
Progress progress_documents = 4;
|
|
151
|
+
|
|
152
|
+
// The progress, in bytes, of this operation.
|
|
153
|
+
Progress progress_bytes = 5;
|
|
154
|
+
|
|
155
|
+
// Which collection IDs are being exported.
|
|
156
|
+
repeated string collection_ids = 6;
|
|
157
|
+
|
|
158
|
+
// Where the documents are being exported to.
|
|
159
|
+
string output_uri_prefix = 7;
|
|
160
|
+
|
|
161
|
+
// Which namespace IDs are being exported.
|
|
162
|
+
repeated string namespace_ids = 8;
|
|
163
|
+
|
|
164
|
+
// The timestamp that corresponds to the version of the database that is being
|
|
165
|
+
// exported. If unspecified, there are no guarantees about the consistency of
|
|
166
|
+
// the documents being exported.
|
|
167
|
+
google.protobuf.Timestamp snapshot_time = 9;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Metadata for [google.longrunning.Operation][google.longrunning.Operation]
|
|
171
|
+
// results from
|
|
172
|
+
// [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
|
|
173
|
+
message ImportDocumentsMetadata {
|
|
174
|
+
// The time this operation started.
|
|
175
|
+
google.protobuf.Timestamp start_time = 1;
|
|
176
|
+
|
|
177
|
+
// The time this operation completed. Will be unset if operation still in
|
|
178
|
+
// progress.
|
|
179
|
+
google.protobuf.Timestamp end_time = 2;
|
|
180
|
+
|
|
181
|
+
// The state of the import operation.
|
|
182
|
+
OperationState operation_state = 3;
|
|
183
|
+
|
|
184
|
+
// The progress, in documents, of this operation.
|
|
185
|
+
Progress progress_documents = 4;
|
|
186
|
+
|
|
187
|
+
// The progress, in bytes, of this operation.
|
|
188
|
+
Progress progress_bytes = 5;
|
|
189
|
+
|
|
190
|
+
// Which collection IDs are being imported.
|
|
191
|
+
repeated string collection_ids = 6;
|
|
192
|
+
|
|
193
|
+
// The location of the documents being imported.
|
|
194
|
+
string input_uri_prefix = 7;
|
|
195
|
+
|
|
196
|
+
// Which namespace IDs are being imported.
|
|
197
|
+
repeated string namespace_ids = 8;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// Metadata for [google.longrunning.Operation][google.longrunning.Operation]
|
|
201
|
+
// results from
|
|
202
|
+
// [FirestoreAdmin.BulkDeleteDocuments][google.firestore.admin.v1.FirestoreAdmin.BulkDeleteDocuments].
|
|
203
|
+
message BulkDeleteDocumentsMetadata {
|
|
204
|
+
// The time this operation started.
|
|
205
|
+
google.protobuf.Timestamp start_time = 1;
|
|
206
|
+
|
|
207
|
+
// The time this operation completed. Will be unset if operation still in
|
|
208
|
+
// progress.
|
|
209
|
+
google.protobuf.Timestamp end_time = 2;
|
|
210
|
+
|
|
211
|
+
// The state of the operation.
|
|
212
|
+
OperationState operation_state = 3;
|
|
213
|
+
|
|
214
|
+
// The progress, in documents, of this operation.
|
|
215
|
+
Progress progress_documents = 4;
|
|
216
|
+
|
|
217
|
+
// The progress, in bytes, of this operation.
|
|
218
|
+
Progress progress_bytes = 5;
|
|
219
|
+
|
|
220
|
+
// The IDs of the collection groups that are being deleted.
|
|
221
|
+
repeated string collection_ids = 6;
|
|
222
|
+
|
|
223
|
+
// Which namespace IDs are being deleted.
|
|
224
|
+
repeated string namespace_ids = 7;
|
|
225
|
+
|
|
226
|
+
// The timestamp that corresponds to the version of the database that is being
|
|
227
|
+
// read to get the list of documents to delete. This time can also be used as
|
|
228
|
+
// the timestamp of PITR in case of disaster recovery (subject to PITR window
|
|
229
|
+
// limit).
|
|
230
|
+
google.protobuf.Timestamp snapshot_time = 8;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// Returned in the [google.longrunning.Operation][google.longrunning.Operation]
|
|
234
|
+
// response field.
|
|
235
|
+
message ExportDocumentsResponse {
|
|
236
|
+
// Location of the output files. This can be used to begin an import
|
|
237
|
+
// into Cloud Firestore (this project or another project) after the operation
|
|
238
|
+
// completes successfully.
|
|
239
|
+
string output_uri_prefix = 1;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// Metadata for the [long-running operation][google.longrunning.Operation] from
|
|
243
|
+
// the [RestoreDatabase][google.firestore.admin.v1.RestoreDatabase] request.
|
|
244
|
+
message RestoreDatabaseMetadata {
|
|
245
|
+
// The time the restore was started.
|
|
246
|
+
google.protobuf.Timestamp start_time = 1;
|
|
247
|
+
|
|
248
|
+
// The time the restore finished, unset for ongoing restores.
|
|
249
|
+
google.protobuf.Timestamp end_time = 2;
|
|
250
|
+
|
|
251
|
+
// The operation state of the restore.
|
|
252
|
+
OperationState operation_state = 3;
|
|
253
|
+
|
|
254
|
+
// The name of the database being restored to.
|
|
255
|
+
string database = 4 [(google.api.resource_reference) = {
|
|
256
|
+
type: "firestore.googleapis.com/Database"
|
|
257
|
+
}];
|
|
258
|
+
|
|
259
|
+
// The name of the backup restoring from.
|
|
260
|
+
string backup = 5 [(google.api.resource_reference) = {
|
|
261
|
+
type: "firestore.googleapis.com/Backup"
|
|
262
|
+
}];
|
|
263
|
+
|
|
264
|
+
// How far along the restore is as an estimated percentage of remaining time.
|
|
265
|
+
Progress progress_percentage = 8;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
// Metadata for the [long-running operation][google.longrunning.Operation] from
|
|
269
|
+
// the [CloneDatabase][google.firestore.admin.v1.CloneDatabase] request.
|
|
270
|
+
message CloneDatabaseMetadata {
|
|
271
|
+
// The time the clone was started.
|
|
272
|
+
google.protobuf.Timestamp start_time = 1;
|
|
273
|
+
|
|
274
|
+
// The time the clone finished, unset for ongoing clones.
|
|
275
|
+
google.protobuf.Timestamp end_time = 2;
|
|
276
|
+
|
|
277
|
+
// The operation state of the clone.
|
|
278
|
+
OperationState operation_state = 3;
|
|
279
|
+
|
|
280
|
+
// The name of the database being cloned to.
|
|
281
|
+
string database = 4 [(google.api.resource_reference) = {
|
|
282
|
+
type: "firestore.googleapis.com/Database"
|
|
283
|
+
}];
|
|
284
|
+
|
|
285
|
+
// The snapshot from which this database was cloned.
|
|
286
|
+
PitrSnapshot pitr_snapshot = 7;
|
|
287
|
+
|
|
288
|
+
// How far along the clone is as an estimated percentage of remaining time.
|
|
289
|
+
Progress progress_percentage = 6;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// Describes the progress of the operation.
|
|
293
|
+
// Unit of work is generic and must be interpreted based on where
|
|
294
|
+
// [Progress][google.firestore.admin.v1.Progress] is used.
|
|
295
|
+
message Progress {
|
|
296
|
+
// The amount of work estimated.
|
|
297
|
+
int64 estimated_work = 1;
|
|
298
|
+
|
|
299
|
+
// The amount of work completed.
|
|
300
|
+
int64 completed_work = 2;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
// Describes the state of the operation.
|
|
304
|
+
enum OperationState {
|
|
305
|
+
// Unspecified.
|
|
306
|
+
OPERATION_STATE_UNSPECIFIED = 0;
|
|
307
|
+
|
|
308
|
+
// Request is being prepared for processing.
|
|
309
|
+
INITIALIZING = 1;
|
|
310
|
+
|
|
311
|
+
// Request is actively being processed.
|
|
312
|
+
PROCESSING = 2;
|
|
313
|
+
|
|
314
|
+
// Request is in the process of being cancelled after user called
|
|
315
|
+
// google.longrunning.Operations.CancelOperation on the operation.
|
|
316
|
+
CANCELLING = 3;
|
|
317
|
+
|
|
318
|
+
// Request has been processed and is in its finalization stage.
|
|
319
|
+
FINALIZING = 4;
|
|
320
|
+
|
|
321
|
+
// Request has completed successfully.
|
|
322
|
+
SUCCESSFUL = 5;
|
|
323
|
+
|
|
324
|
+
// Request has finished being processed, but encountered an error.
|
|
325
|
+
FAILED = 6;
|
|
326
|
+
|
|
327
|
+
// Request has finished being cancelled after user called
|
|
328
|
+
// google.longrunning.Operations.CancelOperation.
|
|
329
|
+
CANCELLED = 7;
|
|
330
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.firestore.admin.v1;
|
|
18
|
+
|
|
19
|
+
option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
|
|
20
|
+
option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
|
|
21
|
+
option java_multiple_files = true;
|
|
22
|
+
option java_outer_classname = "RealtimeUpdatesProto";
|
|
23
|
+
option java_package = "com.google.firestore.admin.v1";
|
|
24
|
+
option objc_class_prefix = "GCFS";
|
|
25
|
+
option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
|
|
26
|
+
option ruby_package = "Google::Cloud::Firestore::Admin::V1";
|
|
27
|
+
|
|
28
|
+
// The Realtime Updates mode.
|
|
29
|
+
enum RealtimeUpdatesMode {
|
|
30
|
+
// The Realtime Updates feature is not specified.
|
|
31
|
+
REALTIME_UPDATES_MODE_UNSPECIFIED = 0;
|
|
32
|
+
|
|
33
|
+
// The Realtime Updates feature is enabled by default.
|
|
34
|
+
//
|
|
35
|
+
// This could potentially degrade write performance for the database.
|
|
36
|
+
REALTIME_UPDATES_MODE_ENABLED = 1;
|
|
37
|
+
|
|
38
|
+
// The Realtime Updates feature is disabled by default.
|
|
39
|
+
REALTIME_UPDATES_MODE_DISABLED = 2;
|
|
40
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.firestore.admin.v1;
|
|
18
|
+
|
|
19
|
+
import "google/api/field_behavior.proto";
|
|
20
|
+
import "google/api/resource.proto";
|
|
21
|
+
import "google/protobuf/duration.proto";
|
|
22
|
+
import "google/protobuf/timestamp.proto";
|
|
23
|
+
import "google/type/dayofweek.proto";
|
|
24
|
+
|
|
25
|
+
option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
|
|
26
|
+
option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
|
|
27
|
+
option java_multiple_files = true;
|
|
28
|
+
option java_outer_classname = "ScheduleProto";
|
|
29
|
+
option java_package = "com.google.firestore.admin.v1";
|
|
30
|
+
option objc_class_prefix = "GCFS";
|
|
31
|
+
option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
|
|
32
|
+
option ruby_package = "Google::Cloud::Firestore::Admin::V1";
|
|
33
|
+
|
|
34
|
+
// A backup schedule for a Cloud Firestore Database.
|
|
35
|
+
//
|
|
36
|
+
// This resource is owned by the database it is backing up, and is deleted along
|
|
37
|
+
// with the database. The actual backups are not though.
|
|
38
|
+
message BackupSchedule {
|
|
39
|
+
option (google.api.resource) = {
|
|
40
|
+
type: "firestore.googleapis.com/BackupSchedule"
|
|
41
|
+
pattern: "projects/{project}/databases/{database}/backupSchedules/{backup_schedule}"
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// Output only. The unique backup schedule identifier across all locations and
|
|
45
|
+
// databases for the given project.
|
|
46
|
+
//
|
|
47
|
+
// This will be auto-assigned.
|
|
48
|
+
//
|
|
49
|
+
// Format is
|
|
50
|
+
// `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
|
|
51
|
+
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
52
|
+
|
|
53
|
+
// Output only. The timestamp at which this backup schedule was created and
|
|
54
|
+
// effective since.
|
|
55
|
+
//
|
|
56
|
+
// No backups will be created for this schedule before this time.
|
|
57
|
+
google.protobuf.Timestamp create_time = 3
|
|
58
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
59
|
+
|
|
60
|
+
// Output only. The timestamp at which this backup schedule was most recently
|
|
61
|
+
// updated. When a backup schedule is first created, this is the same as
|
|
62
|
+
// create_time.
|
|
63
|
+
google.protobuf.Timestamp update_time = 10
|
|
64
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
65
|
+
|
|
66
|
+
// At what relative time in the future, compared to its creation time,
|
|
67
|
+
// the backup should be deleted, e.g. keep backups for 7 days.
|
|
68
|
+
//
|
|
69
|
+
// The maximum supported retention period is 14 weeks.
|
|
70
|
+
google.protobuf.Duration retention = 6;
|
|
71
|
+
|
|
72
|
+
// A oneof field to represent when backups will be taken.
|
|
73
|
+
oneof recurrence {
|
|
74
|
+
// For a schedule that runs daily.
|
|
75
|
+
DailyRecurrence daily_recurrence = 7;
|
|
76
|
+
|
|
77
|
+
// For a schedule that runs weekly on a specific day.
|
|
78
|
+
WeeklyRecurrence weekly_recurrence = 8;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Represents a recurring schedule that runs every day.
|
|
83
|
+
//
|
|
84
|
+
// The time zone is UTC.
|
|
85
|
+
message DailyRecurrence {}
|
|
86
|
+
|
|
87
|
+
// Represents a recurring schedule that runs on a specified day of the week.
|
|
88
|
+
//
|
|
89
|
+
// The time zone is UTC.
|
|
90
|
+
message WeeklyRecurrence {
|
|
91
|
+
// The day of week to run.
|
|
92
|
+
//
|
|
93
|
+
// DAY_OF_WEEK_UNSPECIFIED is not allowed.
|
|
94
|
+
google.type.DayOfWeek day = 2;
|
|
95
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.firestore.admin.v1;
|
|
18
|
+
|
|
19
|
+
import "google/api/field_behavior.proto";
|
|
20
|
+
import "google/api/resource.proto";
|
|
21
|
+
import "google/protobuf/timestamp.proto";
|
|
22
|
+
|
|
23
|
+
option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
|
|
24
|
+
option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
|
|
25
|
+
option java_multiple_files = true;
|
|
26
|
+
option java_outer_classname = "PitrSnapshotProto";
|
|
27
|
+
option java_package = "com.google.firestore.admin.v1";
|
|
28
|
+
option objc_class_prefix = "GCFS";
|
|
29
|
+
option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
|
|
30
|
+
option ruby_package = "Google::Cloud::Firestore::Admin::V1";
|
|
31
|
+
|
|
32
|
+
// A consistent snapshot of a database at a specific point in time.
|
|
33
|
+
// A PITR (Point-in-time recovery) snapshot with previous versions of a
|
|
34
|
+
// database's data is available for every minute up to the associated database's
|
|
35
|
+
// data retention period. If the PITR feature is enabled, the retention period
|
|
36
|
+
// is 7 days; otherwise, it is one hour.
|
|
37
|
+
message PitrSnapshot {
|
|
38
|
+
// Required. The name of the database that this was a snapshot of. Format:
|
|
39
|
+
// `projects/{project}/databases/{database}`.
|
|
40
|
+
string database = 1 [
|
|
41
|
+
(google.api.field_behavior) = REQUIRED,
|
|
42
|
+
(google.api.resource_reference) = {
|
|
43
|
+
type: "firestore.googleapis.com/Database"
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
|
|
47
|
+
// Output only. Public UUID of the database the snapshot was associated with.
|
|
48
|
+
bytes database_uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
49
|
+
|
|
50
|
+
// Required. Snapshot time of the database.
|
|
51
|
+
google.protobuf.Timestamp snapshot_time = 3
|
|
52
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
53
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.firestore.admin.v1;
|
|
18
|
+
|
|
19
|
+
import "google/api/field_behavior.proto";
|
|
20
|
+
import "google/api/resource.proto";
|
|
21
|
+
import "google/protobuf/timestamp.proto";
|
|
22
|
+
|
|
23
|
+
option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
|
|
24
|
+
option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
|
|
25
|
+
option java_multiple_files = true;
|
|
26
|
+
option java_outer_classname = "UserCredsProto";
|
|
27
|
+
option java_package = "com.google.firestore.admin.v1";
|
|
28
|
+
option objc_class_prefix = "GCFS";
|
|
29
|
+
option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
|
|
30
|
+
option ruby_package = "Google::Cloud::Firestore::Admin::V1";
|
|
31
|
+
|
|
32
|
+
// A Cloud Firestore User Creds.
|
|
33
|
+
message UserCreds {
|
|
34
|
+
option (google.api.resource) = {
|
|
35
|
+
type: "firestore.googleapis.com/UserCreds"
|
|
36
|
+
pattern: "projects/{project}/databases/{database}/userCreds/{user_creds}"
|
|
37
|
+
plural: "userCreds"
|
|
38
|
+
singular: "userCreds"
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// The state of the user creds (ENABLED or DISABLED).
|
|
42
|
+
enum State {
|
|
43
|
+
// The default value. Should not be used.
|
|
44
|
+
STATE_UNSPECIFIED = 0;
|
|
45
|
+
|
|
46
|
+
// The user creds are enabled.
|
|
47
|
+
ENABLED = 1;
|
|
48
|
+
|
|
49
|
+
// The user creds are disabled.
|
|
50
|
+
DISABLED = 2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Describes a Resource Identity principal.
|
|
54
|
+
message ResourceIdentity {
|
|
55
|
+
// Output only. Principal identifier string.
|
|
56
|
+
// See: https://cloud.google.com/iam/docs/principal-identifiers
|
|
57
|
+
string principal = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Identifier. The resource name of the UserCreds.
|
|
61
|
+
// Format:
|
|
62
|
+
// `projects/{project}/databases/{database}/userCreds/{user_creds}`
|
|
63
|
+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
|
|
64
|
+
|
|
65
|
+
// Output only. The time the user creds were created.
|
|
66
|
+
google.protobuf.Timestamp create_time = 2
|
|
67
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
68
|
+
|
|
69
|
+
// Output only. The time the user creds were last updated.
|
|
70
|
+
google.protobuf.Timestamp update_time = 3
|
|
71
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
72
|
+
|
|
73
|
+
// Output only. Whether the user creds are enabled or disabled. Defaults to
|
|
74
|
+
// ENABLED on creation.
|
|
75
|
+
State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
76
|
+
|
|
77
|
+
// Output only. The plaintext server-generated password for the user creds.
|
|
78
|
+
// Only populated in responses for CreateUserCreds and ResetUserPassword.
|
|
79
|
+
string secure_password = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
80
|
+
|
|
81
|
+
// Identity associated with this User Creds.
|
|
82
|
+
oneof UserCredsIdentity {
|
|
83
|
+
// Resource Identity descriptor.
|
|
84
|
+
ResourceIdentity resource_identity = 6;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.firestore.v1;
|
|
18
|
+
|
|
19
|
+
import "google/firestore/v1/document.proto";
|
|
20
|
+
|
|
21
|
+
option csharp_namespace = "Google.Cloud.Firestore.V1";
|
|
22
|
+
option go_package = "cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb";
|
|
23
|
+
option java_multiple_files = true;
|
|
24
|
+
option java_outer_classname = "AggregationResultProto";
|
|
25
|
+
option java_package = "com.google.firestore.v1";
|
|
26
|
+
option objc_class_prefix = "GCFS";
|
|
27
|
+
option php_namespace = "Google\\Cloud\\Firestore\\V1";
|
|
28
|
+
option ruby_package = "Google::Cloud::Firestore::V1";
|
|
29
|
+
|
|
30
|
+
// The result of a single bucket from a Firestore aggregation query.
|
|
31
|
+
//
|
|
32
|
+
// The keys of `aggregate_fields` are the same for all results in an aggregation
|
|
33
|
+
// query, unlike document queries which can have different fields present for
|
|
34
|
+
// each result.
|
|
35
|
+
message AggregationResult {
|
|
36
|
+
// The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
|
|
37
|
+
//
|
|
38
|
+
// The key is the
|
|
39
|
+
// [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
|
|
40
|
+
// assigned to the aggregation function on input and the size of this map
|
|
41
|
+
// equals the number of aggregation functions in the query.
|
|
42
|
+
map<string, Value> aggregate_fields = 2;
|
|
43
|
+
}
|