google-cloud-firestore-admin-v1 1.10.0

Google Cloud Client Libraries for Rust - Cloud Firestore API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by sidekick. DO NOT EDIT.
#![allow(rustdoc::redundant_explicit_links)]
#![allow(rustdoc::broken_intra_doc_links)]

/// Implements a client for the Cloud Firestore API.
///
/// # Example
/// ```
/// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
/// use google_cloud_gax::paginator::ItemPaginator as _;
/// async fn sample(
///    parent: &str,
/// ) -> anyhow::Result<()> {
///     let client = FirestoreAdmin::builder().build().await?;
///     let mut list = client.list_indexes()
///         .set_parent(parent)
///         .by_item();
///     while let Some(item) = list.next().await.transpose()? {
///         println!("{:?}", item);
///     }
///     Ok(())
/// }
/// ```
///
/// # Service Description
///
/// The Cloud Firestore Admin API.
///
/// This API provides several administrative services for Cloud Firestore.
///
/// Project, Database, Namespace, Collection, Collection Group, and Document are
/// used as defined in the Google Cloud Firestore API.
///
/// Operation: An Operation represents work being performed in the background.
///
/// The index service manages Cloud Firestore indexes.
///
/// Index creation is performed asynchronously.
/// An Operation resource is created for each such asynchronous operation.
/// The state of the operation (including any errors encountered)
/// may be queried via the Operation resource.
///
/// The Operations collection provides a record of actions performed for the
/// specified Project (including any Operations in progress). Operations are not
/// created directly but through calls on other collections or resources.
///
/// An Operation that is done may be deleted so that it is no longer listed as
/// part of the Operation collection. Operations are garbage collected after
/// 30 days. By default, ListOperations will only return in progress and failed
/// operations. To list completed operation, issue a ListOperations request with
/// the filter `done: true`.
///
/// Operations are created by service `FirestoreAdmin`, but are accessed via
/// service `google.longrunning.Operations`.
///
/// # Configuration
///
/// To configure `FirestoreAdmin` use the `with_*` methods in the type returned
/// by [builder()][FirestoreAdmin::builder]. The default configuration should
/// work for most applications. Common configuration changes include
///
/// * [with_endpoint()]: by default this client uses the global default endpoint
///   (`https://firestore.googleapis.com`). Applications using regional
///   endpoints or running in restricted networks (e.g. a network configured
//    with [Private Google Access with VPC Service Controls]) may want to
///   override this default.
/// * [with_credentials()]: by default this client uses
///   [Application Default Credentials]. Applications using custom
///   authentication may need to override this default.
///
/// [with_endpoint()]: super::builder::firestore_admin::ClientBuilder::with_endpoint
/// [with_credentials()]: super::builder::firestore_admin::ClientBuilder::with_credentials
/// [Private Google Access with VPC Service Controls]: https://cloud.google.com/vpc-service-controls/docs/private-connectivity
/// [Application Default Credentials]: https://cloud.google.com/docs/authentication#adc
///
/// # Pooling and Cloning
///
/// `FirestoreAdmin` holds a connection pool internally, it is advised to
/// create one and reuse it. You do not need to wrap `FirestoreAdmin` in
/// an [Rc](std::rc::Rc) or [Arc](std::sync::Arc) to reuse it, because it
/// already uses an `Arc` internally.
#[derive(Clone, Debug)]
pub struct FirestoreAdmin {
    inner: std::sync::Arc<dyn super::stub::dynamic::FirestoreAdmin>,
}

impl FirestoreAdmin {
    /// Returns a builder for [FirestoreAdmin].
    ///
    /// ```
    /// # async fn sample() -> google_cloud_gax::client_builder::Result<()> {
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// let client = FirestoreAdmin::builder().build().await?;
    /// # Ok(()) }
    /// ```
    pub fn builder() -> super::builder::firestore_admin::ClientBuilder {
        crate::new_client_builder(super::builder::firestore_admin::client::Factory)
    }

    /// Creates a new client from the provided stub.
    ///
    /// The most common case for calling this function is in tests mocking the
    /// client's behavior.
    pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
    where
        T: super::stub::FirestoreAdmin + 'static,
    {
        Self { inner: stub.into() }
    }

    pub(crate) async fn new(
        config: gaxi::options::ClientConfig,
    ) -> crate::ClientBuilderResult<Self> {
        let inner = Self::build_inner(config).await?;
        Ok(Self { inner })
    }

