|
33 | 33 | import com.google.api.gax.rpc.TransportChannelProvider;
|
34 | 34 | import com.google.api.gax.rpc.UnaryCallSettings;
|
35 | 35 | import com.google.cloud.firestore.v1.stub.FirestoreAdminStubSettings;
|
| 36 | +import com.google.firestore.admin.v1.Backup; |
| 37 | +import com.google.firestore.admin.v1.BackupSchedule; |
| 38 | +import com.google.firestore.admin.v1.CreateBackupScheduleRequest; |
36 | 39 | import com.google.firestore.admin.v1.CreateDatabaseMetadata;
|
37 | 40 | import com.google.firestore.admin.v1.CreateDatabaseRequest;
|
38 | 41 | import com.google.firestore.admin.v1.CreateIndexRequest;
|
39 | 42 | import com.google.firestore.admin.v1.Database;
|
| 43 | +import com.google.firestore.admin.v1.DeleteBackupRequest; |
| 44 | +import com.google.firestore.admin.v1.DeleteBackupScheduleRequest; |
40 | 45 | import com.google.firestore.admin.v1.DeleteDatabaseMetadata;
|
41 | 46 | import com.google.firestore.admin.v1.DeleteDatabaseRequest;
|
42 | 47 | import com.google.firestore.admin.v1.DeleteIndexRequest;
|
|
45 | 50 | import com.google.firestore.admin.v1.ExportDocumentsResponse;
|
46 | 51 | import com.google.firestore.admin.v1.Field;
|
47 | 52 | import com.google.firestore.admin.v1.FieldOperationMetadata;
|
| 53 | +import com.google.firestore.admin.v1.GetBackupRequest; |
| 54 | +import com.google.firestore.admin.v1.GetBackupScheduleRequest; |
48 | 55 | import com.google.firestore.admin.v1.GetDatabaseRequest;
|
49 | 56 | import com.google.firestore.admin.v1.GetFieldRequest;
|
50 | 57 | import com.google.firestore.admin.v1.GetIndexRequest;
|
51 | 58 | import com.google.firestore.admin.v1.ImportDocumentsMetadata;
|
52 | 59 | import com.google.firestore.admin.v1.ImportDocumentsRequest;
|
53 | 60 | import com.google.firestore.admin.v1.Index;
|
54 | 61 | import com.google.firestore.admin.v1.IndexOperationMetadata;
|
| 62 | +import com.google.firestore.admin.v1.ListBackupSchedulesRequest; |
| 63 | +import com.google.firestore.admin.v1.ListBackupSchedulesResponse; |
| 64 | +import com.google.firestore.admin.v1.ListBackupsRequest; |
| 65 | +import com.google.firestore.admin.v1.ListBackupsResponse; |
55 | 66 | import com.google.firestore.admin.v1.ListDatabasesRequest;
|
56 | 67 | import com.google.firestore.admin.v1.ListDatabasesResponse;
|
57 | 68 | import com.google.firestore.admin.v1.ListFieldsRequest;
|
58 | 69 | import com.google.firestore.admin.v1.ListFieldsResponse;
|
59 | 70 | import com.google.firestore.admin.v1.ListIndexesRequest;
|
60 | 71 | import com.google.firestore.admin.v1.ListIndexesResponse;
|
| 72 | +import com.google.firestore.admin.v1.RestoreDatabaseMetadata; |
| 73 | +import com.google.firestore.admin.v1.RestoreDatabaseRequest; |
| 74 | +import com.google.firestore.admin.v1.UpdateBackupScheduleRequest; |
61 | 75 | import com.google.firestore.admin.v1.UpdateDatabaseMetadata;
|
62 | 76 | import com.google.firestore.admin.v1.UpdateDatabaseRequest;
|
63 | 77 | import com.google.firestore.admin.v1.UpdateFieldRequest;
|
@@ -222,6 +236,60 @@ public UnaryCallSettings<DeleteDatabaseRequest, Operation> deleteDatabaseSetting
|
222 | 236 | return ((FirestoreAdminStubSettings) getStubSettings()).deleteDatabaseOperationSettings();
|
223 | 237 | }
|
224 | 238 |
|
| 239 | + /** Returns the object with the settings used for calls to getBackup. */ |
| 240 | + public UnaryCallSettings<GetBackupRequest, Backup> getBackupSettings() { |
| 241 | + return ((FirestoreAdminStubSettings) getStubSettings()).getBackupSettings(); |
| 242 | + } |
| 243 | + |
| 244 | + /** Returns the object with the settings used for calls to listBackups. */ |
| 245 | + public UnaryCallSettings<ListBackupsRequest, ListBackupsResponse> listBackupsSettings() { |
| 246 | + return ((FirestoreAdminStubSettings) getStubSettings()).listBackupsSettings(); |
| 247 | + } |
| 248 | + |
| 249 | + /** Returns the object with the settings used for calls to deleteBackup. */ |
| 250 | + public UnaryCallSettings<DeleteBackupRequest, Empty> deleteBackupSettings() { |
| 251 | + return ((FirestoreAdminStubSettings) getStubSettings()).deleteBackupSettings(); |
| 252 | + } |
| 253 | + |
| 254 | + /** Returns the object with the settings used for calls to restoreDatabase. */ |
| 255 | + public UnaryCallSettings<RestoreDatabaseRequest, Operation> restoreDatabaseSettings() { |
| 256 | + return ((FirestoreAdminStubSettings) getStubSettings()).restoreDatabaseSettings(); |
| 257 | + } |
| 258 | + |
| 259 | + /** Returns the object with the settings used for calls to restoreDatabase. */ |
| 260 | + public OperationCallSettings<RestoreDatabaseRequest, Database, RestoreDatabaseMetadata> |
| 261 | + restoreDatabaseOperationSettings() { |
| 262 | + return ((FirestoreAdminStubSettings) getStubSettings()).restoreDatabaseOperationSettings(); |
| 263 | + } |
| 264 | + |
| 265 | + /** Returns the object with the settings used for calls to createBackupSchedule. */ |
| 266 | + public UnaryCallSettings<CreateBackupScheduleRequest, BackupSchedule> |
| 267 | + createBackupScheduleSettings() { |
| 268 | + return ((FirestoreAdminStubSettings) getStubSettings()).createBackupScheduleSettings(); |
| 269 | + } |
| 270 | + |
| 271 | + /** Returns the object with the settings used for calls to getBackupSchedule. */ |
| 272 | + public UnaryCallSettings<GetBackupScheduleRequest, BackupSchedule> getBackupScheduleSettings() { |
| 273 | + return ((FirestoreAdminStubSettings) getStubSettings()).getBackupScheduleSettings(); |
| 274 | + } |
| 275 | + |
| 276 | + /** Returns the object with the settings used for calls to listBackupSchedules. */ |
| 277 | + public UnaryCallSettings<ListBackupSchedulesRequest, ListBackupSchedulesResponse> |
| 278 | + listBackupSchedulesSettings() { |
| 279 | + return ((FirestoreAdminStubSettings) getStubSettings()).listBackupSchedulesSettings(); |
| 280 | + } |
| 281 | + |
| 282 | + /** Returns the object with the settings used for calls to updateBackupSchedule. */ |
| 283 | + public UnaryCallSettings<UpdateBackupScheduleRequest, BackupSchedule> |
| 284 | + updateBackupScheduleSettings() { |
| 285 | + return ((FirestoreAdminStubSettings) getStubSettings()).updateBackupScheduleSettings(); |
| 286 | + } |
| 287 | + |
| 288 | + /** Returns the object with the settings used for calls to deleteBackupSchedule. */ |
| 289 | + public UnaryCallSettings<DeleteBackupScheduleRequest, Empty> deleteBackupScheduleSettings() { |
| 290 | + return ((FirestoreAdminStubSettings) getStubSettings()).deleteBackupScheduleSettings(); |
| 291 | + } |
| 292 | + |
225 | 293 | public static final FirestoreAdminSettings create(FirestoreAdminStubSettings stub)
|
226 | 294 | throws IOException {
|
227 | 295 | return new FirestoreAdminSettings.Builder(stub.toBuilder()).build();
|
@@ -451,6 +519,63 @@ public UnaryCallSettings.Builder<DeleteDatabaseRequest, Operation> deleteDatabas
|
451 | 519 | return getStubSettingsBuilder().deleteDatabaseOperationSettings();
|
452 | 520 | }
|
453 | 521 |
|
| 522 | + /** Returns the builder for the settings used for calls to getBackup. */ |
| 523 | + public UnaryCallSettings.Builder<GetBackupRequest, Backup> getBackupSettings() { |
| 524 | + return getStubSettingsBuilder().getBackupSettings(); |
| 525 | + } |
| 526 | + |
| 527 | + /** Returns the builder for the settings used for calls to listBackups. */ |
| 528 | + public UnaryCallSettings.Builder<ListBackupsRequest, ListBackupsResponse> |
| 529 | + listBackupsSettings() { |
| 530 | + return getStubSettingsBuilder().listBackupsSettings(); |
| 531 | + } |
| 532 | + |
| 533 | + /** Returns the builder for the settings used for calls to deleteBackup. */ |
| 534 | + public UnaryCallSettings.Builder<DeleteBackupRequest, Empty> deleteBackupSettings() { |
| 535 | + return getStubSettingsBuilder().deleteBackupSettings(); |
| 536 | + } |
| 537 | + |
| 538 | + /** Returns the builder for the settings used for calls to restoreDatabase. */ |
| 539 | + public UnaryCallSettings.Builder<RestoreDatabaseRequest, Operation> restoreDatabaseSettings() { |
| 540 | + return getStubSettingsBuilder().restoreDatabaseSettings(); |
| 541 | + } |
| 542 | + |
| 543 | + /** Returns the builder for the settings used for calls to restoreDatabase. */ |
| 544 | + public OperationCallSettings.Builder<RestoreDatabaseRequest, Database, RestoreDatabaseMetadata> |
| 545 | + restoreDatabaseOperationSettings() { |
| 546 | + return getStubSettingsBuilder().restoreDatabaseOperationSettings(); |
| 547 | + } |
| 548 | + |
| 549 | + /** Returns the builder for the settings used for calls to createBackupSchedule. */ |
| 550 | + public UnaryCallSettings.Builder<CreateBackupScheduleRequest, BackupSchedule> |
| 551 | + createBackupScheduleSettings() { |
| 552 | + return getStubSettingsBuilder().createBackupScheduleSettings(); |
| 553 | + } |
| 554 | + |
| 555 | + /** Returns the builder for the settings used for calls to getBackupSchedule. */ |
| 556 | + public UnaryCallSettings.Builder<GetBackupScheduleRequest, BackupSchedule> |
| 557 | + getBackupScheduleSettings() { |
| 558 | + return getStubSettingsBuilder().getBackupScheduleSettings(); |
| 559 | + } |
| 560 | + |
| 561 | + /** Returns the builder for the settings used for calls to listBackupSchedules. */ |
| 562 | + public UnaryCallSettings.Builder<ListBackupSchedulesRequest, ListBackupSchedulesResponse> |
| 563 | + listBackupSchedulesSettings() { |
| 564 | + return getStubSettingsBuilder().listBackupSchedulesSettings(); |
| 565 | + } |
| 566 | + |
| 567 | + /** Returns the builder for the settings used for calls to updateBackupSchedule. */ |
| 568 | + public UnaryCallSettings.Builder<UpdateBackupScheduleRequest, BackupSchedule> |
| 569 | + updateBackupScheduleSettings() { |
| 570 | + return getStubSettingsBuilder().updateBackupScheduleSettings(); |
| 571 | + } |
| 572 | + |
| 573 | + /** Returns the builder for the settings used for calls to deleteBackupSchedule. */ |
| 574 | + public UnaryCallSettings.Builder<DeleteBackupScheduleRequest, Empty> |
| 575 | + deleteBackupScheduleSettings() { |
| 576 | + return getStubSettingsBuilder().deleteBackupScheduleSettings(); |
| 577 | + } |
| 578 | + |
454 | 579 | @Override
|
455 | 580 | public FirestoreAdminSettings build() throws IOException {
|
456 | 581 | return new FirestoreAdminSettings(this);
|
|
0 commit comments