blob: fecfc8011ce1356f40e47085c4ca3bae16f25d67 [file] [log] [blame]
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001{
2 "title": "Cloud Firestore API",
3 "documentationLink": "https://cloud.google.com/firestore",
4 "protocol": "rest",
5 "resources": {
6 "projects": {
7 "resources": {
8 "locations": {
9 "methods": {
10 "get": {
11 "flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
12 "id": "firestore.projects.locations.get",
13 "response": {
14 "$ref": "Location"
15 },
16 "parameters": {
17 "name": {
18 "required": true,
19 "pattern": "^projects/[^/]+/locations/[^/]+$",
20 "description": "Resource name for the location.",
21 "type": "string",
22 "location": "path"
23 }
24 },
25 "path": "v1/{+name}",
26 "httpMethod": "GET",
27 "parameterOrder": [
28 "name"
29 ],
30 "description": "Gets information about a location.",
31 "scopes": [
32 "https://www.googleapis.com/auth/cloud-platform",
33 "https://www.googleapis.com/auth/datastore"
34 ]
35 },
36 "list": {
37 "response": {
38 "$ref": "ListLocationsResponse"
39 },
40 "parameters": {
41 "pageToken": {
42 "type": "string",
43 "location": "query",
44 "description": "The standard list page token."
45 },
46 "pageSize": {
47 "location": "query",
48 "description": "The standard list page size.",
49 "format": "int32",
50 "type": "integer"
51 },
52 "name": {
53 "type": "string",
54 "required": true,
55 "pattern": "^projects/[^/]+$",
56 "description": "The resource that owns the locations collection, if applicable.",
57 "location": "path"
58 },
59 "filter": {
60 "location": "query",
61 "type": "string",
62 "description": "The standard list filter."
63 }
64 },
65 "flatPath": "v1/projects/{projectsId}/locations",
66 "id": "firestore.projects.locations.list",
67 "httpMethod": "GET",
68 "description": "Lists information about the supported locations for this service.",
69 "scopes": [
70 "https://www.googleapis.com/auth/cloud-platform",
71 "https://www.googleapis.com/auth/datastore"
72 ],
73 "parameterOrder": [
74 "name"
75 ],
76 "path": "v1/{+name}/locations"
77 }
78 }
79 },
80 "databases": {
81 "resources": {
82 "documents": {
83 "methods": {
84 "batchGet": {
85 "description": "Gets multiple documents. Documents returned by this method are not guaranteed to be returned in the same order that they were requested.",
86 "parameters": {
87 "database": {
88 "required": true,
89 "pattern": "^projects/[^/]+/databases/[^/]+$",
90 "location": "path",
91 "type": "string",
92 "description": "Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`."
93 }
94 },
95 "response": {
96 "$ref": "BatchGetDocumentsResponse"
97 },
98 "parameterOrder": [
99 "database"
100 ],
101 "id": "firestore.projects.databases.documents.batchGet",
102 "httpMethod": "POST",
103 "scopes": [
104 "https://www.googleapis.com/auth/cloud-platform",
105 "https://www.googleapis.com/auth/datastore"
106 ],
107 "path": "v1/{+database}/documents:batchGet",
108 "request": {
109 "$ref": "BatchGetDocumentsRequest"
110 },
111 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents:batchGet"
112 },
113 "beginTransaction": {
114 "id": "firestore.projects.databases.documents.beginTransaction",
115 "request": {
116 "$ref": "BeginTransactionRequest"
117 },
118 "parameters": {
119 "database": {
120 "required": true,
121 "pattern": "^projects/[^/]+/databases/[^/]+$",
122 "description": "Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.",
123 "type": "string",
124 "location": "path"
125 }
126 },
127 "response": {
128 "$ref": "BeginTransactionResponse"
129 },
130 "description": "Starts a new transaction.",
131 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents:beginTransaction",
132 "scopes": [
133 "https://www.googleapis.com/auth/cloud-platform",
134 "https://www.googleapis.com/auth/datastore"
135 ],
136 "httpMethod": "POST",
137 "parameterOrder": [
138 "database"
139 ],
140 "path": "v1/{+database}/documents:beginTransaction"
141 },
142 "delete": {
143 "parameterOrder": [
144 "name"
145 ],
146 "httpMethod": "DELETE",
147 "scopes": [
148 "https://www.googleapis.com/auth/cloud-platform",
149 "https://www.googleapis.com/auth/datastore"
150 ],
151 "id": "firestore.projects.databases.documents.delete",
152 "path": "v1/{+name}",
153 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents/{documentsId}/{documentsId1}",
154 "description": "Deletes a document.",
155 "response": {
156 "$ref": "Empty"
157 },
158 "parameters": {
159 "currentDocument.exists": {
160 "type": "boolean",
161 "description": "When set to `true`, the target document must exist. When set to `false`, the target document must not exist.",
162 "location": "query"
163 },
164 "name": {
165 "pattern": "^projects/[^/]+/databases/[^/]+/documents/[^/]+/.*$",
166 "required": true,
167 "location": "path",
168 "type": "string",
169 "description": "Required. The resource name of the Document to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`."
170 },
171 "currentDocument.updateTime": {
172 "format": "google-datetime",
173 "description": "When set, the target document must exist and have been last updated at that time.",
174 "type": "string",
175 "location": "query"
176 }
177 }
178 },
179 "createDocument": {
180 "httpMethod": "POST",
181 "parameters": {
182 "documentId": {
183 "location": "query",
184 "description": "The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service.",
185 "type": "string"
186 },
187 "mask.fieldPaths": {
188 "description": "The list of field paths in the mask. See Document.fields for a field path syntax reference.",
189 "type": "string",
190 "location": "query",
191 "repeated": true
192 },
193 "collectionId": {
194 "location": "path",
195 "type": "string",
196 "description": "Required. The collection ID, relative to `parent`, to list. For example: `chatrooms`.",
197 "required": true
198 },
199 "parent": {
200 "type": "string",
201 "location": "path",
202 "pattern": "^projects/[^/]+/databases/[^/]+/documents/.*$",
203 "required": true,
204 "description": "Required. The parent resource. For example: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`"
205 }
206 },
207 "request": {
208 "$ref": "Document"
209 },
210 "parameterOrder": [
211 "parent",
212 "collectionId"
213 ],
214 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents/{documentsId}/{collectionId}",
215 "id": "firestore.projects.databases.documents.createDocument",
216 "response": {
217 "$ref": "Document"
218 },
219 "scopes": [
220 "https://www.googleapis.com/auth/cloud-platform",
221 "https://www.googleapis.com/auth/datastore"
222 ],
223 "description": "Creates a new document.",
224 "path": "v1/{+parent}/{collectionId}"
225 },
226 "listen": {
227 "request": {
228 "$ref": "ListenRequest"
229 },
230 "description": "Listens to changes.",
231 "parameterOrder": [
232 "database"
233 ],
234 "scopes": [
235 "https://www.googleapis.com/auth/cloud-platform",
236 "https://www.googleapis.com/auth/datastore"
237 ],
238 "response": {
239 "$ref": "ListenResponse"
240 },
241 "id": "firestore.projects.databases.documents.listen",
242 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents:listen",
243 "httpMethod": "POST",
244 "path": "v1/{+database}/documents:listen",
245 "parameters": {
246 "database": {
247 "required": true,
248 "location": "path",
249 "type": "string",
250 "description": "Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.",
251 "pattern": "^projects/[^/]+/databases/[^/]+$"
252 }
253 }
254 },
255 "commit": {
256 "response": {
257 "$ref": "CommitResponse"
258 },
259 "path": "v1/{+database}/documents:commit",
260 "httpMethod": "POST",
261 "request": {
262 "$ref": "CommitRequest"
263 },
264 "id": "firestore.projects.databases.documents.commit",
265 "description": "Commits a transaction, while optionally updating documents.",
266 "parameterOrder": [
267 "database"
268 ],
269 "parameters": {
270 "database": {
271 "description": "Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.",
272 "pattern": "^projects/[^/]+/databases/[^/]+$",
273 "type": "string",
274 "location": "path",
275 "required": true
276 }
277 },
278 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents:commit",
279 "scopes": [
280 "https://www.googleapis.com/auth/cloud-platform",
281 "https://www.googleapis.com/auth/datastore"
282 ]
283 },
284 "patch": {
285 "description": "Updates or inserts a document.",
286 "response": {
287 "$ref": "Document"
288 },
289 "httpMethod": "PATCH",
290 "request": {
291 "$ref": "Document"
292 },
293 "parameterOrder": [
294 "name"
295 ],
296 "id": "firestore.projects.databases.documents.patch",
297 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents/{documentsId}/{documentsId1}",
298 "parameters": {
299 "updateMask.fieldPaths": {
300 "type": "string",
301 "description": "The list of field paths in the mask. See Document.fields for a field path syntax reference.",
302 "repeated": true,
303 "location": "query"
304 },
305 "currentDocument.updateTime": {
306 "description": "When set, the target document must exist and have been last updated at that time.",
307 "location": "query",
308 "type": "string",
309 "format": "google-datetime"
310 },
311 "currentDocument.exists": {
312 "type": "boolean",
313 "location": "query",
314 "description": "When set to `true`, the target document must exist. When set to `false`, the target document must not exist."
315 },
316 "name": {
317 "location": "path",
318 "type": "string",
319 "pattern": "^projects/[^/]+/databases/[^/]+/documents/[^/]+/.*$",
320 "required": true,
321 "description": "The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`."
322 },
323 "mask.fieldPaths": {
324 "description": "The list of field paths in the mask. See Document.fields for a field path syntax reference.",
325 "type": "string",
326 "location": "query",
327 "repeated": true
328 }
329 },
330 "path": "v1/{+name}",
331 "scopes": [
332 "https://www.googleapis.com/auth/cloud-platform",
333 "https://www.googleapis.com/auth/datastore"
334 ]
335 },
336 "get": {
337 "description": "Gets a single document.",
338 "scopes": [
339 "https://www.googleapis.com/auth/cloud-platform",
340 "https://www.googleapis.com/auth/datastore"
341 ],
342 "response": {
343 "$ref": "Document"
344 },
345 "parameterOrder": [
346 "name"
347 ],
348 "parameters": {
349 "transaction": {
350 "location": "query",
351 "format": "byte",
352 "type": "string",
353 "description": "Reads the document in a transaction."
354 },
355 "readTime": {
356 "format": "google-datetime",
357 "description": "Reads the version of the document at the given time. This may not be older than 270 seconds.",
358 "location": "query",
359 "type": "string"
360 },
361 "mask.fieldPaths": {
362 "repeated": true,
363 "location": "query",
364 "description": "The list of field paths in the mask. See Document.fields for a field path syntax reference.",
365 "type": "string"
366 },
367 "name": {
368 "location": "path",
369 "pattern": "^projects/[^/]+/databases/[^/]+/documents/[^/]+/.*$",
370 "required": true,
371 "description": "Required. The resource name of the Document to get. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.",
372 "type": "string"
373 }
374 },
375 "httpMethod": "GET",
376 "id": "firestore.projects.databases.documents.get",
377 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents/{documentsId}/{documentsId1}",
378 "path": "v1/{+name}"
379 },
380 "rollback": {
381 "parameters": {
382 "database": {
383 "type": "string",
384 "location": "path",
385 "description": "Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.",
386 "required": true,
387 "pattern": "^projects/[^/]+/databases/[^/]+$"
388 }
389 },
390 "httpMethod": "POST",
391 "path": "v1/{+database}/documents:rollback",
392 "parameterOrder": [
393 "database"
394 ],
395 "request": {
396 "$ref": "RollbackRequest"
397 },
398 "description": "Rolls back a transaction.",
399 "id": "firestore.projects.databases.documents.rollback",
400 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents:rollback",
401 "response": {
402 "$ref": "Empty"
403 },
404 "scopes": [
405 "https://www.googleapis.com/auth/cloud-platform",
406 "https://www.googleapis.com/auth/datastore"
407 ]
408 },
409 "write": {
410 "id": "firestore.projects.databases.documents.write",
411 "parameters": {
412 "database": {
413 "pattern": "^projects/[^/]+/databases/[^/]+$",
414 "description": "Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. This is only required in the first message.",
415 "required": true,
416 "type": "string",
417 "location": "path"
418 }
419 },
420 "request": {
421 "$ref": "WriteRequest"
422 },
423 "scopes": [
424 "https://www.googleapis.com/auth/cloud-platform",
425 "https://www.googleapis.com/auth/datastore"
426 ],
427 "httpMethod": "POST",
428 "parameterOrder": [
429 "database"
430 ],
431 "path": "v1/{+database}/documents:write",
432 "description": "Streams batches of document updates and deletes, in order.",
433 "response": {
434 "$ref": "WriteResponse"
435 },
436 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents:write"
437 },
438 "partitionQuery": {
439 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents/{documentsId}/{documentsId1}:partitionQuery",
440 "path": "v1/{+parent}:partitionQuery",
441 "scopes": [
442 "https://www.googleapis.com/auth/cloud-platform",
443 "https://www.googleapis.com/auth/datastore"
444 ],
445 "response": {
446 "$ref": "PartitionQueryResponse"
447 },
448 "description": "Partitions a query by returning partition cursors that can be used to run the query in parallel. The returned partition cursors are split points that can be used by RunQuery as starting/end points for the query results.",
449 "httpMethod": "POST",
450 "request": {
451 "$ref": "PartitionQueryRequest"
452 },
453 "id": "firestore.projects.databases.documents.partitionQuery",
454 "parameterOrder": [
455 "parent"
456 ],
457 "parameters": {
458 "parent": {
459 "pattern": "^projects/[^/]+/databases/[^/]+/documents/[^/]+/.*$",
460 "type": "string",
461 "required": true,
462 "location": "path",
463 "description": "Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents`. Document resource names are not supported; only database resource names can be specified."
464 }
465 }
466 },
467 "batchWrite": {
468 "httpMethod": "POST",
469 "response": {
470 "$ref": "BatchWriteResponse"
471 },
472 "path": "v1/{+database}/documents:batchWrite",
473 "id": "firestore.projects.databases.documents.batchWrite",
474 "parameters": {
475 "database": {
476 "location": "path",
477 "description": "Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.",
478 "pattern": "^projects/[^/]+/databases/[^/]+$",
479 "required": true,
480 "type": "string"
481 }
482 },
483 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents:batchWrite",
484 "request": {
485 "$ref": "BatchWriteRequest"
486 },
487 "scopes": [
488 "https://www.googleapis.com/auth/cloud-platform",
489 "https://www.googleapis.com/auth/datastore"
490 ],
491 "description": "Applies a batch of write operations. The BatchWrite method does not apply the write operations atomically and can apply them out of order. Method does not allow more than one write per document. Each write succeeds or fails independently. See the BatchWriteResponse for the success status of each write. If you require an atomically applied set of writes, use Commit instead.",
492 "parameterOrder": [
493 "database"
494 ]
495 },
496 "runQuery": {
497 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents/{documentsId}/{documentsId1}:runQuery",
498 "response": {
499 "$ref": "RunQueryResponse"
500 },
501 "parameterOrder": [
502 "parent"
503 ],
504 "request": {
505 "$ref": "RunQueryRequest"
506 },
507 "id": "firestore.projects.databases.documents.runQuery",
508 "scopes": [
509 "https://www.googleapis.com/auth/cloud-platform",
510 "https://www.googleapis.com/auth/datastore"
511 ],
512 "httpMethod": "POST",
513 "parameters": {
514 "parent": {
515 "location": "path",
516 "type": "string",
517 "description": "Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`",
518 "required": true,
519 "pattern": "^projects/[^/]+/databases/[^/]+/documents/[^/]+/.*$"
520 }
521 },
522 "path": "v1/{+parent}:runQuery",
523 "description": "Runs a query."
524 },
525 "listCollectionIds": {
526 "path": "v1/{+parent}:listCollectionIds",
527 "request": {
528 "$ref": "ListCollectionIdsRequest"
529 },
530 "id": "firestore.projects.databases.documents.listCollectionIds",
531 "response": {
532 "$ref": "ListCollectionIdsResponse"
533 },
534 "parameters": {
535 "parent": {
536 "location": "path",
537 "required": true,
538 "type": "string",
539 "description": "Required. The parent document. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`",
540 "pattern": "^projects/[^/]+/databases/[^/]+/documents/[^/]+/.*$"
541 }
542 },
543 "parameterOrder": [
544 "parent"
545 ],
546 "httpMethod": "POST",
547 "scopes": [
548 "https://www.googleapis.com/auth/cloud-platform",
549 "https://www.googleapis.com/auth/datastore"
550 ],
551 "description": "Lists all the collection IDs underneath a document.",
552 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents/{documentsId}/{documentsId1}:listCollectionIds"
553 },
554 "list": {
555 "scopes": [
556 "https://www.googleapis.com/auth/cloud-platform",
557 "https://www.googleapis.com/auth/datastore"
558 ],
559 "path": "v1/{+parent}/{collectionId}",
560 "parameterOrder": [
561 "parent",
562 "collectionId"
563 ],
564 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/documents/{documentsId}/{documentsId1}/{collectionId}",
565 "description": "Lists documents.",
566 "parameters": {
567 "pageToken": {
568 "location": "query",
569 "description": "The `next_page_token` value returned from a previous List request, if any.",
570 "type": "string"
571 },
572 "orderBy": {
573 "type": "string",
574 "location": "query",
575 "description": "The order to sort results by. For example: `priority desc, name`."
576 },
577 "readTime": {
578 "format": "google-datetime",
579 "description": "Reads documents as they were at the given time. This may not be older than 270 seconds.",
580 "type": "string",
581 "location": "query"
582 },
583 "parent": {
584 "pattern": "^projects/[^/]+/databases/[^/]+/documents/[^/]+/.*$",
585 "description": "Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`",
586 "type": "string",
587 "location": "path",
588 "required": true
589 },
590 "mask.fieldPaths": {
591 "repeated": true,
592 "type": "string",
593 "description": "The list of field paths in the mask. See Document.fields for a field path syntax reference.",
594 "location": "query"
595 },
596 "pageSize": {
597 "type": "integer",
598 "description": "The maximum number of documents to return.",
599 "format": "int32",
600 "location": "query"
601 },
602 "collectionId": {
603 "location": "path",
604 "description": "Required. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`.",
605 "type": "string",
606 "required": true
607 },
608 "transaction": {
609 "description": "Reads documents in a transaction.",
610 "format": "byte",
611 "type": "string",
612 "location": "query"
613 },
614 "showMissing": {
615 "type": "boolean",
616 "description": "If the list should show missing documents. A missing document is a document that does not exist but has sub-documents. These documents will be returned with a key but will not have fields, Document.create_time, or Document.update_time set. Requests with `show_missing` may not specify `where` or `order_by`.",
617 "location": "query"
618 }
619 },
620 "httpMethod": "GET",
621 "id": "firestore.projects.databases.documents.list",
622 "response": {
623 "$ref": "ListDocumentsResponse"
624 }
625 }
626 }
627 },
628 "collectionGroups": {
629 "resources": {
630 "indexes": {
631 "methods": {
632 "delete": {
633 "description": "Deletes a composite index.",
634 "scopes": [
635 "https://www.googleapis.com/auth/cloud-platform",
636 "https://www.googleapis.com/auth/datastore"
637 ],
638 "httpMethod": "DELETE",
639 "parameters": {
640 "name": {
641 "description": "Required. A name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`",
642 "required": true,
643 "location": "path",
644 "type": "string",
645 "pattern": "^projects/[^/]+/databases/[^/]+/collectionGroups/[^/]+/indexes/[^/]+$"
646 }
647 },
648 "response": {
649 "$ref": "Empty"
650 },
651 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/collectionGroups/{collectionGroupsId}/indexes/{indexesId}",
652 "parameterOrder": [
653 "name"
654 ],
655 "id": "firestore.projects.databases.collectionGroups.indexes.delete",
656 "path": "v1/{+name}"
657 },
658 "get": {
659 "scopes": [
660 "https://www.googleapis.com/auth/cloud-platform",
661 "https://www.googleapis.com/auth/datastore"
662 ],
663 "response": {
664 "$ref": "GoogleFirestoreAdminV1Index"
665 },
666 "description": "Gets a composite index.",
667 "id": "firestore.projects.databases.collectionGroups.indexes.get",
668 "parameters": {
669 "name": {
670 "type": "string",
671 "required": true,
672 "pattern": "^projects/[^/]+/databases/[^/]+/collectionGroups/[^/]+/indexes/[^/]+$",
673 "description": "Required. A name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`",
674 "location": "path"
675 }
676 },
677 "path": "v1/{+name}",
678 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/collectionGroups/{collectionGroupsId}/indexes/{indexesId}",
679 "httpMethod": "GET",
680 "parameterOrder": [
681 "name"
682 ]
683 },
684 "list": {
685 "description": "Lists composite indexes.",
686 "path": "v1/{+parent}/indexes",
687 "httpMethod": "GET",
688 "id": "firestore.projects.databases.collectionGroups.indexes.list",
689 "parameters": {
690 "pageSize": {
691 "location": "query",
692 "format": "int32",
693 "description": "The number of results to return.",
694 "type": "integer"
695 },
696 "filter": {
697 "description": "The filter to apply to list results.",
698 "type": "string",
699 "location": "query"
700 },
701 "pageToken": {
702 "location": "query",
703 "description": "A page token, returned from a previous call to FirestoreAdmin.ListIndexes, that may be used to get the next page of results.",
704 "type": "string"
705 },
706 "parent": {
707 "type": "string",
708 "pattern": "^projects/[^/]+/databases/[^/]+/collectionGroups/[^/]+$",
709 "description": "Required. A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`",
710 "location": "path",
711 "required": true
712 }
713 },
714 "response": {
715 "$ref": "GoogleFirestoreAdminV1ListIndexesResponse"
716 },
717 "scopes": [
718 "https://www.googleapis.com/auth/cloud-platform",
719 "https://www.googleapis.com/auth/datastore"
720 ],
721 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/collectionGroups/{collectionGroupsId}/indexes",
722 "parameterOrder": [
723 "parent"
724 ]
725 },
726 "create": {
727 "httpMethod": "POST",
728 "description": "Creates a composite index. This returns a google.longrunning.Operation which may be used to track the status of the creation. The metadata for the operation will be the type IndexOperationMetadata.",
729 "response": {
730 "$ref": "GoogleLongrunningOperation"
731 },
732 "path": "v1/{+parent}/indexes",
733 "parameterOrder": [
734 "parent"
735 ],
736 "request": {
737 "$ref": "GoogleFirestoreAdminV1Index"
738 },
739 "scopes": [
740 "https://www.googleapis.com/auth/cloud-platform",
741 "https://www.googleapis.com/auth/datastore"
742 ],
743 "id": "firestore.projects.databases.collectionGroups.indexes.create",
744 "parameters": {
745 "parent": {
746 "description": "Required. A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`",
747 "required": true,
748 "type": "string",
749 "location": "path",
750 "pattern": "^projects/[^/]+/databases/[^/]+/collectionGroups/[^/]+$"
751 }
752 },
753 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/collectionGroups/{collectionGroupsId}/indexes"
754 }
755 }
756 },
757 "fields": {
758 "methods": {
759 "patch": {
760 "scopes": [
761 "https://www.googleapis.com/auth/cloud-platform",
762 "https://www.googleapis.com/auth/datastore"
763 ],
764 "request": {
765 "$ref": "GoogleFirestoreAdminV1Field"
766 },
767 "id": "firestore.projects.databases.collectionGroups.fields.patch",
768 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/collectionGroups/{collectionGroupsId}/fields/{fieldsId}",
769 "parameterOrder": [
770 "name"
771 ],
772 "path": "v1/{+name}",
773 "httpMethod": "PATCH",
774 "parameters": {
775 "name": {
776 "pattern": "^projects/[^/]+/databases/[^/]+/collectionGroups/[^/]+/fields/[^/]+$",
777 "location": "path",
778 "description": "A field name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` A field path may be a simple field name, e.g. `address` or a path to fields within map_value , e.g. `address.city`, or a special field path. The only valid special field is `*`, which represents any field. Field paths may be quoted using ` (backtick). The only character that needs to be escaped within a quoted field path is the backtick character itself, escaped using a backslash. Special characters in field paths that must be quoted include: `*`, `.`, ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. Examples: (Note: Comments here are written in markdown syntax, so there is an additional layer of backticks to represent a code block) `\\`address.city\\`` represents a field named `address.city`, not the map key `city` in the field `address`. `\\`*\\`` represents a field named `*`, not any field. A special `Field` contains the default indexing settings for all fields. This field's resource name is: `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` Indexes defined on this `Field` will be applied to all fields which do not have their own `Field` index configuration.",
779 "type": "string",
780 "required": true
781 },
782 "updateMask": {
783 "description": "A mask, relative to the field. If specified, only configuration specified by this field_mask will be updated in the field.",
784 "location": "query",
785 "type": "string",
786 "format": "google-fieldmask"
787 }
788 },
789 "response": {
790 "$ref": "GoogleLongrunningOperation"
791 },
792 "description": "Updates a field configuration. Currently, field updates apply only to single field index configuration. However, calls to FirestoreAdmin.UpdateField should provide a field mask to avoid changing any configuration that the caller isn't aware of. The field mask should be specified as: `{ paths: \"index_config\" }`. This call returns a google.longrunning.Operation which may be used to track the status of the field update. The metadata for the operation will be the type FieldOperationMetadata. To configure the default field settings for the database, use the special `Field` with resource name: `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`."
793 },
794 "get": {
795 "parameters": {
796 "name": {
797 "location": "path",
798 "pattern": "^projects/[^/]+/databases/[^/]+/collectionGroups/[^/]+/fields/[^/]+$",
799 "description": "Required. A name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`",
800 "type": "string",
801 "required": true
802 }
803 },
804 "scopes": [
805 "https://www.googleapis.com/auth/cloud-platform",
806 "https://www.googleapis.com/auth/datastore"
807 ],
808 "response": {
809 "$ref": "GoogleFirestoreAdminV1Field"
810 },
811 "httpMethod": "GET",
812 "id": "firestore.projects.databases.collectionGroups.fields.get",
813 "path": "v1/{+name}",
814 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/collectionGroups/{collectionGroupsId}/fields/{fieldsId}",
815 "description": "Gets the metadata and configuration for a Field.",
816 "parameterOrder": [
817 "name"
818 ]
819 },
820 "list": {
821 "path": "v1/{+parent}/fields",
822 "scopes": [
823 "https://www.googleapis.com/auth/cloud-platform",
824 "https://www.googleapis.com/auth/datastore"
825 ],
826 "id": "firestore.projects.databases.collectionGroups.fields.list",
827 "description": "Lists the field configuration and metadata for this database. Currently, FirestoreAdmin.ListFields only supports listing fields that have been explicitly overridden. To issue this query, call FirestoreAdmin.ListFields with the filter set to `indexConfig.usesAncestorConfig:false`.",
828 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/collectionGroups/{collectionGroupsId}/fields",
829 "response": {
830 "$ref": "GoogleFirestoreAdminV1ListFieldsResponse"
831 },
832 "parameterOrder": [
833 "parent"
834 ],
835 "parameters": {
836 "pageSize": {
837 "type": "integer",
838 "format": "int32",
839 "location": "query",
840 "description": "The number of results to return."
841 },
842 "pageToken": {
843 "description": "A page token, returned from a previous call to FirestoreAdmin.ListFields, that may be used to get the next page of results.",
844 "type": "string",
845 "location": "query"
846 },
847 "parent": {
848 "required": true,
849 "description": "Required. A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`",
850 "type": "string",
851 "pattern": "^projects/[^/]+/databases/[^/]+/collectionGroups/[^/]+$",
852 "location": "path"
853 },
854 "filter": {
855 "type": "string",
856 "location": "query",
857 "description": "The filter to apply to list results. Currently, FirestoreAdmin.ListFields only supports listing fields that have been explicitly overridden. To issue this query, call FirestoreAdmin.ListFields with the filter set to `indexConfig.usesAncestorConfig:false`."
858 }
859 },
860 "httpMethod": "GET"
861 }
862 }
863 }
864 }
865 },
866 "operations": {
867 "methods": {
868 "list": {
869 "parameterOrder": [
870 "name"
871 ],
872 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/operations",
873 "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
874 "response": {
875 "$ref": "GoogleLongrunningListOperationsResponse"
876 },
877 "httpMethod": "GET",
878 "path": "v1/{+name}/operations",
879 "id": "firestore.projects.databases.operations.list",
880 "parameters": {
881 "filter": {
882 "type": "string",
883 "location": "query",
884 "description": "The standard list filter."
885 },
886 "pageSize": {
887 "description": "The standard list page size.",
888 "format": "int32",
889 "type": "integer",
890 "location": "query"
891 },
892 "name": {
893 "pattern": "^projects/[^/]+/databases/[^/]+$",
894 "required": true,
895 "type": "string",
896 "location": "path",
897 "description": "The name of the operation's parent resource."
898 },
899 "pageToken": {
900 "description": "The standard list page token.",
901 "location": "query",
902 "type": "string"
903 }
904 },
905 "scopes": [
906 "https://www.googleapis.com/auth/cloud-platform",
907 "https://www.googleapis.com/auth/datastore"
908 ]
909 },
910 "get": {
911 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/operations/{operationsId}",
912 "httpMethod": "GET",
913 "parameterOrder": [
914 "name"
915 ],
916 "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
917 "response": {
918 "$ref": "GoogleLongrunningOperation"
919 },
920 "id": "firestore.projects.databases.operations.get",
921 "path": "v1/{+name}",
922 "parameters": {
923 "name": {
924 "pattern": "^projects/[^/]+/databases/[^/]+/operations/[^/]+$",
925 "location": "path",
926 "type": "string",
927 "description": "The name of the operation resource.",
928 "required": true
929 }
930 },
931 "scopes": [
932 "https://www.googleapis.com/auth/cloud-platform",
933 "https://www.googleapis.com/auth/datastore"
934 ]
935 },
936 "delete": {
937 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/operations/{operationsId}",
938 "id": "firestore.projects.databases.operations.delete",
939 "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.",
940 "httpMethod": "DELETE",
941 "scopes": [
942 "https://www.googleapis.com/auth/cloud-platform",
943 "https://www.googleapis.com/auth/datastore"
944 ],
945 "parameterOrder": [
946 "name"
947 ],
948 "parameters": {
949 "name": {
950 "type": "string",
951 "description": "The name of the operation resource to be deleted.",
952 "pattern": "^projects/[^/]+/databases/[^/]+/operations/[^/]+$",
953 "required": true,
954 "location": "path"
955 }
956 },
957 "path": "v1/{+name}",
958 "response": {
959 "$ref": "Empty"
960 }
961 },
962 "cancel": {
963 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}/operations/{operationsId}:cancel",
964 "path": "v1/{+name}:cancel",
965 "httpMethod": "POST",
966 "scopes": [
967 "https://www.googleapis.com/auth/cloud-platform",
968 "https://www.googleapis.com/auth/datastore"
969 ],
970 "parameters": {
971 "name": {
972 "location": "path",
973 "pattern": "^projects/[^/]+/databases/[^/]+/operations/[^/]+$",
974 "description": "The name of the operation resource to be cancelled.",
975 "required": true,
976 "type": "string"
977 }
978 },
979 "request": {
980 "$ref": "GoogleLongrunningCancelOperationRequest"
981 },
982 "response": {
983 "$ref": "Empty"
984 },
985 "id": "firestore.projects.databases.operations.cancel",
986 "parameterOrder": [
987 "name"
988 ],
989 "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`."
990 }
991 }
992 }
993 },
994 "methods": {
995 "importDocuments": {
996 "parameterOrder": [
997 "name"
998 ],
999 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}:importDocuments",
1000 "response": {
1001 "$ref": "GoogleLongrunningOperation"
1002 },
1003 "httpMethod": "POST",
1004 "request": {
1005 "$ref": "GoogleFirestoreAdminV1ImportDocumentsRequest"
1006 },
1007 "parameters": {
1008 "name": {
1009 "type": "string",
1010 "description": "Required. Database to import into. Should be of the form: `projects/{project_id}/databases/{database_id}`.",
1011 "required": true,
1012 "location": "path",
1013 "pattern": "^projects/[^/]+/databases/[^/]+$"
1014 }
1015 },
1016 "scopes": [
1017 "https://www.googleapis.com/auth/cloud-platform",
1018 "https://www.googleapis.com/auth/datastore"
1019 ],
1020 "description": "Imports documents into Google Cloud Firestore. Existing documents with the same name are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportDocuments operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Firestore.",
1021 "path": "v1/{+name}:importDocuments",
1022 "id": "firestore.projects.databases.importDocuments"
1023 },
1024 "exportDocuments": {
1025 "path": "v1/{+name}:exportDocuments",
1026 "id": "firestore.projects.databases.exportDocuments",
1027 "httpMethod": "POST",
1028 "parameterOrder": [
1029 "name"
1030 ],
1031 "parameters": {
1032 "name": {
1033 "type": "string",
1034 "location": "path",
1035 "pattern": "^projects/[^/]+/databases/[^/]+$",
1036 "description": "Required. Database to export. Should be of the form: `projects/{project_id}/databases/{database_id}`.",
1037 "required": true
1038 }
1039 },
1040 "scopes": [
1041 "https://www.googleapis.com/auth/cloud-platform",
1042 "https://www.googleapis.com/auth/datastore"
1043 ],
1044 "request": {
1045 "$ref": "GoogleFirestoreAdminV1ExportDocumentsRequest"
1046 },
1047 "description": "Exports a copy of all or a subset of documents from Google Cloud Firestore to another storage system, such as Google Cloud Storage. Recent updates to documents may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.",
1048 "flatPath": "v1/projects/{projectsId}/databases/{databasesId}:exportDocuments",
1049 "response": {
1050 "$ref": "GoogleLongrunningOperation"
1051 }
1052 }
1053 }
1054 }
1055 }
1056 }
1057 },
1058 "basePath": "",
1059 "mtlsRootUrl": "https://firestore.mtls.googleapis.com/",
1060 "kind": "discovery#restDescription",
1061 "version": "v1",
1062 "servicePath": "",
1063 "schemas": {
1064 "GoogleFirestoreAdminV1ListFieldsResponse": {
1065 "id": "GoogleFirestoreAdminV1ListFieldsResponse",
1066 "properties": {
1067 "nextPageToken": {
1068 "description": "A page token that may be used to request another page of results. If blank, this is the last page.",
1069 "type": "string"
1070 },
1071 "fields": {
1072 "items": {
1073 "$ref": "GoogleFirestoreAdminV1Field"
1074 },
1075 "description": "The requested fields.",
1076 "type": "array"
1077 }
1078 },
1079 "type": "object",
1080 "description": "The response for FirestoreAdmin.ListFields."
1081 },
1082 "BeginTransactionRequest": {
1083 "id": "BeginTransactionRequest",
1084 "description": "The request for Firestore.BeginTransaction.",
1085 "properties": {
1086 "options": {
1087 "$ref": "TransactionOptions",
1088 "description": "The options for the transaction. Defaults to a read-write transaction."
1089 }
1090 },
1091 "type": "object"
1092 },
1093 "DocumentRemove": {
1094 "properties": {
1095 "readTime": {
1096 "format": "google-datetime",
1097 "type": "string",
1098 "description": "The read timestamp at which the remove was observed. Greater or equal to the `commit_time` of the change/delete/remove."
1099 },
1100 "document": {
1101 "description": "The resource name of the Document that has gone out of view.",
1102 "type": "string"
1103 },
1104 "removedTargetIds": {
1105 "items": {
1106 "type": "integer",
1107 "format": "int32"
1108 },
1109 "description": "A set of target IDs for targets that previously matched this document.",
1110 "type": "array"
1111 }
1112 },
1113 "id": "DocumentRemove",
1114 "type": "object",
1115 "description": "A Document has been removed from the view of the targets. Sent if the document is no longer relevant to a target and is out of view. Can be sent instead of a DocumentDelete or a DocumentChange if the server can not send the new value of the document. Multiple DocumentRemove messages may be returned for the same logical write or delete, if multiple targets are affected."
1116 },
1117 "StructuredQuery": {
1118 "type": "object",
1119 "properties": {
1120 "limit": {
1121 "type": "integer",
1122 "format": "int32",
1123 "description": "The maximum number of results to return. Applies after all other constraints. Must be \u003e= 0 if specified."
1124 },
1125 "from": {
1126 "description": "The collections to query.",
1127 "items": {
1128 "$ref": "CollectionSelector"
1129 },
1130 "type": "array"
1131 },
1132 "endAt": {
1133 "$ref": "Cursor",
1134 "description": "A end point for the query results."
1135 },
1136 "orderBy": {
1137 "description": "The order to apply to the query results. Firestore guarantees a stable ordering through the following rules: * Any field required to appear in `order_by`, that is not already specified in `order_by`, is appended to the order in field name order by default. * If an order on `__name__` is not specified, it is appended by default. Fields are appended with the same sort direction as the last order specified, or 'ASCENDING' if no order was specified. For example: * `SELECT * FROM Foo ORDER BY A` becomes `SELECT * FROM Foo ORDER BY A, __name__` * `SELECT * FROM Foo ORDER BY A DESC` becomes `SELECT * FROM Foo ORDER BY A DESC, __name__ DESC` * `SELECT * FROM Foo WHERE A \u003e 1` becomes `SELECT * FROM Foo WHERE A \u003e 1 ORDER BY A, __name__`",
1138 "type": "array",
1139 "items": {
1140 "$ref": "Order"
1141 }
1142 },
1143 "offset": {
1144 "type": "integer",
1145 "format": "int32",
1146 "description": "The number of results to skip. Applies before limit, but after all other constraints. Must be \u003e= 0 if specified."
1147 },
1148 "where": {
1149 "description": "The filter to apply.",
1150 "$ref": "Filter"
1151 },
1152 "select": {
1153 "$ref": "Projection",
1154 "description": "The projection to return."
1155 },
1156 "startAt": {
1157 "description": "A starting point for the query results.",
1158 "$ref": "Cursor"
1159 }
1160 },
1161 "description": "A Firestore query.",
1162 "id": "StructuredQuery"
1163 },
1164 "ExistenceFilter": {
1165 "description": "A digest of all the documents that match a given target.",
1166 "id": "ExistenceFilter",
1167 "properties": {
1168 "count": {
1169 "format": "int32",
1170 "type": "integer",
1171 "description": "The total count of documents that match target_id. If different from the count of documents in the client that match, the client must manually determine which documents no longer match the target."
1172 },
1173 "targetId": {
1174 "type": "integer",
1175 "description": "The target ID to which this filter applies.",
1176 "format": "int32"
1177 }
1178 },
1179 "type": "object"
1180 },
1181 "ListDocumentsResponse": {
1182 "properties": {
1183 "documents": {
1184 "description": "The Documents found.",
1185 "items": {
1186 "$ref": "Document"
1187 },
1188 "type": "array"
1189 },
1190 "nextPageToken": {
1191 "type": "string",
1192 "description": "The next page token."
1193 }
1194 },
1195 "id": "ListDocumentsResponse",
1196 "description": "The response for Firestore.ListDocuments.",
1197 "type": "object"
1198 },
1199 "WriteRequest": {
1200 "properties": {
1201 "writes": {
1202 "items": {
1203 "$ref": "Write"
1204 },
1205 "description": "The writes to apply. Always executed atomically and in order. This must be empty on the first request. This may be empty on the last request. This must not be empty on all other requests.",
1206 "type": "array"
1207 },
1208 "streamId": {
1209 "type": "string",
1210 "description": "The ID of the write stream to resume. This may only be set in the first message. When left empty, a new write stream will be created."
1211 },
1212 "streamToken": {
1213 "description": "A stream token that was previously sent by the server. The client should set this field to the token from the most recent WriteResponse it has received. This acknowledges that the client has received responses up to this token. After sending this token, earlier tokens may not be used anymore. The server may close the stream if there are too many unacknowledged responses. Leave this field unset when creating a new stream. To resume a stream at a specific point, set this field and the `stream_id` field. Leave this field unset when creating a new stream.",
1214 "format": "byte",
1215 "type": "string"
1216 },
1217 "labels": {
1218 "description": "Labels associated with this write request.",
1219 "type": "object",
1220 "additionalProperties": {
1221 "type": "string"
1222 }
1223 }
1224 },
1225 "description": "The request for Firestore.Write. The first request creates a stream, or resumes an existing one from a token. When creating a new stream, the server replies with a response containing only an ID and a token, to use in the next request. When resuming a stream, the server first streams any responses later than the given token, then a response containing only an up-to-date token, to use in the next request.",
1226 "type": "object",
1227 "id": "WriteRequest"
1228 },
1229 "PartitionQueryResponse": {
1230 "properties": {
1231 "partitions": {
1232 "type": "array",
1233 "items": {
1234 "$ref": "Cursor"
1235 },
1236 "description": "Partition results. Each partition is a split point that can be used by RunQuery as a starting or end point for the query results. The RunQuery requests must be made with the same query supplied to this PartitionQuery request. The partition cursors will be ordered according to same ordering as the results of the query supplied to PartitionQuery. For example, if a PartitionQuery request returns partition cursors A and B, running the following three queries will return the entire result set of the original query: * query, end_at A * query, start_at A, end_at B * query, start_at B An empty result may indicate that the query has too few results to be partitioned."
1237 },
1238 "nextPageToken": {
1239 "type": "string",
1240 "description": "A page token that may be used to request an additional set of results, up to the number specified by `partition_count` in the PartitionQuery request. If blank, there are no more results."
1241 }
1242 },
1243 "type": "object",
1244 "description": "The response for Firestore.PartitionQuery.",
1245 "id": "PartitionQueryResponse"
1246 },
1247 "MapValue": {
1248 "description": "A map value.",
1249 "type": "object",
1250 "properties": {
1251 "fields": {
1252 "description": "The map's fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.",
1253 "additionalProperties": {
1254 "$ref": "Value"
1255 },
1256 "type": "object"
1257 }
1258 },
1259 "id": "MapValue"
1260 },
1261 "GoogleFirestoreAdminV1Index": {
1262 "description": "Cloud Firestore indexes enable simple and complex queries against documents in a database.",
1263 "id": "GoogleFirestoreAdminV1Index",
1264 "properties": {
1265 "queryScope": {
1266 "enum": [
1267 "QUERY_SCOPE_UNSPECIFIED",
1268 "COLLECTION",
1269 "COLLECTION_GROUP"
1270 ],
1271 "enumDescriptions": [
1272 "The query scope is unspecified. Not a valid option.",
1273 "Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the collection id specified by the index.",
1274 "Indexes with a collection group query scope specified allow queries against all collections that has the collection id specified by the index."
1275 ],
1276 "type": "string",
1277 "description": "Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection id. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection id as this index."
1278 },
1279 "fields": {
1280 "description": "The fields supported by this index. For composite indexes, this is always 2 or more fields. The last field entry is always for the field path `__name__`. If, on creation, `__name__` was not specified as the last field, it will be added automatically with the same direction as that of the last field defined. If the final field in a composite index is not directional, the `__name__` will be ordered ASCENDING (unless explicitly specified). For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field.",
1281 "type": "array",
1282 "items": {
1283 "$ref": "GoogleFirestoreAdminV1IndexField"
1284 }
1285 },
1286 "name": {
1287 "type": "string",
1288 "description": "Output only. A server defined name for this index. The form of this name for composite indexes will be: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` For single field indexes, this field will be empty."
1289 },
1290 "state": {
1291 "type": "string",
1292 "description": "Output only. The serving state of the index.",
1293 "enumDescriptions": [
1294 "The state is unspecified.",
1295 "The index is being created. There is an active long-running operation for the index. The index is updated when writing a document. Some index data may exist.",
1296 "The index is ready to be used. The index is updated when writing a document. The index is fully populated from all stored documents it applies to.",
1297 "The index was being created, but something went wrong. There is no active long-running operation for the index, and the most recently finished long-running operation failed. The index is not updated when writing a document. Some index data may exist. Use the google.longrunning.Operations API to determine why the operation that last attempted to create this index failed, then re-create the index."
1298 ],
1299 "enum": [
1300 "STATE_UNSPECIFIED",
1301 "CREATING",
1302 "READY",
1303 "NEEDS_REPAIR"
1304 ]
1305 }
1306 },
1307 "type": "object"
1308 },
1309 "RollbackRequest": {
1310 "id": "RollbackRequest",
1311 "type": "object",
1312 "properties": {
1313 "transaction": {
1314 "type": "string",
1315 "format": "byte",
1316 "description": "Required. The transaction to roll back."
1317 }
1318 },
1319 "description": "The request for Firestore.Rollback."
1320 },
1321 "GoogleLongrunningOperation": {
1322 "type": "object",
1323 "id": "GoogleLongrunningOperation",
1324 "properties": {
1325 "name": {
1326 "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.",
1327 "type": "string"
1328 },
1329 "done": {
1330 "type": "boolean",
1331 "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available."
1332 },
1333 "error": {
1334 "$ref": "Status",
1335 "description": "The error result of the operation in case of failure or cancellation."
1336 },
1337 "metadata": {
1338 "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
1339 "additionalProperties": {
1340 "description": "Properties of the object. Contains field @type with type URL.",
1341 "type": "any"
1342 },
1343 "type": "object"
1344 },
1345 "response": {
1346 "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
1347 "additionalProperties": {
1348 "type": "any",
1349 "description": "Properties of the object. Contains field @type with type URL."
1350 },
1351 "type": "object"
1352 }
1353 },
1354 "description": "This resource represents a long-running operation that is the result of a network API call."
1355 },
1356 "GoogleFirestoreAdminV1Progress": {
1357 "properties": {
1358 "estimatedWork": {
1359 "type": "string",
1360 "format": "int64",
1361 "description": "The amount of work estimated."
1362 },
1363 "completedWork": {
1364 "type": "string",
1365 "format": "int64",
1366 "description": "The amount of work completed."
1367 }
1368 },
1369 "type": "object",
1370 "id": "GoogleFirestoreAdminV1Progress",
1371 "description": "Describes the progress of the operation. Unit of work is generic and must be interpreted based on where Progress is used."
1372 },
1373 "GoogleFirestoreAdminV1ExportDocumentsResponse": {
1374 "type": "object",
1375 "description": "Returned in the google.longrunning.Operation response field.",
1376 "id": "GoogleFirestoreAdminV1ExportDocumentsResponse",
1377 "properties": {
1378 "outputUriPrefix": {
1379 "type": "string",
1380 "description": "Location of the output files. This can be used to begin an import into Cloud Firestore (this project or another project) after the operation completes successfully."
1381 }
1382 }
1383 },
1384 "GoogleFirestoreAdminV1IndexField": {
1385 "type": "object",
1386 "properties": {
1387 "order": {
1388 "enum": [
1389 "ORDER_UNSPECIFIED",
1390 "ASCENDING",
1391 "DESCENDING"
1392 ],
1393 "type": "string",
1394 "enumDescriptions": [
1395 "The ordering is unspecified. Not a valid option.",
1396 "The field is ordered by ascending field value.",
1397 "The field is ordered by descending field value."
1398 ],
1399 "description": "Indicates that this field supports ordering by the specified order or comparing using =, \u003c, \u003c=, \u003e, \u003e=."
1400 },
1401 "arrayConfig": {
1402 "description": "Indicates that this field supports operations on `array_value`s.",
1403 "enum": [
1404 "ARRAY_CONFIG_UNSPECIFIED",
1405 "CONTAINS"
1406 ],
1407 "enumDescriptions": [
1408 "The index does not support additional array queries.",
1409 "The index supports array containment queries."
1410 ],
1411 "type": "string"
1412 },
1413 "fieldPath": {
1414 "description": "Can be __name__. For single field indexes, this must match the name of the field or may be omitted.",
1415 "type": "string"
1416 }
1417 },
1418 "description": "A field in an index. The field_path describes which field is indexed, the value_mode describes how the field value is indexed.",
1419 "id": "GoogleFirestoreAdminV1IndexField"
1420 },
1421 "ListCollectionIdsResponse": {
1422 "id": "ListCollectionIdsResponse",
1423 "type": "object",
1424 "properties": {
1425 "collectionIds": {
1426 "items": {
1427 "type": "string"
1428 },
1429 "description": "The collection ids.",
1430 "type": "array"
1431 },
1432 "nextPageToken": {
1433 "description": "A page token that may be used to continue the list.",
1434 "type": "string"
1435 }
1436 },
1437 "description": "The response from Firestore.ListCollectionIds."
1438 },
1439 "RunQueryResponse": {
1440 "properties": {
1441 "transaction": {
1442 "description": "The transaction that was started as part of this request. Can only be set in the first response, and only if RunQueryRequest.new_transaction was set in the request. If set, no other fields will be set in this response.",
1443 "format": "byte",
1444 "type": "string"
1445 },
1446 "document": {
1447 "description": "A query result. Not set when reporting partial progress.",
1448 "$ref": "Document"
1449 },
1450 "readTime": {
1451 "type": "string",
1452 "format": "google-datetime",
1453 "description": "The time at which the document was read. This may be monotonically increasing; in this case, the previous documents in the result stream are guaranteed not to have changed between their `read_time` and this one. If the query returns no results, a response with `read_time` and no `document` will be sent, and this represents the time at which the query was run."
1454 },
1455 "skippedResults": {
1456 "format": "int32",
1457 "description": "The number of results that have been skipped due to an offset between the last response and the current response.",
1458 "type": "integer"
1459 }
1460 },
1461 "type": "object",
1462 "description": "The response for Firestore.RunQuery.",
1463 "id": "RunQueryResponse"
1464 },
1465 "ArrayValue": {
1466 "properties": {
1467 "values": {
1468 "description": "Values in the array.",
1469 "type": "array",
1470 "items": {
1471 "$ref": "Value"
1472 }
1473 }
1474 },
1475 "description": "An array value.",
1476 "id": "ArrayValue",
1477 "type": "object"
1478 },
1479 "Value": {
1480 "description": "A message that can hold any of the supported value types.",
1481 "properties": {
1482 "referenceValue": {
1483 "description": "A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.",
1484 "type": "string"
1485 },
1486 "integerValue": {
1487 "type": "string",
1488 "format": "int64",
1489 "description": "An integer value."
1490 },
1491 "booleanValue": {
1492 "type": "boolean",
1493 "description": "A boolean value."
1494 },
1495 "nullValue": {
1496 "type": "string",
1497 "description": "A null value.",
1498 "enum": [
1499 "NULL_VALUE"
1500 ],
1501 "enumDescriptions": [
1502 "Null value."
1503 ]
1504 },
1505 "arrayValue": {
1506 "$ref": "ArrayValue",
1507 "description": "An array value. Cannot directly contain another array value, though can contain an map which contains another array."
1508 },
1509 "bytesValue": {
1510 "type": "string",
1511 "description": "A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.",
1512 "format": "byte"
1513 },
1514 "stringValue": {
1515 "type": "string",
1516 "description": "A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries."
1517 },
1518 "mapValue": {
1519 "description": "A map value.",
1520 "$ref": "MapValue"
1521 },
1522 "doubleValue": {
1523 "description": "A double value.",
1524 "format": "double",
1525 "type": "number"
1526 },
1527 "timestampValue": {
1528 "format": "google-datetime",
1529 "type": "string",
1530 "description": "A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down."
1531 },
1532 "geoPointValue": {
1533 "description": "A geo point value representing a point on the surface of Earth.",
1534 "$ref": "LatLng"
1535 }
1536 },
1537 "type": "object",
1538 "id": "Value"
1539 },
1540 "GoogleFirestoreAdminV1ImportDocumentsRequest": {
1541 "description": "The request for FirestoreAdmin.ImportDocuments.",
1542 "type": "object",
1543 "id": "GoogleFirestoreAdminV1ImportDocumentsRequest",
1544 "properties": {
1545 "collectionIds": {
1546 "description": "Which collection ids to import. Unspecified means all collections included in the import.",
1547 "items": {
1548 "type": "string"
1549 },
1550 "type": "array"
1551 },
1552 "inputUriPrefix": {
1553 "type": "string",
1554 "description": "Location of the exported files. This must match the output_uri_prefix of an ExportDocumentsResponse from an export that has completed successfully. See: google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix."
1555 }
1556 }
1557 },
1558 "DocumentDelete": {
1559 "id": "DocumentDelete",
1560 "type": "object",
1561 "properties": {
1562 "document": {
1563 "type": "string",
1564 "description": "The resource name of the Document that was deleted."
1565 },
1566 "readTime": {
1567 "description": "The read timestamp at which the delete was observed. Greater or equal to the `commit_time` of the delete.",
1568 "type": "string",
1569 "format": "google-datetime"
1570 },
1571 "removedTargetIds": {
1572 "items": {
1573 "type": "integer",
1574 "format": "int32"
1575 },
1576 "type": "array",
1577 "description": "A set of target IDs for targets that previously matched this entity."
1578 }
1579 },
1580 "description": "A Document has been deleted. May be the result of multiple writes, including updates, the last of which deleted the Document. Multiple DocumentDelete messages may be returned for the same logical delete, if multiple targets are affected."
1581 },
1582 "Empty": {
1583 "type": "object",
1584 "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.",
1585 "properties": {},
1586 "id": "Empty"
1587 },
1588 "CollectionSelector": {
1589 "id": "CollectionSelector",
1590 "description": "A selection of a collection, such as `messages as m1`.",
1591 "properties": {
1592 "allDescendants": {
1593 "type": "boolean",
1594 "description": "When false, selects only collections that are immediate children of the `parent` specified in the containing `RunQueryRequest`. When true, selects all descendant collections."
1595 },
1596 "collectionId": {
1597 "type": "string",
1598 "description": "The collection ID. When set, selects only collections with this ID."
1599 }
1600 },
1601 "type": "object"
1602 },
1603 "Target": {
1604 "description": "A specification of a set of documents to listen to.",
1605 "type": "object",
1606 "properties": {
1607 "query": {
1608 "$ref": "QueryTarget",
1609 "description": "A target specified by a query."
1610 },
1611 "resumeToken": {
1612 "description": "A resume token from a prior TargetChange for an identical target. Using a resume token with a different target is unsupported and may fail.",
1613 "type": "string",
1614 "format": "byte"
1615 },
1616 "documents": {
1617 "description": "A target specified by a set of document names.",
1618 "$ref": "DocumentsTarget"
1619 },
1620 "targetId": {
1621 "description": "The target ID that identifies the target on the stream. Must be a positive number and non-zero.",
1622 "format": "int32",
1623 "type": "integer"
1624 },
1625 "readTime": {
1626 "format": "google-datetime",
1627 "description": "Start listening after a specific `read_time`. The client must know the state of matching documents at this time.",
1628 "type": "string"
1629 },
1630 "once": {
1631 "type": "boolean",
1632 "description": "If the target should be removed once it is current and consistent."
1633 }
1634 },
1635 "id": "Target"
1636 },
1637 "FieldFilter": {
1638 "type": "object",
1639 "description": "A filter on a specific field.",
1640 "id": "FieldFilter",
1641 "properties": {
1642 "value": {
1643 "$ref": "Value",
1644 "description": "The value to compare to."
1645 },
1646 "field": {
1647 "$ref": "FieldReference",
1648 "description": "The field to filter by."
1649 },
1650 "op": {
1651 "type": "string",
1652 "description": "The operator to filter by.",
1653 "enumDescriptions": [
1654 "Unspecified. This value must not be used.",
1655 "The given `field` is less than the given `value`. Requires: * That `field` come first in `order_by`.",
1656 "The given `field` is less than or equal to the given `value`. Requires: * That `field` come first in `order_by`.",
1657 "The given `field` is greater than the given `value`. Requires: * That `field` come first in `order_by`.",
1658 "The given `field` is greater than or equal to the given `value`. Requires: * That `field` come first in `order_by`.",
1659 "The given `field` is equal to the given `value`.",
1660 "The given `field` is not equal to the given `value`. Requires: * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`.",
1661 "The given `field` is an array that contains the given `value`.",
1662 "The given `field` is equal to at least one value in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`.",
1663 "The given `field` is an array that contains any of the values in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`.",
1664 "The value of the `field` is not in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`."
1665 ],
1666 "enum": [
1667 "OPERATOR_UNSPECIFIED",
1668 "LESS_THAN",
1669 "LESS_THAN_OR_EQUAL",
1670 "GREATER_THAN",
1671 "GREATER_THAN_OR_EQUAL",
1672 "EQUAL",
1673 "NOT_EQUAL",
1674 "ARRAY_CONTAINS",
1675 "IN",
1676 "ARRAY_CONTAINS_ANY",
1677 "NOT_IN"
1678 ]
1679 }
1680 }
1681 },
1682 "BatchGetDocumentsRequest": {
1683 "id": "BatchGetDocumentsRequest",
1684 "description": "The request for Firestore.BatchGetDocuments.",
1685 "properties": {
1686 "readTime": {
1687 "description": "Reads documents as they were at the given time. This may not be older than 270 seconds.",
1688 "type": "string",
1689 "format": "google-datetime"
1690 },
1691 "mask": {
1692 "$ref": "DocumentMask",
1693 "description": "The fields to return. If not set, returns all fields. If a document has a field that is not present in this mask, that field will not be returned in the response."
1694 },
1695 "newTransaction": {
1696 "$ref": "TransactionOptions",
1697 "description": "Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream."
1698 },
1699 "transaction": {
1700 "type": "string",
1701 "format": "byte",
1702 "description": "Reads documents in a transaction."
1703 },
1704 "documents": {
1705 "type": "array",
1706 "items": {
1707 "type": "string"
1708 },
1709 "description": "The names of the documents to retrieve. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. The request will fail if any of the document is not a child resource of the given `database`. Duplicate names will be elided."
1710 }
1711 },
1712 "type": "object"
1713 },
1714 "DocumentChange": {
1715 "id": "DocumentChange",
1716 "properties": {
1717 "document": {
1718 "$ref": "Document",
1719 "description": "The new state of the Document. If `mask` is set, contains only fields that were updated or added."
1720 },
1721 "targetIds": {
1722 "type": "array",
1723 "description": "A set of target IDs of targets that match this document.",
1724 "items": {
1725 "type": "integer",
1726 "format": "int32"
1727 }
1728 },
1729 "removedTargetIds": {
1730 "type": "array",
1731 "items": {
1732 "type": "integer",
1733 "format": "int32"
1734 },
1735 "description": "A set of target IDs for targets that no longer match this document."
1736 }
1737 },
1738 "type": "object",
1739 "description": "A Document has changed. May be the result of multiple writes, including deletes, that ultimately resulted in a new value for the Document. Multiple DocumentChange messages may be returned for the same logical change, if multiple targets are affected."
1740 },
1741 "DocumentMask": {
1742 "description": "A set of field paths on a document. Used to restrict a get or update operation on a document to a subset of its fields. This is different from standard field masks, as this is always scoped to a Document, and takes in account the dynamic nature of Value.",
1743 "id": "DocumentMask",
1744 "properties": {
1745 "fieldPaths": {
1746 "items": {
1747 "type": "string"
1748 },
1749 "description": "The list of field paths in the mask. See Document.fields for a field path syntax reference.",
1750 "type": "array"
1751 }
1752 },
1753 "type": "object"
1754 },
1755 "GoogleFirestoreAdminV1ExportDocumentsRequest": {
1756 "description": "The request for FirestoreAdmin.ExportDocuments.",
1757 "properties": {
1758 "outputUriPrefix": {
1759 "description": "The output URI. Currently only supports Google Cloud Storage URIs of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional Google Cloud Storage namespace path. When choosing a name, be sure to consider Google Cloud Storage naming guidelines: https://cloud.google.com/storage/docs/naming. If the URI is a bucket (without a namespace path), a prefix will be generated based on the start time.",
1760 "type": "string"
1761 },
1762 "collectionIds": {
1763 "type": "array",
1764 "items": {
1765 "type": "string"
1766 },
1767 "description": "Which collection ids to export. Unspecified means all collections."
1768 }
1769 },
1770 "id": "GoogleFirestoreAdminV1ExportDocumentsRequest",
1771 "type": "object"
1772 },
1773 "ListCollectionIdsRequest": {
1774 "id": "ListCollectionIdsRequest",
1775 "type": "object",
1776 "description": "The request for Firestore.ListCollectionIds.",
1777 "properties": {
1778 "pageSize": {
1779 "description": "The maximum number of results to return.",
1780 "format": "int32",
1781 "type": "integer"
1782 },
1783 "pageToken": {
1784 "type": "string",
1785 "description": "A page token. Must be a value from ListCollectionIdsResponse."
1786 }
1787 }
1788 },
1789 "Precondition": {
1790 "description": "A precondition on a document, used for conditional operations.",
1791 "properties": {
1792 "exists": {
1793 "type": "boolean",
1794 "description": "When set to `true`, the target document must exist. When set to `false`, the target document must not exist."
1795 },
1796 "updateTime": {
1797 "type": "string",
1798 "format": "google-datetime",
1799 "description": "When set, the target document must exist and have been last updated at that time."
1800 }
1801 },
1802 "type": "object",
1803 "id": "Precondition"
1804 },
1805 "Projection": {
1806 "id": "Projection",
1807 "description": "The projection of document's fields to return.",
1808 "properties": {
1809 "fields": {
1810 "description": "The fields to return. If empty, all fields are returned. To only return the name of the document, use `['__name__']`.",
1811 "type": "array",
1812 "items": {
1813 "$ref": "FieldReference"
1814 }
1815 }
1816 },
1817 "type": "object"
1818 },
1819 "CompositeFilter": {
1820 "type": "object",
1821 "properties": {
1822 "filters": {
1823 "description": "The list of filters to combine. Must contain at least one filter.",
1824 "items": {
1825 "$ref": "Filter"
1826 },
1827 "type": "array"
1828 },
1829 "op": {
1830 "enumDescriptions": [
1831 "Unspecified. This value must not be used.",
1832 "The results are required to satisfy each of the combined filters."
1833 ],
1834 "description": "The operator for combining multiple filters.",
1835 "type": "string",
1836 "enum": [
1837 "OPERATOR_UNSPECIFIED",
1838 "AND"
1839 ]
1840 }
1841 },
1842 "description": "A filter that merges multiple other filters using the given operator.",
1843 "id": "CompositeFilter"
1844 },
1845 "Filter": {
1846 "type": "object",
1847 "properties": {
1848 "fieldFilter": {
1849 "description": "A filter on a document field.",
1850 "$ref": "FieldFilter"
1851 },
1852 "compositeFilter": {
1853 "description": "A composite filter.",
1854 "$ref": "CompositeFilter"
1855 },
1856 "unaryFilter": {
1857 "$ref": "UnaryFilter",
1858 "description": "A filter that takes exactly one argument."
1859 }
1860 },
1861 "description": "A filter.",
1862 "id": "Filter"
1863 },
1864 "RunQueryRequest": {
1865 "properties": {
1866 "readTime": {
1867 "description": "Reads documents as they were at the given time. This may not be older than 270 seconds.",
1868 "type": "string",
1869 "format": "google-datetime"
1870 },
1871 "structuredQuery": {
1872 "$ref": "StructuredQuery",
1873 "description": "A structured query."
1874 },
1875 "transaction": {
1876 "description": "Reads documents in a transaction.",
1877 "format": "byte",
1878 "type": "string"
1879 },
1880 "newTransaction": {
1881 "description": "Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream.",
1882 "$ref": "TransactionOptions"
1883 }
1884 },
1885 "description": "The request for Firestore.RunQuery.",
1886 "type": "object",
1887 "id": "RunQueryRequest"
1888 },
1889 "BatchWriteRequest": {
1890 "type": "object",
1891 "description": "The request for Firestore.BatchWrite.",
1892 "properties": {
1893 "writes": {
1894 "description": "The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.",
1895 "items": {
1896 "$ref": "Write"
1897 },
1898 "type": "array"
1899 },
1900 "labels": {
1901 "additionalProperties": {
1902 "type": "string"
1903 },
1904 "type": "object",
1905 "description": "Labels associated with this batch write."
1906 }
1907 },
1908 "id": "BatchWriteRequest"
1909 },
1910 "GoogleLongrunningCancelOperationRequest": {
1911 "id": "GoogleLongrunningCancelOperationRequest",
1912 "description": "The request message for Operations.CancelOperation.",
1913 "type": "object",
1914 "properties": {}
1915 },
1916 "PartitionQueryRequest": {
1917 "properties": {
1918 "structuredQuery": {
1919 "$ref": "StructuredQuery",
1920 "description": "A structured query. Query must specify collection with all descendants and be ordered by name ascending. Other filters, order bys, limits, offsets, and start/end cursors are not supported."
1921 },
1922 "partitionCount": {
1923 "description": "The desired maximum number of partition points. The partitions may be returned across multiple pages of results. The number must be positive. The actual number of partitions returned may be fewer. For example, this may be set to one fewer than the number of parallel queries to be run, or in running a data pipeline job, one fewer than the number of workers or compute instances available.",
1924 "type": "string",
1925 "format": "int64"
1926 },
1927 "pageSize": {
1928 "format": "int32",
1929 "description": "The maximum number of partitions to return in this call, subject to `partition_count`. For example, if `partition_count` = 10 and `page_size` = 8, the first call to PartitionQuery will return up to 8 partitions and a `next_page_token` if more results exist. A second call to PartitionQuery will return up to 2 partitions, to complete the total of 10 specified in `partition_count`.",
1930 "type": "integer"
1931 },
1932 "pageToken": {
1933 "description": "The `next_page_token` value returned from a previous call to PartitionQuery that may be used to get an additional set of results. There are no ordering guarantees between sets of results. Thus, using multiple sets of results will require merging the different result sets. For example, two subsequent calls using a page_token may return: * cursor B, cursor M, cursor Q * cursor A, cursor U, cursor W To obtain a complete result set ordered with respect to the results of the query supplied to PartitionQuery, the results sets should be merged: cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W",
1934 "type": "string"
1935 }
1936 },
1937 "description": "The request for Firestore.PartitionQuery.",
1938 "id": "PartitionQueryRequest",
1939 "type": "object"
1940 },
1941 "ReadOnly": {
1942 "id": "ReadOnly",
1943 "description": "Options for a transaction that can only be used to read documents.",
1944 "type": "object",
1945 "properties": {
1946 "readTime": {
1947 "description": "Reads documents at the given time. This may not be older than 60 seconds.",
1948 "type": "string",
1949 "format": "google-datetime"
1950 }
1951 }
1952 },
1953 "GoogleFirestoreAdminV1Field": {
1954 "type": "object",
1955 "properties": {
1956 "indexConfig": {
1957 "description": "The index configuration for this field. If unset, field indexing will revert to the configuration defined by the `ancestor_field`. To explicitly remove all indexes for this field, specify an index config with an empty list of indexes.",
1958 "$ref": "GoogleFirestoreAdminV1IndexConfig"
1959 },
1960 "name": {
1961 "type": "string",
1962 "description": "A field name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` A field path may be a simple field name, e.g. `address` or a path to fields within map_value , e.g. `address.city`, or a special field path. The only valid special field is `*`, which represents any field. Field paths may be quoted using ` (backtick). The only character that needs to be escaped within a quoted field path is the backtick character itself, escaped using a backslash. Special characters in field paths that must be quoted include: `*`, `.`, ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. Examples: (Note: Comments here are written in markdown syntax, so there is an additional layer of backticks to represent a code block) `\\`address.city\\`` represents a field named `address.city`, not the map key `city` in the field `address`. `\\`*\\`` represents a field named `*`, not any field. A special `Field` contains the default indexing settings for all fields. This field's resource name is: `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` Indexes defined on this `Field` will be applied to all fields which do not have their own `Field` index configuration."
1963 }
1964 },
1965 "description": "Represents a single field in the database. Fields are grouped by their \"Collection Group\", which represent all collections in the database with the same id.",
1966 "id": "GoogleFirestoreAdminV1Field"
1967 },
1968 "ReadWrite": {
1969 "description": "Options for a transaction that can be used to read and write documents.",
1970 "properties": {
1971 "retryTransaction": {
1972 "format": "byte",
1973 "type": "string",
1974 "description": "An optional transaction to retry."
1975 }
1976 },
1977 "type": "object",
1978 "id": "ReadWrite"
1979 },
1980 "ListenRequest": {
1981 "properties": {
1982 "removeTarget": {
1983 "type": "integer",
1984 "format": "int32",
1985 "description": "The ID of a target to remove from this stream."
1986 },
1987 "labels": {
1988 "additionalProperties": {
1989 "type": "string"
1990 },
1991 "description": "Labels associated with this target change.",
1992 "type": "object"
1993 },
1994 "addTarget": {
1995 "$ref": "Target",
1996 "description": "A target to add to this stream."
1997 }
1998 },
1999 "id": "ListenRequest",
2000 "type": "object",
2001 "description": "A request for Firestore.Listen"
2002 },
2003 "GoogleFirestoreAdminV1ImportDocumentsMetadata": {
2004 "description": "Metadata for google.longrunning.Operation results from FirestoreAdmin.ImportDocuments.",
2005 "id": "GoogleFirestoreAdminV1ImportDocumentsMetadata",
2006 "properties": {
2007 "progressDocuments": {
2008 "description": "The progress, in documents, of this operation.",
2009 "$ref": "GoogleFirestoreAdminV1Progress"
2010 },
2011 "inputUriPrefix": {
2012 "type": "string",
2013 "description": "The location of the documents being imported."
2014 },
2015 "progressBytes": {
2016 "$ref": "GoogleFirestoreAdminV1Progress",
2017 "description": "The progress, in bytes, of this operation."
2018 },
2019 "startTime": {
2020 "description": "The time this operation started.",
2021 "format": "google-datetime",
2022 "type": "string"
2023 },
2024 "operationState": {
2025 "enum": [
2026 "OPERATION_STATE_UNSPECIFIED",
2027 "INITIALIZING",
2028 "PROCESSING",
2029 "CANCELLING",
2030 "FINALIZING",
2031 "SUCCESSFUL",
2032 "FAILED",
2033 "CANCELLED"
2034 ],
2035 "description": "The state of the import operation.",
2036 "type": "string",
2037 "enumDescriptions": [
2038 "Unspecified.",
2039 "Request is being prepared for processing.",
2040 "Request is actively being processed.",
2041 "Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.",
2042 "Request has been processed and is in its finalization stage.",
2043 "Request has completed successfully.",
2044 "Request has finished being processed, but encountered an error.",
2045 "Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation."
2046 ]
2047 },
2048 "endTime": {
2049 "description": "The time this operation completed. Will be unset if operation still in progress.",
2050 "format": "google-datetime",
2051 "type": "string"
2052 },
2053 "collectionIds": {
2054 "type": "array",
2055 "items": {
2056 "type": "string"
2057 },
2058 "description": "Which collection ids are being imported."
2059 }
2060 },
2061 "type": "object"
2062 },
2063 "Order": {
2064 "description": "An order on a field.",
2065 "type": "object",
2066 "id": "Order",
2067 "properties": {
2068 "field": {
2069 "$ref": "FieldReference",
2070 "description": "The field to order by."
2071 },
2072 "direction": {
2073 "enumDescriptions": [
2074 "Unspecified.",
2075 "Ascending.",
2076 "Descending."
2077 ],
2078 "enum": [
2079 "DIRECTION_UNSPECIFIED",
2080 "ASCENDING",
2081 "DESCENDING"
2082 ],
2083 "type": "string",
2084 "description": "The direction to order by. Defaults to `ASCENDING`."
2085 }
2086 }
2087 },
2088 "ListLocationsResponse": {
2089 "type": "object",
2090 "properties": {
2091 "nextPageToken": {
2092 "description": "The standard List next-page token.",
2093 "type": "string"
2094 },
2095 "locations": {
2096 "description": "A list of locations that matches the specified filter in the request.",
2097 "items": {
2098 "$ref": "Location"
2099 },
2100 "type": "array"
2101 }
2102 },
2103 "description": "The response message for Locations.ListLocations.",
2104 "id": "ListLocationsResponse"
2105 },
2106 "CommitRequest": {
2107 "description": "The request for Firestore.Commit.",
2108 "type": "object",
2109 "properties": {
2110 "writes": {
2111 "items": {
2112 "$ref": "Write"
2113 },
2114 "description": "The writes to apply. Always executed atomically and in order.",
2115 "type": "array"
2116 },
2117 "transaction": {
2118 "type": "string",
2119 "format": "byte",
2120 "description": "If set, applies all writes in this transaction, and commits it."
2121 }
2122 },
2123 "id": "CommitRequest"
2124 },
2125 "Write": {
2126 "properties": {
2127 "updateTransforms": {
2128 "items": {
2129 "$ref": "FieldTransform"
2130 },
2131 "description": "The transforms to perform after update. This field can be set only when the operation is `update`. If present, this write is equivalent to performing `update` and `transform` to the same document atomically and in order.",
2132 "type": "array"
2133 },
2134 "transform": {
2135 "$ref": "DocumentTransform",
2136 "description": "Applies a transformation to a document."
2137 },
2138 "delete": {
2139 "description": "A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.",
2140 "type": "string"
2141 },
2142 "update": {
2143 "description": "A document to write.",
2144 "$ref": "Document"
2145 },
2146 "currentDocument": {
2147 "description": "An optional precondition on the document. The write will fail if this is set and not met by the target document.",
2148 "$ref": "Precondition"
2149 },
2150 "updateMask": {
2151 "description": "The fields to update in this write. This field can be set only when the operation is `update`. If the mask is not set for an `update` and the document exists, any existing data will be overwritten. If the mask is set and the document on the server has fields not covered by the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.",
2152 "$ref": "DocumentMask"
2153 }
2154 },
2155 "id": "Write",
2156 "type": "object",
2157 "description": "A write on a document."
2158 },
2159 "DocumentsTarget": {
2160 "type": "object",
2161 "properties": {
2162 "documents": {
2163 "items": {
2164 "type": "string"
2165 },
2166 "description": "The names of the documents to retrieve. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. The request will fail if any of the document is not a child resource of the given `database`. Duplicate names will be elided.",
2167 "type": "array"
2168 }
2169 },
2170 "description": "A target specified by a set of documents names.",
2171 "id": "DocumentsTarget"
2172 },
2173 "GoogleFirestoreAdminV1ListIndexesResponse": {
2174 "description": "The response for FirestoreAdmin.ListIndexes.",
2175 "type": "object",
2176 "properties": {
2177 "indexes": {
2178 "items": {
2179 "$ref": "GoogleFirestoreAdminV1Index"
2180 },
2181 "description": "The requested indexes.",
2182 "type": "array"
2183 },
2184 "nextPageToken": {
2185 "type": "string",
2186 "description": "A page token that may be used to request another page of results. If blank, this is the last page."
2187 }
2188 },
2189 "id": "GoogleFirestoreAdminV1ListIndexesResponse"
2190 },
2191 "WriteResult": {
2192 "description": "The result of applying a write.",
2193 "id": "WriteResult",
2194 "type": "object",
2195 "properties": {
2196 "updateTime": {
2197 "type": "string",
2198 "format": "google-datetime",
2199 "description": "The last update time of the document after applying the write. Not set after a `delete`. If the write did not actually change the document, this will be the previous update_time."
2200 },
2201 "transformResults": {
2202 "type": "array",
2203 "description": "The results of applying each DocumentTransform.FieldTransform, in the same order.",
2204 "items": {
2205 "$ref": "Value"
2206 }
2207 }
2208 }
2209 },
2210 "GoogleFirestoreAdminV1IndexConfigDelta": {
2211 "description": "Information about an index configuration change.",
2212 "id": "GoogleFirestoreAdminV1IndexConfigDelta",
2213 "properties": {
2214 "index": {
2215 "$ref": "GoogleFirestoreAdminV1Index",
2216 "description": "The index being changed."
2217 },
2218 "changeType": {
2219 "description": "Specifies how the index is changing.",
2220 "type": "string",
2221 "enumDescriptions": [
2222 "The type of change is not specified or known.",
2223 "The single field index is being added.",
2224 "The single field index is being removed."
2225 ],
2226 "enum": [
2227 "CHANGE_TYPE_UNSPECIFIED",
2228 "ADD",
2229 "REMOVE"
2230 ]
2231 }
2232 },
2233 "type": "object"
2234 },
2235 "BatchGetDocumentsResponse": {
2236 "type": "object",
2237 "id": "BatchGetDocumentsResponse",
2238 "description": "The streamed response for Firestore.BatchGetDocuments.",
2239 "properties": {
2240 "transaction": {
2241 "description": "The transaction that was started as part of this request. Will only be set in the first response, and only if BatchGetDocumentsRequest.new_transaction was set in the request.",
2242 "format": "byte",
2243 "type": "string"
2244 },
2245 "missing": {
2246 "type": "string",
2247 "description": "A document name that was requested but does not exist. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`."
2248 },
2249 "readTime": {
2250 "description": "The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one.",
2251 "format": "google-datetime",
2252 "type": "string"
2253 },
2254 "found": {
2255 "description": "A document that was requested.",
2256 "$ref": "Document"
2257 }
2258 }
2259 },
2260 "FieldReference": {
2261 "properties": {
2262 "fieldPath": {
2263 "type": "string"
2264 }
2265 },
2266 "type": "object",
2267 "description": "A reference to a field, such as `max(messages.time) as max_time`.",
2268 "id": "FieldReference"
2269 },
2270 "DocumentTransform": {
2271 "properties": {
2272 "fieldTransforms": {
2273 "items": {
2274 "$ref": "FieldTransform"
2275 },
2276 "type": "array",
2277 "description": "The list of transformations to apply to the fields of the document, in order. This must not be empty."
2278 },
2279 "document": {
2280 "description": "The name of the document to transform.",
2281 "type": "string"
2282 }
2283 },
2284 "type": "object",
2285 "id": "DocumentTransform",
2286 "description": "A transformation of a document."
2287 },
2288 "UnaryFilter": {
2289 "description": "A filter with a single operand.",
2290 "type": "object",
2291 "id": "UnaryFilter",
2292 "properties": {
2293 "op": {
2294 "enumDescriptions": [
2295 "Unspecified. This value must not be used.",
2296 "The given `field` is equal to `NaN`.",
2297 "The given `field` is equal to `NULL`.",
2298 "The given `field` is not equal to `NaN`. Requires: * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`.",
2299 "The given `field` is not equal to `NULL`. Requires: * A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`."
2300 ],
2301 "description": "The unary operator to apply.",
2302 "type": "string",
2303 "enum": [
2304 "OPERATOR_UNSPECIFIED",
2305 "IS_NAN",
2306 "IS_NULL",
2307 "IS_NOT_NAN",
2308 "IS_NOT_NULL"
2309 ]
2310 },
2311 "field": {
2312 "description": "The field to which to apply the operator.",
2313 "$ref": "FieldReference"
2314 }
2315 }
2316 },
2317 "BatchWriteResponse": {
2318 "id": "BatchWriteResponse",
2319 "properties": {
2320 "writeResults": {
2321 "type": "array",
2322 "description": "The result of applying the writes. This i-th write result corresponds to the i-th write in the request.",
2323 "items": {
2324 "$ref": "WriteResult"
2325 }
2326 },
2327 "status": {
2328 "description": "The status of applying the writes. This i-th write status corresponds to the i-th write in the request.",
2329 "type": "array",
2330 "items": {
2331 "$ref": "Status"
2332 }
2333 }
2334 },
2335 "description": "The response from Firestore.BatchWrite.",
2336 "type": "object"
2337 },
2338 "FieldTransform": {
2339 "description": "A transformation of a field of the document.",
2340 "id": "FieldTransform",
2341 "properties": {
2342 "appendMissingElements": {
2343 "description": "Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.",
2344 "$ref": "ArrayValue"
2345 },
2346 "setToServerValue": {
2347 "type": "string",
2348 "description": "Sets the field to the given server value.",
2349 "enumDescriptions": [
2350 "Unspecified. This value must not be used.",
2351 "The time at which the server processed the request, with millisecond precision. If used on multiple fields (same or different documents) in a transaction, all the fields will get the same server timestamp."
2352 ],
2353 "enum": [
2354 "SERVER_VALUE_UNSPECIFIED",
2355 "REQUEST_TIME"
2356 ]
2357 },
2358 "increment": {
2359 "$ref": "Value",
2360 "description": "Adds the given value to the field's current value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If either of the given value or the current field value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follow IEEE 754 semantics. If there is positive/negative integer overflow, the field is resolved to the largest magnitude positive/negative integer."
2361 },
2362 "maximum": {
2363 "$ref": "Value",
2364 "description": "Sets the field to the maximum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If a maximum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN."
2365 },
2366 "minimum": {
2367 "$ref": "Value",
2368 "description": "Sets the field to the minimum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the input value. If a minimum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN."
2369 },
2370 "fieldPath": {
2371 "description": "The path of the field. See Document.fields for the field path syntax reference.",
2372 "type": "string"
2373 },
2374 "removeAllFromArray": {
2375 "$ref": "ArrayValue",
2376 "description": "Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value."
2377 }
2378 },
2379 "type": "object"
2380 },
2381 "BeginTransactionResponse": {
2382 "description": "The response for Firestore.BeginTransaction.",
2383 "id": "BeginTransactionResponse",
2384 "properties": {
2385 "transaction": {
2386 "description": "The transaction that was started.",
2387 "format": "byte",
2388 "type": "string"
2389 }
2390 },
2391 "type": "object"
2392 },
2393 "GoogleFirestoreAdminV1IndexOperationMetadata": {
2394 "description": "Metadata for google.longrunning.Operation results from FirestoreAdmin.CreateIndex.",
2395 "id": "GoogleFirestoreAdminV1IndexOperationMetadata",
2396 "properties": {
2397 "progressDocuments": {
2398 "$ref": "GoogleFirestoreAdminV1Progress",
2399 "description": "The progress, in documents, of this operation."
2400 },
2401 "state": {
2402 "enumDescriptions": [
2403 "Unspecified.",
2404 "Request is being prepared for processing.",
2405 "Request is actively being processed.",
2406 "Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.",
2407 "Request has been processed and is in its finalization stage.",
2408 "Request has completed successfully.",
2409 "Request has finished being processed, but encountered an error.",
2410 "Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation."
2411 ],
2412 "type": "string",
2413 "description": "The state of the operation.",
2414 "enum": [
2415 "OPERATION_STATE_UNSPECIFIED",
2416 "INITIALIZING",
2417 "PROCESSING",
2418 "CANCELLING",
2419 "FINALIZING",
2420 "SUCCESSFUL",
2421 "FAILED",
2422 "CANCELLED"
2423 ]
2424 },
2425 "startTime": {
2426 "type": "string",
2427 "format": "google-datetime",
2428 "description": "The time this operation started."
2429 },
2430 "progressBytes": {
2431 "description": "The progress, in bytes, of this operation.",
2432 "$ref": "GoogleFirestoreAdminV1Progress"
2433 },
2434 "index": {
2435 "type": "string",
2436 "description": "The index resource that this operation is acting on. For example: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`"
2437 },
2438 "endTime": {
2439 "description": "The time this operation completed. Will be unset if operation still in progress.",
2440 "type": "string",
2441 "format": "google-datetime"
2442 }
2443 },
2444 "type": "object"
2445 },
2446 "LatLng": {
2447 "id": "LatLng",
2448 "type": "object",
2449 "properties": {
2450 "latitude": {
2451 "format": "double",
2452 "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
2453 "type": "number"
2454 },
2455 "longitude": {
2456 "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
2457 "format": "double",
2458 "type": "number"
2459 }
2460 },
2461 "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges."
2462 },
2463 "GoogleFirestoreAdminV1LocationMetadata": {
2464 "properties": {},
2465 "id": "GoogleFirestoreAdminV1LocationMetadata",
2466 "type": "object",
2467 "description": "The metadata message for google.cloud.location.Location.metadata."
2468 },
2469 "GoogleLongrunningListOperationsResponse": {
2470 "id": "GoogleLongrunningListOperationsResponse",
2471 "properties": {
2472 "operations": {
2473 "type": "array",
2474 "items": {
2475 "$ref": "GoogleLongrunningOperation"
2476 },
2477 "description": "A list of operations that matches the specified filter in the request."
2478 },
2479 "nextPageToken": {
2480 "description": "The standard List next-page token.",
2481 "type": "string"
2482 }
2483 },
2484 "description": "The response message for Operations.ListOperations.",
2485 "type": "object"
2486 },
2487 "GoogleFirestoreAdminV1FieldOperationMetadata": {
2488 "type": "object",
2489 "description": "Metadata for google.longrunning.Operation results from FirestoreAdmin.UpdateField.",
2490 "id": "GoogleFirestoreAdminV1FieldOperationMetadata",
2491 "properties": {
2492 "state": {
2493 "enum": [
2494 "OPERATION_STATE_UNSPECIFIED",
2495 "INITIALIZING",
2496 "PROCESSING",
2497 "CANCELLING",
2498 "FINALIZING",
2499 "SUCCESSFUL",
2500 "FAILED",
2501 "CANCELLED"
2502 ],
2503 "description": "The state of the operation.",
2504 "type": "string",
2505 "enumDescriptions": [
2506 "Unspecified.",
2507 "Request is being prepared for processing.",
2508 "Request is actively being processed.",
2509 "Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.",
2510 "Request has been processed and is in its finalization stage.",
2511 "Request has completed successfully.",
2512 "Request has finished being processed, but encountered an error.",
2513 "Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation."
2514 ]
2515 },
2516 "startTime": {
2517 "description": "The time this operation started.",
2518 "type": "string",
2519 "format": "google-datetime"
2520 },
2521 "progressBytes": {
2522 "$ref": "GoogleFirestoreAdminV1Progress",
2523 "description": "The progress, in bytes, of this operation."
2524 },
2525 "endTime": {
2526 "description": "The time this operation completed. Will be unset if operation still in progress.",
2527 "format": "google-datetime",
2528 "type": "string"
2529 },
2530 "progressDocuments": {
2531 "$ref": "GoogleFirestoreAdminV1Progress",
2532 "description": "The progress, in documents, of this operation."
2533 },
2534 "field": {
2535 "description": "The field resource that this operation is acting on. For example: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`",
2536 "type": "string"
2537 },
2538 "indexConfigDeltas": {
2539 "description": "A list of IndexConfigDelta, which describe the intent of this operation.",
2540 "type": "array",
2541 "items": {
2542 "$ref": "GoogleFirestoreAdminV1IndexConfigDelta"
2543 }
2544 }
2545 }
2546 },
2547 "GoogleFirestoreAdminV1ExportDocumentsMetadata": {
2548 "properties": {
2549 "outputUriPrefix": {
2550 "type": "string",
2551 "description": "Where the entities are being exported to."
2552 },
2553 "collectionIds": {
2554 "type": "array",
2555 "items": {
2556 "type": "string"
2557 },
2558 "description": "Which collection ids are being exported."
2559 },
2560 "endTime": {
2561 "description": "The time this operation completed. Will be unset if operation still in progress.",
2562 "type": "string",
2563 "format": "google-datetime"
2564 },
2565 "progressBytes": {
2566 "description": "The progress, in bytes, of this operation.",
2567 "$ref": "GoogleFirestoreAdminV1Progress"
2568 },
2569 "operationState": {
2570 "type": "string",
2571 "enum": [
2572 "OPERATION_STATE_UNSPECIFIED",
2573 "INITIALIZING",
2574 "PROCESSING",
2575 "CANCELLING",
2576 "FINALIZING",
2577 "SUCCESSFUL",
2578 "FAILED",
2579 "CANCELLED"
2580 ],
2581 "description": "The state of the export operation.",
2582 "enumDescriptions": [
2583 "Unspecified.",
2584 "Request is being prepared for processing.",
2585 "Request is actively being processed.",
2586 "Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.",
2587 "Request has been processed and is in its finalization stage.",
2588 "Request has completed successfully.",
2589 "Request has finished being processed, but encountered an error.",
2590 "Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation."
2591 ]
2592 },
2593 "progressDocuments": {
2594 "description": "The progress, in documents, of this operation.",
2595 "$ref": "GoogleFirestoreAdminV1Progress"
2596 },
2597 "startTime": {
2598 "description": "The time this operation started.",
2599 "format": "google-datetime",
2600 "type": "string"
2601 }
2602 },
2603 "description": "Metadata for google.longrunning.Operation results from FirestoreAdmin.ExportDocuments.",
2604 "type": "object",
2605 "id": "GoogleFirestoreAdminV1ExportDocumentsMetadata"
2606 },
2607 "QueryTarget": {
2608 "properties": {
2609 "parent": {
2610 "type": "string",
2611 "description": "The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`"
2612 },
2613 "structuredQuery": {
2614 "description": "A structured query.",
2615 "$ref": "StructuredQuery"
2616 }
2617 },
2618 "type": "object",
2619 "id": "QueryTarget",
2620 "description": "A target specified by a query."
2621 },
2622 "WriteResponse": {
2623 "description": "The response for Firestore.Write.",
2624 "properties": {
2625 "commitTime": {
2626 "type": "string",
2627 "description": "The time at which the commit occurred. Any read with an equal or greater `read_time` is guaranteed to see the effects of the write.",
2628 "format": "google-datetime"
2629 },
2630 "streamToken": {
2631 "format": "byte",
2632 "type": "string",
2633 "description": "A token that represents the position of this response in the stream. This can be used by a client to resume the stream at this point. This field is always set."
2634 },
2635 "writeResults": {
2636 "type": "array",
2637 "description": "The result of applying the writes. This i-th write result corresponds to the i-th write in the request.",
2638 "items": {
2639 "$ref": "WriteResult"
2640 }
2641 },
2642 "streamId": {
2643 "type": "string",
2644 "description": "The ID of the stream. Only set on the first message, when a new stream was created."
2645 }
2646 },
2647 "type": "object",
2648 "id": "WriteResponse"
2649 },
2650 "Location": {
2651 "type": "object",
2652 "properties": {
2653 "labels": {
2654 "type": "object",
2655 "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}",
2656 "additionalProperties": {
2657 "type": "string"
2658 }
2659 },
2660 "locationId": {
2661 "type": "string",
2662 "description": "The canonical id for this location. For example: `\"us-east1\"`."
2663 },
2664 "name": {
2665 "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`",
2666 "type": "string"
2667 },
2668 "displayName": {
2669 "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".",
2670 "type": "string"
2671 },
2672 "metadata": {
2673 "description": "Service-specific metadata. For example the available capacity at the given location.",
2674 "type": "object",
2675 "additionalProperties": {
2676 "description": "Properties of the object. Contains field @type with type URL.",
2677 "type": "any"
2678 }
2679 }
2680 },
2681 "description": "A resource that represents Google Cloud Platform location.",
2682 "id": "Location"
2683 },
2684 "GoogleFirestoreAdminV1IndexConfig": {
2685 "type": "object",
2686 "description": "The index configuration for this field.",
2687 "properties": {
2688 "usesAncestorConfig": {
2689 "description": "Output only. When true, the `Field`'s index configuration is set from the configuration specified by the `ancestor_field`. When false, the `Field`'s index configuration is defined explicitly.",
2690 "type": "boolean"
2691 },
2692 "indexes": {
2693 "description": "The indexes supported for this field.",
2694 "items": {
2695 "$ref": "GoogleFirestoreAdminV1Index"
2696 },
2697 "type": "array"
2698 },
2699 "ancestorField": {
2700 "description": "Output only. Specifies the resource name of the `Field` from which this field's index configuration is set (when `uses_ancestor_config` is true), or from which it *would* be set if this field had no index configuration (when `uses_ancestor_config` is false).",
2701 "type": "string"
2702 },
2703 "reverting": {
2704 "type": "boolean",
2705 "description": "Output only When true, the `Field`'s index configuration is in the process of being reverted. Once complete, the index config will transition to the same state as the field specified by `ancestor_field`, at which point `uses_ancestor_config` will be `true` and `reverting` will be `false`."
2706 }
2707 },
2708 "id": "GoogleFirestoreAdminV1IndexConfig"
2709 },
2710 "Document": {
2711 "properties": {
2712 "updateTime": {
2713 "description": "Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can also be compared to values from other documents and the `read_time` of a query.",
2714 "type": "string",
2715 "format": "google-datetime"
2716 },
2717 "name": {
2718 "description": "The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.",
2719 "type": "string"
2720 },
2721 "fields": {
2722 "additionalProperties": {
2723 "$ref": "Value"
2724 },
2725 "type": "object",
2726 "description": "The document's fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `\"foo\" : { map_value: { \"x&y\" : { string_value: \"hello\" }}}` would be represented by the field path `foo.x&y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\\`. For example, `` `x&y` `` represents `x&y` and `` `bak\\`tik` `` represents `` bak`tik ``."
2727 },
2728 "createTime": {
2729 "description": "Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query.",
2730 "type": "string",
2731 "format": "google-datetime"
2732 }
2733 },
2734 "id": "Document",
2735 "type": "object",
2736 "description": "A Firestore document. Must not exceed 1 MiB - 4 bytes."
2737 },
2738 "TargetChange": {
2739 "id": "TargetChange",
2740 "properties": {
2741 "cause": {
2742 "$ref": "Status",
2743 "description": "The error that resulted in this change, if applicable."
2744 },
2745 "targetIds": {
2746 "type": "array",
2747 "description": "The target IDs of targets that have changed. If empty, the change applies to all targets. The order of the target IDs is not defined.",
2748 "items": {
2749 "format": "int32",
2750 "type": "integer"
2751 }
2752 },
2753 "resumeToken": {
2754 "description": "A token that can be used to resume the stream for the given `target_ids`, or all targets if `target_ids` is empty. Not set on every target change.",
2755 "type": "string",
2756 "format": "byte"
2757 },
2758 "readTime": {
2759 "description": "The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot). The stream is guaranteed to send a `read_time` with `target_ids` empty whenever the entire stream reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are guaranteed to (eventually) result in a new consistent snapshot (while NO_CHANGE and REMOVE messages are not). For a given stream, `read_time` is guaranteed to be monotonically increasing.",
2760 "format": "google-datetime",
2761 "type": "string"
2762 },
2763 "targetChangeType": {
2764 "description": "The type of change that occurred.",
2765 "enum": [
2766 "NO_CHANGE",
2767 "ADD",
2768 "REMOVE",
2769 "CURRENT",
2770 "RESET"
2771 ],
2772 "enumDescriptions": [
2773 "No change has occurred. Used only to send an updated `resume_token`.",
2774 "The targets have been added.",
2775 "The targets have been removed.",
2776 "The targets reflect all changes committed before the targets were added to the stream. This will be sent after or with a `read_time` that is greater than or equal to the time at which the targets were added. Listeners can wait for this change if read-after-write semantics are desired.",
2777 "The targets have been reset, and a new initial state for the targets will be returned in subsequent changes. After the initial state is complete, `CURRENT` will be returned even if the target was previously indicated to be `CURRENT`."
2778 ],
2779 "type": "string"
2780 }
2781 },
2782 "description": "Targets being watched have changed.",
2783 "type": "object"
2784 },
2785 "CommitResponse": {
2786 "type": "object",
2787 "id": "CommitResponse",
2788 "description": "The response for Firestore.Commit.",
2789 "properties": {
2790 "commitTime": {
2791 "description": "The time at which the commit occurred. Any read with an equal or greater `read_time` is guaranteed to see the effects of the commit.",
2792 "type": "string",
2793 "format": "google-datetime"
2794 },
2795 "writeResults": {
2796 "items": {
2797 "$ref": "WriteResult"
2798 },
2799 "description": "The result of applying the writes. This i-th write result corresponds to the i-th write in the request.",
2800 "type": "array"
2801 }
2802 }
2803 },
2804 "TransactionOptions": {
2805 "description": "Options for creating a new transaction.",
2806 "id": "TransactionOptions",
2807 "type": "object",
2808 "properties": {
2809 "readOnly": {
2810 "$ref": "ReadOnly",
2811 "description": "The transaction can only be used for read operations."
2812 },
2813 "readWrite": {
2814 "$ref": "ReadWrite",
2815 "description": "The transaction can be used for both read and write operations."
2816 }
2817 }
2818 },
2819 "ListenResponse": {
2820 "type": "object",
2821 "properties": {
2822 "targetChange": {
2823 "description": "Targets have changed.",
2824 "$ref": "TargetChange"
2825 },
2826 "documentDelete": {
2827 "$ref": "DocumentDelete",
2828 "description": "A Document has been deleted."
2829 },
2830 "documentRemove": {
2831 "$ref": "DocumentRemove",
2832 "description": "A Document has been removed from a target (because it is no longer relevant to that target)."
2833 },
2834 "documentChange": {
2835 "description": "A Document has changed.",
2836 "$ref": "DocumentChange"
2837 },
2838 "filter": {
2839 "description": "A filter to apply to the set of documents previously returned for the given target. Returned when documents may have been removed from the given target, but the exact documents are unknown.",
2840 "$ref": "ExistenceFilter"
2841 }
2842 },
2843 "description": "The response for Firestore.Listen.",
2844 "id": "ListenResponse"
2845 },
2846 "Status": {
2847 "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
2848 "id": "Status",
2849 "type": "object",
2850 "properties": {
2851 "details": {
2852 "type": "array",
2853 "items": {
2854 "additionalProperties": {
2855 "type": "any",
2856 "description": "Properties of the object. Contains field @type with type URL."
2857 },
2858 "type": "object"
2859 },
2860 "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use."
2861 },
2862 "message": {
2863 "type": "string",
2864 "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client."
2865 },
2866 "code": {
2867 "type": "integer",
2868 "format": "int32",
2869 "description": "The status code, which should be an enum value of google.rpc.Code."
2870 }
2871 }
2872 },
2873 "Cursor": {
2874 "type": "object",
2875 "description": "A position in a query result set.",
2876 "properties": {
2877 "before": {
2878 "type": "boolean",
2879 "description": "If the position is just before or just after the given values, relative to the sort order defined by the query."
2880 },
2881 "values": {
2882 "type": "array",
2883 "items": {
2884 "$ref": "Value"
2885 },
2886 "description": "The values that represent a position, in the order they appear in the order by clause of a query. Can contain fewer values than specified in the order by clause."
2887 }
2888 },
2889 "id": "Cursor"
2890 }
2891 },
2892 "batchPath": "batch",
2893 "version_module": true,
2894 "name": "firestore",
2895 "icons": {
2896 "x16": "http://www.google.com/images/icons/product/search-16.gif",
2897 "x32": "http://www.google.com/images/icons/product/search-32.gif"
2898 },
2899 "ownerDomain": "google.com",
2900 "auth": {
2901 "oauth2": {
2902 "scopes": {
2903 "https://www.googleapis.com/auth/datastore": {
2904 "description": "View and manage your Google Cloud Datastore data"
2905 },
2906 "https://www.googleapis.com/auth/cloud-platform": {
2907 "description": "View and manage your data across Google Cloud Platform services"
2908 }
2909 }
2910 }
2911 },
2912 "revision": "20201016",
2913 "canonicalName": "Firestore",
2914 "rootUrl": "https://firestore.googleapis.com/",
2915 "parameters": {
2916 "prettyPrint": {
2917 "description": "Returns response with indentations and line breaks.",
2918 "type": "boolean",
2919 "location": "query",
2920 "default": "true"
2921 },
2922 "uploadType": {
2923 "type": "string",
2924 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
2925 "location": "query"
2926 },
2927 "upload_protocol": {
2928 "type": "string",
2929 "location": "query",
2930 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
2931 },
2932 "oauth_token": {
2933 "description": "OAuth 2.0 token for the current user.",
2934 "type": "string",
2935 "location": "query"
2936 },
2937 "fields": {
2938 "description": "Selector specifying which fields to include in a partial response.",
2939 "location": "query",
2940 "type": "string"
2941 },
2942 "alt": {
2943 "enumDescriptions": [
2944 "Responses with Content-Type of application/json",
2945 "Media download with context-dependent Content-Type",
2946 "Responses with Content-Type of application/x-protobuf"
2947 ],
2948 "description": "Data format for response.",
2949 "enum": [
2950 "json",
2951 "media",
2952 "proto"
2953 ],
2954 "default": "json",
2955 "location": "query",
2956 "type": "string"
2957 },
2958 "quotaUser": {
2959 "location": "query",
2960 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
2961 "type": "string"
2962 },
2963 "callback": {
2964 "type": "string",
2965 "description": "JSONP",
2966 "location": "query"
2967 },
2968 "key": {
2969 "location": "query",
2970 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
2971 "type": "string"
2972 },
2973 "access_token": {
2974 "description": "OAuth access token.",
2975 "location": "query",
2976 "type": "string"
2977 },
2978 "$.xgafv": {
2979 "type": "string",
2980 "enum": [
2981 "1",
2982 "2"
2983 ],
2984 "description": "V1 error format.",
2985 "location": "query",
2986 "enumDescriptions": [
2987 "v1 error format",
2988 "v2 error format"
2989 ]
2990 }
2991 },
2992 "fullyEncodeReservedExpansion": true,
2993 "description": "Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. ",
2994 "ownerName": "Google",
2995 "discoveryVersion": "v1",
2996 "baseUrl": "https://firestore.googleapis.com/",
2997 "id": "firestore:v1"
2998}