    async fn build_inner(
        conf: gaxi::options::ClientConfig,
    ) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::FirestoreAdmin>> {
        if gaxi::options::tracing_enabled(&conf) {
            return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
        }
        Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
    }

    async fn build_transport(
        conf: gaxi::options::ClientConfig,
    ) -> crate::ClientBuilderResult<impl super::stub::FirestoreAdmin> {
        super::transport::FirestoreAdmin::new(conf).await
    }

    async fn build_with_tracing(
        conf: gaxi::options::ClientConfig,
    ) -> crate::ClientBuilderResult<impl super::stub::FirestoreAdmin> {
        Self::build_transport(conf)
            .await
            .map(super::tracing::FirestoreAdmin::new)
    }

    /// Creates a composite index. This returns a
    /// [google.longrunning.Operation][google.longrunning.Operation] which may be
    /// used to track the status of the creation. The metadata for the operation
    /// will be the type
    /// [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
    ///
    /// [google.firestore.admin.v1.IndexOperationMetadata]: crate::model::IndexOperationMetadata
    /// [google.longrunning.Operation]: google_cloud_longrunning::model::Operation
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_lro::Poller;
    /// use google_cloud_firestore_admin_v1::model::Index;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, parent: &str
    /// ) -> Result<()> {
    ///     let response = client.create_index()
    ///         .set_parent(parent)
    ///         .set_index(
    ///             Index::new()/* set fields */
    ///         )
    ///         .poller().until_done().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn create_index(&self) -> super::builder::firestore_admin::CreateIndex {
        super::builder::firestore_admin::CreateIndex::new(self.inner.clone())
    }

    /// Lists composite indexes.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_gax::paginator::ItemPaginator as _;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, parent: &str
    /// ) -> Result<()> {
    ///     let mut list = client.list_indexes()
    ///         .set_parent(parent)
    ///         .by_item();
    ///     while let Some(item) = list.next().await.transpose()? {
    ///         println!("{:?}", item);
    ///     }
    ///     Ok(())
    /// }
    /// ```
    pub fn list_indexes(&self) -> super::builder::firestore_admin::ListIndexes {
        super::builder::firestore_admin::ListIndexes::new(self.inner.clone())
    }

    /// Gets a composite index.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str, collection_id: &str, index_id: &str
    /// ) -> Result<()> {
    ///     let response = client.get_index()
    ///         .set_name(format!("projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}"))
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn get_index(&self) -> super::builder::firestore_admin::GetIndex {
        super::builder::firestore_admin::GetIndex::new(self.inner.clone())
    }

    /// Deletes a composite index.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str, collection_id: &str, index_id: &str
    /// ) -> Result<()> {
    ///     client.delete_index()
    ///         .set_name(format!("projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}"))
    ///         .send().await?;
    ///     Ok(())
    /// }
    /// ```
    pub fn delete_index(&self) -> super::builder::firestore_admin::DeleteIndex {
        super::builder::firestore_admin::DeleteIndex::new(self.inner.clone())
    }

    /// Gets the metadata and configuration for a Field.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str, collection_id: &str, field_id: &str
    /// ) -> Result<()> {
    ///     let response = client.get_field()
    ///         .set_name(format!("projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}"))
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn get_field(&self) -> super::builder::firestore_admin::GetField {
        super::builder::firestore_admin::GetField::new(self.inner.clone())
    }

    /// Updates a field configuration. Currently, field updates apply only to
    /// single field index configuration. However, calls to
    /// [FirestoreAdmin.UpdateField][google.firestore.admin.v1.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][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][google.firestore.admin.v1.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/*`.
    ///
    /// [google.firestore.admin.v1.FieldOperationMetadata]: crate::model::FieldOperationMetadata
    /// [google.firestore.admin.v1.FirestoreAdmin.UpdateField]: crate::client::FirestoreAdmin::update_field
    /// [google.longrunning.Operation]: google_cloud_longrunning::model::Operation
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_lro::Poller;
    /// # extern crate wkt as google_cloud_wkt;
    /// use google_cloud_wkt::FieldMask;
    /// use google_cloud_firestore_admin_v1::model::Field;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str, collection_id: &str, field_id: &str
    /// ) -> Result<()> {
    ///     let response = client.update_field()
    ///         .set_field(
    ///             Field::new().set_name(format!("projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}"))/* set fields */
    ///         )
    ///         .set_update_mask(FieldMask::default().set_paths(["updated.field.path1", "updated.field.path2"]))
    ///         .poller().until_done().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn update_field(&self) -> super::builder::firestore_admin::UpdateField {
        super::builder::firestore_admin::UpdateField::new(self.inner.clone())
    }

    /// Lists the field configuration and metadata for this database.
    ///
    /// Currently,
    /// [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
    /// only supports listing fields that have been explicitly overridden. To issue
    /// this query, call
    /// [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
    /// with the filter set to `indexConfig.usesAncestorConfig:false` or
    /// `ttlConfig:*`.
    ///
    /// [google.firestore.admin.v1.FirestoreAdmin.ListFields]: crate::client::FirestoreAdmin::list_fields
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_gax::paginator::ItemPaginator as _;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, parent: &str
    /// ) -> Result<()> {
    ///     let mut list = client.list_fields()
    ///         .set_parent(parent)
    ///         .by_item();
    ///     while let Some(item) = list.next().await.transpose()? {
    ///         println!("{:?}", item);
    ///     }
    ///     Ok(())
    /// }
    /// ```
    pub fn list_fields(&self) -> super::builder::firestore_admin::ListFields {
        super::builder::firestore_admin::ListFields::new(self.inner.clone())
    }

    /// 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.
    ///
    /// For more details on export behavior and output format, refer to:
    /// <https://cloud.google.com/firestore/docs/manage-data/export-import>
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_lro::Poller;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     let response = client.export_documents()
    ///         /* set fields */
    ///         .poller().until_done().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn export_documents(&self) -> super::builder::firestore_admin::ExportDocuments {
        super::builder::firestore_admin::ExportDocuments::new(self.inner.clone())
    }

    /// 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.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_lro::Poller;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     client.import_documents()
    ///         /* set fields */
    ///         .poller().until_done().await?;
    ///     Ok(())
    /// }
    /// ```
    pub fn import_documents(&self) -> super::builder::firestore_admin::ImportDocuments {
        super::builder::firestore_admin::ImportDocuments::new(self.inner.clone())
    }

    /// Bulk deletes a subset of documents from Google Cloud Firestore.
    /// Documents created or updated after the underlying system starts to process
    /// the request will not be deleted. The bulk delete occurs in the background
    /// and its progress can be monitored and managed via the Operation resource
    /// that is created.
    ///
    /// For more details on bulk delete behavior, refer to:
    /// <https://cloud.google.com/firestore/docs/manage-data/bulk-delete>
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_lro::Poller;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     let response = client.bulk_delete_documents()
    ///         /* set fields */
    ///         .poller().until_done().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn bulk_delete_documents(&self) -> super::builder::firestore_admin::BulkDeleteDocuments {
        super::builder::firestore_admin::BulkDeleteDocuments::new(self.inner.clone())
    }

    /// Create a database.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_lro::Poller;
    /// use google_cloud_firestore_admin_v1::model::Database;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str
    /// ) -> Result<()> {
    ///     let response = client.create_database()
    ///         .set_parent(format!("projects/{project_id}"))
    ///         .set_database_id("database_id_value")
    ///         .set_database(
    ///             Database::new()/* set fields */
    ///         )
    ///         .poller().until_done().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn create_database(&self) -> super::builder::firestore_admin::CreateDatabase {
        super::builder::firestore_admin::CreateDatabase::new(self.inner.clone())
    }

    /// Gets information about a database.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str
    /// ) -> Result<()> {
    ///     let response = client.get_database()
    ///         .set_name(format!("projects/{project_id}/databases/{database_id}"))
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn get_database(&self) -> super::builder::firestore_admin::GetDatabase {
        super::builder::firestore_admin::GetDatabase::new(self.inner.clone())
    }

    /// List all the databases in the project.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     let response = client.list_databases()
    ///         /* set fields */
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn list_databases(&self) -> super::builder::firestore_admin::ListDatabases {
        super::builder::firestore_admin::ListDatabases::new(self.inner.clone())
    }

    /// Updates a database.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_lro::Poller;
    /// # extern crate wkt as google_cloud_wkt;
    /// use google_cloud_wkt::FieldMask;
    /// use google_cloud_firestore_admin_v1::model::Database;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str
    /// ) -> Result<()> {
    ///     let response = client.update_database()
    ///         .set_database(
    ///             Database::new().set_name(format!("projects/{project_id}/databases/{database_id}"))/* set fields */
    ///         )
    ///         .set_update_mask(FieldMask::default().set_paths(["updated.field.path1", "updated.field.path2"]))
    ///         .poller().until_done().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn update_database(&self) -> super::builder::firestore_admin::UpdateDatabase {
        super::builder::firestore_admin::UpdateDatabase::new(self.inner.clone())
    }

    /// Deletes a database.
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_lro::Poller;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str
    /// ) -> Result<()> {
    ///     let response = client.delete_database()
    ///         .set_name(format!("projects/{project_id}/databases/{database_id}"))
    ///         .poller().until_done().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn delete_database(&self) -> super::builder::firestore_admin::DeleteDatabase {
        super::builder::firestore_admin::DeleteDatabase::new(self.inner.clone())
    }

    /// Create a user creds.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::model::UserCreds;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str
    /// ) -> Result<()> {
    ///     let response = client.create_user_creds()
    ///         .set_parent(format!("projects/{project_id}/databases/{database_id}"))
    ///         .set_user_creds(
    ///             UserCreds::new()/* set fields */
    ///         )
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn create_user_creds(&self) -> super::builder::firestore_admin::CreateUserCreds {
        super::builder::firestore_admin::CreateUserCreds::new(self.inner.clone())
    }

    /// Gets a user creds resource. Note that the returned resource does not
    /// contain the secret value itself.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str, user_creds_id: &str
    /// ) -> Result<()> {
    ///     let response = client.get_user_creds()
    ///         .set_name(format!("projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}"))
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn get_user_creds(&self) -> super::builder::firestore_admin::GetUserCreds {
        super::builder::firestore_admin::GetUserCreds::new(self.inner.clone())
    }

    /// List all user creds in the database. Note that the returned resource
    /// does not contain the secret value itself.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     let response = client.list_user_creds()
    ///         /* set fields */
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn list_user_creds(&self) -> super::builder::firestore_admin::ListUserCreds {
        super::builder::firestore_admin::ListUserCreds::new(self.inner.clone())
    }

    /// Enables a user creds. No-op if the user creds are already enabled.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     let response = client.enable_user_creds()
    ///         /* set fields */
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn enable_user_creds(&self) -> super::builder::firestore_admin::EnableUserCreds {
        super::builder::firestore_admin::EnableUserCreds::new(self.inner.clone())
    }

    /// Disables a user creds. No-op if the user creds are already disabled.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     let response = client.disable_user_creds()
    ///         /* set fields */
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn disable_user_creds(&self) -> super::builder::firestore_admin::DisableUserCreds {
        super::builder::firestore_admin::DisableUserCreds::new(self.inner.clone())
    }

    /// Resets the password of a user creds.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     let response = client.reset_user_password()
    ///         /* set fields */
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn reset_user_password(&self) -> super::builder::firestore_admin::ResetUserPassword {
        super::builder::firestore_admin::ResetUserPassword::new(self.inner.clone())
    }

    /// Deletes a user creds.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str, user_creds_id: &str
    /// ) -> Result<()> {
    ///     client.delete_user_creds()
    ///         .set_name(format!("projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}"))
    ///         .send().await?;
    ///     Ok(())
    /// }
    /// ```
    pub fn delete_user_creds(&self) -> super::builder::firestore_admin::DeleteUserCreds {
        super::builder::firestore_admin::DeleteUserCreds::new(self.inner.clone())
    }

    /// Gets information about a backup.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, location_id: &str, backup_id: &str
    /// ) -> Result<()> {
    ///     let response = client.get_backup()
    ///         .set_name(format!("projects/{project_id}/locations/{location_id}/backups/{backup_id}"))
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn get_backup(&self) -> super::builder::firestore_admin::GetBackup {
        super::builder::firestore_admin::GetBackup::new(self.inner.clone())
    }

    /// Lists all the backups.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     let response = client.list_backups()
    ///         /* set fields */
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn list_backups(&self) -> super::builder::firestore_admin::ListBackups {
        super::builder::firestore_admin::ListBackups::new(self.inner.clone())
    }

    /// Deletes a backup.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, location_id: &str, backup_id: &str
    /// ) -> Result<()> {
    ///     client.delete_backup()
    ///         .set_name(format!("projects/{project_id}/locations/{location_id}/backups/{backup_id}"))
    ///         .send().await?;
    ///     Ok(())
    /// }
    /// ```
    pub fn delete_backup(&self) -> super::builder::firestore_admin::DeleteBackup {
        super::builder::firestore_admin::DeleteBackup::new(self.inner.clone())
    }

    /// Creates a new database by restoring from an existing backup.
    ///
    /// The new database must be in the same cloud region or multi-region location
    /// as the existing backup. This behaves similar to
    /// [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]
    /// except instead of creating a new empty database, a new database is created
    /// with the database type, index configuration, and documents from an existing
    /// backup.
    ///
    /// The [long-running operation][google.longrunning.Operation] can be used to
    /// track the progress of the restore, with the Operation's
    /// [metadata][google.longrunning.Operation.metadata] field type being the
    /// [RestoreDatabaseMetadata][google.firestore.admin.v1.RestoreDatabaseMetadata].
    /// The [response][google.longrunning.Operation.response] type is the
    /// [Database][google.firestore.admin.v1.Database] if the restore was
    /// successful. The new database is not readable or writeable until the LRO has
    /// completed.
    ///
    /// [google.firestore.admin.v1.Database]: crate::model::Database
    /// [google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]: crate::client::FirestoreAdmin::create_database
    /// [google.firestore.admin.v1.RestoreDatabaseMetadata]: crate::model::RestoreDatabaseMetadata
    /// [google.longrunning.Operation]: google_cloud_longrunning::model::Operation
    /// [google.longrunning.Operation.metadata]: google_cloud_longrunning::model::Operation::metadata
    /// [google.longrunning.Operation.response]: google_cloud_longrunning::model::Operation::result
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_lro::Poller;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     let response = client.restore_database()
    ///         /* set fields */
    ///         .poller().until_done().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn restore_database(&self) -> super::builder::firestore_admin::RestoreDatabase {
        super::builder::firestore_admin::RestoreDatabase::new(self.inner.clone())
    }

    /// Creates a backup schedule on a database.
    /// At most two backup schedules can be configured on a database, one daily
    /// backup schedule and one weekly backup schedule.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::model::BackupSchedule;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str
    /// ) -> Result<()> {
    ///     let response = client.create_backup_schedule()
    ///         .set_parent(format!("projects/{project_id}/databases/{database_id}"))
    ///         .set_backup_schedule(
    ///             BackupSchedule::new()/* set fields */
    ///         )
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn create_backup_schedule(&self) -> super::builder::firestore_admin::CreateBackupSchedule {
        super::builder::firestore_admin::CreateBackupSchedule::new(self.inner.clone())
    }

    /// Gets information about a backup schedule.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str, backup_schedule_id: &str
    /// ) -> Result<()> {
    ///     let response = client.get_backup_schedule()
    ///         .set_name(format!("projects/{project_id}/databases/{database_id}/backupSchedules/{backup_schedule_id}"))
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn get_backup_schedule(&self) -> super::builder::firestore_admin::GetBackupSchedule {
        super::builder::firestore_admin::GetBackupSchedule::new(self.inner.clone())
    }

    /// List backup schedules.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     let response = client.list_backup_schedules()
    ///         /* set fields */
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn list_backup_schedules(&self) -> super::builder::firestore_admin::ListBackupSchedules {
        super::builder::firestore_admin::ListBackupSchedules::new(self.inner.clone())
    }

    /// Updates a backup schedule.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// # extern crate wkt as google_cloud_wkt;
    /// use google_cloud_wkt::FieldMask;
    /// use google_cloud_firestore_admin_v1::model::BackupSchedule;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str, backup_schedule_id: &str
    /// ) -> Result<()> {
    ///     let response = client.update_backup_schedule()
    ///         .set_backup_schedule(
    ///             BackupSchedule::new().set_name(format!("projects/{project_id}/databases/{database_id}/backupSchedules/{backup_schedule_id}"))/* set fields */
    ///         )
    ///         .set_update_mask(FieldMask::default().set_paths(["updated.field.path1", "updated.field.path2"]))
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn update_backup_schedule(&self) -> super::builder::firestore_admin::UpdateBackupSchedule {
        super::builder::firestore_admin::UpdateBackupSchedule::new(self.inner.clone())
    }

    /// Deletes a backup schedule.
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin, project_id: &str, database_id: &str, backup_schedule_id: &str
    /// ) -> Result<()> {
    ///     client.delete_backup_schedule()
    ///         .set_name(format!("projects/{project_id}/databases/{database_id}/backupSchedules/{backup_schedule_id}"))
    ///         .send().await?;
    ///     Ok(())
    /// }
    /// ```
    pub fn delete_backup_schedule(&self) -> super::builder::firestore_admin::DeleteBackupSchedule {
        super::builder::firestore_admin::DeleteBackupSchedule::new(self.inner.clone())
    }

    /// Creates a new database by cloning an existing one.
    ///
    /// The new database must be in the same cloud region or multi-region location
    /// as the existing database. This behaves similar to
    /// [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]
    /// except instead of creating a new empty database, a new database is created
    /// with the database type, index configuration, and documents from an existing
    /// database.
    ///
    /// The [long-running operation][google.longrunning.Operation] can be used to
    /// track the progress of the clone, with the Operation's
    /// [metadata][google.longrunning.Operation.metadata] field type being the
    /// [CloneDatabaseMetadata][google.firestore.admin.v1.CloneDatabaseMetadata].
    /// The [response][google.longrunning.Operation.response] type is the
    /// [Database][google.firestore.admin.v1.Database] if the clone was
    /// successful. The new database is not readable or writeable until the LRO has
    /// completed.
    ///
    /// [google.firestore.admin.v1.CloneDatabaseMetadata]: crate::model::CloneDatabaseMetadata
    /// [google.firestore.admin.v1.Database]: crate::model::Database
    /// [google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]: crate::client::FirestoreAdmin::create_database
    /// [google.longrunning.Operation]: google_cloud_longrunning::model::Operation
    /// [google.longrunning.Operation.metadata]: google_cloud_longrunning::model::Operation::metadata
    /// [google.longrunning.Operation.response]: google_cloud_longrunning::model::Operation::result
    ///
    /// # Long running operations
    ///
    /// This method is used to start, and/or poll a [long-running Operation].
    /// The [Working with long-running operations] chapter in the [user guide]
    /// covers these operations in detail.
    ///
    /// [long-running operation]: https://google.aip.dev/151
    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_lro::Poller;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     let response = client.clone_database()
    ///         /* set fields */
    ///         .poller().until_done().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn clone_database(&self) -> super::builder::firestore_admin::CloneDatabase {
        super::builder::firestore_admin::CloneDatabase::new(self.inner.clone())
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: google-cloud-longrunning::client::Operations
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_gax::paginator::ItemPaginator as _;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     let mut list = client.list_operations()
    ///         /* set fields */
    ///         .by_item();
    ///     while let Some(item) = list.next().await.transpose()? {
    ///         println!("{:?}", item);
    ///     }
    ///     Ok(())
    /// }
    /// ```
    pub fn list_operations(&self) -> super::builder::firestore_admin::ListOperations {
        super::builder::firestore_admin::ListOperations::new(self.inner.clone())
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: google-cloud-longrunning::client::Operations
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     let response = client.get_operation()
    ///         /* set fields */
    ///         .send().await?;
    ///     println!("response {:?}", response);
    ///     Ok(())
    /// }
    /// ```
    pub fn get_operation(&self) -> super::builder::firestore_admin::GetOperation {
        super::builder::firestore_admin::GetOperation::new(self.inner.clone())
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: google-cloud-longrunning::client::Operations
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     client.delete_operation()
    ///         /* set fields */
    ///         .send().await?;
    ///     Ok(())
    /// }
    /// ```
    pub fn delete_operation(&self) -> super::builder::firestore_admin::DeleteOperation {
        super::builder::firestore_admin::DeleteOperation::new(self.inner.clone())
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: google-cloud-longrunning::client::Operations
    ///
    /// # Example
    /// ```
    /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
    /// use google_cloud_firestore_admin_v1::Result;
    /// async fn sample(
    ///    client: &FirestoreAdmin
    /// ) -> Result<()> {
    ///     client.cancel_operation()
    ///         /* set fields */
    ///         .send().await?;
    ///     Ok(())
    /// }
    /// ```
    pub fn cancel_operation(&self) -> super::builder::firestore_admin::CancelOperation {
        super::builder::firestore_admin::CancelOperation::new(self.inner.clone())
    }
}