Debian Codegraph @

internal/generated/snippets/firestore/apiv1/snippet_metadata.google.firestore.v1.json

raw symbols SCIP
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/firestore/apiv1",
4 "version": "1.18.0",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.firestore.v1",
9 "version": "v1"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "firestore_v1_generated_Firestore_BatchWrite_sync",
16 "title": "firestore BatchWrite Sample",
17 "description": "BatchWrite applies a batch of write operations.\n\nThe BatchWrite method does not apply the write operations atomically\nand can apply them out of order. Method does not allow more than one write\nper document. Each write succeeds or fails independently. See the\n[BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the\nsuccess status of each write.\n\nIf you require an atomically applied set of writes, use\n[Commit][google.firestore.v1.Firestore.Commit] instead.",
18 "file": "Client/BatchWrite/main.go",
19 "language": "GO",
20 "clientMethod": {
21 "shortName": "BatchWrite",
22 "fullName": "google.firestore.v1.Client.BatchWrite",
23 "parameters": [
24 {
25 "type": "context.Context",
26 "name": "ctx"
27 },
28 {
29 "type": "firestorepb.BatchWriteRequest",
30 "name": "req"
31 },
32 {
33 "type": "...gax.CallOption",
34 "name": "opts"
35 }
36 ],
37 "resultType": "*firestorepb.BatchWriteResponse",
38 "client": {
39 "shortName": "Client",
40 "fullName": "google.firestore.v1.Client"
41 },
42 "method": {
43 "shortName": "BatchWrite",
44 "fullName": "google.firestore.v1.Firestore.BatchWrite",
45 "service": {
46 "shortName": "Firestore",
47 "fullName": "google.firestore.v1.Firestore"
48 }
49 }
50 },
51 "origin": "API_DEFINITION",
52 "segments": [
53 {
54 "start": 18,
55 "end": 53,
56 "type": "FULL"
57 }
58 ]
59 },
60 {
61 "regionTag": "firestore_v1_generated_Firestore_BeginTransaction_sync",
62 "title": "firestore BeginTransaction Sample",
63 "description": "BeginTransaction starts a new transaction.",
64 "file": "Client/BeginTransaction/main.go",
65 "language": "GO",
66 "clientMethod": {
67 "shortName": "BeginTransaction",
68 "fullName": "google.firestore.v1.Client.BeginTransaction",
69 "parameters": [
70 {
71 "type": "context.Context",
72 "name": "ctx"
73 },
74 {
75 "type": "firestorepb.BeginTransactionRequest",
76 "name": "req"
77 },
78 {
79 "type": "...gax.CallOption",
80 "name": "opts"
81 }
82 ],
83 "resultType": "*firestorepb.BeginTransactionResponse",
84 "client": {
85 "shortName": "Client",
86 "fullName": "google.firestore.v1.Client"
87 },
88 "method": {
89 "shortName": "BeginTransaction",
90 "fullName": "google.firestore.v1.Firestore.BeginTransaction",
91 "service": {
92 "shortName": "Firestore",
93 "fullName": "google.firestore.v1.Firestore"
94 }
95 }
96 },
97 "origin": "API_DEFINITION",
98 "segments": [
99 {
100 "start": 18,
101 "end": 53,
102 "type": "FULL"
103 }
104 ]
105 },
106 {
107 "regionTag": "firestore_v1_generated_Firestore_CancelOperation_sync",
108 "title": "firestore CancelOperation Sample",
109 "description": "CancelOperation is a utility method from google.longrunning.Operations.",
110 "file": "Client/CancelOperation/main.go",
111 "language": "GO",
112 "clientMethod": {
113 "shortName": "CancelOperation",
114 "fullName": "google.firestore.v1.Client.CancelOperation",
115 "parameters": [
116 {
117 "type": "context.Context",
118 "name": "ctx"
119 },
120 {
121 "type": "longrunningpb.CancelOperationRequest",
122 "name": "req"
123 },
124 {
125 "type": "...gax.CallOption",
126 "name": "opts"
127 }
128 ],
129 "client": {
130 "shortName": "Client",
131 "fullName": "google.firestore.v1.Client"
132 },
133 "method": {
134 "shortName": "CancelOperation",
135 "fullName": "google.longrunning.Operations.CancelOperation",
136 "service": {
137 "shortName": "Operations",
138 "fullName": "google.longrunning.Operations"
139 }
140 }
141 },
142 "origin": "API_DEFINITION",
143 "segments": [
144 {
145 "start": 18,
146 "end": 51,
147 "type": "FULL"
148 }
149 ]
150 },
151 {
152 "regionTag": "firestore_v1_generated_Firestore_Commit_sync",
153 "title": "firestore Commit Sample",
154 "description": "Commit commits a transaction, while optionally updating documents.",
155 "file": "Client/Commit/main.go",
156 "language": "GO",
157 "clientMethod": {
158 "shortName": "Commit",
159 "fullName": "google.firestore.v1.Client.Commit",
160 "parameters": [
161 {
162 "type": "context.Context",
163 "name": "ctx"
164 },
165 {
166 "type": "firestorepb.CommitRequest",
167 "name": "req"
168 },
169 {
170 "type": "...gax.CallOption",
171 "name": "opts"
172 }
173 ],
174 "resultType": "*firestorepb.CommitResponse",
175 "client": {
176 "shortName": "Client",
177 "fullName": "google.firestore.v1.Client"
178 },
179 "method": {
180 "shortName": "Commit",
181 "fullName": "google.firestore.v1.Firestore.Commit",
182 "service": {
183 "shortName": "Firestore",
184 "fullName": "google.firestore.v1.Firestore"
185 }
186 }
187 },
188 "origin": "API_DEFINITION",
189 "segments": [
190 {
191 "start": 18,
192 "end": 53,
193 "type": "FULL"
194 }
195 ]
196 },
197 {
198 "regionTag": "firestore_v1_generated_Firestore_CreateDocument_sync",
199 "title": "firestore CreateDocument Sample",
200 "description": "CreateDocument creates a new document.",
201 "file": "Client/CreateDocument/main.go",
202 "language": "GO",
203 "clientMethod": {
204 "shortName": "CreateDocument",
205 "fullName": "google.firestore.v1.Client.CreateDocument",
206 "parameters": [
207 {
208 "type": "context.Context",
209 "name": "ctx"
210 },
211 {
212 "type": "firestorepb.CreateDocumentRequest",
213 "name": "req"
214 },
215 {
216 "type": "...gax.CallOption",
217 "name": "opts"
218 }
219 ],
220 "resultType": "*firestorepb.Document",
221 "client": {
222 "shortName": "Client",
223 "fullName": "google.firestore.v1.Client"
224 },
225 "method": {
226 "shortName": "CreateDocument",
227 "fullName": "google.firestore.v1.Firestore.CreateDocument",
228 "service": {
229 "shortName": "Firestore",
230 "fullName": "google.firestore.v1.Firestore"
231 }
232 }
233 },
234 "origin": "API_DEFINITION",
235 "segments": [
236 {
237 "start": 18,
238 "end": 53,
239 "type": "FULL"
240 }
241 ]
242 },
243 {
244 "regionTag": "firestore_v1_generated_Firestore_DeleteDocument_sync",
245 "title": "firestore DeleteDocument Sample",
246 "description": "DeleteDocument deletes a document.",
247 "file": "Client/DeleteDocument/main.go",
248 "language": "GO",
249 "clientMethod": {
250 "shortName": "DeleteDocument",
251 "fullName": "google.firestore.v1.Client.DeleteDocument",
252 "parameters": [
253 {
254 "type": "context.Context",
255 "name": "ctx"
256 },
257 {
258 "type": "firestorepb.DeleteDocumentRequest",
259 "name": "req"
260 },
261 {
262 "type": "...gax.CallOption",
263 "name": "opts"
264 }
265 ],
266 "client": {
267 "shortName": "Client",
268 "fullName": "google.firestore.v1.Client"
269 },
270 "method": {
271 "shortName": "DeleteDocument",
272 "fullName": "google.firestore.v1.Firestore.DeleteDocument",
273 "service": {
274 "shortName": "Firestore",
275 "fullName": "google.firestore.v1.Firestore"
276 }
277 }
278 },
279 "origin": "API_DEFINITION",
280 "segments": [
281 {
282 "start": 18,
283 "end": 51,
284 "type": "FULL"
285 }
286 ]
287 },
288 {
289 "regionTag": "firestore_v1_generated_Firestore_DeleteOperation_sync",
290 "title": "firestore DeleteOperation Sample",
291 "description": "DeleteOperation is a utility method from google.longrunning.Operations.",
292 "file": "Client/DeleteOperation/main.go",
293 "language": "GO",
294 "clientMethod": {
295 "shortName": "DeleteOperation",
296 "fullName": "google.firestore.v1.Client.DeleteOperation",
297 "parameters": [
298 {
299 "type": "context.Context",
300 "name": "ctx"
301 },
302 {
303 "type": "longrunningpb.DeleteOperationRequest",
304 "name": "req"
305 },
306 {
307 "type": "...gax.CallOption",
308 "name": "opts"
309 }
310 ],
311 "client": {
312 "shortName": "Client",
313 "fullName": "google.firestore.v1.Client"
314 },
315 "method": {
316 "shortName": "DeleteOperation",
317 "fullName": "google.longrunning.Operations.DeleteOperation",
318 "service": {
319 "shortName": "Operations",
320 "fullName": "google.longrunning.Operations"
321 }
322 }
323 },
324 "origin": "API_DEFINITION",
325 "segments": [
326 {
327 "start": 18,
328 "end": 51,
329 "type": "FULL"
330 }
331 ]
332 },
333 {
334 "regionTag": "firestore_v1_generated_Firestore_GetDocument_sync",
335 "title": "firestore GetDocument Sample",
336 "description": "GetDocument gets a single document.",
337 "file": "Client/GetDocument/main.go",
338 "language": "GO",
339 "clientMethod": {
340 "shortName": "GetDocument",
341 "fullName": "google.firestore.v1.Client.GetDocument",
342 "parameters": [
343 {
344 "type": "context.Context",
345 "name": "ctx"
346 },
347 {
348 "type": "firestorepb.GetDocumentRequest",
349 "name": "req"
350 },
351 {
352 "type": "...gax.CallOption",
353 "name": "opts"
354 }
355 ],
356 "resultType": "*firestorepb.Document",
357 "client": {
358 "shortName": "Client",
359 "fullName": "google.firestore.v1.Client"
360 },
361 "method": {
362 "shortName": "GetDocument",
363 "fullName": "google.firestore.v1.Firestore.GetDocument",
364 "service": {
365 "shortName": "Firestore",
366 "fullName": "google.firestore.v1.Firestore"
367 }
368 }
369 },
370 "origin": "API_DEFINITION",
371 "segments": [
372 {
373 "start": 18,
374 "end": 53,
375 "type": "FULL"
376 }
377 ]
378 },
379 {
380 "regionTag": "firestore_v1_generated_Firestore_GetOperation_sync",
381 "title": "firestore GetOperation Sample",
382 "description": "GetOperation is a utility method from google.longrunning.Operations.",
383 "file": "Client/GetOperation/main.go",
384 "language": "GO",
385 "clientMethod": {
386 "shortName": "GetOperation",
387 "fullName": "google.firestore.v1.Client.GetOperation",
388 "parameters": [
389 {
390 "type": "context.Context",
391 "name": "ctx"
392 },
393 {
394 "type": "longrunningpb.GetOperationRequest",
395 "name": "req"
396 },
397 {
398 "type": "...gax.CallOption",
399 "name": "opts"
400 }
401 ],
402 "resultType": "*longrunningpb.Operation",
403 "client": {
404 "shortName": "Client",
405 "fullName": "google.firestore.v1.Client"
406 },
407 "method": {
408 "shortName": "GetOperation",
409 "fullName": "google.longrunning.Operations.GetOperation",
410 "service": {
411 "shortName": "Operations",
412 "fullName": "google.longrunning.Operations"
413 }
414 }
415 },
416 "origin": "API_DEFINITION",
417 "segments": [
418 {
419 "start": 18,
420 "end": 53,
421 "type": "FULL"
422 }
423 ]
424 },
425 {
426 "regionTag": "firestore_v1_generated_Firestore_ListCollectionIds_sync",
427 "title": "firestore ListCollectionIds Sample",
428 "description": "ListCollectionIds lists all the collection IDs underneath a document.",
429 "file": "Client/ListCollectionIds/main.go",
430 "language": "GO",
431 "clientMethod": {
432 "shortName": "ListCollectionIds",
433 "fullName": "google.firestore.v1.Client.ListCollectionIds",
434 "parameters": [
435 {
436 "type": "context.Context",
437 "name": "ctx"
438 },
439 {
440 "type": "firestorepb.ListCollectionIdsRequest",
441 "name": "req"
442 },
443 {
444 "type": "...gax.CallOption",
445 "name": "opts"
446 }
447 ],
448 "resultType": "StringIterator",
449 "client": {
450 "shortName": "Client",
451 "fullName": "google.firestore.v1.Client"
452 },
453 "method": {
454 "shortName": "ListCollectionIds",
455 "fullName": "google.firestore.v1.Firestore.ListCollectionIds",
456 "service": {
457 "shortName": "Firestore",
458 "fullName": "google.firestore.v1.Firestore"
459 }
460 }
461 },
462 "origin": "API_DEFINITION",
463 "segments": [
464 {
465 "start": 18,
466 "end": 66,
467 "type": "FULL"
468 }
469 ]
470 },
471 {
472 "regionTag": "firestore_v1_generated_Firestore_ListDocuments_sync",
473 "title": "firestore ListDocuments Sample",
474 "description": "ListDocuments lists documents.",
475 "file": "Client/ListDocuments/main.go",
476 "language": "GO",
477 "clientMethod": {
478 "shortName": "ListDocuments",
479 "fullName": "google.firestore.v1.Client.ListDocuments",
480 "parameters": [
481 {
482 "type": "context.Context",
483 "name": "ctx"
484 },
485 {
486 "type": "firestorepb.ListDocumentsRequest",
487 "name": "req"
488 },
489 {
490 "type": "...gax.CallOption",
491 "name": "opts"
492 }
493 ],
494 "resultType": "DocumentIterator",
495 "client": {
496 "shortName": "Client",
497 "fullName": "google.firestore.v1.Client"
498 },
499 "method": {
500 "shortName": "ListDocuments",
501 "fullName": "google.firestore.v1.Firestore.ListDocuments",
502 "service": {
503 "shortName": "Firestore",
504 "fullName": "google.firestore.v1.Firestore"
505 }
506 }
507 },
508 "origin": "API_DEFINITION",
509 "segments": [
510 {
511 "start": 18,
512 "end": 66,
513 "type": "FULL"
514 }
515 ]
516 },
517 {
518 "regionTag": "firestore_v1_generated_Firestore_ListOperations_sync",
519 "title": "firestore ListOperations Sample",
520 "description": "ListOperations is a utility method from google.longrunning.Operations.",
521 "file": "Client/ListOperations/main.go",
522 "language": "GO",
523 "clientMethod": {
524 "shortName": "ListOperations",
525 "fullName": "google.firestore.v1.Client.ListOperations",
526 "parameters": [
527 {
528 "type": "context.Context",
529 "name": "ctx"
530 },
531 {
532 "type": "longrunningpb.ListOperationsRequest",
533 "name": "req"
534 },
535 {
536 "type": "...gax.CallOption",
537 "name": "opts"
538 }
539 ],
540 "resultType": "OperationIterator",
541 "client": {
542 "shortName": "Client",
543 "fullName": "google.firestore.v1.Client"
544 },
545 "method": {
546 "shortName": "ListOperations",
547 "fullName": "google.longrunning.Operations.ListOperations",
548 "service": {
549 "shortName": "Operations",
550 "fullName": "google.longrunning.Operations"
551 }
552 }
553 },
554 "origin": "API_DEFINITION",
555 "segments": [
556 {
557 "start": 18,
558 "end": 66,
559 "type": "FULL"
560 }
561 ]
562 },
563 {
564 "regionTag": "firestore_v1_generated_Firestore_Listen_sync",
565 "title": "firestore Listen Sample",
566 "description": "Listen listens to changes. This method is only available via gRPC or WebChannel\n(not REST).\n\n\nThis method is not supported for the REST transport.",
567 "file": "Client/Listen/main.go",
568 "language": "GO",
569 "clientMethod": {
570 "shortName": "Listen",
571 "fullName": "google.firestore.v1.Client.Listen",
572 "parameters": [
573 {
574 "type": "context.Context",
575 "name": "ctx"
576 },
577 {
578 "type": "...gax.CallOption",
579 "name": "opts"
580 }
581 ],
582 "resultType": "firestorepb.Firestore_ListenClient",
583 "client": {
584 "shortName": "Client",
585 "fullName": "google.firestore.v1.Client"
586 },
587 "method": {
588 "shortName": "Listen",
589 "fullName": "google.firestore.v1.Firestore.Listen",
590 "service": {
591 "shortName": "Firestore",
592 "fullName": "google.firestore.v1.Firestore"
593 }
594 }
595 },
596 "origin": "API_DEFINITION",
597 "segments": [
598 {
599 "start": 18,
600 "end": 69,
601 "type": "FULL"
602 }
603 ]
604 },
605 {
606 "regionTag": "firestore_v1_generated_Firestore_PartitionQuery_sync",
607 "title": "firestore PartitionQuery Sample",
608 "description": "PartitionQuery partitions a query by returning partition cursors that can be used to run\nthe query in parallel. The returned partition cursors are split points that\ncan be used by RunQuery as starting/end points for the query results.",
609 "file": "Client/PartitionQuery/main.go",
610 "language": "GO",
611 "clientMethod": {
612 "shortName": "PartitionQuery",
613 "fullName": "google.firestore.v1.Client.PartitionQuery",
614 "parameters": [
615 {
616 "type": "context.Context",
617 "name": "ctx"
618 },
619 {
620 "type": "firestorepb.PartitionQueryRequest",
621 "name": "req"
622 },
623 {
624 "type": "...gax.CallOption",
625 "name": "opts"
626 }
627 ],
628 "resultType": "CursorIterator",
629 "client": {
630 "shortName": "Client",
631 "fullName": "google.firestore.v1.Client"
632 },
633 "method": {
634 "shortName": "PartitionQuery",
635 "fullName": "google.firestore.v1.Firestore.PartitionQuery",
636 "service": {
637 "shortName": "Firestore",
638 "fullName": "google.firestore.v1.Firestore"
639 }
640 }
641 },
642 "origin": "API_DEFINITION",
643 "segments": [
644 {
645 "start": 18,
646 "end": 66,
647 "type": "FULL"
648 }
649 ]
650 },
651 {
652 "regionTag": "firestore_v1_generated_Firestore_Rollback_sync",
653 "title": "firestore Rollback Sample",
654 "description": "Rollback rolls back a transaction.",
655 "file": "Client/Rollback/main.go",
656 "language": "GO",
657 "clientMethod": {
658 "shortName": "Rollback",
659 "fullName": "google.firestore.v1.Client.Rollback",
660 "parameters": [
661 {
662 "type": "context.Context",
663 "name": "ctx"
664 },
665 {
666 "type": "firestorepb.RollbackRequest",
667 "name": "req"
668 },
669 {
670 "type": "...gax.CallOption",
671 "name": "opts"
672 }
673 ],
674 "client": {
675 "shortName": "Client",
676 "fullName": "google.firestore.v1.Client"
677 },
678 "method": {
679 "shortName": "Rollback",
680 "fullName": "google.firestore.v1.Firestore.Rollback",
681 "service": {
682 "shortName": "Firestore",
683 "fullName": "google.firestore.v1.Firestore"
684 }
685 }
686 },
687 "origin": "API_DEFINITION",
688 "segments": [
689 {
690 "start": 18,
691 "end": 51,
692 "type": "FULL"
693 }
694 ]
695 },
696 {
697 "regionTag": "firestore_v1_generated_Firestore_UpdateDocument_sync",
698 "title": "firestore UpdateDocument Sample",
699 "description": "UpdateDocument updates or inserts a document.",
700 "file": "Client/UpdateDocument/main.go",
701 "language": "GO",
702 "clientMethod": {
703 "shortName": "UpdateDocument",
704 "fullName": "google.firestore.v1.Client.UpdateDocument",
705 "parameters": [
706 {
707 "type": "context.Context",
708 "name": "ctx"
709 },
710 {
711 "type": "firestorepb.UpdateDocumentRequest",
712 "name": "req"
713 },
714 {
715 "type": "...gax.CallOption",
716 "name": "opts"
717 }
718 ],
719 "resultType": "*firestorepb.Document",
720 "client": {
721 "shortName": "Client",
722 "fullName": "google.firestore.v1.Client"
723 },
724 "method": {
725 "shortName": "UpdateDocument",
726 "fullName": "google.firestore.v1.Firestore.UpdateDocument",
727 "service": {
728 "shortName": "Firestore",
729 "fullName": "google.firestore.v1.Firestore"
730 }
731 }
732 },
733 "origin": "API_DEFINITION",
734 "segments": [
735 {
736 "start": 18,
737 "end": 53,
738 "type": "FULL"
739 }
740 ]
741 },
742 {
743 "regionTag": "firestore_v1_generated_Firestore_Write_sync",
744 "title": "firestore Write Sample",
745 "description": "Write streams batches of document updates and deletes, in order. This method is\nonly available via gRPC or WebChannel (not REST).\n\n\nThis method is not supported for the REST transport.",
746 "file": "Client/Write/main.go",
747 "language": "GO",
748 "clientMethod": {
749 "shortName": "Write",
750 "fullName": "google.firestore.v1.Client.Write",
751 "parameters": [
752 {
753 "type": "context.Context",
754 "name": "ctx"
755 },
756 {
757 "type": "...gax.CallOption",
758 "name": "opts"
759 }
760 ],
761 "resultType": "firestorepb.Firestore_WriteClient",
762 "client": {
763 "shortName": "Client",
764 "fullName": "google.firestore.v1.Client"
765 },
766 "method": {
767 "shortName": "Write",
768 "fullName": "google.firestore.v1.Firestore.Write",
769 "service": {
770 "shortName": "Firestore",
771 "fullName": "google.firestore.v1.Firestore"
772 }
773 }
774 },
775 "origin": "API_DEFINITION",
776 "segments": [
777 {
778 "start": 18,
779 "end": 69,
780 "type": "FULL"
781 }
782 ]
783 }
784 ]
785 }