Skip to content

Commit f446cd0

Browse files
author
Tracy Cui
committed
Revert "revert auto gen changes/files for copy backup API"
This reverts commit b6efd2d.
1 parent c4f5912 commit f446cd0

19 files changed

Lines changed: 6572 additions & 3183 deletions

File tree

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java

Lines changed: 479 additions & 63 deletions
Large diffs are not rendered by default.

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminSettings.java

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
import com.google.bigtable.admin.v2.Backup;
3737
import com.google.bigtable.admin.v2.CheckConsistencyRequest;
3838
import com.google.bigtable.admin.v2.CheckConsistencyResponse;
39+
import com.google.bigtable.admin.v2.CopyBackupMetadata;
40+
import com.google.bigtable.admin.v2.CopyBackupRequest;
3941
import com.google.bigtable.admin.v2.CreateBackupMetadata;
4042
import com.google.bigtable.admin.v2.CreateBackupRequest;
4143
import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata;
@@ -81,7 +83,43 @@
8183
import javax.annotation.Generated;
8284

8385
// 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+
*/
85123
@Generated("by gapic-generator")
86124
@InternalApi
87125
public class BaseBigtableTableAdminSettings extends ClientSettings<BaseBigtableTableAdminSettings> {
@@ -235,6 +273,17 @@ public UnaryCallSettings<RestoreTableRequest, Operation> restoreTableSettings()
235273
return ((BigtableTableAdminStubSettings) getStubSettings()).restoreTableOperationSettings();
236274
}
237275

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+
238287
/** Returns the object with the settings used for calls to getIamPolicy. */
239288
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
240289
return ((BigtableTableAdminStubSettings) getStubSettings()).getIamPolicySettings();
@@ -501,6 +550,17 @@ public UnaryCallSettings.Builder<RestoreTableRequest, Operation> restoreTableSet
501550
return getStubSettingsBuilder().restoreTableOperationSettings();
502551
}
503552

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+
504564
/** Returns the builder for the settings used for calls to getIamPolicy. */
505565
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
506566
return getStubSettingsBuilder().getIamPolicySettings();

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStub.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
import com.google.bigtable.admin.v2.Backup;
2828
import com.google.bigtable.admin.v2.CheckConsistencyRequest;
2929
import com.google.bigtable.admin.v2.CheckConsistencyResponse;
30+
import com.google.bigtable.admin.v2.CopyBackupMetadata;
31+
import com.google.bigtable.admin.v2.CopyBackupRequest;
3032
import com.google.bigtable.admin.v2.CreateBackupMetadata;
3133
import com.google.bigtable.admin.v2.CreateBackupRequest;
3234
import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata;
@@ -70,7 +72,11 @@
7072
import javax.annotation.Generated;
7173

7274
// AUTO-GENERATED DOCUMENTATION AND CLASS.
73-
/** For internal use only. */
75+
/**
76+
* Base stub class for the BigtableTableAdmin service API.
77+
*
78+
* <p>This class is for advanced usage and reflects the underlying API directly.
79+
*/
7480
@Generated("by gapic-generator")
7581
@InternalApi
7682
public abstract class BigtableTableAdminStub implements BackgroundResource {
@@ -210,6 +216,15 @@ public UnaryCallable<RestoreTableRequest, Operation> restoreTableCallable() {
210216
throw new UnsupportedOperationException("Not implemented: restoreTableCallable()");
211217
}
212218

219+
public OperationCallable<CopyBackupRequest, Backup, CopyBackupMetadata>
220+
copyBackupOperationCallable() {
221+
throw new UnsupportedOperationException("Not implemented: copyBackupOperationCallable()");
222+
}
223+
224+
public UnaryCallable<CopyBackupRequest, Operation> copyBackupCallable() {
225+
throw new UnsupportedOperationException("Not implemented: copyBackupCallable()");
226+
}
227+
213228
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
214229
throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
215230
}

0 commit comments

Comments
 (0)