|
36 | 36 | import com.google.bigtable.admin.v2.Backup; |
37 | 37 | import com.google.bigtable.admin.v2.CheckConsistencyRequest; |
38 | 38 | import com.google.bigtable.admin.v2.CheckConsistencyResponse; |
| 39 | +import com.google.bigtable.admin.v2.CopyBackupMetadata; |
| 40 | +import com.google.bigtable.admin.v2.CopyBackupRequest; |
39 | 41 | import com.google.bigtable.admin.v2.CreateBackupMetadata; |
40 | 42 | import com.google.bigtable.admin.v2.CreateBackupRequest; |
41 | 43 | import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata; |
|
81 | 83 | import javax.annotation.Generated; |
82 | 84 |
|
83 | 85 | // AUTO-GENERATED DOCUMENTATION AND CLASS. |
84 | | -/** For internal use only. */ |
| 86 | +/** |
| 87 | + * Settings class to configure an instance of {@link BaseBigtableTableAdminClient}. |
| 88 | + * |
| 89 | + * <p>The default instance has everything set to sensible defaults: |
| 90 | + * |
| 91 | + * <ul> |
| 92 | + * <li>The default service address (bigtableadmin.googleapis.com) and default port (443) are used. |
| 93 | + * <li>Credentials are acquired automatically through Application Default Credentials. |
| 94 | + * <li>Retries are configured for idempotent methods but not for non-idempotent methods. |
| 95 | + * </ul> |
| 96 | + * |
| 97 | + * <p>The builder of this class is recursive, so contained classes are themselves builders. When |
| 98 | + * build() is called, the tree of builders is called to create the complete settings object. |
| 99 | + * |
| 100 | + * <p>For example, to set the total timeout of createTable to 30 seconds: |
| 101 | + * |
| 102 | + * <pre>{@code |
| 103 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 104 | + * // It will require modifications to work: |
| 105 | + * // - It may require correct/in-range values for request initialization. |
| 106 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 107 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
| 108 | + * BaseBigtableTableAdminSettings.Builder baseBigtableTableAdminSettingsBuilder = |
| 109 | + * BaseBigtableTableAdminSettings.newBuilder(); |
| 110 | + * baseBigtableTableAdminSettingsBuilder |
| 111 | + * .createTableSettings() |
| 112 | + * .setRetrySettings( |
| 113 | + * baseBigtableTableAdminSettingsBuilder |
| 114 | + * .createTableSettings() |
| 115 | + * .getRetrySettings() |
| 116 | + * .toBuilder() |
| 117 | + * .setTotalTimeout(Duration.ofSeconds(30)) |
| 118 | + * .build()); |
| 119 | + * BaseBigtableTableAdminSettings baseBigtableTableAdminSettings = |
| 120 | + * baseBigtableTableAdminSettingsBuilder.build(); |
| 121 | + * }</pre> |
| 122 | + */ |
85 | 123 | @Generated("by gapic-generator") |
86 | 124 | @InternalApi |
87 | 125 | public class BaseBigtableTableAdminSettings extends ClientSettings<BaseBigtableTableAdminSettings> { |
@@ -235,6 +273,17 @@ public UnaryCallSettings<RestoreTableRequest, Operation> restoreTableSettings() |
235 | 273 | return ((BigtableTableAdminStubSettings) getStubSettings()).restoreTableOperationSettings(); |
236 | 274 | } |
237 | 275 |
|
| 276 | + /** Returns the object with the settings used for calls to copyBackup. */ |
| 277 | + public UnaryCallSettings<CopyBackupRequest, Operation> copyBackupSettings() { |
| 278 | + return ((BigtableTableAdminStubSettings) getStubSettings()).copyBackupSettings(); |
| 279 | + } |
| 280 | + |
| 281 | + /** Returns the object with the settings used for calls to copyBackup. */ |
| 282 | + public OperationCallSettings<CopyBackupRequest, Backup, CopyBackupMetadata> |
| 283 | + copyBackupOperationSettings() { |
| 284 | + return ((BigtableTableAdminStubSettings) getStubSettings()).copyBackupOperationSettings(); |
| 285 | + } |
| 286 | + |
238 | 287 | /** Returns the object with the settings used for calls to getIamPolicy. */ |
239 | 288 | public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() { |
240 | 289 | return ((BigtableTableAdminStubSettings) getStubSettings()).getIamPolicySettings(); |
@@ -501,6 +550,17 @@ public UnaryCallSettings.Builder<RestoreTableRequest, Operation> restoreTableSet |
501 | 550 | return getStubSettingsBuilder().restoreTableOperationSettings(); |
502 | 551 | } |
503 | 552 |
|
| 553 | + /** Returns the builder for the settings used for calls to copyBackup. */ |
| 554 | + public UnaryCallSettings.Builder<CopyBackupRequest, Operation> copyBackupSettings() { |
| 555 | + return getStubSettingsBuilder().copyBackupSettings(); |
| 556 | + } |
| 557 | + |
| 558 | + /** Returns the builder for the settings used for calls to copyBackup. */ |
| 559 | + public OperationCallSettings.Builder<CopyBackupRequest, Backup, CopyBackupMetadata> |
| 560 | + copyBackupOperationSettings() { |
| 561 | + return getStubSettingsBuilder().copyBackupOperationSettings(); |
| 562 | + } |
| 563 | + |
504 | 564 | /** Returns the builder for the settings used for calls to getIamPolicy. */ |
505 | 565 | public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() { |
506 | 566 | return getStubSettingsBuilder().getIamPolicySettings(); |
|
0 commit comments