|
15 | 15 | */ |
16 | 16 | package com.google.cloud.bigtable.admin.v2; |
17 | 17 |
|
| 18 | +import static com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient.ListBackupsPagedResponse; |
18 | 19 | import static com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient.ListSnapshotsPagedResponse; |
19 | 20 | import static com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient.ListTablesPagedResponse; |
20 | 21 |
|
|
31 | 32 | import com.google.api.gax.rpc.PagedCallSettings; |
32 | 33 | import com.google.api.gax.rpc.TransportChannelProvider; |
33 | 34 | import com.google.api.gax.rpc.UnaryCallSettings; |
| 35 | +import com.google.bigtable.admin.v2.Backup; |
34 | 36 | import com.google.bigtable.admin.v2.CheckConsistencyRequest; |
35 | 37 | import com.google.bigtable.admin.v2.CheckConsistencyResponse; |
| 38 | +import com.google.bigtable.admin.v2.CreateBackupMetadata; |
| 39 | +import com.google.bigtable.admin.v2.CreateBackupRequest; |
36 | 40 | import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata; |
37 | 41 | import com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest; |
38 | 42 | import com.google.bigtable.admin.v2.CreateTableRequest; |
| 43 | +import com.google.bigtable.admin.v2.DeleteBackupRequest; |
39 | 44 | import com.google.bigtable.admin.v2.DeleteSnapshotRequest; |
40 | 45 | import com.google.bigtable.admin.v2.DeleteTableRequest; |
41 | 46 | import com.google.bigtable.admin.v2.DropRowRangeRequest; |
42 | 47 | import com.google.bigtable.admin.v2.GenerateConsistencyTokenRequest; |
43 | 48 | import com.google.bigtable.admin.v2.GenerateConsistencyTokenResponse; |
| 49 | +import com.google.bigtable.admin.v2.GetBackupRequest; |
44 | 50 | import com.google.bigtable.admin.v2.GetSnapshotRequest; |
45 | 51 | import com.google.bigtable.admin.v2.GetTableRequest; |
| 52 | +import com.google.bigtable.admin.v2.ListBackupsRequest; |
| 53 | +import com.google.bigtable.admin.v2.ListBackupsResponse; |
46 | 54 | import com.google.bigtable.admin.v2.ListSnapshotsRequest; |
47 | 55 | import com.google.bigtable.admin.v2.ListSnapshotsResponse; |
48 | 56 | import com.google.bigtable.admin.v2.ListTablesRequest; |
49 | 57 | import com.google.bigtable.admin.v2.ListTablesResponse; |
50 | 58 | import com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest; |
| 59 | +import com.google.bigtable.admin.v2.RestoreTableMetadata; |
| 60 | +import com.google.bigtable.admin.v2.RestoreTableRequest; |
51 | 61 | import com.google.bigtable.admin.v2.Snapshot; |
52 | 62 | import com.google.bigtable.admin.v2.SnapshotTableMetadata; |
53 | 63 | import com.google.bigtable.admin.v2.SnapshotTableRequest; |
54 | 64 | import com.google.bigtable.admin.v2.Table; |
| 65 | +import com.google.bigtable.admin.v2.UpdateBackupRequest; |
55 | 66 | import com.google.cloud.bigtable.admin.v2.stub.BigtableTableAdminStubSettings; |
56 | 67 | import com.google.iam.v1.GetIamPolicyRequest; |
57 | 68 | import com.google.iam.v1.Policy; |
@@ -173,6 +184,53 @@ public UnaryCallSettings<DeleteSnapshotRequest, Empty> deleteSnapshotSettings() |
173 | 184 | return ((BigtableTableAdminStubSettings) getStubSettings()).deleteSnapshotSettings(); |
174 | 185 | } |
175 | 186 |
|
| 187 | + /** Returns the object with the settings used for calls to createBackup. */ |
| 188 | + public UnaryCallSettings<CreateBackupRequest, Operation> createBackupSettings() { |
| 189 | + return ((BigtableTableAdminStubSettings) getStubSettings()).createBackupSettings(); |
| 190 | + } |
| 191 | + |
| 192 | + /** Returns the object with the settings used for calls to createBackup. */ |
| 193 | + @BetaApi( |
| 194 | + "The surface for long-running operations is not stable yet and may change in the future.") |
| 195 | + public OperationCallSettings<CreateBackupRequest, Backup, CreateBackupMetadata> |
| 196 | + createBackupOperationSettings() { |
| 197 | + return ((BigtableTableAdminStubSettings) getStubSettings()).createBackupOperationSettings(); |
| 198 | + } |
| 199 | + |
| 200 | + /** Returns the object with the settings used for calls to getBackup. */ |
| 201 | + public UnaryCallSettings<GetBackupRequest, Backup> getBackupSettings() { |
| 202 | + return ((BigtableTableAdminStubSettings) getStubSettings()).getBackupSettings(); |
| 203 | + } |
| 204 | + |
| 205 | + /** Returns the object with the settings used for calls to listBackups. */ |
| 206 | + public PagedCallSettings<ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> |
| 207 | + listBackupsSettings() { |
| 208 | + return ((BigtableTableAdminStubSettings) getStubSettings()).listBackupsSettings(); |
| 209 | + } |
| 210 | + |
| 211 | + /** Returns the object with the settings used for calls to updateBackup. */ |
| 212 | + public UnaryCallSettings<UpdateBackupRequest, Backup> updateBackupSettings() { |
| 213 | + return ((BigtableTableAdminStubSettings) getStubSettings()).updateBackupSettings(); |
| 214 | + } |
| 215 | + |
| 216 | + /** Returns the object with the settings used for calls to deleteBackup. */ |
| 217 | + public UnaryCallSettings<DeleteBackupRequest, Empty> deleteBackupSettings() { |
| 218 | + return ((BigtableTableAdminStubSettings) getStubSettings()).deleteBackupSettings(); |
| 219 | + } |
| 220 | + |
| 221 | + /** Returns the object with the settings used for calls to restoreTable. */ |
| 222 | + public UnaryCallSettings<RestoreTableRequest, Operation> restoreTableSettings() { |
| 223 | + return ((BigtableTableAdminStubSettings) getStubSettings()).restoreTableSettings(); |
| 224 | + } |
| 225 | + |
| 226 | + /** Returns the object with the settings used for calls to restoreTable. */ |
| 227 | + @BetaApi( |
| 228 | + "The surface for long-running operations is not stable yet and may change in the future.") |
| 229 | + public OperationCallSettings<RestoreTableRequest, Table, RestoreTableMetadata> |
| 230 | + restoreTableOperationSettings() { |
| 231 | + return ((BigtableTableAdminStubSettings) getStubSettings()).restoreTableOperationSettings(); |
| 232 | + } |
| 233 | + |
176 | 234 | public static final BaseBigtableTableAdminSettings create(BigtableTableAdminStubSettings stub) |
177 | 235 | throws IOException { |
178 | 236 | return new BaseBigtableTableAdminSettings.Builder(stub.toBuilder()).build(); |
@@ -377,6 +435,54 @@ public UnaryCallSettings.Builder<DeleteSnapshotRequest, Empty> deleteSnapshotSet |
377 | 435 | return getStubSettingsBuilder().deleteSnapshotSettings(); |
378 | 436 | } |
379 | 437 |
|
| 438 | + /** Returns the builder for the settings used for calls to createBackup. */ |
| 439 | + public UnaryCallSettings.Builder<CreateBackupRequest, Operation> createBackupSettings() { |
| 440 | + return getStubSettingsBuilder().createBackupSettings(); |
| 441 | + } |
| 442 | + |
| 443 | + /** Returns the builder for the settings used for calls to createBackup. */ |
| 444 | + @BetaApi( |
| 445 | + "The surface for long-running operations is not stable yet and may change in the future.") |
| 446 | + public OperationCallSettings.Builder<CreateBackupRequest, Backup, CreateBackupMetadata> |
| 447 | + createBackupOperationSettings() { |
| 448 | + return getStubSettingsBuilder().createBackupOperationSettings(); |
| 449 | + } |
| 450 | + |
| 451 | + /** Returns the builder for the settings used for calls to getBackup. */ |
| 452 | + public UnaryCallSettings.Builder<GetBackupRequest, Backup> getBackupSettings() { |
| 453 | + return getStubSettingsBuilder().getBackupSettings(); |
| 454 | + } |
| 455 | + |
| 456 | + /** Returns the builder for the settings used for calls to listBackups. */ |
| 457 | + public PagedCallSettings.Builder< |
| 458 | + ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> |
| 459 | + listBackupsSettings() { |
| 460 | + return getStubSettingsBuilder().listBackupsSettings(); |
| 461 | + } |
| 462 | + |
| 463 | + /** Returns the builder for the settings used for calls to updateBackup. */ |
| 464 | + public UnaryCallSettings.Builder<UpdateBackupRequest, Backup> updateBackupSettings() { |
| 465 | + return getStubSettingsBuilder().updateBackupSettings(); |
| 466 | + } |
| 467 | + |
| 468 | + /** Returns the builder for the settings used for calls to deleteBackup. */ |
| 469 | + public UnaryCallSettings.Builder<DeleteBackupRequest, Empty> deleteBackupSettings() { |
| 470 | + return getStubSettingsBuilder().deleteBackupSettings(); |
| 471 | + } |
| 472 | + |
| 473 | + /** Returns the builder for the settings used for calls to restoreTable. */ |
| 474 | + public UnaryCallSettings.Builder<RestoreTableRequest, Operation> restoreTableSettings() { |
| 475 | + return getStubSettingsBuilder().restoreTableSettings(); |
| 476 | + } |
| 477 | + |
| 478 | + /** Returns the builder for the settings used for calls to restoreTable. */ |
| 479 | + @BetaApi( |
| 480 | + "The surface for long-running operations is not stable yet and may change in the future.") |
| 481 | + public OperationCallSettings.Builder<RestoreTableRequest, Table, RestoreTableMetadata> |
| 482 | + restoreTableOperationSettings() { |
| 483 | + return getStubSettingsBuilder().restoreTableOperationSettings(); |
| 484 | + } |
| 485 | + |
380 | 486 | @Override |
381 | 487 | public BaseBigtableTableAdminSettings build() throws IOException { |
382 | 488 | return new BaseBigtableTableAdminSettings(this); |
|
0 commit comments