@@ -918,6 +918,20 @@ export namespace google {
918
918
*/
919
919
public importDocuments ( request : google . firestore . admin . v1 . IImportDocumentsRequest ) : Promise < google . longrunning . Operation > ;
920
920
921
+ /**
922
+ * Calls BulkDeleteDocuments.
923
+ * @param request BulkDeleteDocumentsRequest message or plain object
924
+ * @param callback Node-style callback called with the error, if any, and Operation
925
+ */
926
+ public bulkDeleteDocuments ( request : google . firestore . admin . v1 . IBulkDeleteDocumentsRequest , callback : google . firestore . admin . v1 . FirestoreAdmin . BulkDeleteDocumentsCallback ) : void ;
927
+
928
+ /**
929
+ * Calls BulkDeleteDocuments.
930
+ * @param request BulkDeleteDocumentsRequest message or plain object
931
+ * @returns Promise
932
+ */
933
+ public bulkDeleteDocuments ( request : google . firestore . admin . v1 . IBulkDeleteDocumentsRequest ) : Promise < google . longrunning . Operation > ;
934
+
921
935
/**
922
936
* Calls CreateDatabase.
923
937
* @param request CreateDatabaseRequest message or plain object
@@ -1180,6 +1194,13 @@ export namespace google {
1180
1194
*/
1181
1195
type ImportDocumentsCallback = ( error : ( Error | null ) , response ?: google . longrunning . Operation ) => void ;
1182
1196
1197
+ /**
1198
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin#bulkDeleteDocuments}.
1199
+ * @param error Error, if any
1200
+ * @param [response] Operation
1201
+ */
1202
+ type BulkDeleteDocumentsCallback = ( error : ( Error | null ) , response ?: google . longrunning . Operation ) => void ;
1203
+
1183
1204
/**
1184
1205
* Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin#createDatabase}.
1185
1206
* @param error Error, if any
@@ -1284,6 +1305,9 @@ export namespace google {
1284
1305
1285
1306
/** ListDatabasesRequest parent */
1286
1307
parent ?: ( string | null ) ;
1308
+
1309
+ /** ListDatabasesRequest showDeleted */
1310
+ showDeleted ?: ( boolean | null ) ;
1287
1311
}
1288
1312
1289
1313
/** Represents a ListDatabasesRequest. */
@@ -1298,6 +1322,9 @@ export namespace google {
1298
1322
/** ListDatabasesRequest parent. */
1299
1323
public parent : string ;
1300
1324
1325
+ /** ListDatabasesRequest showDeleted. */
1326
+ public showDeleted : boolean ;
1327
+
1301
1328
/**
1302
1329
* Creates a ListDatabasesRequest message from a plain object. Also converts values to their respective internal types.
1303
1330
* @param object Plain object
@@ -2653,6 +2680,108 @@ export namespace google {
2653
2680
public static getTypeUrl ( typeUrlPrefix ?: string ) : string ;
2654
2681
}
2655
2682
2683
+ /** Properties of a BulkDeleteDocumentsRequest. */
2684
+ interface IBulkDeleteDocumentsRequest {
2685
+
2686
+ /** BulkDeleteDocumentsRequest name */
2687
+ name ?: ( string | null ) ;
2688
+
2689
+ /** BulkDeleteDocumentsRequest collectionIds */
2690
+ collectionIds ?: ( string [ ] | null ) ;
2691
+
2692
+ /** BulkDeleteDocumentsRequest namespaceIds */
2693
+ namespaceIds ?: ( string [ ] | null ) ;
2694
+ }
2695
+
2696
+ /** Represents a BulkDeleteDocumentsRequest. */
2697
+ class BulkDeleteDocumentsRequest implements IBulkDeleteDocumentsRequest {
2698
+
2699
+ /**
2700
+ * Constructs a new BulkDeleteDocumentsRequest.
2701
+ * @param [properties] Properties to set
2702
+ */
2703
+ constructor ( properties ?: google . firestore . admin . v1 . IBulkDeleteDocumentsRequest ) ;
2704
+
2705
+ /** BulkDeleteDocumentsRequest name. */
2706
+ public name : string ;
2707
+
2708
+ /** BulkDeleteDocumentsRequest collectionIds. */
2709
+ public collectionIds : string [ ] ;
2710
+
2711
+ /** BulkDeleteDocumentsRequest namespaceIds. */
2712
+ public namespaceIds : string [ ] ;
2713
+
2714
+ /**
2715
+ * Creates a BulkDeleteDocumentsRequest message from a plain object. Also converts values to their respective internal types.
2716
+ * @param object Plain object
2717
+ * @returns BulkDeleteDocumentsRequest
2718
+ */
2719
+ public static fromObject ( object : { [ k : string ] : any } ) : google . firestore . admin . v1 . BulkDeleteDocumentsRequest ;
2720
+
2721
+ /**
2722
+ * Creates a plain object from a BulkDeleteDocumentsRequest message. Also converts values to other types if specified.
2723
+ * @param message BulkDeleteDocumentsRequest
2724
+ * @param [options] Conversion options
2725
+ * @returns Plain object
2726
+ */
2727
+ public static toObject ( message : google . firestore . admin . v1 . BulkDeleteDocumentsRequest , options ?: $protobuf . IConversionOptions ) : { [ k : string ] : any } ;
2728
+
2729
+ /**
2730
+ * Converts this BulkDeleteDocumentsRequest to JSON.
2731
+ * @returns JSON object
2732
+ */
2733
+ public toJSON ( ) : { [ k : string ] : any } ;
2734
+
2735
+ /**
2736
+ * Gets the default type url for BulkDeleteDocumentsRequest
2737
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2738
+ * @returns The default type url
2739
+ */
2740
+ public static getTypeUrl ( typeUrlPrefix ?: string ) : string ;
2741
+ }
2742
+
2743
+ /** Properties of a BulkDeleteDocumentsResponse. */
2744
+ interface IBulkDeleteDocumentsResponse {
2745
+ }
2746
+
2747
+ /** Represents a BulkDeleteDocumentsResponse. */
2748
+ class BulkDeleteDocumentsResponse implements IBulkDeleteDocumentsResponse {
2749
+
2750
+ /**
2751
+ * Constructs a new BulkDeleteDocumentsResponse.
2752
+ * @param [properties] Properties to set
2753
+ */
2754
+ constructor ( properties ?: google . firestore . admin . v1 . IBulkDeleteDocumentsResponse ) ;
2755
+
2756
+ /**
2757
+ * Creates a BulkDeleteDocumentsResponse message from a plain object. Also converts values to their respective internal types.
2758
+ * @param object Plain object
2759
+ * @returns BulkDeleteDocumentsResponse
2760
+ */
2761
+ public static fromObject ( object : { [ k : string ] : any } ) : google . firestore . admin . v1 . BulkDeleteDocumentsResponse ;
2762
+
2763
+ /**
2764
+ * Creates a plain object from a BulkDeleteDocumentsResponse message. Also converts values to other types if specified.
2765
+ * @param message BulkDeleteDocumentsResponse
2766
+ * @param [options] Conversion options
2767
+ * @returns Plain object
2768
+ */
2769
+ public static toObject ( message : google . firestore . admin . v1 . BulkDeleteDocumentsResponse , options ?: $protobuf . IConversionOptions ) : { [ k : string ] : any } ;
2770
+
2771
+ /**
2772
+ * Converts this BulkDeleteDocumentsResponse to JSON.
2773
+ * @returns JSON object
2774
+ */
2775
+ public toJSON ( ) : { [ k : string ] : any } ;
2776
+
2777
+ /**
2778
+ * Gets the default type url for BulkDeleteDocumentsResponse
2779
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2780
+ * @returns The default type url
2781
+ */
2782
+ public static getTypeUrl ( typeUrlPrefix ?: string ) : string ;
2783
+ }
2784
+
2656
2785
/** Properties of a GetBackupRequest. */
2657
2786
interface IGetBackupRequest {
2658
2787
@@ -3384,6 +3513,96 @@ export namespace google {
3384
3513
public static getTypeUrl ( typeUrlPrefix ?: string ) : string ;
3385
3514
}
3386
3515
3516
+ /** Properties of a BulkDeleteDocumentsMetadata. */
3517
+ interface IBulkDeleteDocumentsMetadata {
3518
+
3519
+ /** BulkDeleteDocumentsMetadata startTime */
3520
+ startTime ?: ( google . protobuf . ITimestamp | null ) ;
3521
+
3522
+ /** BulkDeleteDocumentsMetadata endTime */
3523
+ endTime ?: ( google . protobuf . ITimestamp | null ) ;
3524
+
3525
+ /** BulkDeleteDocumentsMetadata operationState */
3526
+ operationState ?: ( google . firestore . admin . v1 . OperationState | null ) ;
3527
+
3528
+ /** BulkDeleteDocumentsMetadata progressDocuments */
3529
+ progressDocuments ?: ( google . firestore . admin . v1 . IProgress | null ) ;
3530
+
3531
+ /** BulkDeleteDocumentsMetadata progressBytes */
3532
+ progressBytes ?: ( google . firestore . admin . v1 . IProgress | null ) ;
3533
+
3534
+ /** BulkDeleteDocumentsMetadata collectionIds */
3535
+ collectionIds ?: ( string [ ] | null ) ;
3536
+
3537
+ /** BulkDeleteDocumentsMetadata namespaceIds */
3538
+ namespaceIds ?: ( string [ ] | null ) ;
3539
+
3540
+ /** BulkDeleteDocumentsMetadata snapshotTime */
3541
+ snapshotTime ?: ( google . protobuf . ITimestamp | null ) ;
3542
+ }
3543
+
3544
+ /** Represents a BulkDeleteDocumentsMetadata. */
3545
+ class BulkDeleteDocumentsMetadata implements IBulkDeleteDocumentsMetadata {
3546
+
3547
+ /**
3548
+ * Constructs a new BulkDeleteDocumentsMetadata.
3549
+ * @param [properties] Properties to set
3550
+ */
3551
+ constructor ( properties ?: google . firestore . admin . v1 . IBulkDeleteDocumentsMetadata ) ;
3552
+
3553
+ /** BulkDeleteDocumentsMetadata startTime. */
3554
+ public startTime ?: ( google . protobuf . ITimestamp | null ) ;
3555
+
3556
+ /** BulkDeleteDocumentsMetadata endTime. */
3557
+ public endTime ?: ( google . protobuf . ITimestamp | null ) ;
3558
+
3559
+ /** BulkDeleteDocumentsMetadata operationState. */
3560
+ public operationState : google . firestore . admin . v1 . OperationState ;
3561
+
3562
+ /** BulkDeleteDocumentsMetadata progressDocuments. */
3563
+ public progressDocuments ?: ( google . firestore . admin . v1 . IProgress | null ) ;
3564
+
3565
+ /** BulkDeleteDocumentsMetadata progressBytes. */
3566
+ public progressBytes ?: ( google . firestore . admin . v1 . IProgress | null ) ;
3567
+
3568
+ /** BulkDeleteDocumentsMetadata collectionIds. */
3569
+ public collectionIds : string [ ] ;
3570
+
3571
+ /** BulkDeleteDocumentsMetadata namespaceIds. */
3572
+ public namespaceIds : string [ ] ;
3573
+
3574
+ /** BulkDeleteDocumentsMetadata snapshotTime. */
3575
+ public snapshotTime ?: ( google . protobuf . ITimestamp | null ) ;
3576
+
3577
+ /**
3578
+ * Creates a BulkDeleteDocumentsMetadata message from a plain object. Also converts values to their respective internal types.
3579
+ * @param object Plain object
3580
+ * @returns BulkDeleteDocumentsMetadata
3581
+ */
3582
+ public static fromObject ( object : { [ k : string ] : any } ) : google . firestore . admin . v1 . BulkDeleteDocumentsMetadata ;
3583
+
3584
+ /**
3585
+ * Creates a plain object from a BulkDeleteDocumentsMetadata message. Also converts values to other types if specified.
3586
+ * @param message BulkDeleteDocumentsMetadata
3587
+ * @param [options] Conversion options
3588
+ * @returns Plain object
3589
+ */
3590
+ public static toObject ( message : google . firestore . admin . v1 . BulkDeleteDocumentsMetadata , options ?: $protobuf . IConversionOptions ) : { [ k : string ] : any } ;
3591
+
3592
+ /**
3593
+ * Converts this BulkDeleteDocumentsMetadata to JSON.
3594
+ * @returns JSON object
3595
+ */
3596
+ public toJSON ( ) : { [ k : string ] : any } ;
3597
+
3598
+ /**
3599
+ * Gets the default type url for BulkDeleteDocumentsMetadata
3600
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3601
+ * @returns The default type url
3602
+ */
3603
+ public static getTypeUrl ( typeUrlPrefix ?: string ) : string ;
3604
+ }
3605
+
3387
3606
/** Properties of an ExportDocumentsResponse. */
3388
3607
interface IExportDocumentsResponse {
3389
3608
0 commit comments